Add some more casts (1/2)
[external/binutils.git] / gdb / ChangeLog
1 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2
3         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
4         (aarch64_make_stub_cache): Likewise.
5         (value_of_aarch64_user_reg): Likewise.
6         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
7         (get_ada_inferior_data): Likewise.
8         (get_ada_pspace_data): Likewise.
9         (ada_pspace_data_cleanup): Likewise.
10         (ada_complete_symbol_matcher): Likewise.
11         (ada_exc_search_name_matches): Likewise.
12         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13         (get_ada_tasks_inferior_data): Likewise.
14         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
15         (splay_obstack_alloc): Likewise.
16         (splay_obstack_free): Likewise.
17         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
18         (alpha_linux_collect_gregset): Likewise.
19         (alpha_linux_supply_fpregset): Likewise.
20         (alpha_linux_collect_fpregset): Likewise.
21         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
22         * alpha-tdep.c (alpha_lds): Likewise.
23         (alpha_sts): Likewise.
24         (alpha_sigtramp_frame_unwind_cache): Likewise.
25         (alpha_heuristic_frame_unwind_cache): Likewise.
26         (alpha_supply_int_regs): Likewise.
27         (alpha_fill_int_regs): Likewise.
28         (alpha_supply_fp_regs): Likewise.
29         (alpha_fill_fp_regs): Likewise.
30         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
31         (alphanbsd_aout_supply_gregset): Likewise.
32         (alphanbsd_supply_gregset): Likewise.
33         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
34         (amd64_x32_linux_init_abi): Likewise.
35         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
36         (amd64_collect_native_gregset): Likewise.
37         * amd64-tdep.c (amd64_frame_cache): Likewise.
38         (amd64_sigtramp_frame_cache): Likewise.
39         (amd64_epilogue_frame_cache): Likewise.
40         (amd64_supply_fxsave): Likewise.
41         (amd64_supply_xsave): Likewise.
42         (amd64_collect_fxsave): Likewise.
43         (amd64_collect_xsave): Likewise.
44         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
45         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
46         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
47         (arm_linux_collect_gregset): Likewise.
48         (arm_linux_supply_nwfpe): Likewise.
49         (arm_linux_collect_nwfpe): Likewise.
50         (arm_linux_supply_vfp): Likewise.
51         (arm_linux_collect_vfp): Likewise.
52         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
53         (arm_prologue_unwind_stop_reason): Likewise.
54         (arm_prologue_this_id): Likewise.
55         (arm_prologue_prev_register): Likewise.
56         (arm_exidx_data_free): Likewise.
57         (arm_find_exidx_entry): Likewise.
58         (arm_stub_this_id): Likewise.
59         (arm_m_exception_this_id): Likewise.
60         (arm_m_exception_prev_register): Likewise.
61         (arm_normal_frame_base): Likewise.
62         (gdb_print_insn_arm): Likewise.
63         (arm_objfile_data_free): Likewise.
64         (arm_record_special_symbol): Likewise.
65         (value_of_arm_user_reg): Likewise.
66         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
67         (armbsd_supply_gregset): Likewise.
68         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
69         (get_auto_load_pspace_data): Likewise.
70         (hash_loaded_script_entry): Likewise.
71         (eq_loaded_script_entry): Likewise.
72         (clear_section_scripts): Likewise.
73         (collect_matching_scripts): Likewise.
74         * auxv.c (auxv_inferior_data_cleanup): Likewise.
75         (get_auxv_inferior_data): Likewise.
76         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
77         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
78         * bfd-target.c (target_bfd_xfer_partial): Likewise.
79         (target_bfd_xclose): Likewise.
80         (target_bfd_get_section_table): Likewise.
81         * bfin-tdep.c (bfin_frame_cache): Likewise.
82         * block.c (find_block_in_blockvector): Likewise.
83         (call_site_for_pc): Likewise.
84         (block_find_non_opaque_type_preferred): Likewise.
85         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
86         (signal_catchpoint_remove_location): Likewise.
87         (signal_catchpoint_breakpoint_hit): Likewise.
88         (signal_catchpoint_print_one): Likewise.
89         (signal_catchpoint_print_mention): Likewise.
90         (signal_catchpoint_print_recreate): Likewise.
91         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
92         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
93         (bp_location_compare_addrs): Likewise.
94         (get_first_locp_gte_addr): Likewise.
95         (check_tracepoint_command): Likewise.
96         (do_map_commands_command): Likewise.
97         (get_breakpoint_objfile_data): Likewise.
98         (free_breakpoint_probes): Likewise.
99         (do_captured_breakpoint_query): Likewise.
100         (compare_breakpoints): Likewise.
101         (bp_location_compare): Likewise.
102         (bpstat_remove_breakpoint_callback): Likewise.
103         (do_delete_breakpoint_cleanup): Likewise.
104         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
105         (bsd_uthread_set_collect_uthread): Likewise.
106         (bsd_uthread_activate): Likewise.
107         (bsd_uthread_fetch_registers): Likewise.
108         (bsd_uthread_store_registers): Likewise.
109         * btrace.c (check_xml_btrace_version): Likewise.
110         (parse_xml_btrace_block): Likewise.
111         (parse_xml_btrace_pt_config_cpu): Likewise.
112         (parse_xml_btrace_pt_raw): Likewise.
113         (parse_xml_btrace_pt): Likewise.
114         (parse_xml_btrace_conf_bts): Likewise.
115         (parse_xml_btrace_conf_pt): Likewise.
116         (do_btrace_data_cleanup): Likewise.
117         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
118         * charset.c (cleanup_iconv): Likewise.
119         (do_cleanup_iterator): Likewise.
120         * cli-out.c (cli_uiout_dtor): Likewise.
121         (cli_table_begin): Likewise.
122         (cli_table_body): Likewise.
123         (cli_table_end): Likewise.
124         (cli_table_header): Likewise.
125         (cli_begin): Likewise.
126         (cli_end): Likewise.
127         (cli_field_int): Likewise.
128         (cli_field_skip): Likewise.
129         (cli_field_string): Likewise.
130         (cli_field_fmt): Likewise.
131         (cli_spaces): Likewise.
132         (cli_text): Likewise.
133         (cli_message): Likewise.
134         (cli_wrap_hint): Likewise.
135         (cli_flush): Likewise.
136         (cli_redirect): Likewise.
137         (out_field_fmt): Likewise.
138         (field_separator): Likewise.
139         (cli_out_set_stream): Likewise.
140         * cli/cli-cmds.c (compare_symtabs): Likewise.
141         * cli/cli-dump.c (call_dump_func): Likewise.
142         (restore_section_callback): Likewise.
143         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
144         (do_restore_user_call_depth): Likewise.
145         (do_free_command_lines_cleanup): Likewise.
146         * coff-pe-read.c (get_section_vmas): Likewise.
147         (pe_as16): Likewise.
148         (pe_as32): Likewise.
149         * coffread.c (coff_symfile_read): Likewise.
150         * common/agent.c (agent_look_up_symbols): Likewise.
151         * common/filestuff.c (do_close_cleanup): Likewise.
152         * common/format.c (free_format_pieces_cleanup): Likewise.
153         * common/vec.c (vec_o_reserve): Likewise.
154         * compile/compile-c-support.c (print_one_macro): Likewise.
155         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
156         (eq_symbol_error): Likewise.
157         (del_symbol_error): Likewise.
158         (error_symbol_once): Likewise.
159         (gcc_convert_symbol): Likewise.
160         (gcc_symbol_address): Likewise.
161         (hash_symname): Likewise.
162         (eq_symname): Likewise.
163         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
164         (eq_type_map_instance): Likewise.
165         (insert_type): Likewise.
166         (convert_type): Likewise.
167         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
168         (setup_sections): Likewise.
169         (link_hash_table_free): Likewise.
170         (copy_sections): Likewise.
171         * compile/compile-object-run.c (do_module_cleanup): Likewise.
172         * compile/compile.c (compile_print_value): Likewise.
173         (do_rmdir): Likewise.
174         (cleanup_compile_instance): Likewise.
175         (cleanup_unlink_file): Likewise.
176         * completer.c (free_completion_tracker): Likewise.
177         * corelow.c (add_to_spuid_list): Likewise.
178         * cp-namespace.c (reset_directive_searched): Likewise.
179         * cp-support.c (reset_directive_searched): Likewise.
180         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
181         (cris_frame_unwind_cache): Likewise.
182         * d-lang.c (builtin_d_type): Likewise.
183         * d-namespace.c (reset_directive_searched): Likewise.
184         * dbxread.c (dbx_free_symfile_info): Likewise.
185         (do_free_bincl_list_cleanup): Likewise.
186         * disasm.c (hash_dis_line_entry): Likewise.
187         (eq_dis_line_entry): Likewise.
188         (dis_asm_print_address): Likewise.
189         (fprintf_disasm): Likewise.
190         (do_ui_file_delete): Likewise.
191         * doublest.c (convert_floatformat_to_doublest): Likewise.
192         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
193         (dummy_frame_prev_register): Likewise.
194         (dummy_frame_this_id): Likewise.
195         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
196         (cache_eq): Likewise.
197         (cache_find): Likewise.
198         (tailcall_frame_this_id): Likewise.
199         (dwarf2_tailcall_prev_register_first): Likewise.
200         (tailcall_frame_prev_register): Likewise.
201         (tailcall_frame_dealloc_cache): Likewise.
202         (tailcall_frame_prev_arch): Likewise.
203         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
204         (dwarf2_frame_set_init_reg): Likewise.
205         (dwarf2_frame_init_reg): Likewise.
206         (dwarf2_frame_set_signal_frame_p): Likewise.
207         (dwarf2_frame_signal_frame_p): Likewise.
208         (dwarf2_frame_set_adjust_regnum): Likewise.
209         (dwarf2_frame_adjust_regnum): Likewise.
210         (clear_pointer_cleanup): Likewise.
211         (dwarf2_frame_cache): Likewise.
212         (find_cie): Likewise.
213         (dwarf2_frame_find_fde): Likewise.
214         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
215         (free_dwarf_expr_context_cleanup): Likewise.
216         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
217         (locexpr_get_frame_base): Likewise.
218         (loclist_find_frame_base_location): Likewise.
219         (loclist_get_frame_base): Likewise.
220         (dwarf_expr_dwarf_call): Likewise.
221         (dwarf_expr_get_base_type): Likewise.
222         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
223         (dwarf_expr_get_obj_addr): Likewise.
224         (entry_data_value_coerce_ref): Likewise.
225         (entry_data_value_copy_closure): Likewise.
226         (entry_data_value_free_closure): Likewise.
227         (get_frame_address_in_block_wrapper): Likewise.
228         (dwarf2_evaluate_property): Likewise.
229         (dwarf2_compile_property_to_c): Likewise.
230         (needs_frame_read_addr_from_reg): Likewise.
231         (needs_frame_get_reg_value): Likewise.
232         (needs_frame_frame_base): Likewise.
233         (needs_frame_frame_cfa): Likewise.
234         (needs_frame_tls_address): Likewise.
235         (needs_frame_dwarf_call): Likewise.
236         (needs_dwarf_reg_entry_value): Likewise.
237         (get_ax_pc): Likewise.
238         (locexpr_read_variable): Likewise.
239         (locexpr_read_variable_at_entry): Likewise.
240         (locexpr_read_needs_frame): Likewise.
241         (locexpr_describe_location): Likewise.
242         (locexpr_tracepoint_var_ref): Likewise.
243         (locexpr_generate_c_location): Likewise.
244         (loclist_read_variable): Likewise.
245         (loclist_read_variable_at_entry): Likewise.
246         (loclist_describe_location): Likewise.
247         (loclist_tracepoint_var_ref): Likewise.
248         (loclist_generate_c_location): Likewise.
249         * dwarf2read.c (line_header_hash_voidp): Likewise.
250         (line_header_eq_voidp): Likewise.
251         (dwarf2_has_info): Likewise.
252         (dwarf2_get_section_info): Likewise.
253         (locate_dwz_sections): Likewise.
254         (hash_file_name_entry): Likewise.
255         (eq_file_name_entry): Likewise.
256         (delete_file_name_entry): Likewise.
257         (dw2_setup): Likewise.
258         (dw2_get_file_names_reader): Likewise.
259         (dw2_find_pc_sect_compunit_symtab): Likewise.
260         (hash_signatured_type): Likewise.
261         (eq_signatured_type): Likewise.
262         (add_signatured_type_cu_to_table): Likewise.
263         (create_debug_types_hash_table): Likewise.
264         (lookup_dwo_signatured_type): Likewise.
265         (lookup_dwp_signatured_type): Likewise.
266         (lookup_signatured_type): Likewise.
267         (hash_type_unit_group): Likewise.
268         (eq_type_unit_group): Likewise.
269         (get_type_unit_group): Likewise.
270         (process_psymtab_comp_unit_reader): Likewise.
271         (sort_tu_by_abbrev_offset): Likewise.
272         (process_skeletonless_type_unit): Likewise.
273         (psymtabs_addrmap_cleanup): Likewise.
274         (dwarf2_read_symtab): Likewise.
275         (psymtab_to_symtab_1): Likewise.
276         (die_hash): Likewise.
277         (die_eq): Likewise.
278         (load_full_comp_unit_reader): Likewise.
279         (reset_die_in_process): Likewise.
280         (free_cu_line_header): Likewise.
281         (handle_DW_AT_stmt_list): Likewise.
282         (hash_dwo_file): Likewise.
283         (eq_dwo_file): Likewise.
284         (hash_dwo_unit): Likewise.
285         (eq_dwo_unit): Likewise.
286         (create_dwo_cu_reader): Likewise.
287         (create_dwo_unit_in_dwp_v1): Likewise.
288         (create_dwo_unit_in_dwp_v2): Likewise.
289         (lookup_dwo_unit_in_dwp): Likewise.
290         (dwarf2_locate_dwo_sections): Likewise.
291         (dwarf2_locate_common_dwp_sections): Likewise.
292         (dwarf2_locate_v2_dwp_sections): Likewise.
293         (hash_dwp_loaded_cutus): Likewise.
294         (eq_dwp_loaded_cutus): Likewise.
295         (lookup_dwo_cutu): Likewise.
296         (abbrev_table_free_cleanup): Likewise.
297         (dwarf2_free_abbrev_table): Likewise.
298         (find_partial_die_in_comp_unit): Likewise.
299         (free_line_header_voidp): Likewise.
300         (follow_die_offset): Likewise.
301         (follow_die_sig_1): Likewise.
302         (free_heap_comp_unit): Likewise.
303         (free_stack_comp_unit): Likewise.
304         (dwarf2_free_objfile): Likewise.
305         (per_cu_offset_and_type_hash): Likewise.
306         (per_cu_offset_and_type_eq): Likewise.
307         (get_die_type_at_offset): Likewise.
308         (partial_die_hash): Likewise.
309         (partial_die_eq): Likewise.
310         (dwarf2_per_objfile_free): Likewise.
311         (hash_strtab_entry): Likewise.
312         (eq_strtab_entry): Likewise.
313         (add_string): Likewise.
314         (hash_symtab_entry): Likewise.
315         (eq_symtab_entry): Likewise.
316         (delete_symtab_entry): Likewise.
317         (cleanup_mapped_symtab): Likewise.
318         (add_indices_to_cpool): Likewise.
319         (hash_psymtab_cu_index): Likewise.
320         (eq_psymtab_cu_index): Likewise.
321         (add_address_entry_worker): Likewise.
322         (unlink_if_set): Likewise.
323         (write_one_signatured_type): Likewise.
324         (save_gdb_index_command): Likewise.
325         * elfread.c (elf_symtab_read): Likewise.
326         (elf_gnu_ifunc_cache_hash): Likewise.
327         (elf_gnu_ifunc_cache_eq): Likewise.
328         (elf_gnu_ifunc_record_cache): Likewise.
329         (elf_gnu_ifunc_resolve_by_cache): Likewise.
330         (elf_get_probes): Likewise.
331         (probe_key_free): Likewise.
332         * f-lang.c (builtin_f_type): Likewise.
333         * frame-base.c (frame_base_append_sniffer): Likewise.
334         (frame_base_set_default): Likewise.
335         (frame_base_find_by_frame): Likewise.
336         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
337         (frame_unwind_append_unwinder): Likewise.
338         (frame_unwind_find_by_frame): Likewise.
339         * frame.c (frame_addr_hash): Likewise.
340         (frame_addr_hash_eq): Likewise.
341         (frame_stash_find): Likewise.
342         (do_frame_register_read): Likewise.
343         (unwind_to_current_frame): Likewise.
344         (frame_cleanup_after_sniffer): Likewise.
345         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
346         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
347         * ft32-tdep.c (ft32_frame_cache): Likewise.
348         * gcore.c (do_bfd_delete_cleanup): Likewise.
349         (gcore_create_callback): Likewise.
350         * gdb_bfd.c (hash_bfd): Likewise.
351         (eq_bfd): Likewise.
352         (gdb_bfd_open): Likewise.
353         (free_one_bfd_section): Likewise.
354         (gdb_bfd_ref): Likewise.
355         (gdb_bfd_unref): Likewise.
356         (get_section_descriptor): Likewise.
357         (gdb_bfd_map_section): Likewise.
358         (gdb_bfd_crc): Likewise.
359         (gdb_bfd_mark_parent): Likewise.
360         (gdb_bfd_record_inclusion): Likewise.
361         (gdb_bfd_requires_relocations): Likewise.
362         (print_one_bfd): Likewise.
363         * gdbtypes.c (type_pair_hash): Likewise.
364         (type_pair_eq): Likewise.
365         (builtin_type): Likewise.
366         (objfile_type): Likewise.
367         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
368         (vtable_address_point_offset): Likewise.
369         (gnuv3_get_vtable): Likewise.
370         (hash_value_and_voffset): Likewise.
371         (eq_value_and_voffset): Likewise.
372         (compare_value_and_voffset): Likewise.
373         (compute_vtable_size): Likewise.
374         (gnuv3_get_typeid_type): Likewise.
375         * go-lang.c (builtin_go_type): Likewise.
376         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
377         (bkscm_eq_block_smob): Likewise.
378         (bkscm_objfile_block_map): Likewise.
379         (bkscm_del_objfile_blocks): Likewise.
380         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
381         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
382         (gdbscm_disasm_print_address): Likewise.
383         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
384         (frscm_eq_frame_smob): Likewise.
385         (frscm_inferior_frame_map): Likewise.
386         (frscm_del_inferior_frames): Likewise.
387         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
388         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
389         (ofscm_objfile_smob_from_objfile): Likewise.
390         * guile/scm-ports.c (ioscm_write): Likewise.
391         (ioscm_file_port_delete): Likewise.
392         (ioscm_file_port_rewind): Likewise.
393         (ioscm_file_port_put): Likewise.
394         (ioscm_file_port_write): Likewise.
395         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
396         (psscm_pspace_smob_from_pspace): Likewise.
397         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
398         (scscm_recording_unwind_handler): Likewise.
399         (gdbscm_with_catch): Likewise.
400         (scscm_call_0_body): Likewise.
401         (scscm_call_1_body): Likewise.
402         (scscm_call_2_body): Likewise.
403         (scscm_call_3_body): Likewise.
404         (scscm_call_4_body): Likewise.
405         (scscm_apply_1_body): Likewise.
406         (scscm_eval_scheme_string): Likewise.
407         (gdbscm_safe_eval_string): Likewise.
408         (scscm_source_scheme_script): Likewise.
409         (gdbscm_safe_source_script): Likewise.
410         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
411         (gdbscm_call_scm_from_stringn): Likewise.
412         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
413         (syscm_eq_symbol_smob): Likewise.
414         (syscm_get_symbol_map): Likewise.
415         (syscm_del_objfile_symbols): Likewise.
416         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
417         (stscm_eq_symtab_smob): Likewise.
418         (stscm_objfile_symtab_map): Likewise.
419         (stscm_del_objfile_symtabs): Likewise.
420         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
421         (tyscm_eq_type_smob): Likewise.
422         (tyscm_type_map): Likewise.
423         (tyscm_copy_type_recursive): Likewise.
424         (save_objfile_types): Likewise.
425         * guile/scm-utils.c (extract_arg): Likewise.
426         * h8300-tdep.c (h8300_frame_cache): Likewise.
427         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
428         * hppa-tdep.c (compare_unwind_entries): Likewise.
429         (find_unwind_entry): Likewise.
430         (hppa_frame_cache): Likewise.
431         (hppa_stub_frame_unwind_cache): Likewise.
432         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
433         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
434         (hppaobsd_supply_fpregset): Likewise.
435         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
436         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
437         * i386-tdep.c (i386_frame_cache): Likewise.
438         (i386_epilogue_frame_cache): Likewise.
439         (i386_sigtramp_frame_cache): Likewise.
440         (i386_supply_gregset): Likewise.
441         (i386_collect_gregset): Likewise.
442         (i386_gdbarch_init): Likewise.
443         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
444         (i386obsd_trapframe_cache): Likewise.
445         * i387-tdep.c (i387_supply_fsave): Likewise.
446         (i387_collect_fsave): Likewise.
447         (i387_supply_fxsave): Likewise.
448         (i387_collect_fxsave): Likewise.
449         (i387_supply_xsave): Likewise.
450         (i387_collect_xsave): Likewise.
451         * ia64-tdep.c (ia64_frame_cache): Likewise.
452         (ia64_sigtramp_frame_cache): Likewise.
453         * infcmd.c (attach_command_continuation): Likewise.
454         (attach_command_continuation_free_args): Likewise.
455         * inferior.c (restore_inferior): Likewise.
456         (delete_thread_of_inferior): Likewise.
457         * inflow.c (inflow_inferior_data_cleanup): Likewise.
458         (get_inflow_inferior_data): Likewise.
459         (inflow_inferior_exit): Likewise.
460         * infrun.c (displaced_step_clear_cleanup): Likewise.
461         (restore_current_uiout_cleanup): Likewise.
462         (release_stop_context_cleanup): Likewise.
463         (do_restore_infcall_suspend_state_cleanup): Likewise.
464         (do_restore_infcall_control_state_cleanup): Likewise.
465         (restore_inferior_ptid): Likewise.
466         * inline-frame.c (block_starting_point_at): Likewise.
467         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
468         * jit.c (get_jit_objfile_data): Likewise.
469         (get_jit_program_space_data): Likewise.
470         (jit_object_close_impl): Likewise.
471         (jit_find_objf_with_entry_addr): Likewise.
472         (jit_breakpoint_deleted): Likewise.
473         (jit_unwind_reg_set_impl): Likewise.
474         (jit_unwind_reg_get_impl): Likewise.
475         (jit_dealloc_cache): Likewise.
476         (jit_frame_sniffer): Likewise.
477         (jit_frame_prev_register): Likewise.
478         (jit_prepend_unwinder): Likewise.
479         (jit_inferior_exit_hook): Likewise.
480         (free_objfile_data): Likewise.
481         * jv-lang.c (jv_per_objfile_free): Likewise.
482         (get_dynamics_objfile): Likewise.
483         (get_java_class_symtab): Likewise.
484         (builtin_java_type): Likewise.
485         * language.c (language_string_char_type): Likewise.
486         (language_bool_type): Likewise.
487         (language_lookup_primitive_type): Likewise.
488         (language_lookup_primitive_type_as_symbol): Likewise.
489         * linespec.c (hash_address_entry): Likewise.
490         (eq_address_entry): Likewise.
491         (iterate_inline_only): Likewise.
492         (iterate_name_matcher): Likewise.
493         (decode_line_2_compare_items): Likewise.
494         (collect_one_symbol): Likewise.
495         (compare_symbols): Likewise.
496         (compare_msymbols): Likewise.
497         (add_symtabs_to_list): Likewise.
498         (collect_symbols): Likewise.
499         (compare_msyms): Likewise.
500         (add_minsym): Likewise.
501         (cleanup_linespec_result): Likewise.
502         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
503         * linux-nat.c (delete_lwp_cleanup): Likewise.
504         (count_events_callback): Likewise.
505         (select_event_lwp_callback): Likewise.
506         (resume_stopped_resumed_lwps): Likewise.
507         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
508         (invalidate_linux_cache_inf): Likewise.
509         (get_linux_inferior_data): Likewise.
510         (linux_find_memory_regions_thunk): Likewise.
511         (linux_make_mappings_callback): Likewise.
512         (linux_corefile_thread_callback): Likewise.
513         (find_mapping_size): Likewise.
514         * linux-thread-db.c (find_new_threads_callback): Likewise.
515         * lm32-tdep.c (lm32_frame_cache): Likewise.
516         * m2-lang.c (builtin_m2_type): Likewise.
517         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
518         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
519         (m32r_linux_supply_gregset): Likewise.
520         (m32r_linux_collect_gregset): Likewise.
521         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
522         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
523         * m68k-tdep.c (m68k_frame_cache): Likewise.
524         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
525         (m68kbsd_supply_gregset): Likewise.
526         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
527         * m88k-tdep.c (m88k_frame_cache): Likewise.
528         (m88k_supply_gregset): Likewise.
529
530 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
531
532         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
533         to allocation result assignment.
534         * ada-exp.y (write_object_renaming): Likewise.
535         (write_ambiguous_var): Likewise.
536         (ada_nget_field_index): Likewise.
537         (write_var_or_type): Likewise.
538         * ada-lang.c (ada_decode_symbol): Likewise.
539         (ada_value_assign): Likewise.
540         (value_pointer): Likewise.
541         (cache_symbol): Likewise.
542         (add_nonlocal_symbols): Likewise.
543         (ada_name_for_lookup): Likewise.
544         (symbol_completion_add): Likewise.
545         (ada_to_fixed_type_1): Likewise.
546         (ada_get_next_arg): Likewise.
547         (defns_collected): Likewise.
548         * ada-lex.l (processId): Likewise.
549         (processString): Likewise.
550         * ada-tasks.c (read_known_tasks_array): Likewise.
551         (read_known_tasks_list): Likewise.
552         * ada-typeprint.c (decoded_type_name): Likewise.
553         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
554         * amd64-tdep.c (amd64_push_arguments): Likewise.
555         (amd64_displaced_step_copy_insn): Likewise.
556         (amd64_classify_insn_at): Likewise.
557         (amd64_relocate_instruction): Likewise.
558         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
559         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
560         (initialize_current_architecture): Likewise.
561         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
562         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
563         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
564         (arm_push_dummy_call): Likewise.
565         (extend_buffer_earlier): Likewise.
566         (arm_adjust_breakpoint_address): Likewise.
567         (arm_skip_stub): Likewise.
568         * auto-load.c (filename_is_in_pattern): Likewise.
569         (maybe_add_script_file): Likewise.
570         (maybe_add_script_text): Likewise.
571         (auto_load_objfile_script_1): Likewise.
572         * auxv.c (ld_so_xfer_auxv): Likewise.
573         * ax-general.c (new_agent_expr): Likewise.
574         (grow_expr): Likewise.
575         (ax_reg_mask): Likewise.
576         * bcache.c (bcache_full): Likewise.
577         * breakpoint.c (program_breakpoint_here_p): Likewise.
578         * btrace.c (parse_xml_raw): Likewise.
579         * build-id.c (build_id_to_debug_bfd): Likewise.
580         * buildsym.c (end_symtab_with_blockvector): Likewise.
581         * c-exp.y (string_exp): Likewise.
582         (qualified_name): Likewise.
583         (write_destructor_name): Likewise.
584         (operator_stoken): Likewise.
585         (parse_number): Likewise.
586         (scan_macro_expansion): Likewise.
587         (yylex): Likewise.
588         (c_print_token): Likewise.
589         * c-lang.c (c_get_string): Likewise.
590         (emit_numeric_character): Likewise.
591         * charset.c (wchar_iterate): Likewise.
592         * cli/cli-cmds.c (complete_command): Likewise.
593         (make_command): Likewise.
594         * cli/cli-dump.c (restore_section_callback): Likewise.
595         (restore_binary_file): Likewise.
596         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
597         * cli/cli-script.c (execute_control_command): Likewise.
598         * cli/cli-setshow.c (do_set_command): Likewise.
599         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
600         (read_pe_exported_syms): Likewise.
601         * coffread.c (coff_read_struct_type): Likewise.
602         (coff_read_enum_type): Likewise.
603         * common/btrace-common.c (btrace_data_append): Likewise.
604         * common/buffer.c (buffer_grow): Likewise.
605         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
606         * common/format.c (parse_format_string): Likewise.
607         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
608         * common/xml-utils.c (xml_escape_text): Likewise.
609         * compile/compile-object-load.c (copy_sections): Likewise.
610         (compile_object_load): Likewise.
611         * compile/compile-object-run.c (compile_object_run): Likewise.
612         * completer.c (filename_completer): Likewise.
613         * corefile.c (read_memory_typed_address): Likewise.
614         (write_memory_unsigned_integer): Likewise.
615         (write_memory_signed_integer): Likewise.
616         (complete_set_gnutarget): Likewise.
617         * corelow.c (get_core_register_section): Likewise.
618         * cp-name-parser.y (d_grab): Likewise.
619         (allocate_info): Likewise.
620         (cp_new_demangle_parse_info): Likewise.
621         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
622         (cp_lookup_symbol_in_namespace): Likewise.
623         (lookup_namespace_scope): Likewise.
624         (find_symbol_in_baseclass): Likewise.
625         (cp_lookup_nested_symbol): Likewise.
626         (cp_lookup_transparent_type_loop): Likewise.
627         * cp-support.c (copy_string_to_obstack): Likewise.
628         (make_symbol_overload_list): Likewise.
629         (make_symbol_overload_list_namespace): Likewise.
630         (make_symbol_overload_list_adl_namespace): Likewise.
631         (first_component_command): Likewise.
632         * cp-valprint.c (cp_print_value): Likewise.
633         * ctf.c (ctf_xfer_partial): Likewise.
634         * d-exp.y (StringExp): Likewise.
635         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
636         (lookup_module_scope): Likewise.
637         (find_symbol_in_baseclass): Likewise.
638         (d_lookup_nested_symbol): Likewise.
639         * dbxread.c (find_stab_function_addr): Likewise.
640         (read_dbx_symtab): Likewise.
641         (dbx_end_psymtab): Likewise.
642         (cp_set_block_scope): Likewise.
643         * dcache.c (dcache_alloc): Likewise.
644         * demangle.c (_initialize_demangler): Likewise.
645         * dicos-tdep.c (dicos_load_module_p): Likewise.
646         * dictionary.c (dict_create_hashed_expandable): Likewise.
647         (dict_create_linear_expandable): Likewise.
648         (expand_hashtable): Likewise.
649         (add_symbol_linear_expandable): Likewise.
650         * dwarf2-frame.c (add_cie): Likewise.
651         (add_fde): Likewise.
652         (dwarf2_build_frame_info): Likewise.
653         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
654         (dwarf_expr_fetch_address): Likewise.
655         (add_piece): Likewise.
656         (execute_stack_op): Likewise.
657         * dwarf2loc.c (chain_candidate): Likewise.
658         (dwarf_entry_parameter_to_value): Likewise.
659         (read_pieced_value): Likewise.
660         (write_pieced_value): Likewise.
661         * dwarf2read.c (dwarf2_read_section): Likewise.
662         (add_type_unit): Likewise.
663         (read_comp_units_from_section): Likewise.
664         (fixup_go_packaging): Likewise.
665         (dwarf2_compute_name): Likewise.
666         (dwarf2_physname): Likewise.
667         (create_dwo_unit_in_dwp_v1): Likewise.
668         (create_dwo_unit_in_dwp_v2): Likewise.
669         (read_func_scope): Likewise.
670         (read_call_site_scope): Likewise.
671         (dwarf2_attach_fields_to_type): Likewise.
672         (process_structure_scope): Likewise.
673         (mark_common_block_symbol_computed): Likewise.
674         (read_common_block): Likewise.
675         (abbrev_table_read_table): Likewise.
676         (guess_partial_die_structure_name): Likewise.
677         (fixup_partial_die): Likewise.
678         (add_file_name): Likewise.
679         (dwarf2_const_value_data): Likewise.
680         (dwarf2_const_value_attr): Likewise.
681         (build_error_marker_type): Likewise.
682         (guess_full_die_structure_name): Likewise.
683         (anonymous_struct_prefix): Likewise.
684         (typename_concat): Likewise.
685         (dwarf2_canonicalize_name): Likewise.
686         (dwarf2_name): Likewise.
687         (write_constant_as_bytes): Likewise.
688         (dwarf2_fetch_constant_bytes): Likewise.
689         (copy_string): Likewise.
690         (parse_macro_definition): Likewise.
691         * elfread.c (elf_symfile_segments): Likewise.
692         (elf_rel_plt_read): Likewise.
693         (elf_gnu_ifunc_resolve_by_cache): Likewise.
694         (elf_gnu_ifunc_resolve_by_got): Likewise.
695         (elf_read_minimal_symbols): Likewise.
696         (elf_gnu_ifunc_record_cache): Likewise.
697         * event-top.c (top_level_prompt): Likewise.
698         (command_line_handler): Likewise.
699         * exec.c (resize_section_table): Likewise.
700         * expprint.c (print_subexp_standard): Likewise.
701         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
702         * findcmd.c (parse_find_args): Likewise.
703         * findvar.c (address_from_register): Likewise.
704         * frame.c (get_prev_frame_always): Likewise.
705         * gdb_bfd.c (gdb_bfd_ref): Likewise.
706         (get_section_descriptor): Likewise.
707         * gdb_obstack.c (obconcat): Likewise.
708         (obstack_strdup): Likewise.
709         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
710         (create_set_type): Likewise.
711         (lookup_unsigned_typename): Likewise.
712         (lookup_signed_typename): Likewise.
713         (resolve_dynamic_union): Likewise.
714         (resolve_dynamic_struct): Likewise.
715         (add_dyn_prop): Likewise.
716         (copy_dynamic_prop_list): Likewise.
717         (arch_flags_type): Likewise.
718         (append_composite_type_field_raw): Likewise.
719         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
720         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
721         * go-exp.y (string_exp): Likewise.
722         * go-lang.c (go_demangle): Likewise.
723         * guile/guile.c (compute_scheme_string): Likewise.
724         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
725         (gdbscm_canonicalize_command_name): Likewise.
726         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
727         (ioscm_init_memory_port): Likewise.
728         (ioscm_reinit_memory_port): Likewise.
729         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
730         (gdbscm_gc_dup_argv): Likewise.
731         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
732         * hppa-tdep.c (internalize_unwinds): Likewise.
733         (read_unwind_info): Likewise.
734         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
735         (windows_core_xfer_shared_libraries): Likewise.
736         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
737         (i386_stap_parse_special_token_triplet): Likewise.
738         (i386_stap_parse_special_token_three_arg_disp): Likewise.
739         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
740         * inf-child.c (inf_child_fileio_readlink): Likewise.
741         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
742         (inf_ptrace_store_register): Likewise.
743         * infrun.c (follow_exec): Likewise.
744         (displaced_step_prepare_throw): Likewise.
745         (save_stop_context): Likewise.
746         (save_infcall_suspend_state): Likewise.
747         * jit.c (jit_read_descriptor): Likewise.
748         (jit_read_code_entry): Likewise.
749         (jit_symtab_line_mapping_add_impl): Likewise.
750         (finalize_symtab): Likewise.
751         (jit_unwind_reg_get_impl): Likewise.
752         * jv-exp.y (QualifiedName): Likewise.
753         * jv-lang.c (get_java_utf8_name): Likewise.
754         (type_from_class): Likewise.
755         (java_demangle_type_signature): Likewise.
756         (java_class_name_from_physname): Likewise.
757         * jv-typeprint.c (java_type_print_base): Likewise.
758         * jv-valprint.c (java_value_print): Likewise.
759         * language.c (add_language): Likewise.
760         * linespec.c (add_sal_to_sals_basic): Likewise.
761         (add_sal_to_sals): Likewise.
762         (decode_objc): Likewise.
763         (find_linespec_symbols): Likewise.
764         * linux-fork.c (fork_save_infrun_state): Likewise.
765         * linux-nat.c (linux_nat_detach): Likewise.
766         (linux_nat_fileio_readlink): Likewise.
767         * linux-record.c (record_linux_sockaddr): Likewise.
768         (record_linux_msghdr): Likewise.
769         (Do): Likewise.
770         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
771         (linux_collect_regset_section_cb): Likewise.
772         (linux_get_siginfo_data): Likewise.
773         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
774         (try_thread_db_load_from_dir): Likewise.
775         (thread_db_load_search): Likewise.
776         (info_auto_load_libthread_db): Likewise.
777         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
778         (m32c_m16c_pointer_to_address): Likewise.
779         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
780         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
781         * machoread.c (macho_check_dsym): Likewise.
782         * macroexp.c (resize_buffer): Likewise.
783         (gather_arguments): Likewise.
784         (maybe_expand): Likewise.
785         * macrotab.c (new_macro_key): Likewise.
786         (new_source_file): Likewise.
787         (new_macro_definition): Likewise.
788         * mdebugread.c (parse_symbol): Likewise.
789         (parse_type): Likewise.
790         (parse_partial_symbols): Likewise.
791         (psymtab_to_symtab_1): Likewise.
792         * mem-break.c (default_memory_insert_breakpoint): Likewise.
793         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
794         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
795         (mi_cmd_data_read_memory_bytes): Likewise.
796         (mi_cmd_data_write_memory_bytes): Likewise.
797         (mi_cmd_trace_frame_collected): Likewise.
798         * mi/mi-parse.c (mi_parse_argv): Likewise.
799         (mi_parse): Likewise.
800         * minidebug.c (lzma_open): Likewise.
801         (lzma_pread): Likewise.
802         * mips-tdep.c (mips_read_fp_register_single): Likewise.
803         (mips_print_fp_register): Likewise.
804         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
805         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
806         * mt-tdep.c (mt_register_name): Likewise.
807         (mt_registers_info): Likewise.
808         (mt_push_dummy_call): Likewise.
809         * namespace.c (add_using_directive): Likewise.
810         * nat/linux-btrace.c (perf_event_read): Likewise.
811         (linux_enable_bts): Likewise.
812         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
813         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
814         * nto-tdep.c (nto_find_and_open_solib): Likewise.
815         (nto_parse_redirection): Likewise.
816         * objc-lang.c (objc_demangle): Likewise.
817         (find_methods): Likewise.
818         * objfiles.c (get_objfile_bfd_data): Likewise.
819         (set_objfile_main_name): Likewise.
820         (allocate_objfile): Likewise.
821         (objfile_relocate): Likewise.
822         (update_section_map): Likewise.
823         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
824         * p-exp.y (exp): Likewise.
825         (yylex): Likewise.
826         * p-valprint.c (pascal_object_print_value): Likewise.
827         * parse.c (initialize_expout): Likewise.
828         (mark_completion_tag): Likewise.
829         (copy_name): Likewise.
830         (parse_float): Likewise.
831         (type_stack_reserve): Likewise.
832         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
833         (ppu2spu_prev_register): Likewise.
834         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
835         * printcmd.c (printf_wide_c_string): Likewise.
836         (printf_pointer): Likewise.
837         * probe.c (parse_probes): Likewise.
838         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
839         (cmdpy_init): Likewise.
840         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
841         * python/py-symtab.c (set_sal): Likewise.
842         * python/py-unwind.c (pyuw_sniffer): Likewise.
843         * python/python.c (python_interactive_command): Likewise.
844         (compute_python_string): Likewise.
845         * ravenscar-thread.c (get_running_thread_id): Likewise.
846         * record-full.c (record_full_exec_insn): Likewise.
847         (record_full_core_open_1): Likewise.
848         * regcache.c (regcache_raw_read_signed): Likewise.
849         (regcache_raw_read_unsigned): Likewise.
850         (regcache_cooked_read_signed): Likewise.
851         (regcache_cooked_read_unsigned): Likewise.
852         * remote-fileio.c (remote_fileio_func_open): Likewise.
853         (remote_fileio_func_rename): Likewise.
854         (remote_fileio_func_unlink): Likewise.
855         (remote_fileio_func_stat): Likewise.
856         (remote_fileio_func_system): Likewise.
857         * remote-mips.c (mips_xfer_memory): Likewise.
858         (mips_load_srec): Likewise.
859         (pmon_end_download): Likewise.
860         * remote.c (new_remote_state): Likewise.
861         (map_regcache_remote_table): Likewise.
862         (remote_register_number_and_offset): Likewise.
863         (init_remote_state): Likewise.
864         (get_memory_packet_size): Likewise.
865         (remote_pass_signals): Likewise.
866         (remote_program_signals): Likewise.
867         (remote_start_remote): Likewise.
868         (remote_check_symbols): Likewise.
869         (remote_query_supported): Likewise.
870         (extended_remote_attach): Likewise.
871         (process_g_packet): Likewise.
872         (store_registers_using_G): Likewise.
873         (putpkt_binary): Likewise.
874         (read_frame): Likewise.
875         (compare_sections_command): Likewise.
876         (remote_hostio_pread): Likewise.
877         (remote_hostio_readlink): Likewise.
878         (remote_file_put): Likewise.
879         (remote_file_get): Likewise.
880         (remote_pid_to_exec_file): Likewise.
881         (_initialize_remote): Likewise.
882         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
883         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
884         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
885         (bfd_uses_spe_extensions): Likewise.
886         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
887         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
888         * solib-dsbt.c (decode_loadmap): Likewise.
889         (fetch_loadmap): Likewise.
890         (scan_dyntag): Likewise.
891         (enable_break): Likewise.
892         (dsbt_relocate_main_executable): Likewise.
893         * solib-frv.c (fetch_loadmap): Likewise.
894         (enable_break2): Likewise.
895         (frv_relocate_main_executable): Likewise.
896         * solib-spu.c (spu_relocate_main_executable): Likewise.
897         (spu_bfd_open): Likewise.
898         * solib-svr4.c (lm_info_read): Likewise.
899         (read_program_header): Likewise.
900         (find_program_interpreter): Likewise.
901         (scan_dyntag): Likewise.
902         (elf_locate_base): Likewise.
903         (open_symbol_file_object): Likewise.
904         (read_program_headers_from_bfd): Likewise.
905         (svr4_relocate_main_executable): Likewise.
906         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
907         * solib.c (solib_find_1): Likewise.
908         (exec_file_find): Likewise.
909         (solib_find): Likewise.
910         * source.c (openp): Likewise.
911         (print_source_lines_base): Likewise.
912         (forward_search_command): Likewise.
913         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
914         * spu-tdep.c (spu2ppu_prev_register): Likewise.
915         (spu_get_overlay_table): Likewise.
916         * stabsread.c (patch_block_stabs): Likewise.
917         (define_symbol): Likewise.
918         (again:): Likewise.
919         (read_member_functions): Likewise.
920         (read_one_struct_field): Likewise.
921         (read_enum_type): Likewise.
922         (common_block_start): Likewise.
923         * stack.c (read_frame_arg): Likewise.
924         (backtrace_command): Likewise.
925         * stap-probe.c (stap_parse_register_operand): Likewise.
926         * symfile.c (syms_from_objfile_1): Likewise.
927         (find_separate_debug_file): Likewise.
928         (load_command): Likewise.
929         (load_progress): Likewise.
930         (load_section_callback): Likewise.
931         (reread_symbols): Likewise.
932         (add_filename_language): Likewise.
933         (allocate_compunit_symtab): Likewise.
934         (read_target_long_array): Likewise.
935         (simple_read_overlay_table): Likewise.
936         * symtab.c (symbol_set_names): Likewise.
937         (resize_symbol_cache): Likewise.
938         (rbreak_command): Likewise.
939         (completion_list_add_name): Likewise.
940         (completion_list_objc_symbol): Likewise.
941         (add_filename_to_list): Likewise.
942         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
943         * target-memory.c (target_write_memory_blocks): Likewise.
944         * target.c (target_read_string): Likewise.
945         (read_whatever_is_readable): Likewise.
946         (target_read_alloc_1): Likewise.
947         (simple_search_memory): Likewise.
948         (target_fileio_read_alloc_1): Likewise.
949         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
950         * top.c (command_line_input): Likewise.
951         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
952         * tracefile.c (tracefile_fetch_registers): Likewise.
953         * tracepoint.c (add_memrange): Likewise.
954         (init_collection_list): Likewise.
955         (add_aexpr): Likewise.
956         (trace_dump_actions): Likewise.
957         (parse_trace_status): Likewise.
958         (parse_tracepoint_definition): Likewise.
959         (parse_tsv_definition): Likewise.
960         (parse_static_tracepoint_marker_definition): Likewise.
961         * tui/tui-file.c (tui_sfileopen): Likewise.
962         (tui_file_adjust_strbuf): Likewise.
963         * tui/tui-io.c (tui_expand_tabs): Likewise.
964         * tui/tui-source.c (tui_set_source_content): Likewise.
965         * typeprint.c (find_global_typedef): Likewise.
966         * ui-file.c (do_ui_file_xstrdup): Likewise.
967         (ui_file_obsavestring): Likewise.
968         (mem_file_write): Likewise.
969         * utils.c (make_hex_string): Likewise.
970         (get_regcomp_error): Likewise.
971         (puts_filtered_tabular): Likewise.
972         (gdb_realpath_keepfile): Likewise.
973         (ldirname): Likewise.
974         (gdb_bfd_errmsg): Likewise.
975         (substitute_path_component): Likewise.
976         * valops.c (search_struct_method): Likewise.
977         (find_oload_champ_namespace_loop): Likewise.
978         * valprint.c (print_decimal_chars): Likewise.
979         (read_string): Likewise.
980         (generic_emit_char): Likewise.
981         * varobj.c (varobj_delete): Likewise.
982         (varobj_value_get_print_value): Likewise.
983         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
984         * windows-tdep.c (display_one_tib): Likewise.
985         * xcoffread.c (read_xcoff_symtab): Likewise.
986         (process_xcoff_symbol): Likewise.
987         (swap_sym): Likewise.
988         (scan_xcoff_symtab): Likewise.
989         (xcoff_initial_scan): Likewise.
990         * xml-support.c (gdb_xml_end_element): Likewise.
991         (xml_process_xincludes): Likewise.
992         (xml_fetch_content_from_file): Likewise.
993         * xml-syscall.c (xml_list_of_syscalls): Likewise.
994         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
995
996 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
997
998         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
999         instead of builtin_func_ptr.
1000         (ft32_pointer_to_address): New function.
1001         (ft32_address_class_type_flags): New function.
1002         (ft32_address_class_type_flags_to_name): New function.
1003         (ft32_address_class_name_to_type_flags): New function.
1004         (ft32_gdbarch_init): Set tdep->pc_type.  Call
1005         set_gdbarch_pointer_to_address,
1006         set_gdbarch_address_class_type_flags
1007         set_gdbarch_address_class_name_to_type_flags,
1008         and set_gdbarch_address_class_type_flags_to_name.
1009         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1010
1011 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
1012
1013         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1014         value is a reference, actually dereference it in order to get
1015         the underlying value.
1016
1017 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
1018
1019         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1020
1021 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
1022
1023         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1024         * linespec.c (linespec_lexer_lex_string): Same.
1025
1026 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1027
1028         * NEWS: Mention support for fast tracepoints on aarch64-linux.
1029
1030 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1031
1032         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1033         variable.  Call aarch64_decode_adr instead of
1034         aarch64_decode_adrp.
1035         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1036         (aarch64_decode_adr): New function declaration.
1037         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1038         (aarch64_decode_adr): New function, factored out from
1039         aarch64_decode_adrp to decode both adr and adrp instructions.
1040
1041 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1042
1043         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1044         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1045         (aarch64-insn.o): New rule.
1046         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1047         (aarch64*-*-linux*): Likewise.
1048         * arch/aarch64-insn.c: New file.
1049         * arch/aarch64-insn.h: New file.
1050         * aarch64-tdep.c: Include arch/aarch64-insn.h.
1051         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
1052         arch/aarch64-insn.h.
1053         (decode_add_sub_imm): Rename to ...
1054         (aarch64_decode_add_sub_imm): ... this.
1055         (decode_adrp): Rename to ...
1056         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
1057         Declare in arch/aarch64-insn.h.
1058         (decode_b): Rename to ...
1059         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
1060         Declare in arch/aarch64-insn.h.
1061         (decode_bcond): Rename to ...
1062         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
1063         Declare in arch/aarch64-insn.h.
1064         (decode_br): Rename to ...
1065         (aarch64_decode_br): ... this.
1066         (decode_cb): Rename to ...
1067         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
1068         Declare in arch/aarch64-insn.h.
1069         (decode_eret): Rename to ...
1070         (aarch64_decode_eret): ... this.
1071         (decode_movz): Rename to ...
1072         (aarch64_decode_movz): ... this.
1073         (decode_orr_shifted_register_x): Rename to ...
1074         (aarch64_decode_orr_shifted_register_x): ... this.
1075         (decode_ret): Rename to ...
1076         (aarch64_decode_ret): ... this.
1077         (decode_stp_offset): Rename to ...
1078         (aarch64_decode_stp_offset): ... this.
1079         (decode_stp_offset_wb): Rename to ...
1080         (aarch64_decode_stp_offset_wb): ... this.
1081         (decode_stur): Rename to ...
1082         (aarch64_decode_stur): ... this.
1083         (decode_tb): Rename to ...
1084         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
1085         Declare in arch/aarch64-insn.h.
1086         (aarch64_analyze_prologue): Adjust calls to renamed functions.
1087
1088 2015-09-20  Doug Evans  <xdje42@gmail.com>
1089
1090         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1091
1092 2015-09-20  Doug Evans  <xdje42@gmail.com>
1093
1094         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
1095         variable name that collides with a parameter.
1096
1097 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
1098
1099         * dwarf2loc.c (locexpr_get_frame_base): Renames
1100         block_op_get_frame_base.
1101         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1102         block_op_get_frame_base by reference to locexpr_get_frame_base.
1103         (loclist_get_frame_base): New function, near identical copy of
1104         locexpr_get_frame_base.
1105         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1106         block_op_get_frame_base by reference to loclist_get_frame_base.
1107
1108 2015-09-19  Doug Evans  <xdje42@gmail.com>
1109
1110         * ravenscar-thread.c (ravenscar_inferior_created): Replace
1111         current_inferior ()->gdbarch with its wrapper target_gdbarch.
1112
1113 2015-09-18  Doug Evans  <xdje42@gmail.com>
1114
1115         * linux-thread-db.c (record_thread): Return the created thread.
1116         (thread_from_lwp): Likewise.
1117         (thread_db_get_thread_local_address): Update.
1118
1119 2015-09-18  Doug Evans  <xdje42@gmail.com>
1120
1121         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1122         move only member demangled_name up.  All uses updated.
1123
1124 2015-09-18  Doug Evans  <xdje42@gmail.com>
1125
1126         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1127         kind of minimal symbol in the error message.
1128         * objfiles.c (objfile_flavour_name): New function.
1129         * objfiles.h (objfile_flavour_name): Declare.
1130
1131 2015-09-18  Yao Qi  <yao.qi@linaro.org>
1132
1133         * nat/aarch64-linux.c: Include elf/common.h,
1134         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1135         (aarch64_ps_get_thread_area): New function.
1136         * nat/aarch64-linux.h: Include gdb_proc_service.h.
1137         (aarch64_ps_get_thread_area): Declare.
1138         * aarch64-linux-nat.c (ps_get_thread_area): Call
1139         aarch64_ps_get_thread_area.
1140
1141 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1142
1143         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1144
1145 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1146
1147         * NEWS: Announce new scheduler-locking mode.
1148         * infrun.c (schedlock_replay): New.
1149         (scheduler_enums): Add schedlock_replay.
1150         (scheduler_mode): Change default to schedlock_replay.
1151         (user_visible_resume_ptid): Handle schedlock_replay.
1152         (clear_proceed_status_thread): Stop replaying if resumed thread is
1153         not replaying.
1154         (schedlock_applies): Handle schedlock_replay.
1155         (_initialize_infrun): Document new scheduler-locking mode.
1156         * record-btrace.c (record_btrace_resume): Remove code to stop other
1157         threads when not replaying the resumed thread.
1158
1159 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1160
1161         * record-btrace.c ((record_btrace_will_replay): New.
1162         (init_record_btrace_ops): Initialize to_record_will_replay.
1163         * record-full.c ((record_full_will_replay): New.
1164         (init_record_full_ops): Initialize to_record_will_replay.
1165         * target-delegates.c: Regenerated.
1166         * target.c (target_record_will_replay): New.
1167         * target.h (struct target_ops) <to_record_will_replay>: New.
1168         (target_record_will_replay): New.
1169
1170 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1171
1172         * record-btrace.c (record_btrace_resume): Call
1173         target_record_stop_replaying.
1174         (record_btrace_stop_replaying_all): New.
1175         (init_record_btrace_ops): Initialize to_record_stop_replaying.
1176         * record-full.c (record_full_stop_replaying): New.
1177         (init_record_full_ops ): Initialize to_record_stop_replaying.
1178         * target-delegates.c: Regenerated.
1179         * target.c (target_record_stop_replaying): New.
1180         * target.h (struct target_ops) <to_record_stop_replaying>: New.
1181         (target_record_stop_replaying): New.
1182
1183 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1184
1185         * record-btrace.c (record_btrace_xfer_partial)
1186         (record_btrace_store_registers, record_btrace_prepare_to_store):
1187         Call record_btrace_is_replaying with inferior_ptid instead of
1188         minus_one_ptid.
1189         (record_btrace_store_registers): Change error message.
1190
1191 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1192
1193         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1194         Update users to pass minus_one_ptid.
1195         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1196         * record.c (cmd_record_delete): Pass inferior_ptid to
1197         target_record_is_replaying.
1198         * target-delegates.c: Regenerated.
1199         * target.c (target_record_is_replaying): Add ptid argument.
1200         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1201         argument.
1202         (target_record_is_replaying): Add ptid argument.
1203
1204 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1205
1206         * record-btrace.c (record_btrace_open): Remove non_stop check.
1207         * NEWS: Announce that record btrace supports non-stop mode.
1208
1209 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1210
1211         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1212         in the TARKET_WAITKIND_NO_HISTORY case.
1213
1214 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1215
1216         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1217         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1218
1219 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1220
1221         * record-btrace.c (get_thread_current_frame): New.
1222         (record_btrace_start_replaying): Call get_thread_current_frame.
1223
1224 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1225
1226         * record-btrace.c (record_btrace_resume_thread): A move request
1227         overwrites a previous move request.
1228         (record_btrace_find_resume_thread): Removed.
1229         (record_btrace_resume): Resume all requested threads.
1230
1231 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1232
1233         * record-btrace.c: Include vec.h.
1234         (record_btrace_find_thread_to_move): Removed.
1235         (btrace_step_no_resumed, btrace_step_again)
1236         (record_btrace_stop_replaying_at_end): New.
1237         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1238         (record_btrace_single_step_forward): Remove calls to
1239         record_btrace_stop_replaying.
1240         (record_btrace_step_thread): Do only one step for BTHR_CONT and
1241         BTHR_RCONT.  Keep threads at the end of their history moving.
1242         (record_btrace_wait): Call record_btrace_step_thread for all threads
1243         until one reports an event.  Call record_btrace_stop_replaying_at_end
1244         for the eventing thread.
1245
1246 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1247
1248         * record-btrace.c (record_btrace_single_step_forward): Return
1249         NO_HISTORY if a step brings us to the end of the execution history.
1250
1251 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1252
1253         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1254         to ...
1255         (record_btrace_single_step_forward): ... here and
1256         (record_btrace_single_step_backward): ... here.
1257
1258 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1259
1260         * record-btrace.c (btrace_step_spurious)
1261         (record_btrace_single_step_forward)
1262         (record_btrace_single_step_backward): New.
1263         (record_btrace_step_thread): Call record_btrace_single_step_forward
1264         and record_btrace_single_step_backward.
1265
1266 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1267
1268         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1269         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1270
1271 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1272
1273         * record-btrace.c (btrace_thread_flag_to_str)
1274         (record_btrace_cancel_resume): New.
1275         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1276         (record_btrace_resume): Print execution direction.
1277         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1278         (record_btrace_wait): Call record_btrace_cancel_resume.
1279
1280 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1281
1282         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1283         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1284         (record_btrace_find_thread_to_move): Also accept threads that have
1285         BTHR_STOP set.
1286         (btrace_step_stopped_on_request, record_btrace_stop): New.
1287         (record_btrace_step_thread): Support BTHR_STOP.
1288         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1289         (init_record_btrace_ops): Initialize to_stop.
1290
1291 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1292
1293         * record-btrace.c (record_btrace_wait): Replace non_stop check with
1294         target_is_non_stop_p ().
1295
1296 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
1297
1298         * ada-typeprint.c (print_array_type): Do not describe arrays as
1299         packed when they embed dynamic elements.
1300
1301 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1302
1303         * symtab.h (address_class): Document that TLS variables
1304         are handled by LOC_UNRESOLVED.
1305         * findvar.c (default_read_var_value): Don't relocate TLS variables.
1306         * printcmd.c (address_info): Don't relocate TLS variables.
1307
1308 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
1309
1310         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1311         (decode_adrp): Likewise.
1312         (decode_b): Likewise.
1313         (decode_bcond): Likewise.
1314         (decode_br): Likewise.
1315         (decode_cb): Likewise.
1316         (decode_eret): Likewise.
1317         (decode_movz): Likewise.
1318         (decode_orr_shifted_register_x): Likewise.
1319         (decode_ret): Likewise.
1320         (decode_stp_offset): Likewise.
1321         (decode_stp_offset_wb): Likewise.
1322         (decode_stur): Likewise.
1323         (decode_tb): Likewise.
1324         (aarch64_analyze_prologue): Likewise.
1325         (pass_in_x): Likewise.
1326         (pass_in_v): Likewise.
1327         (pass_on_stack): Likewise.
1328         (aarch64_push_dummy_call): Likewise.
1329         (aarch64_extract_return_value): Likewise.
1330         (aarch64_store_return_value): Likewise.
1331         (aarch64_return_value): Likewise.
1332         (aarch64_record_asimd_load_store): Likewise.
1333         (aarch64_record_load_store): Likewise.
1334         (aarch64_record_data_proc_simd_fp): Likewise.
1335
1336 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1337
1338         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1339         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1340         (ppc64_skip_trampoline_code_1): ... here.
1341         (ppc64_skip_trampoline_code): New wrapper function.
1342         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1343
1344 2015-09-15  Yao Qi  <yao.qi@linaro.org>
1345
1346         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1347         function.
1348         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1349         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1350         if target_can_do_single_step returns 1.
1351         * remote.c (struct vCont_action_support) <s, S>: New fields.
1352         (PACKET_vContSupported): New enum.
1353         (remote_protocol_features): New element for vContSupported.
1354         (remote_query_supported): Append "vContSupported+".
1355         (remote_vcont_probe): Remove support_s and support_S, use
1356         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
1357         vCont packet if c and C actions are not supported.
1358         (remote_can_do_single_step): New function.
1359         (init_remote_ops): Install it to to_can_do_single_step.
1360         (_initialize_remote): Call add_packet_config_cmd.
1361         * target.h (struct target_ops) <to_can_do_single_step>: New field.
1362         (target_can_do_single_step): New macro.
1363         * target-delegates.c: Re-generated.
1364
1365 2015-09-15  Yao Qi  <yao.qi@linaro.org>
1366
1367         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1368         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1369         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1370         New function.
1371         (aarch64_siginfo_from_compat_siginfo): New function.
1372         * nat/aarch64-linux.h: Include signal.h.
1373         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
1374         (compat_timer_t, compat_clock_t): Likewise.
1375         (struct compat_timeval): New.
1376         (union compat_sigval): New.
1377         (struct compat_siginfo): New.
1378         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
1379         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
1380         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
1381         (cpt_si_band, cpt_si_fd): Likewise.
1382
1383 2015-09-14  Pedro Alves  <palves@redhat.com>
1384
1385         * infrun.c (current_stop_id): New global.
1386         (get_stop_id, new_stop_id): New functions.
1387         (fetch_inferior_event): Handle normal_stop proceeding the target.
1388         (struct stop_context): New.
1389         (save_stop_context, release_stop_context_cleanup)
1390         (stop_context_changed): New functions.
1391         (normal_stop): Return true if the hook-stop changes the stop
1392         context.
1393         * infrun.h (get_stop_id): Declare.
1394         (normal_stop): Now returns int.  Add documentation.
1395
1396 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
1397
1398         * ada-lang.c (ada_value_ptr_subscript): Update the heading
1399         comment.  Handle packed arrays.
1400
1401 2015-09-14  Pedro Alves  <palves@redhat.com>
1402
1403         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
1404         mention of maint set/show target-non-stop.
1405
1406 2015-09-11  Don Breazeal  <donb@codesourcery.com>
1407
1408         * NEWS: Announce new remote packets for the exec-events
1409         feature and the exec-events feature and associated commands.
1410
1411 2015-09-11  Don Breazeal  <donb@codesourcery.com>
1412
1413         * remote.c (remote_exec_event_p): New function.
1414         (remote_insert_exec_catchpoint): New function.
1415         (remote_remove_exec_catchpoint): New function.
1416         (init_extended_remote_ops): Initialize extended_remote_ops
1417         members to_insert_exec_catchpoint and
1418         to_remove_exec_catchpoint.
1419
1420 2015-09-11  Don Breazeal  <donb@codesourcery.com>
1421             Luis Machado  <lgustavo@codesourcery.com>
1422
1423         * infrun.c (follow_exec): Use process-style ptid for
1424         exec message.  Call add_inferior_with_spaces and
1425         target_follow_exec.
1426         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
1427         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
1428         * remote.c (remote_pspace_data): New static variable.
1429         (remote_pspace_data_cleanup): New function.
1430         (get_remote_exec_file): New function.
1431         (set_remote_exec_file_1): New function.
1432         (set_remote_exec_file): New function.
1433         (show_remote_exec_file): New function.
1434         (remote_exec_file): Delete static variable.
1435         (anonymous enum) <PACKET_exec_event_feature>: New
1436         enumeration constant.
1437         (remote_protocol_features): Add entry for exec-events feature.
1438         (remote_query_supported): Add client side of qSupported query
1439         for exec-events feature.
1440         (remote_follow_exec): New function.
1441         (remote_parse_stop_reply): Handle 'exec' stop reason.
1442         (extended_remote_run, extended_remote_create_inferior): Call
1443         get_remote_exec_file and set_remote_exec_file_1.
1444         (init_extended_remote_ops) <to_follow_exec>: Initialize new
1445         member.
1446         (_initialize_remote): Call
1447         register_program_space_data_with_cleanup.  Call
1448         add_packet_config_cmd for remote exec-events feature.
1449         Modify call to add_setshow_string_noescape_cmd for exec-file
1450         to use new functions set_remote_exec_file and
1451         show_remote_exec_file.
1452         * target-debug.h, target-delegates.c: Regenerated.
1453         * target.c (target_follow_exec): New function.
1454         * target.h (struct target_ops) <to_follow_exec>: New member.
1455         (target_follow_exec): Declare new function.
1456
1457 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
1458
1459         * aarch64-tdep.c (decode_cb): Move up comment describing the
1460         encoding.
1461         (decode_tb): Fix a typo in comment above the function.  Move up
1462         comment describing the encoding.
1463
1464 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
1465
1466         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
1467
1468 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
1469
1470         PR gdb/18947
1471         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
1472         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
1473
1474 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
1475
1476         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
1477         operations.
1478
1479 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
1480
1481         * ada-lang.c (ada_search_struct_field): Constify parameters
1482         and/or variables..
1483         (xget_renaming_scope): Likewise.
1484         (ada_is_redundant_range_encoding): Likewise.
1485         (scan_discrim_bound): Likewise.
1486         (to_fixed_range_type): Likewise.
1487
1488 2015-09-10  Yao Qi  <yao.qi@linaro.org>
1489
1490         * breakpoint.c (download_tracepoint_locations): New local
1491         can_download_tracepoint.  Check the result of
1492         target_can_download_tracepoint and save it in
1493         can_download_tracepoint if there are tracepoints to download.
1494         * linux-nat.h (enum tribool): Move it to ...
1495         * common/common-types.h: ... here.
1496
1497 2015-09-09  Pedro Alves  <palves@redhat.com>
1498
1499         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
1500         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
1501
1502 2015-09-09  Pedro Alves  <palves@redhat.com>
1503
1504         * continuations.c (add_continuation, restore_thread_cleanup)
1505         (do_all_continuations_ptid, do_all_continuations_thread_callback)
1506         (do_all_continuations_thread, do_all_continuations)
1507         (discard_all_continuations_thread_callback)
1508         (discard_all_continuations_thread, discard_all_continuations)
1509         (add_intermediate_continuation)
1510         (do_all_intermediate_continuations_thread_callback)
1511         (do_all_intermediate_continuations_thread)
1512         (do_all_intermediate_continuations)
1513         (discard_all_intermediate_continuations_thread_callback)
1514         (discard_all_intermediate_continuations_thread)
1515         (discard_all_intermediate_continuations): Delete.
1516         * continuations.h (add_continuation, do_all_continuations)
1517         (do_all_continuations_thread, discard_all_continuations)
1518         (discard_all_continuations_thread, add_intermediate_continuation)
1519         (do_all_intermediate_continuations)
1520         (do_all_intermediate_continuations_thread)
1521         (discard_all_intermediate_continuations)
1522         (discard_all_intermediate_continuations_thread): Delete
1523         declarations.
1524         * event-top.c (stdin_event_handler): Delete references to
1525         continuations.
1526         * gdbthread.h (struct thread_info): Delete continuations and
1527         intermediate_continuations fields.
1528         * inf-loop.c (inferior_event_handler): Remove references to
1529         continuations.
1530         * infrun.c (infrun_thread_stop_requested_callback): Remove
1531         references to continuations.
1532         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
1533         * thread.c: Don't include "continuations.h".
1534         (clear_thread_inferior_resources): Remove references to
1535         continuations.
1536
1537 2015-09-09  Pedro Alves  <palves@redhat.com>
1538
1539         * infcall.c (struct dummy_frame_context_saver): Delete.
1540         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
1541         (dummy_frame_context_saver_drop)
1542         (dummy_frame_context_saver_cleanup)
1543         (dummy_frame_context_saver_get_regs)
1544         (dummy_frame_context_saver_setup): Delete.
1545         * infcall.h (dummy_frame_context_saver_drop)
1546         (dummy_frame_context_saver_cleanup)
1547         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
1548         Delete.
1549         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
1550         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
1551         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
1552
1553 2015-09-09  Pedro Alves  <palves@redhat.com>
1554
1555         * breakpoint.c: Include "thread-fsm.h".
1556         (struct until_break_command_continuation_args): Delete.
1557         (struct until_break_fsm): New.
1558         (until_break_fsm_ops): New global.
1559         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
1560         (until_break_command_continuation): Delete.
1561         (until_break_fsm_clean_up): New function.
1562         (until_break_fsm_async_reply_reason): New function.
1563         (until_break_command): Adjust to create an until_break_fsm instead
1564         of a continuation.
1565         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
1566         here.
1567         * infcmd.c (struct until_next_fsm): New.
1568         (until_next_fsm_ops): New global.
1569         (new_until_next_fsm, until_next_fsm_should_stop): New function.
1570         (until_next_continuation): Delete.
1571         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
1572         functions.
1573         (until_next_command): Adjust to create a new until_next_fsm
1574         instead of a continuation.
1575
1576 2015-09-09  Pedro Alves  <palves@redhat.com>
1577
1578         * infcall.c: Include thread_fsm.h.
1579         (struct call_return_meta_info): New.
1580         (get_call_return_value): New function, factored out from
1581         call_function_by_hand_dummy.
1582         (struct call_thread_fsm): New.
1583         (call_thread_fsm_ops): New global.
1584         (new_call_thread_fsm, call_thread_fsm_should_stop)
1585         (call_thread_fsm_should_notify_stop): New functions.
1586         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
1587         the thread.
1588         (call_function_by_hand_dummy): Create a new call_thread_fsm
1589         instance, associate it with the thread, and wait for the FSM to
1590         finish.  If finished successfully, fetch the function's result
1591         value out of the FSM.
1592         * infrun.c (fetch_inferior_event): If the FSM says the stop
1593         shouldn't be notified, don't call normal_stop.
1594         (maybe_remove_breakpoints): New function, factored out from ...
1595         (normal_stop): ... here.  Simplify.
1596         * infrun.h (maybe_remove_breakpoints): Declare.
1597         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
1598         (thread-fsm.h) <struct thread_fsm_ops>: New field.
1599         (thread_fsm_should_notify_stop): Declare.
1600
1601 2015-09-09  Pedro Alves  <palves@redhat.com>
1602
1603         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
1604         * breakpoint.c (handle_jit_event): Print debug output.
1605         (bpstat_what): Split event callback handling to ...
1606         (bpstat_run_callbacks): ... this new function.
1607         (momentary_bkpt_print_it): No longer handle bp_finish here.
1608         * breakpoint.h (bpstat_run_callbacks): Declare.
1609         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
1610         <thread_fsm>: New field.
1611         (thread_cancel_execution_command): Declare.
1612         * infcmd.c: Include thread-fsm.h.
1613         (struct step_command_fsm): New.
1614         (step_command_fsm_ops): New global.
1615         (new_step_command_fsm, step_command_fsm_prepare): New functions.
1616         (step_1): Adjust to use step_command_fsm_prepare and
1617         prepare_one_step.
1618         (struct step_1_continuation_args): Delete.
1619         (step_1_continuation): Delete.
1620         (step_command_fsm_should_stop): New function.
1621         (step_once): Delete.
1622         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
1623         (prepare_one_step): New function, based on step_once.
1624         (until_next_command): Remove step_multi reference.
1625         (struct return_value_info): New.
1626         (print_return_value): Rename to ...
1627         (print_return_value_1): ... this.  New struct return_value_info
1628         parameter.  Adjust.
1629         (print_return_value): Reimplement as wrapper around
1630         print_return_value_1.
1631         (struct finish_command_fsm): New.
1632         (finish_command_continuation): Delete.
1633         (finish_command_fsm_ops): New global.
1634         (new_finish_command_fsm, finish_command_fsm_should_stop): New
1635         functions.
1636         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
1637         New.
1638         (finish_command_continuation_free_arg): Delete.
1639         (finish_command_fsm_async_reply_reason): New.
1640         (finish_backward, finish_forward): Change symbol parameter to a
1641         finish_command_fsm.  Adjust.
1642         (finish_command): Create a finish_command_fsm.  Adjust.
1643         * infrun.c: Include "thread-fsm.h".
1644         (clear_proceed_status_thread): Delete the thread's FSM.
1645         (infrun_thread_stop_requested_callback): Cancel the thread's
1646         execution command.
1647         (clean_up_just_stopped_threads_fsms): New function.
1648         (fetch_inferior_event): Handle the event_thread's should_stop
1649         method saying the command isn't done yet.
1650         (process_event_stop_test): Run breakpoint callbacks here.
1651         (print_stop_event): Rename to ...
1652         (print_stop_location): ... this.
1653         (restore_current_uiout_cleanup): New function.
1654         (print_stop_event): Reimplement.
1655         (normal_stop): No longer notify the end_stepping_range observers
1656         here handle "step N" nor "finish" here.  No longer call
1657         print_stop_event here.
1658         * infrun.h (struct return_value_info): Forward declare.
1659         (print_return_value): Declare.
1660         (print_stop_event): Change prototype.
1661         * thread-fsm.c: New file.
1662         * thread-fsm.h: New file.
1663         * thread.c: Include "thread-fsm.h".
1664         (thread_cancel_execution_command): New function.
1665         (clear_thread_inferior_resources): Call it.
1666         * cli/cli-interp.c (cli_on_normal_stop): New function.
1667         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
1668         observer.
1669         * mi/mi-interp.c: Include "thread-fsm.h".
1670         (restore_current_uiout_cleanup): Delete.
1671         (mi_on_normal_stop): If the thread has an FSM associated, and it
1672         finished, ask it for the async-reply-reason to print.  Always call
1673         print_stop_event here, regardless of the top-level interpreter.
1674         Check bpstat_what to tell whether an asynchronous breakpoint hit
1675         triggered.
1676         * tui/tui-interp.c (tui_on_normal_stop): New function.
1677         (tui_init): Install tui_on_normal_stop as normal_stop observer.
1678
1679 2015-09-09  Pedro Alves  <palves@redhat.com>
1680
1681         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
1682         check whether the target can async.
1683         * inf-loop.c (inferior_event_handler): Only call target_async if
1684         the target can async.
1685         * infcall.c: Include top.h and interps.h.
1686         (run_inferior_call): For the interpreter to sync mode while
1687         running the infcall.  Call wait_sync_command_done instead of
1688         wait_for_inferior plus normal_stop.
1689         * infcmd.c (prepare_execution_command): Don't check whether the
1690         target can async when running in the foreground.
1691         (step_1): Delete synchronous case handling.
1692         (step_once): Always install a continuation, even in sync mode.
1693         (until_next_command, finish_forward): Don't check whether the
1694         target can async.
1695         (attach_command_post_wait, notice_new_inferior): Always install a
1696         continuation, even in sync mode.
1697         * infrun.c (mark_infrun_async_event_handler): New function.
1698         (proceed): In sync mode, mark infrun's event source instead of
1699         waiting for events here.
1700         (fetch_inferior_event): If the target can't async, do a blocking
1701         wait.
1702         (prepare_to_wait): In sync mode, mark infrun's event source.
1703         (infrun_async_inferior_event_handler): No longer bail out if the
1704         target can't async.
1705         * infrun.h (mark_infrun_async_event_handler): New declaration.
1706         * linux-nat.c (linux_nat_wait_1): Remove calls to
1707         set_sigint_trap/clear_sigint_trap.
1708         (linux_nat_terminal_inferior): No longer check whether the target
1709         can async.
1710         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
1711         comment.
1712         (mi_execute_command_input_handler): No longer check whether the
1713         target is async.  Update and simplify comment.
1714         * target.c (default_target_wait): New function.
1715         * target.h (struct target_ops) <to_wait>: Now defaults to
1716         default_target_wait.
1717         (default_target_wait): Declare.
1718         * top.c (wait_sync_command_done): New function, factored out from
1719         ...
1720         (maybe_wait_sync_command_done): ... this.
1721         * top.h (wait_sync_command_done): Declare.
1722         * target-delegates.c: Regenerate.
1723
1724 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
1725
1726         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
1727         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
1728         Remove include of sys/utsname.h.
1729         (linux_determine_kernel_ptr_bits): Remove.
1730         (linux_determine_kernel_start): New.
1731         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
1732         Update check.
1733         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
1734         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
1735         initialization.
1736         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
1737         assignment.
1738
1739 2015-09-07  Pedro Alves  <palves@redhat.com>
1740
1741         * guile/guile-internal.h (as_a_scm_t_subr): New.
1742         * guile/guile.c (misc_guile_functions): Use it.
1743         * guile/scm-arch.c (arch_functions): Use it.
1744         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
1745         Use it.
1746         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
1747         * guile/scm-cmd.c (command_functions): Use it.
1748         * guile/scm-disasm.c (disasm_functions): Use it.
1749         * guile/scm-exception.c (exception_functions)
1750         (private_exception_functions): Use it.
1751         * guile/scm-frame.c (frame_functions)
1752         * guile/scm-gsmob.c (gsmob_functions): Use it.
1753         * guile/scm-iterator.c (iterator_functions): Use it.
1754         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
1755         * guile/scm-math.c (math_functions): Use it.
1756         * guile/scm-objfile.c (objfile_functions): Use it.
1757         * guile/scm-param.c (parameter_functions): Use it.
1758         * guile/scm-ports.c (port_functions, private_port_functions): Use
1759         it.
1760         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
1761         * guile/scm-progspace.c (pspace_functions): Use it.
1762         * guile/scm-string.c (string_functions): Use it.
1763         * guile/scm-symbol.c (symbol_functions): Use it.
1764         * guile/scm-symtab.c (symtab_functions): Use it.
1765         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
1766         it.
1767         * guile/scm-value.c (value_functions): Use it.
1768
1769 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
1770
1771         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
1772         (tui_next_win): Likewise.
1773         (tui_prev_win): Likewise.
1774         (tui_partial_win_by_name): Likewise.
1775         (tui_init_generic_part): Likewise.
1776         (init_content_element): Likewise.
1777         (tui_del_window): Likewise.
1778         (tui_free_window): Likewise.
1779         (tui_del_data_windows): Likewise.
1780         (tui_free_data_content): Likewise.
1781         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
1782         * tui/tui-regs.c (tui_show_register_group): Likewise.
1783         * tui/tui-win.c (tui_resize_all): Likewise.
1784         (tui_set_focus): Likewise.
1785         (tui_set_win_height): Likewise.
1786         (make_invisible_and_set_new_height): Likewise.
1787         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
1788         * tui/tui-wingeneral.c (make_visible): Likewise.
1789
1790 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
1791
1792         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
1793
1794 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
1795
1796         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
1797         pointer.
1798         * dbxread.c (dbx_end_psymtab): Likewise.
1799         * gnu-nat.c (gnu_write_inferior): Likewise.
1800         * mdebugread.c (cross_ref): Likewise.
1801         * p-valprint.c (pascal_val_print): Likewise.
1802         * xcoffread.c (xcoff_end_psymtab): Likewise.
1803
1804 2015-09-04  Yao Qi  <yao.qi@linaro.org>
1805
1806         * NEWS: Mention the aarch64 multi-arch debugging support.
1807
1808 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
1809
1810         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
1811         type instead of a TYPE_CODE_INT one for the string_char_type
1812         and the ada_primitive_type_char types.
1813
1814 2015-09-03  Yao Qi  <yao.qi@linaro.org>
1815
1816         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1817         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
1818         aarch64_linux_region_ok_for_watchpoint.
1819         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
1820         New function.
1821         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
1822         Declare it.
1823
1824 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
1825
1826         * gdb_obstack.h (obstack_strdup): Declare.
1827         * gdb_obstack.c (obstack_strdup): Define.
1828         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
1829         * gdbarch.c: Regenerate.
1830         * gdbarch.h: Regenerate.
1831         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
1832
1833 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
1834
1835         * gdbtypes.c (copy_type_recursive): Update documentation.
1836
1837 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
1838
1839         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
1840         as zero.
1841
1842 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
1843
1844         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
1845
1846 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
1847
1848         * solib-svr4.c (solib_event_probe_action): Call
1849         get_probe_argument_count using TRY...CATCH.
1850         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
1851
1852 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
1853
1854         * probe.h (struct probe_ops) <get_probe_argument_count,
1855         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
1856         the comment that the function can throw an exception.
1857         (get_probe_argument_count): Likewise.
1858         (evaluate_probe_argument): Likewise.
1859         * stap-probe.c (stap_get_opcode): Call error instead of
1860         internal_error.
1861         (stap_get_expected_argument_type): Likewise.  Add argument
1862         'probe'.  Improve error message by mentioning the probe's name.
1863         (stap_parse_probe_arguments): Adjust call to
1864         stap_get_expected_argument_type.
1865         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
1866         not zero.  Call internal_error if GDB requests an argument but the
1867         probe has no arguments.
1868
1869 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
1870
1871         * ada-lang.c (ada_resolve_function): Do not ask the user what
1872         match to use when in completion mode.
1873
1874 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
1875
1876         * tui/tui-data.c (tui_win_name): Make local variable const, remove
1877         cast of NULL.
1878
1879 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
1880
1881         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
1882         call_abi using XSHAL_ABI macro.
1883
1884 2015-08-29  Doug Evans  <xdje42@gmail.com>
1885
1886         * symtab.h (struct symbol): Tweak comment.
1887
1888 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
1889
1890         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
1891         gdbarch obstack instead of on the heap.  Update commentary
1892         accordingly.
1893
1894 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
1895
1896         GDB 7.10 released.
1897
1898 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
1899
1900         * NEWS: Update entry about non-8-bits addressable memory.
1901
1902 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
1903
1904         Revert:
1905         2014-11-06  Doug Evans  <xdje42@gmail.com>
1906         * solib.c (solib_global_lookup): Fetch arch from objfile,
1907         not target_gdbarch.
1908
1909 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
1910
1911         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
1912         attempt to relocate a TLS variable offset.
1913
1914 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
1915
1916         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
1917         registered yet.  Set inferior_ptid while calling target_read_memory.
1918
1919 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
1920
1921         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
1922         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
1923         * linux-nat.c (check_stopped_by_breakpoint): Use
1924         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
1925
1926 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
1927
1928         * linux-thread-db.c (thread_db_get_thread_local_address): If the
1929         thread was not yet discovered, use thread_from_lwp instead of
1930         calling thread_db_find_new_threads_1.
1931
1932 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
1933
1934         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
1935         statements.
1936
1937 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
1938
1939         * NEWS: Document support for non-8-bits addressable memory.
1940
1941 2015-08-27  Pedro Alves  <palves@redhat.com>
1942
1943         * configure.ac: Remove AC_TYPE_SIGNAL call.
1944         * configure, config.in: Regenerate.
1945
1946 2015-08-27  Pedro Alves  <palves@redhat.com>
1947
1948         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
1949         * extension-priv.h: Include signal.h.
1950         (struct signal_handler) <handler>: Change type to sighandler_t.
1951         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
1952         * inflow.c (sigint_ours, sigquit_ours): Change type to
1953         sighandler_t.
1954         (child_terminal_inferior): Remove casts.
1955         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
1956         (osig): Change type to sighandler_t.
1957         * nto-procfs.c (ofunc): Change type to sighandler_t.
1958         (procfs_wait): Remove casts.
1959         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
1960         * remote-sim.c (gdbsim_wait): Use sighandler_t.
1961         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
1962
1963 2015-08-27  Pedro Alves  <palves@redhat.com>
1964
1965         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
1966         * gnulib/aclocal.m4: Renegerate.
1967         * gnulib/config.in: Renegerate.
1968         * gnulib/configure: Renegerate.
1969         * gnulib/import/Makefile.am: Update.
1970         * gnulib/import/Makefile.in: Regenerate.
1971         * gnulib/import/m4/gnulib-cache.m4: Update.
1972         * gnulib/import/m4/gnulib-comp.m4: Update.
1973         * gnulib/import/m4/signal_h.m4: New file.
1974         * gnulib/import/signal.in.h: New file.
1975
1976 2015-08-27  Pedro Alves  <palves@redhat.com>
1977
1978         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
1979         (MIN_MEMORY_PACKET_SIZE): New.
1980         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
1981         (get_memory_packet_size): Adjust.  No longer limit the max packet
1982         size.
1983         (set_memory_packet_size): Adjust, and remove dead code.
1984         (remote_check_symbols): Use xmalloc and a cleanup instead of
1985         alloca.
1986         (remote_packet_size): No longer cap the packet size.
1987         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
1988
1989 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
1990
1991         * compile/compile.c (compile_to_object): Mention language in
1992         error message.
1993
1994 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
1995
1996         * target.c (target_pre_inferior): Unset attach_flag.
1997
1998 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
1999
2000         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2001         * gdbarch.c: Re-generate.
2002
2003 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2004
2005         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2006         function with the XNEW-family equivalent.
2007         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2008         * ada-exp.y (write_ambiguous_var): Likewise.
2009         * ada-lang.c (resolve_subexp): Likewise.
2010         (user_select_syms): Likewise.
2011         (assign_aggregate): Likewise.
2012         (ada_evaluate_subexp): Likewise.
2013         (cache_symbol): Likewise.
2014         * addrmap.c (allocate_key): Likewise.
2015         (addrmap_create_mutable): Likewise.
2016         * aix-thread.c (sync_threadlists): Likewise.
2017         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2018         (alpha_gdbarch_init): Likewise.
2019         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2020         * arm-linux-nat.c (arm_linux_add_process): Likewise.
2021         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2022         * arm-tdep.c (push_stack_item): Likewise.
2023         (arm_displaced_step_copy_insn): Likewise.
2024         (arm_gdbarch_init): Likewise.
2025         (_initialize_arm_tdep): Likewise.
2026         * avr-tdep.c (push_stack_item): Likewise.
2027         * ax-general.c (new_agent_expr): Likewise.
2028         * block.c (block_initialize_namespace): Likewise.
2029         * breakpoint.c (alloc_counted_command_line): Likewise.
2030         (update_dprintf_command_list): Likewise.
2031         (parse_breakpoint_sals): Likewise.
2032         (decode_static_tracepoint_spec): Likewise.
2033         (until_break_command): Likewise.
2034         (clear_command): Likewise.
2035         (update_global_location_list): Likewise.
2036         (get_breakpoint_objfile_data) Likewise.
2037         * btrace.c (ftrace_new_function): Likewise.
2038         (btrace_set_insn_history): Likewise.
2039         (btrace_set_call_history): Likewise.
2040         * buildsym.c (add_symbol_to_list): Likewise.
2041         (record_pending_block): Likewise.
2042         (start_subfile): Likewise.
2043         (start_buildsym_compunit): Likewise.
2044         (push_subfile): Likewise.
2045         (end_symtab_get_static_block): Likewise.
2046         (buildsym_init): Likewise.
2047         * cli/cli-cmds.c (source_command): Likewise.
2048         * cli/cli-decode.c (add_cmd): Likewise.
2049         * cli/cli-script.c (build_command_line): Likewise.
2050         (setup_user_args): Likewise.
2051         (realloc_body_list): Likewise.
2052         (process_next_line): Likewise.
2053         (copy_command_lines): Likewise.
2054         * cli/cli-setshow.c (do_set_command): Likewise.
2055         * coff-pe-read.c (read_pe_exported_syms): Likewise.
2056         * coffread.c (coff_locate_sections): Likewise.
2057         (coff_symtab_read): Likewise.
2058         (coff_read_struct_type): Likewise.
2059         * common/cleanups.c (make_my_cleanup2): Likewise.
2060         * common/common-exceptions.c (throw_it): Likewise.
2061         * common/filestuff.c (make_cleanup_close): Likewise.
2062         * common/format.c (parse_format_string): Likewise.
2063         * common/queue.h (DEFINE_QUEUE_P): Likewise.
2064         * compile/compile-object-load.c (munmap_list_add): Likewise.
2065         (compile_object_load): Likewise.
2066         * compile/compile-object-run.c (compile_object_run): Likewise.
2067         * compile/compile.c (append_args): Likewise.
2068         * corefile.c (specify_exec_file_hook): Likewise.
2069         * cp-support.c (make_symbol_overload_list): Likewise.
2070         * cris-tdep.c (push_stack_item): Likewise.
2071         (cris_gdbarch_init): Likewise.
2072         * ctf.c (ctf_trace_file_writer_new): Likewise.
2073         * dbxread.c (init_header_files): Likewise.
2074         (add_new_header_file): Likewise.
2075         (init_bincl_list): Likewise.
2076         (dbx_end_psymtab): Likewise.
2077         (start_psymtab): Likewise.
2078         (dbx_end_psymtab): Likewise.
2079         * dcache.c (dcache_init): Likewise.
2080         * dictionary.c (dict_create_hashed): Likewise.
2081         (dict_create_hashed_expandable): Likewise.
2082         (dict_create_linear): Likewise.
2083         (dict_create_linear_expandable): Likewise.
2084         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2085         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2086         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2087         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2088         (decode_frame_entry_1): Likewise.
2089         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2090         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2091         * dwarf2read.c (dwarf2_has_info): Likewise.
2092         (create_signatured_type_table_from_index): Likewise.
2093         (dwarf2_read_index): Likewise.
2094         (dw2_get_file_names_reader): Likewise.
2095         (create_all_type_units): Likewise.
2096         (read_cutu_die_from_dwo): Likewise.
2097         (init_tu_and_read_dwo_dies): Likewise.
2098         (init_cutu_and_read_dies): Likewise.
2099         (create_all_comp_units): Likewise.
2100         (queue_comp_unit): Likewise.
2101         (inherit_abstract_dies): Likewise.
2102         (read_call_site_scope): Likewise.
2103         (dwarf2_add_field): Likewise.
2104         (dwarf2_add_typedef): Likewise.
2105         (dwarf2_add_member_fn): Likewise.
2106         (attr_to_dynamic_prop): Likewise.
2107         (abbrev_table_alloc_abbrev): Likewise.
2108         (abbrev_table_read_table): Likewise.
2109         (add_include_dir): Likewise.
2110         (add_file_name): Likewise.
2111         (dwarf_decode_line_header): Likewise.
2112         (dwarf2_const_value_attr): Likewise.
2113         (dwarf_alloc_block): Likewise.
2114         (parse_macro_definition): Likewise.
2115         (set_die_type): Likewise.
2116         (write_psymtabs_to_index): Likewise.
2117         (create_cus_from_index): Likewise.
2118         (dwarf2_create_include_psymtab): Likewise.
2119         (process_psymtab_comp_unit_reader): Likewise.
2120         (build_type_psymtab_dependencies): Likewise.
2121         (read_comp_units_from_section): Likewise.
2122         (compute_compunit_symtab_includes): Likewise.
2123         (create_dwo_unit_in_dwp_v1): Likewise.
2124         (create_dwo_unit_in_dwp_v2): Likewise.
2125         (read_func_scope): Likewise.
2126         (process_structure_scope): Likewise.
2127         (mark_common_block_symbol_computed): Likewise.
2128         (load_partial_dies): Likewise.
2129         (dwarf2_symbol_mark_computed): Likewise.
2130         * elfread.c (elf_symfile_segments): Likewise.
2131         (elf_read_minimal_symbols): Likewise.
2132         * environ.c (make_environ): Likewise.
2133         * eval.c (evaluate_subexp_standard): Likewise.
2134         * event-loop.c (create_file_handler): Likewise.
2135         (create_async_signal_handler): Likewise.
2136         (create_async_event_handler): Likewise.
2137         (create_timer): Likewise.
2138         * exec.c (build_section_table): Likewise.
2139         * fbsd-nat.c (fbsd_remember_child): Likewise.
2140         * fork-child.c (fork_inferior): Likewise.
2141         * frv-tdep.c (new_variant): Likewise.
2142         * gdbarch.sh (gdbarch_alloc): Likewise.
2143         (append_name): Likewise.
2144         * gdbtypes.c (rank_function): Likewise.
2145         (copy_type_recursive): Likewise.
2146         (add_dyn_prop): Likewise.
2147         * gnu-nat.c (make_proc): Likewise.
2148         (make_inf): Likewise.
2149         (gnu_write_inferior): Likewise.
2150         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2151         (build_std_type_info_type): Likewise.
2152         * guile/scm-param.c (compute_enum_list): Likewise.
2153         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2154         * guile/scm-value.c (gdbscm_value_call): Likewise.
2155         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2156         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2157         (read_unwind_info): Likewise.
2158         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2159         * infcall.c (dummy_frame_context_saver_setup): Likewise.
2160         (call_function_by_hand_dummy): Likewise.
2161         * infcmd.c (step_once): Likewise.
2162         (finish_forward): Likewise.
2163         (attach_command): Likewise.
2164         (notice_new_inferior): Likewise.
2165         * inferior.c (add_inferior_silent): Likewise.
2166         * infrun.c (add_displaced_stepping_state): Likewise.
2167         (save_infcall_control_state): Likewise.
2168         (save_inferior_ptid): Likewise.
2169         (_initialize_infrun): Likewise.
2170         * jit.c (bfd_open_from_target_memory): Likewise.
2171         (jit_gdbarch_data_init): Likewise.
2172         * language.c (add_language): Likewise.
2173         * linespec.c (decode_line_2): Likewise.
2174         * linux-nat.c (add_to_pid_list): Likewise.
2175         (add_initial_lwp): Likewise.
2176         * linux-thread-db.c (add_thread_db_info): Likewise.
2177         (record_thread): Likewise.
2178         (info_auto_load_libthread_db): Likewise.
2179         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2180         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2181         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2182         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2183         * macrocmd.c (macro_define_command): Likewise.
2184         * macroexp.c (gather_arguments): Likewise.
2185         * macroscope.c (sal_macro_scope): Likewise.
2186         * macrotab.c (new_macro_table): Likewise.
2187         * mdebugread.c (push_parse_stack): Likewise.
2188         (parse_partial_symbols): Likewise.
2189         (parse_symbol): Likewise.
2190         (psymtab_to_symtab_1): Likewise.
2191         (new_block): Likewise.
2192         (new_psymtab): Likewise.
2193         (mdebug_build_psymtabs): Likewise.
2194         (add_pending): Likewise.
2195         (elfmdebug_build_psymtabs): Likewise.
2196         * mep-tdep.c (mep_gdbarch_init): Likewise.
2197         * mi/mi-main.c (mi_execute_command): Likewise.
2198         * mi/mi-parse.c (mi_parse_argv): Likewise.
2199         * minidebug.c (lzma_open): Likewise.
2200         * minsyms.c (terminate_minimal_symbol_table): Likewise.
2201         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2202         * mips-tdep.c (mips_gdbarch_init): Likewise.
2203         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2204         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2205         * mt-tdep.c (mt_registers_info): Likewise.
2206         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2207         * nat/linux-btrace.c (linux_enable_bts): Likewise.
2208         (linux_enable_pt): Likewise.
2209         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2210         (linux_xfer_osdata_processgroups): Likewise.
2211         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2212         * nto-procfs.c (procfs_meminfo): Likewise.
2213         * objc-lang.c (start_msglist): Likewise.
2214         (selectors_info): Likewise.
2215         (classes_info): Likewise.
2216         (find_methods): Likewise.
2217         * objfiles.c (allocate_objfile): Likewise.
2218         (update_section_map): Likewise.
2219         * osabi.c (gdbarch_register_osabi): Likewise.
2220         (gdbarch_register_osabi_sniffer): Likewise.
2221         * parse.c (start_arglist): Likewise.
2222         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2223         (hwdebug_insert_point): Likewise.
2224         * printcmd.c (display_command): Likewise.
2225         (ui_printf): Likewise.
2226         * procfs.c (create_procinfo): Likewise.
2227         (load_syscalls): Likewise.
2228         (proc_get_LDT_entry): Likewise.
2229         (proc_update_threads): Likewise.
2230         * prologue-value.c (make_pv_area): Likewise.
2231         (pv_area_store): Likewise.
2232         * psymtab.c (extend_psymbol_list): Likewise.
2233         (init_psymbol_list): Likewise.
2234         (allocate_psymtab): Likewise.
2235         * python/py-inferior.c (add_thread_object): Likewise.
2236         * python/py-param.c (compute_enum_values): Likewise.
2237         * python/py-value.c (valpy_call): Likewise.
2238         * python/py-varobj.c (py_varobj_iter_next): Likewise.
2239         * python/python.c (ensure_python_env): Likewise.
2240         * record-btrace.c (record_btrace_start_replaying): Likewise.
2241         * record-full.c (record_full_reg_alloc): Likewise.
2242         (record_full_mem_alloc): Likewise.
2243         (record_full_end_alloc): Likewise.
2244         (record_full_core_xfer_partial): Likewise.
2245         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2246         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2247         * remote-notif.c (remote_notif_state_allocate): Likewise.
2248         * remote.c (demand_private_info): Likewise.
2249         (remote_notif_stop_alloc_reply): Likewise.
2250         (remote_enable_btrace): Likewise.
2251         * reverse.c (save_bookmark_command): Likewise.
2252         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2253         * rx-tdep.c (rx_gdbarch_init): Likewise.
2254         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2255         * ser-go32.c (dos_get_tty_state): Likewise.
2256         (dos_copy_tty_state): Likewise.
2257         * ser-mingw.c (ser_windows_open): Likewise.
2258         (ser_console_wait_handle): Likewise.
2259         (ser_console_get_tty_state): Likewise.
2260         (make_pipe_state): Likewise.
2261         (net_windows_open): Likewise.
2262         * ser-unix.c (hardwire_get_tty_state): Likewise.
2263         (hardwire_copy_tty_state): Likewise.
2264         * solib-aix.c (solib_aix_new_lm_info): Likewise.
2265         * solib-dsbt.c (dsbt_current_sos): Likewise.
2266         (dsbt_relocate_main_executable): Likewise.
2267         * solib-frv.c (frv_current_sos): Likewise.
2268         (frv_relocate_main_executable): Likewise.
2269         * solib-spu.c (spu_bfd_fopen): Likewise.
2270         * solib-svr4.c (lm_info_read): Likewise.
2271         (svr4_copy_library_list): Likewise.
2272         (svr4_default_sos): Likewise.
2273         * source.c (find_source_lines): Likewise.
2274         (line_info): Likewise.
2275         (add_substitute_path_rule): Likewise.
2276         * spu-linux-nat.c (spu_bfd_open): Likewise.
2277         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2278         * stabsread.c (dbx_lookup_type): Likewise.
2279         (read_type): Likewise.
2280         (read_member_functions): Likewise.
2281         (read_struct_fields): Likewise.
2282         (read_baseclasses): Likewise.
2283         (read_args): Likewise.
2284         (_initialize_stabsread): Likewise.
2285         * stack.c (func_command): Likewise.
2286         * stap-probe.c (handle_stap_probe): Likewise.
2287         * symfile.c (addrs_section_sort): Likewise.
2288         (addr_info_make_relative): Likewise.
2289         (load_section_callback): Likewise.
2290         (add_symbol_file_command): Likewise.
2291         (init_filename_language_table): Likewise.
2292         * symtab.c (create_filename_seen_cache): Likewise.
2293         (sort_search_symbols_remove_dups): Likewise.
2294         (search_symbols): Likewise.
2295         * target.c (make_cleanup_restore_target_terminal): Likewise.
2296         * thread.c (new_thread): Likewise.
2297         (enable_thread_stack_temporaries): Likewise.
2298         (make_cleanup_restore_current_thread): Likewise.
2299         (thread_apply_all_command): Likewise.
2300         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2301         * top.c (gdb_readline_wrapper): Likewise.
2302         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2303         * tracepoint.c (trace_find_line_command): Likewise.
2304         (all_tracepoint_actions_and_cleanup): Likewise.
2305         (make_cleanup_restore_current_traceframe): Likewise.
2306         (get_uploaded_tp): Likewise.
2307         (get_uploaded_tsv): Likewise.
2308         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2309         (tui_alloc_win_info): Likewise.
2310         (tui_alloc_content): Likewise.
2311         (tui_add_content_elements): Likewise.
2312         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2313         (tui_set_disassem_content): Likewise.
2314         * ui-file.c (ui_file_new): Likewise.
2315         (stdio_file_new): Likewise.
2316         (tee_file_new): Likewise.
2317         * utils.c (make_cleanup_restore_integer): Likewise.
2318         (add_internal_problem_command): Likewise.
2319         * v850-tdep.c (v850_gdbarch_init): Likewise.
2320         * valops.c (find_oload_champ): Likewise.
2321         * value.c (allocate_value_lazy): Likewise.
2322         (record_latest_value): Likewise.
2323         (create_internalvar): Likewise.
2324         * varobj.c (install_variable): Likewise.
2325         (new_variable): Likewise.
2326         (new_root_variable): Likewise.
2327         (cppush): Likewise.
2328         (_initialize_varobj): Likewise.
2329         * windows-nat.c (windows_make_so): Likewise.
2330         * x86-nat.c (x86_add_process): Likewise.
2331         * xcoffread.c (arrange_linetable): Likewise.
2332         (allocate_include_entry): Likewise.
2333         (process_linenos): Likewise.
2334         (SYMBOL_DUP): Likewise.
2335         (xcoff_start_psymtab): Likewise.
2336         (xcoff_end_psymtab): Likewise.
2337         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2338         * xtensa-tdep.c (xtensa_register_type): Likewise.
2339         * gdbarch.c: Regenerate.
2340         * gdbarch.h: Regenerate.
2341
2342 2015-08-25  Don Breazeal  <donb@codesourcery.com>
2343
2344         * infrun.c (follow_exec): Re-order operations for
2345         handling follow-exec-mode "new".
2346         (handle_inferior_event_1): Assign ecs->event_thread
2347         to the current thread.
2348         * remote.c (get_remote_arch_state): Add an assertion.
2349
2350 2015-08-26  Pedro Alves  <palves@redhat.com>
2351
2352         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2353
2354 2015-08-25  Pedro Alves  <palves@redhat.com>
2355
2356         PR gdb/18804
2357         * defs.h (maybe_quit): Declare.
2358         (QUIT): Now calls maybe_quit.
2359         * event-loop.c (clear_async_signal_handler)
2360         (async_signal_handler_is_marked): New functions.
2361         * event-loop.h (async_signal_handler_is_marked)
2362         (clear_async_signal_handler): New declarations.
2363         * remote.c (remote_check_pending_interrupt): New function.
2364         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
2365         longer check whether the target is async.  If waiting for a stop
2366         reply, and a Ctrl-C as been sent to the target, offer to
2367         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2368         Otherwise do not disconnect and throw a quit.
2369         (_initialize_remote): Install remote_check_pending_interrupt as
2370         to_check_pending_interrupt.
2371         * target.c (target_check_pending_interrupt): New function.
2372         * target.h (struct target_ops) <to_check_pending_interrupt>: New
2373         field.
2374         (target_check_pending_interrupt): New declaration.
2375         * utils.c (maybe_quit): New function.
2376         * target-delegates.c: Regenerate.
2377
2378 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2379
2380         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
2381         Rename local variable pid to tid, and get lwpid of lwp.  Update
2382         debug output.
2383
2384 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
2385
2386         * ada-lang.c (ada_read_var_value): Add a var_block argument
2387         and pass it to default_read_var_value.
2388         * block.c (block_static_link): New accessor.
2389         * block.h (block_static_link): Declare it.
2390         * buildsym.c (finish_block_internal): Add a static_link
2391         argument.  If there is a static link, associate it to the new
2392         block.
2393         (finish_block): Add a static link argument and pass it to
2394         finish_block_internal.
2395         (end_symtab_get_static_block): Update calls to finish_block and
2396         to finish_block_internal.
2397         (end_symtab_with_blockvector): Update call to
2398         finish_block_internal.
2399         * buildsym.h: Forward-declare struct dynamic_prop.
2400         (struct context_stack): Add a static_link field.
2401         (finish_block): Add a static link argument.
2402         * c-exp.y: Remove an obsolete comment (evaluation of variables
2403         already start from the selected frame, and now they climb *up*
2404         the call stack) and propagate the block information to the
2405         produced expression.
2406         * d-exp.y: Likewise.
2407         * f-exp.y: Likewise.
2408         * go-exp.y: Likewise.
2409         * jv-exp.y: Likewise.
2410         * m2-exp.y: Likewise.
2411         * p-exp.y: Likewise.
2412         * coffread.c (coff_symtab_read): Update calls to finish_block.
2413         * dbxread.c (process_one_symbol): Likewise.
2414         * xcoffread.c (read_xcoff_symtab): Likewise.
2415         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
2416         "sym" parameter to struct block_symbol, update its uses and pass
2417         its block to calls to read_var_value.
2418         (convert_symbol_sym): Update the calls to convert_one_symbol.
2419         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
2420         call to read_var_value.
2421         * dwarf2loc.c (block_op_get_frame_base): New.
2422         (dwarf2_block_frame_base_locexpr_funcs): Implement the
2423         get_frame_base method.
2424         (dwarf2_block_frame_base_loclist_funcs): Likewise.
2425         (dwarf2locexpr_baton_eval): Add a frame argument and use it
2426         instead of the selected frame in order to evaluate the
2427         expression.
2428         (dwarf2_evaluate_property): Add a frame argument.  Update call
2429         to dwarf2_locexpr_baton_eval to provide a frame in available and
2430         to handle the absence of address stack.
2431         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
2432         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
2433         declaration.
2434         (read_func_scope): Record any available static link description.
2435         Update call to finish_block.
2436         (read_lexical_block_scope): Update call to finish_block.
2437         * findvar.c (follow_static_link): New.
2438         (get_hosting_frame): New.
2439         (default_read_var_value): Add a var_block argument.  Use
2440         get_hosting_frame to handle non-local references.
2441         (read_var_value): Add a var_block argument and pass it to the
2442         LA_READ_VAR_VALUE method.
2443         * gdbtypes.c (resolve_dynamic_range): Update calls to
2444         dwarf2_evaluate_property.
2445         (resolve_dynamic_type_internal): Likewise.
2446         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
2447         read_var_value, passing it the block coming from symbol lookup.
2448         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
2449         read_var_value (TODO).
2450         * infcmd.c (finish_command_continuation): Update call to
2451         read_var_value, passing it the block coming from symbol lookup.
2452         * infrun.c (insert_exception_resume_breakpoint): Likewise.
2453         * language.h (struct language_defn): Add a var_block argument to
2454         the LA_READ_VAR_VALUE method.
2455         * objfiles.c (struct static_link_htab_entry): New.
2456         (static_link_htab_entry_hash): New.
2457         (static_link_htab_entry_eq): New.
2458         (objfile_register_static_link): New.
2459         (objfile_lookup_static_link): New.
2460         (free_objfile): Free the STATIC_LINKS hashed map if needed.
2461         * objfiles.h: Include hashtab.h.
2462         (struct objfile): Add a static_links field.
2463         (objfile_register_static_link): New.
2464         (objfile_lookup_static_link): New.
2465         * printcmd.c (print_variable_and_value): Update call to
2466         read_var_value.
2467         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2468         * python/py-frame.c (frapy_read_var): Update call to
2469         read_var_value, passing it the block coming from symbol lookup.
2470         * python/py-framefilter.c (extract_sym): Add a sym_block
2471         parameter and set the pointed value to NULL (TODO).
2472         (enumerate_args): Update call to extract_sym.
2473         (enumerate_locals): Update calls to extract_sym and to
2474         read_var_value.
2475         * python/py-symbol.c (sympy_value): Update call to
2476         read_var_value (TODO).
2477         * stack.c (read_frame_local): Update call to read_var_value.
2478         (read_frame_arg): Likewise.
2479         (return_command): Likewise.
2480         * symtab.h (struct symbol_block_ops): Add a get_frame_base
2481         method.
2482         (struct symbol): Add a block field.
2483         (SYMBOL_BLOCK): New accessor.
2484         * valops.c (value_of_variable): Remove frame/block handling and
2485         pass the block argument to read_var_value, which does this job
2486         now.
2487         (value_struct_elt_for_reference): Update calls to
2488         read_var_value.
2489         (value_of_this): Pass the block found to read_var_value.
2490         * value.h (read_var_value): Add a var_block argument.
2491         (default_read_var_value): Likewise.
2492
2493 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2494
2495         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
2496         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
2497         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
2498
2499 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2500
2501         * Makefile.in (aarch64-liunx.o): New rule.
2502         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
2503         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
2504         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
2505         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
2506         extern.
2507         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
2508         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
2509         * nat/aarch64-linux.c: New file.
2510         * nat/aarch64-linux.h: New file.
2511
2512 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2513
2514         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
2515         lwp_arch_private_info and ptid_of_lwp.
2516
2517 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2518
2519         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
2520         Move it to nat/aarch64-linux-hw-point.c.
2521         (debug_reg_change_callback): Likewise.
2522         (aarch64_notify_debug_reg_change): :Likewise.
2523         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
2524         (aarch64_dr_update_callback_param): New.
2525         (debug_reg_change_callback): New function.
2526         (aarch64_notify_debug_reg_change): Likewise.
2527         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
2528         Remove the declaration.
2529
2530 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2531
2532         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
2533         Call current_lwp_ptid.
2534
2535 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2536
2537         * aarch64-linux-nat.c (debug_reg_change_callback): Use
2538         debug_printf.
2539
2540 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2541
2542         * aarch64-linux-nat.c (debug_reg_change_callback): Call
2543         ptid_get_pid rather than ptid_get_lwp.
2544
2545 2015-08-24  Pedro Alves  <palves@redhat.com>
2546
2547         * NEWS (New commands): Mention set/show remote
2548         multiprocess-extensions-packet.
2549         * remote.c (remote_query_supported): Only tell the server to use
2550         the multiprocess extensions if the user hasn't force-disabled them
2551         with "set remote multiprocess-extensions-packet off".
2552
2553 2015-08-24  Pedro Alves  <palves@redhat.com>
2554
2555         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2556         1029a8112290f6eee9d7878a391c49db42c999bd.
2557         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
2558         Regenerate.
2559         * gnulib/import/Makefile.am: Update.
2560         * gnulib/import/Makefile.in: Update.
2561         * gnulib/import/alloca.in.h: Update.
2562         * gnulib/import/basename-lgpl.c: Update.
2563         * gnulib/import/canonicalize-lgpl.c: Update.
2564         * gnulib/import/config.charset: Update.
2565         * gnulib/import/dirent.in.h: Update.
2566         * gnulib/import/dirfd.c: Update.
2567         * gnulib/import/dirname-lgpl.c: Update.
2568         * gnulib/import/dirname.h: Update.
2569         * gnulib/import/dosname.h: Update.
2570         * gnulib/import/errno.in.h: Update.
2571         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
2572         * gnulib/import/extra/snippet/c++defs.h: Update.
2573         * gnulib/import/extra/snippet/warn-on-use.h: Update.
2574         * gnulib/import/extra/update-copyright: Update.
2575         * gnulib/import/float+.h: Update.
2576         * gnulib/import/float.c: Update.
2577         * gnulib/import/float.in.h: Update.
2578         * gnulib/import/fnmatch.c: Update.
2579         * gnulib/import/fnmatch.in.h: Update.
2580         * gnulib/import/fnmatch_loop.c: Update.
2581         * gnulib/import/fpucw.h: Update.
2582         * gnulib/import/frexp.c: Update.
2583         * gnulib/import/frexpl.c: Update.
2584         * gnulib/import/gettimeofday.c: Update.
2585         * gnulib/import/inttypes.in.h: Update.
2586         * gnulib/import/isnan.c: Update.
2587         * gnulib/import/isnand-nolibm.h: Update.
2588         * gnulib/import/isnand.c: Update.
2589         * gnulib/import/isnanl-nolibm.h: Update.
2590         * gnulib/import/isnanl.c: Update.
2591         * gnulib/import/itold.c: Update.
2592         * gnulib/import/localcharset.c: Update.
2593         * gnulib/import/localcharset.h: Update.
2594         * gnulib/import/lstat.c: Update.
2595         * gnulib/import/m4/00gnulib.m4: Update.
2596         * gnulib/import/m4/absolute-header.m4: Update.
2597         * gnulib/import/m4/alloca.m4: Update.
2598         * gnulib/import/m4/canonicalize.m4: Update.
2599         * gnulib/import/m4/codeset.m4: Update.
2600         * gnulib/import/m4/configmake.m4: Update.
2601         * gnulib/import/m4/dirent_h.m4: Update.
2602         * gnulib/import/m4/dirfd.m4: Update.
2603         * gnulib/import/m4/dirname.m4: Update.
2604         * gnulib/import/m4/double-slash-root.m4: Update.
2605         * gnulib/import/m4/eealloc.m4: Update.
2606         * gnulib/import/m4/errno_h.m4: Update.
2607         * gnulib/import/m4/exponentd.m4: Update.
2608         * gnulib/import/m4/exponentl.m4: Update.
2609         * gnulib/import/m4/extensions.m4: Update.
2610         * gnulib/import/m4/extern-inline.m4: Update.
2611         * gnulib/import/m4/fcntl-o.m4: Update.
2612         * gnulib/import/m4/float_h.m4: Update.
2613         * gnulib/import/m4/fnmatch.m4: Update.
2614         * gnulib/import/m4/fpieee.m4: Update.
2615         * gnulib/import/m4/frexp.m4: Update.
2616         * gnulib/import/m4/frexpl.m4: Update.
2617         * gnulib/import/m4/gettimeofday.m4: Update.
2618         * gnulib/import/m4/glibc21.m4: Update.
2619         * gnulib/import/m4/gnulib-cache.m4: Update.
2620         * gnulib/import/m4/gnulib-common.m4: Update.
2621         * gnulib/import/m4/gnulib-comp.m4: Update.
2622         * gnulib/import/m4/gnulib-tool.m4: Update.
2623         * gnulib/import/m4/include_next.m4: Update.
2624         * gnulib/import/m4/inttypes-pri.m4: Update.
2625         * gnulib/import/m4/inttypes.m4: Update.
2626         * gnulib/import/m4/isnand.m4: Update.
2627         * gnulib/import/m4/isnanl.m4: Update.
2628         * gnulib/import/m4/largefile.m4: Update.
2629         * gnulib/import/m4/localcharset.m4: Update.
2630         * gnulib/import/m4/locale-fr.m4: Update.
2631         * gnulib/import/m4/locale-ja.m4: Update.
2632         * gnulib/import/m4/locale-zh.m4: Update.
2633         * gnulib/import/m4/longlong.m4: Update.
2634         * gnulib/import/m4/lstat.m4: Update.
2635         * gnulib/import/m4/malloc.m4: Update.
2636         * gnulib/import/m4/malloca.m4: Update.
2637         * gnulib/import/m4/math_h.m4: Update.
2638         * gnulib/import/m4/mbrtowc.m4: Update.
2639         * gnulib/import/m4/mbsinit.m4: Update.
2640         * gnulib/import/m4/mbsrtowcs.m4: Update.
2641         * gnulib/import/m4/mbstate_t.m4: Update.
2642         * gnulib/import/m4/memchr.m4: Update.
2643         * gnulib/import/m4/memmem.m4: Update.
2644         * gnulib/import/m4/mmap-anon.m4: Update.
2645         * gnulib/import/m4/multiarch.m4: Update.
2646         * gnulib/import/m4/nocrash.m4: Update.
2647         * gnulib/import/m4/off_t.m4: Update.
2648         * gnulib/import/m4/pathmax.m4: Update.
2649         * gnulib/import/m4/readlink.m4: Update.
2650         * gnulib/import/m4/rename.m4: Update.
2651         * gnulib/import/m4/rmdir.m4: Update.
2652         * gnulib/import/m4/ssize_t.m4: Update.
2653         * gnulib/import/m4/stat.m4: Update.
2654         * gnulib/import/m4/stdbool.m4: Update.
2655         * gnulib/import/m4/stddef_h.m4: Update.
2656         * gnulib/import/m4/stdint.m4: Update.
2657         * gnulib/import/m4/stdio_h.m4: Update.
2658         * gnulib/import/m4/stdlib_h.m4: Update.
2659         * gnulib/import/m4/string_h.m4: Update.
2660         * gnulib/import/m4/strstr.m4: Update.
2661         * gnulib/import/m4/strtok_r.m4: Update.
2662         * gnulib/import/m4/sys_socket_h.m4: Update.
2663         * gnulib/import/m4/sys_stat_h.m4: Update.
2664         * gnulib/import/m4/sys_time_h.m4: Update.
2665         * gnulib/import/m4/sys_types_h.m4: Update.
2666         * gnulib/import/m4/time_h.m4: Update.
2667         * gnulib/import/m4/unistd_h.m4: Update.
2668         * gnulib/import/m4/warn-on-use.m4: Update.
2669         * gnulib/import/m4/wchar_h.m4: Update.
2670         * gnulib/import/m4/wchar_t.m4: Update.
2671         * gnulib/import/m4/wctype_h.m4: Update.
2672         * gnulib/import/m4/wint_t.m4: Update.
2673         * gnulib/import/malloc.c: Update.
2674         * gnulib/import/malloca.c: Update.
2675         * gnulib/import/malloca.h: Update.
2676         * gnulib/import/math.in.h: Update.
2677         * gnulib/import/mbrtowc.c: Update.
2678         * gnulib/import/mbsinit.c: Update.
2679         * gnulib/import/mbsrtowcs-impl.h: Update.
2680         * gnulib/import/mbsrtowcs-state.c: Update.
2681         * gnulib/import/mbsrtowcs.c: Update.
2682         * gnulib/import/memchr.c: Update.
2683         * gnulib/import/memmem.c: Update.
2684         * gnulib/import/pathmax.h: Update.
2685         * gnulib/import/readlink.c: Update.
2686         * gnulib/import/ref-add.sin: Update.
2687         * gnulib/import/ref-del.sin: Update.
2688         * gnulib/import/rename.c: Update.
2689         * gnulib/import/rmdir.c: Update.
2690         * gnulib/import/same-inode.h: Update.
2691         * gnulib/import/stat.c: Update.
2692         * gnulib/import/stdbool.in.h: Update.
2693         * gnulib/import/stddef.in.h: Update.
2694         * gnulib/import/stdint.in.h: Update.
2695         * gnulib/import/stdio.c: Update.
2696         * gnulib/import/stdio.in.h: Update.
2697         * gnulib/import/stdlib.in.h: Update.
2698         * gnulib/import/str-two-way.h: Update.
2699         * gnulib/import/streq.h: Update.
2700         * gnulib/import/string.in.h: Update.
2701         * gnulib/import/stripslash.c: Update.
2702         * gnulib/import/strnlen1.c: Update.
2703         * gnulib/import/strnlen1.h: Update.
2704         * gnulib/import/strstr.c: Update.
2705         * gnulib/import/strtok_r.c: Update.
2706         * gnulib/import/sys_stat.in.h: Update.
2707         * gnulib/import/sys_time.in.h: Update.
2708         * gnulib/import/sys_types.in.h: Update.
2709         * gnulib/import/time.in.h: Update.
2710         * gnulib/import/unistd.in.h: Update.
2711         * gnulib/import/verify.h: Update.
2712         * gnulib/import/wchar.in.h: Update.
2713         * gnulib/import/wctype.in.h: Update.
2714         * gnulib/import/gettimeofday.c: New file.
2715         * gnulib/import/m4/absolute-header.m4: New file.
2716         * gnulib/import/m4/gettimeofday.m4: New file.
2717         * gnulib/import/m4/sys_socket_h.m4: New file.
2718         * gnulib/import/m4/sys_time_h.m4: New file.
2719         * gnulib/import/stdio.c: Delete file.
2720         * gnulib/import/sys_time.in.h: New file.
2721
2722 2015-08-24  Pedro Alves  <palves@redhat.com>
2723
2724         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
2725         * common/gdb_sys_time.h: New file.
2726         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
2727         * gdb_select.h: Likewise.
2728         * gdb_usleep.c: Likewise.
2729         * maint.c: Likewise.
2730         * mi/mi-main.c: Likewise.
2731         * mi/mi-parse.h: Likewise.
2732         * remote-fileio.c: Likewise.
2733         * remote-m32r-sdi.c: Likewise.
2734         * remote.c: Likewise.
2735         * ser-base.c: Likewise.
2736         * ser-pipe.c: Likewise.
2737         * ser-tcp.c: Likewise.
2738         * ser-unix.c: Likewise.
2739         * symfile.c: Likewise.
2740         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
2741         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
2742         * utils.c: Likewise.
2743
2744 2015-08-24  Pedro Alves  <palves@redhat.com>
2745
2746         * NEWS: Mention removed support for the various ROM monitors.
2747         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
2748         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
2749         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
2750         gdb_target_obs.
2751         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
2752         gdb_target_obs.
2753         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
2754         dsrec.o from gdb_target_obs.
2755         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
2756         from gdb_target_obs.
2757         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
2758         gdb_target_obs.
2759         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
2760         dink32-rom.o from gdb_target_obs.
2761         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
2762         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
2763         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
2764         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
2765
2766 2015-08-21  Pedro Alves  <palves@redhat.com>
2767
2768         * frame.c (null_frame_id): Explicitly zero-initialize.
2769
2770 2015-08-21  Tom Tromey  <tromey@redhat.com>
2771
2772         * dwarf2read.c (struct dwarf2_section_info): Rename field
2773         'asection' to 'section'.
2774         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
2775         (dwarf2_locate_sections, dwarf2_locate_sections)
2776         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
2777         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
2778         (dwarf2_locate_v2_dwp_sections): Adjust.
2779
2780 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
2781
2782         * top.h (gdb_in_secondary_prompt_p): Declare.
2783         * top.c (gdb_secondary_prompt_depth): Define.
2784         (gdb_in_secondary_prompt_p): Define.
2785         (gdb_readline_wrapper_cleanup): Decrement
2786         gdb_secondary_prompt_depth.
2787         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
2788         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
2789         are in a secondary prompt.
2790
2791 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
2792
2793         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
2794         emit the newline.
2795
2796 2015-08-21  Gary Benson  <gbenson@redhat.com>
2797
2798         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
2799
2800 2015-08-21  Gary Benson  <gbenson@redhat.com>
2801
2802         * target.h (struct target_ops) <to_fileio_open>: New argument
2803         warn_if_slow.  Update comment.  All implementations updated.
2804         (target_fileio_open_warn_if_slow): New declaration.
2805         * target.c (target_fileio_open): Renamed as...
2806         (target_fileio_open_1): ...this.  New argument warn_if_slow.
2807         Pass warn_if_slow to implementation.  Update debug printing.
2808         (target_fileio_open): New function.
2809         (target_fileio_open_warn_if_slow): Likewise.
2810         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
2811         target_fileio_open_warn_if_slow.
2812
2813 2015-08-21  Gary Benson  <gbenson@redhat.com>
2814
2815         * nat/linux-namespaces.c (linux_mntns_access_fs):
2816         Do not overwrite old_chain.
2817
2818 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
2819
2820         * arch/xtensa.h: New file.
2821         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
2822         (ps_get_thread_area): New function.
2823         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
2824         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
2825         * xtensa-tdep.c (osabi.h): New #include.
2826         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
2827         xtensa-specific hooks.
2828         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
2829         member and move the structure to arch/xtensa.h.
2830
2831 2015-08-21  Pedro Alves  <palves@redhat.com>
2832
2833         * remote.c (struct readahead_cache): New.
2834         (struct remote_state) <readahead_cache>: New field.
2835         (remote_open_1): Invalidate the cache.
2836         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
2837         functions.
2838         (remote_hostio_pwrite): Invalidate the readahead cache.
2839         (remote_hostio_pread): Rename to ...
2840         (remote_hostio_pread_vFile): ... this.
2841         (remote_hostio_pread_from_cache): New function.
2842         (remote_hostio_pread): Reimplement.
2843         (remote_hostio_close): Invalidate the readahead cache.
2844
2845 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
2846
2847         PR build/18843
2848         * procfs.c: Include "filestuff.h".
2849
2850 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
2851
2852         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
2853         curch.
2854         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
2855         cur_line or curch, instead call wmove().
2856         (init_win_info) [CMD_WIN]: Likewise.
2857         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
2858         instead call getcury().
2859         (tui_redisplay_readline): Don't set cur_line or curch.
2860         (tui_mld_erase_entire_line): Don't read cur_line, instead call
2861         getcury().
2862         (tui_cont_sig): Remove call to wmove.
2863         (tui_getc): Don't read cur_line or curch, instead call getcury()
2864         or getyx().  Don't set curch.
2865         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
2866         set cur_line or curch.  Always move cursor to (0,0).
2867
2868 2015-08-20  Pedro Alves  <palves@redhat.com>
2869
2870         * infrun.c (print_target_wait_results): Make extern.
2871         * infrun.h (print_target_wait_results): Declare.
2872         * remote.c (set_stop_requested_callback): Delete.
2873         (process_initial_stop_replies): New function.
2874         (remote_start_remote): Use it.
2875         (stop_reply_queue_length): New function.
2876
2877 2015-08-20  Pedro Alves  <palves@redhat.com>
2878
2879         * dwarf2read.c (process_full_comp_unit): To tell whether
2880         start_subfile managed to deduce a language, test for
2881         language_unknown instead of language_c.
2882
2883 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
2884
2885         * ada-lex.l: Reset the start condition to INITIAL in the rule that
2886         matches attributes.
2887
2888 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
2889
2890         * dwarf2read.c (dwarf2_string_attr): New function.
2891         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
2892         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
2893         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
2894         (anonymous_struct_prefix, prepare_one_comp_unit): Use
2895         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
2896
2897 2015-08-18  Doug Evans  <dje@google.com>
2898             Adrian Sendroiu <adrian.sendroiu@freescale.com>
2899
2900         PR mi/18833
2901         * cli/cli-logging.c (pop_output_files): Don't restore redirection
2902         if MI-like.
2903         * mi/mi-out.c: #include "vec.h".
2904         (ui_filep): New type.
2905         (DEV_VEC_P (ui_filep)): New type.
2906         (struct ui_out_data) <buffer, original_buffer>: Delete.
2907         (struct ui_out_data) <streams>: New member.
2908         (mi_ui_out_impl): Add data_destroy field.
2909         (mi_field_string, mi_field_fmt): Update.
2910         (mi_flush, mi_redirect, field_separator): Update.
2911         (mi_open, mi_close): Update.
2912         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
2913         (mi_out_data_ctor, mi_out_data_dtor): New functions.
2914         (mi_out_new): Call mi_out_data_ctor.
2915
2916 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
2917
2918         * remote.c (strprefix): New.
2919         (remote_parse_stop_reply): Use strprefix instead of strncmp
2920         to ensure exact match of keyword.
2921
2922 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
2923
2924         * gdb_bfd.c (debug_bfd_cache): New variable.
2925         (show_bfd_cache_debug): New function.
2926         (gdb_bfd_open): Add debug logging.
2927         (gdb_bfd_ref): Likewise.
2928         (gdb_bfd_unref): Likewise.
2929         (_initialize_gdb_bfd): Add new set/show command.
2930         * NEWS: Mention new command.
2931
2932 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
2933
2934         * gdb_bfd.c (bfd_sharing): New variable.
2935         (show_bfd_sharing): New function.
2936         (gdb_bfd_open): Check bfd_sharing variable.
2937         (_initialize_gdb_bfd): Add new set/show command.
2938         * NEWS: Mention new command.
2939
2940 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
2941
2942         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
2943         field.
2944         (struct gdb_bfd_cache_search): Likewise.
2945         (eq_bfd): Compare the size, inode, and device id fields.
2946         (gdb_bfd_open): Initialise the size, inode, and device id fields.
2947         (gdb_bfd_ref): Likewise.
2948         (gdb_bfd_unref): Likewise.
2949
2950 2015-08-18  Pedro Alves  <palves@redhat.com>
2951
2952         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
2953         target implements to_always_non_stop_p, call it.
2954         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
2955         (x86_linux_create_target): Install it as to_always_non_stop_p
2956         method.
2957
2958 2015-08-17  Doug Evans  <dje@google.com>
2959
2960         * ui-out.c (default_ui_out_impl): Add comment.
2961
2962 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
2963
2964         * d-exp.y (type_aggregate_p): New function.
2965         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
2966         (classify_inner_name): Likewise.
2967         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
2968
2969 2015-08-15  Doug Evans  <xdje42@gmail.com>
2970
2971         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
2972         updated.
2973         (add_psymbol_to_list): Ditto.
2974
2975 2015-08-15  Doug Evans  <xdje42@gmail.com>
2976
2977         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
2978         updated.  Call end_psymtab_common.
2979         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
2980         end_psymtab_common.
2981         (build_type_psymtabs_reader): Ditto.
2982         * psympriv.h (sort_pst_symbols): Delete.
2983         (end_psymtab_common): Declare.
2984         * psymtab.c (sort_pst_symbols): Make static.
2985         (end_psymtab_common): New function.
2986         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
2987
2988 2015-08-15  Doug Evans  <xdje42@gmail.com>
2989
2990         * defs.h (LANGUAGE_BITS): Define.
2991         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
2992         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
2993         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
2994         (minimal_symbol_type): Add nr_minsym_types.
2995         (MINSYM_TYPE_BITS): Define.
2996         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
2997         (domain_enum_tag): Add NR_DOMAINS.
2998         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
2999         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3000
3001 2015-08-15  Doug Evans  <xdje42@gmail.com>
3002
3003         * objfiles.h: Whitespace cleanup.
3004         * psympriv.h: Whitespace cleanup.
3005         * psymtab.c: Whitespace/coding convention cleanup.
3006
3007 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
3008
3009         * inferior.c (detach_inferior_command): Don't call
3010         any_thread_of_process when pid is 0.
3011         (kill_inferior_command): Likewise.
3012
3013 2015-08-14  Doug Evans  <xdje42@gmail.com>
3014
3015         PR gdb/11833
3016         * NEWS: Document new /s modifier for the disassemble command.
3017         * cli/cli-cmds.c (disassemble_command): Add support for /s.
3018         (_initialize_cli_cmds): Update online docs of disassemble command.
3019         * disasm.c: #include "source.h".
3020         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3021         All uses updated.
3022         (dis_line_entry): New struct.
3023         (hash_dis_line_entry, eq_dis_line_entry): New functions.
3024         (allocate_dis_line_table): New functions.
3025         (maybe_add_dis_line_entry, line_has_code_p): New functions.
3026         (dump_insns): New arg end_pc.  All callers updated.
3027         (do_mixed_source_and_assembly_deprecated): Renamed from
3028         do_mixed_source_and_assembly.  All callers updated.
3029         (do_mixed_source_and_assembly): New function.
3030         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3031         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3032         DISASSEMBLY_SOURCE.  All uses updated.
3033         (DISASSEMBLY_SOURCE): New macro.
3034         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3035
3036 2015-08-14  Keith Seitz  <keiths@redhat.com>
3037
3038         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3039         `typename' to `type_name' to avoid C++ reserved word.
3040
3041 2015-08-14  Keith Seitz  <keiths@redhat.com>
3042
3043         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3044         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3045         silence ARI errors.
3046
3047 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3048
3049         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3050         xstrprintf instead of malloc and sprintf.
3051         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3052         (lex_one_token): Likewise.
3053
3054 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3055
3056         * solib-svr4.c (read_program_header): Add base_addr argument to
3057         report the runtime address of the segment.
3058         (find_program_interpreter): Update read_program_header call to pass
3059         a NULL pointer for the new argument.
3060         (scan_dyntag): Add ptr_addr argument to report the runtime address
3061         of the tag payload.
3062         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3063         read_program_header to get the base address of the dynamic segment.
3064         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3065         read_program_header.
3066         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3067
3068 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3069
3070         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3071
3072 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3073
3074         * d-exp.y (%union): Add voidval.
3075         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3076         name in the lexing stage.
3077         (PostfixExpression): Move symbol completion handling in grammar here
3078         from PrimaryExpression.
3079         (PrimaryExpression): Move routines to handle resolving identifier
3080         tokens in the grammar here from push_expression_name.
3081         (IdentifierExp): Remove the handling of alternating '.' and identifier
3082         tokens.
3083         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3084         (BasicType): Remove C-style typename rules.
3085         (d_type_from_name, d_module_from_name, push_variable)
3086         (push_fieldnames, push_type_name, push_module_name)
3087         (push_expression_name): Remove.
3088         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
3089         (token_and_value): New type.
3090         (token_fifo, popping, name_obstack): New globals.
3091         (classify_name): New function.
3092         (classify_inner_name): Likewise.
3093         (yylex): Likewise.
3094         (d_parse): Initialize token_fifo, popping and name_obstack.
3095
3096 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3097
3098         * Makefile.in (SFILES): Add d-namespace.c.
3099         (COMMON_OBS): Add d-namespace.o.
3100         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3101         la_lookup_symbol_nonlocal callback function pointer.
3102         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3103         (d_lookup_nested_symbol): New declaration.
3104         * d-namespace.c: New file.
3105
3106 2015-08-13  Pedro Alves  <palves@redhat.com>
3107
3108         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3109         cleanup after the decref cleanup, not before.
3110
3111 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
3112
3113         * ada-lang.c: Include namespace.h
3114         (aux_add_nonlocal_symbols): Fix a function name in comment.
3115         (ada_add_block_renamings): New.
3116         (add_nonlocal_symbols): Add global renamings handling.
3117         (ada_lookup_symbol_list_worker): Move the symbol lookup part
3118         to...
3119         (ada_add_all_symbols): ... this new function.
3120         (ada_add_block_symbols): Try to match the input name against the
3121         "using directives list", perform a recursive symbol lookup on
3122         the matched declarations.
3123         * block.h (struct block): Move the_namespace to top-level as
3124         namespace_info. Remove the language_specific field.
3125         (BLOCK_NAMESPACE): Update access to the namespace_info field.
3126         * buildsym.h (using_directives): Rename into...
3127         (local_using_directives): ... this.
3128         (global_using_directives): New.
3129         (struct context_stack): Rename the using_directives field into
3130         local_using_directives.
3131         * buildsym.c (finish_block_internal): Deal with the proper
3132         using directives repository (local or global).
3133         (prepare_for_building): Reset local_using_directives. Assert
3134         that there is no pending global using directive.
3135         (reset_symtab_globals): Reset global_using_directives and
3136         local_using_directives.
3137         (end_symtab_get_static_block): Don't ignore symtabs that have
3138         only using directives.
3139         (push_context): Update references to local_using_directives.
3140         (buildsym_init): Do not reset using_directives.
3141         * cp-support.c: Include namespace.h.
3142         * cp-support.h (struct using_direct): Move to namespace.h.
3143         (cp_add_using_directives): Move to namespace.h.
3144         * cp-namespace.c: Include namespace.h
3145         (cp_add_using_directive): Move to namespace.c, rename it to
3146         add_using_directive, add a "using_directives" argument and use
3147         it as the pending using directives repository.  All callers
3148         updated.
3149         * dwarf2read.c (using_directives): New.
3150         (read_import_statement): Call using_directives.
3151         (read_func_scope): Update references to local_using_directives.
3152         (read_lexical_block_scope): Likewise.
3153         (read_namespace): Update the heading comment, call
3154         using_directives.
3155         * namespace.h: New file.
3156         * namespace.c: New file.
3157         * Makefile.in (SFILES): Add namespace.c.
3158         (COMMON_OBS): Add namespace.o
3159
3160 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
3161
3162         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3163         compute RETADDR.
3164
3165 2015-08-12  Keith Seitz  <keiths@redhat.com>
3166
3167         * break-catch-throw.c (re_set_exception_catchpoint) Rename
3168         reserved C++ keyword "explicit" to "explicit_loc".
3169         * breakpoint.c (create_overlay_event_breakpoint)
3170         (create_longjmp_master_breakpoint)
3171         (create_std_terminate_master_breakpoint)
3172         (create_exception_master_breakpoint, update_static_tracepoint):
3173         Rename reserved C++ keyword "explicit" to "explicit_loc".
3174         * completer.c (collect_explicit_location_matches)
3175         (explicit_location_completer): Rename reserved C++ keyword
3176         "explicit" to "explicit_loc".
3177         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3178         (canonicalize_linespec, create_sals_line_offset)
3179         (convert_linespec_to_sals, convert_explicit_location_to_sals)
3180         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3181         "explicit" to "explicit_loc".
3182         * location.c (struct event_location) <explicit>: Rename to
3183         "explicit_loc".
3184         (initialize_explicit_location, new_explicit_location)
3185         (explicit_location_to_string_internal, explicit_location_to_linespec):
3186         Rename reserved C++ keyword "explicit" to "explicit_loc".
3187         * location.h (explicit_location_to_string)
3188         (explicit_location_to_linespec, initialize_explicit_location)
3189         (new_explicit_location): Rename reserved C++ keyword "explicit"
3190         to "explicit_loc".
3191         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3192         keyword "explicit" to "explicit_loc".
3193
3194 2015-08-12  Keith Seitz  <keiths@redhat.com>
3195
3196         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3197         and only call decode_line_1 when it is non-NULL.
3198
3199 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
3200
3201         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3202         location address is not meaningful.
3203         (breakpoint_address_is_meaningful): Update comment.
3204
3205 2015-08-11  Keith Seitz  <keiths@redhat.com>
3206
3207         * NEWS: Mention explicit locations.
3208         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3209         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3210         (_initialize_breakpoint): Update documentation for
3211         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3212
3213 2015-08-11  Keith Seitz  <keiths@redhat.com>
3214
3215         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3216         explicit locations, options "--source", "--function",
3217         "--label", and "--line".
3218
3219 2015-08-11  Keith Seitz  <keiths@redhat.com>
3220
3221         * completer.c: Include location.h.
3222         (enum match_type): New enum.
3223         (location_completer): Rename to ...
3224         (linespec_completer): ... this.
3225         (collect_explicit_location_matches, backup_text_ptr)
3226         (explicit_location_completer): New functions.
3227         (location_completer): "New" function; handle linespec
3228         and explicit location completions.
3229         (complete_line_internal): Remove all location completer-specific
3230         handling.
3231         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3232         (find_toplevel_char): Export.
3233         (linespec_parse_line_offset): Export.
3234         Issue error if STRING is not numerical.
3235         (gdb_get_linespec_parser_quote_characters): New function.
3236         * linespec.h (linespec_parse_line_offset): Declare.
3237         (get_gdb_linespec_parser_quote_characters): Declare.
3238         (is_ada_operator): Declare.
3239         (find_toplevel_char): Declare.
3240         (linespec_lexer_lex_keyword): Declare.
3241         * location.c (explicit_to_event_location): New function.
3242         (explicit_location_lex_one): New function.
3243         (string_to_explicit_location): New function.
3244         (string_to_event_location): Handle explicit locations.
3245         * location.h (explicit_to_event_location): Declare.
3246         (string_to_explicit_location): Declare.
3247
3248 2015-08-11  Keith Seitz  <keiths@redhat.com>
3249
3250         * break-catch-throw.c (re_set_exception_catchpoint): Convert
3251         linespec into explicit location.
3252         * breakpoint.c (create_overlay_breakpoint)
3253         (create_longjmp_master_breakpoint)
3254         (create_std_terminate_master_breakpoint)
3255         (create_exception_master_breakpoint): Convert linespec into explicit
3256         location.
3257         (update_static_tracepoint): Convert linespec into explicit location.
3258         * linespec.c (enum offset_relative_sign, struct line_offset): Move
3259         location.h.
3260         (struct linespec) <expression, expr_pc, source_filename>
3261         <function_name, label_name, line_offset>: Replace with ...
3262         <explicit>: ... this.
3263         <is_linespec>: New member.
3264         (PARSER_EXPLICIT): New accessor macro.
3265         (undefined_label_error): New function.
3266         (source_file_not_found_error): New function.
3267         (linespec_parse_basic): The parser result is now an explicit location.
3268         Use PARSER_EXPLICIT to access it.
3269         Use undefined_label_error.
3270         (canonicalize_linespec): Convert canonical linespec into explicit
3271         location.
3272         Move string representation of location to explicit_location_to_linespec
3273         and use it and explicit_location_to_string to save string
3274         representations of the canonical location.
3275         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3276         explicit location.  Update all references.
3277         (convert_explicit_location_to_sals): New function.
3278         (parse_linespec): Use PARSER_EXPLICIT to access the parser
3279         result's explicit location.
3280         (linespec_state_constructor): Initialize is_linespec.
3281         Use PARSER_EXPLICIT.
3282         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3283         result.
3284         (event_location_to_sals): For linespec locations, set is_linespec.
3285         Handle explicit locations.
3286         (decode_objc): 'ls' contains an explicit location now. Update all
3287         references.
3288         (symtabs_from_filename): Use source_file_not_found_error.
3289         * location.c (struct event_location.u) <explicit>: New member.
3290         (initialize_explicit_location): New function.
3291         (initialize_event_location): Initialize explicit locations.
3292         (new_explicit_location, get_explicit_location)
3293         (get_explicit_location_const): New functions.
3294         (explicit_to_string_internal): New function; most of contents moved
3295         from canonicalize_linespec.
3296         (explicit_location_to_string): New function.
3297         (explicit_location_to_linespec): New function.
3298         (copy_event_location, delete_event_location)
3299         (event_location_to_string_const, event_location_empty_p): Handle
3300         explicit locations.
3301         * location.h (enum offset_relative_sign, struct line_offset): Move
3302         here from linespec.h.
3303         (enum event_location_type): Add EXPLICIT_LOCATION.
3304         (struct explicit_location): New structure.
3305         (explicit_location_to_string): Declare.
3306         (explicit_location_to_linespec): Declare.
3307         (new_explicit_location, get_explicit_locationp
3308         (get_explicit_location_const, initialize_explicit_location): Declare.
3309
3310 2015-08-11  Keith Seitz  <keiths@redhat.com>
3311
3312         * break-catch-throw.c (re_set_exception_catchpoint): Convert
3313         linespec for stap probe to probe location.
3314         * breakpoint.c (create_longjmp_master_breakpoint)
3315         (create_exception_master_breakpoint): Likewise.
3316         (break_command_1): Remove local variable `arg_cp'.
3317         Check location type to set appropriate breakpoint ops methods.
3318         (trace_command): Likewise.
3319         * linespec.c (event_location_to_sals): Assert on probe locations.
3320         * location.c (EL_PROBE): Add macro definition.
3321         (new_probe_location, get_probe_location): New functions.
3322         (copy_event_location, delete_event_location, event_location_to_string)
3323         (string_to_event_location, event_location_empty_p): Handle probe
3324         locations.
3325         * location.h (enum event_location_type): Add PROBE_LOCATION.
3326         (new_probe_location, get_probe_location): Declare.
3327         * probe.c (parse_probes): Assert that LOCATION is a probe location.
3328         Convert linespec into probe location.
3329
3330 2015-08-11  Keith Seitz  <keiths@redhat.com>
3331
3332         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3333         Convert linespec to address location.
3334         * linespec.c (canonicalize_linespec): Do not handle address
3335         locations here.
3336         (convert_address_location_to_sals): New function; contents moved
3337         from ...
3338         (convert_linespc_to_sals): ... here.
3339         (parse_linespec): Remove address locations from linespec grammar.
3340         Remove handling of address locations.
3341         (linespec_lex_to_end): Remove handling of address linespecs.
3342         (event_location_to_sals): Handle ADDRESS_LOCATION.
3343         (linespec_expression_to_pc): Export.
3344         * linespec.h (linespec_expression_to_pc): Add declaration.
3345         * location.c (struct event_location.u) <address>: New member.
3346         (new_address_location, get_address_location): New functions.
3347         (copy_event_location, delete_event_location, event_location_to_string)
3348         (string_to_event_location, event_location_empty_p): Handle address
3349         locations.
3350         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3351         (new_address_location, get_address_location): Declare.
3352         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3353         to address location.
3354         * spu-tdep.c (spu_catch_start): Likewise.
3355
3356 2015-08-11  Keith Seitz  <keiths@redhat.com>
3357
3358         * ax-gdb.c: Include location.h.
3359         (agent_command_1) Use linespec location instead of address
3360         string.
3361         * break-catch-throw.c: Include location.h.
3362         (re_set_exception_catchpoint): Use linespec locations instead
3363         of address strings.
3364         * breakpoint.c: Include location.h.
3365         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3366         (create_std_terminate_master_breakpoint)
3367         (create_exception_master_breakpoint, update_breakpoints_after_exec):
3368         Use linespec location instead of address string.
3369         (print_breakpoint_location):  Use locations and
3370         event_location_to_string.
3371         Print extra_string for pending locations for non-MI streams.
3372         (print_one_breakpoint_location): Use locations and
3373         event_location_to_string.
3374         (init_raw_breakpoint_without_location): Initialize b->location.
3375         (create_thread_event_breakpoint): Use linespec location instead of
3376         address string.
3377         (init_breakpoint_sal): Likewise.
3378         Only save extra_string if it is non-NULL and not the empty string.
3379         Use event_location_to_string instead of `addr_string'.
3380         Constify `p' and `endp'.
3381         Use skip_spaces_const/skip_space_const instead of non-const versions.
3382         Copy the location into the breakpoint.
3383         If LOCATION is NULL, save the breakpoint address as a linespec location
3384         instead of an address string.
3385         (create_breakpoint_sal): Change `addr_string' parameter to a struct
3386         event_location. All uses updated.
3387         (create_breakpoints_sal): Likewise for local variable `addr_string'.
3388         (parse_breakpoint_sals): Use locations instead of address strings.
3389         Remove check for empty linespec with conditional.
3390         Refactor.
3391         (decode_static_tracepoint_spec): Make argument const and update
3392         function.
3393         (create_breakpoint): Change `arg' to a struct event_location and
3394         rename.
3395         Remove `copy_arg' and `addr_start'.
3396         If EXTRA_STRING is empty, set it to NULL.
3397         Don't populate `canonical' for pending breakpoints.
3398         Pass `extra_string' to find_condition_and_thread.
3399         Clear `extra_string' if `rest' was NULL.
3400         Do not error with "garbage after location" if setting a dprintf
3401         breakpoint.
3402         Copy the location into the breakpoint instead of an address string.
3403         (break_command_1): Use string_to_event_location and pass this to
3404         create_breakpoint instead of an address string.
3405         Check against `arg_cp' for a probe linespec.
3406         (dprintf_command): Use string_to_event_location and pass this to
3407         create_breakpoint instead of an address string.
3408         Throw an exception if no format string was specified.
3409         (print_recreate_ranged_breakpoint): Use event_location_to_string
3410         instead of address strings.
3411         (break_range_command, until_break_command)
3412         (init_ada_exception_breakpoint): Use locations instead
3413         of address strings.
3414         (say_where): Print out extra_string for pending locations.
3415         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
3416         the breakpoint.
3417         (base_breakpoint_create_sals_from_location): Use struct event_location
3418         instead of address string.
3419         Remove `addr_start' and `copy_arg' parameters.
3420         (base_breakpoint_decode_location): Use struct event_location instead of
3421         address string.
3422         (bkpt_re_set): Use locations instead of address strings.
3423         Use event_location_empty_p to check for unset location.
3424         (bkpt_print_recreate): Use event_location_to_string instead of
3425         an address string.
3426         Print out extra_string for pending locations.
3427         (bkpt_create_sals_from_location, bkpt_decode_location)
3428         (bkpt_probe_create_sals_from_location): Use struct event_location
3429         instead of address string.
3430         (bkpt_probe_decode_location): Use struct event_location instead of
3431         address string.
3432         (tracepoint_print_recreate): Use event_location_to_string to
3433         recreate the tracepoint.
3434         (tracepoint_create_sals_from_location, tracepoint_decode_location)
3435         (tracepoint_probe_create_sals_from_location)
3436         (tracepoint_probe_decode_location): Use struct event_location
3437         instead of address string.
3438         (dprintf_print_recreate): Use event_location_to_string to recreate
3439         the dprintf.
3440         (dprintf_re_set): Remove check for valid/missing format string.
3441         (strace_marker_create_sals_from_location)
3442         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
3443         (update_static_tracepoint): Use struct event_location instead of
3444         address string.
3445         (location_to_sals): Likewise.
3446         Pass `extra_string' to find_condition_and_thread.
3447         For newly resolved pending breakpoint locations, clear the location's
3448         string representation.
3449         Assert that the breakpoint's condition string is NULL when
3450         condition_not_parsed.
3451         (breakpoint_re_set_default, create_sals_from_location_default)
3452         (decode_location_default, trace_command, ftrace_command)
3453         (strace_command, create_tracepoint_from_upload): Use locations
3454         instead of address strings.
3455         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
3456         Use struct event_location instead of address string.
3457         Update all uses.
3458         <decode_location>: Likewise.
3459         (struct breakpoint) <addr_string>: Change to struct event_location
3460         and rename `location'.
3461         <addr_string_range_end>: Change to struct event_location and rename
3462         `location_range_end'.
3463         (create_breakpoint): Use struct event_location instead of address
3464         string.
3465         * cli/cli-cmds.c: Include location.h.
3466         (edit_command, list_command): Use locations instead of address strings.
3467         * elfread.c: Include location.h.
3468         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
3469         * guile/scm-breakpoint.c: Include location.h.
3470         (bpscm_print_breakpoint_smob): Use event_location_to_string.
3471         (gdbscm_register_breakpoint): Use locations instead of address
3472         strings.
3473         * linespec.c: Include location.h.
3474         (struct ls_parser) <stream>: Change to const char *.
3475         (PARSER_STREAM): Update.
3476         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
3477         keywords must be followed by whitespace.
3478         (canonicalize_linespec): Save a linespec location into `canonical'.
3479         Save a canonical linespec into `canonical'.
3480         (parse_linespec): Change `argptr' to const char * and rename `arg'.
3481         All uses updated.
3482         Update function description.
3483         (linespec_parser_new): Initialize `parser'.
3484         Update initialization of  parsing stream.
3485         (event_location_to_sals): New function.
3486         (decode_line_full): Change `argptr' to a struct event_location and
3487         rename it `location'.
3488         Use locations instead of address strings.
3489         Call event_location_to_sals instead of parse_linespec.
3490         (decode_line_1): Likewise.
3491         (decode_line_with_current_source, decode_line_with_last_displayed)
3492         Use locations instead of address strings.
3493         (decode_objc): Likewise.
3494         Change `argptr' to const char * and rename `arg'.
3495         (destroy_linespec_result): Delete the linespec result's location
3496         instead of freeing the address string.
3497         * linespec.h (struct linespec_result) <addr_string>: Change to
3498         struct event_location and rename to ...
3499         <location>: ... this.
3500         (decode_line_1, decode_line_full): Change `argptr' to struct
3501         event_location.  All callers updated.
3502         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
3503         (mi_cmd_break_insert_1): Use locations instead of address strings.
3504         Throw an error if there was "garbage" at the end of the specified
3505         linespec.
3506         * probe.c: Include location.h.
3507         (parse_probes): Change `argptr' to struct event_location.
3508         Use event locations instead of address strings.
3509         * probe.h (parse_probes): Change `argptr' to struct event_location.
3510         * python/py-breakpoint.c: Include location.h.
3511         (bppy_get_location): Constify local variable `str'.
3512         Use event_location_to_string.
3513         (bppy_init): Use locations instead of address strings.
3514         * python/py-finishbreakpoint.c: Include location.h.
3515         (bpfinishpy_init): Remove local variable `addr_str'.
3516         Use locations instead of address strings.
3517         * python/python.c: Include location.h.
3518         (gdbpy_decode_line): Use locations instead of address strings.
3519         * remote.c: Include location.h.
3520         (remote_download_tracepoint): Use locations instead of address
3521         strings.
3522         * spu-tdep.c: Include location.h.
3523         (spu_catch_start): Remove local variable `buf'.
3524         Use locations instead of address strings.
3525         * tracepoint.c: Include location.h.
3526         (scope_info): Use locations instead of address strings.
3527         (encode_source_string): Constify parameter `src'.
3528         * tracepoint.h (encode_source_string): Likewise.
3529
3530 2015-08-11  Keith Seitz  <keiths@redhat.com>
3531
3532         * Makefile.in (SFILES): Add location.c.
3533         (HFILES_NO_SRCDIR): Add location.h.
3534         (COMMON_OBS): Add location.o.
3535         * linespec.c (linespec_lex_to_end): New function.
3536         * linespec.h (linespec_lex_to_end): Declare.
3537         * location.c: New file.
3538         * location.h: New file.
3539
3540 2015-08-11  Keith Seitz  <keiths@redhat.com>
3541
3542         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
3543         Renamed to create_sals_from_location.
3544         <decode_linespec>: Renamed to decode_location.
3545         Update all callers.
3546         * breakpoint.c (create_sals_from_address_default): Renamed to ...
3547         (create_sals_from_location_default): ... this.
3548         (addr_string_to_sals): Renamed to ...
3549         (location_to_sals): ... this.
3550         (decode_linespec_default): Renamed to ...
3551         (decode_location_default): ... this.
3552         (base_breakpoint_create_sals_from_address): Renamed to ...
3553         (base_breakpoint_create_sals_from_location): ... this.
3554         (bkpt_create_sals_from_address): Renamed to ...
3555         (bkpt_create_sals_from_location): ... this.
3556         (bkpt_decode_linespec): Renamed to ...
3557         (bkpt_decode_location): ... this.
3558         (bkpt_probe_create_sals_from_address): Renamed to ...
3559         (bkpt_probe_create_sals_from_location): ... this.
3560         (tracepoint_create_sals_from_address): Renamed to ...
3561         (tracepoint_create_sals_from_location): ... this.
3562         (tracepoint_decode_linespec): Renamed to ...
3563         (tracepoint_decode_location): ... this.
3564         (tracepoint_probe_create_sals_from_address): Renamed to ...
3565         (tracepoint_probe_create_sals_from_location): ... this.
3566         (tracepoint_probe_decode_linespec): Renamed to ...
3567         (tracepoint_probe_decode_location): ... this.
3568         (strace_marker_create_sals_from_address): Renamed to ...
3569         (strace_marker_create_sals_from_location): ... this.
3570         (decode_linespec_default): Renamed to ...
3571         (decode_location_default): ... this.
3572
3573 2015-08-10  Doug Evans  <dje@google.com>
3574             Keith Seitz  <keiths@redhat.com>
3575
3576         PR gdb/17960
3577         * symtab.c (make_file_symbol_completion_list_1): Renamed from
3578         make_file_symbol_completion_list and made static.
3579         (make_file_symbol_completion_list): New function.
3580
3581 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
3582
3583         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
3584         trailing new-line at end of warning message.
3585         (proceed): Add i18n marker to error messages.
3586
3587 2015-08-07  Pedro Alves  <palves@redhat.com>
3588
3589         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
3590
3591 2015-08-07  Pedro Alves  <palves@redhat.com>
3592
3593         * s390-linux-tdep.c (is_non_branch_ril)
3594         (s390_displaced_step_copy_insn): New functions.
3595         (s390_displaced_step_fixup): Update comment.
3596         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
3597         gdbarch_displaced_step_copy_insn hook.
3598
3599 2015-08-07  Pedro Alves  <palves@redhat.com>
3600
3601         * infrun.c (displaced_step_prepare_throw): Return -1 if
3602         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
3603         comment.
3604         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
3605         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
3606         in file.
3607         (ppc_displaced_step_copy_insn): New function.
3608         (ppc_displaced_step_fixup): Update comment.
3609         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
3610         gdbarch_displaced_step_copy_insn hook.
3611         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
3612         NULL return.
3613         * gdbarch.h: Regenerate.
3614
3615 2015-08-07  Pedro Alves  <palves@redhat.com>
3616
3617         * inferior.h (struct inferior) <displaced_stepping_failed>: New
3618         field.
3619         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
3620         Return false if dispaced stepping failed before.
3621         (resume): Pass the current inferior to
3622         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
3623         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
3624         displaced_stepping_failed flag, and fall back to an in-line
3625         step-over.
3626
3627 2015-08-07  Pedro Alves  <palves@redhat.com>
3628
3629         * darwin-nat.c (darwin_stop): Rename to ...
3630         (darwin_interrupt): ... this.
3631         (_initialize_darwin_inferior): Adjust.
3632         * gnu-nat.c (gnu_stop): Delete.
3633         (gnu_target): Don't install gnu_stop.
3634         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
3635         (inf_ptrace_interrupt): ... this.
3636         (inf_ptrace_target): Adjust.
3637         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
3638         target_stop.
3639         * linux-nat (linux_nat_stop): Rename to ...
3640         (linux_nat_interrupt): ... this.
3641         (linux_nat_stop): Reimplement.
3642         (linux_nat_add_target): Install linux_nat_interrupt.
3643         * nto-procfs.c (nto_interrupt_twice): Rename to ...
3644         (nto_handle_sigint_twice): ... this.
3645         (nto_interrupt): Rename to ...
3646         (nto_handle_sigint): ... this.  Call target_interrupt instead of
3647         target_stop.
3648         (procfs_wait): Adjust.
3649         (procfs_stop): Rename to ...
3650         (procfs_interrupt): ... this.
3651         (init_procfs_targets): Adjust.
3652         * procfs.c (procfs_stop): Rename to ...
3653         (procfs_interrupt): ... this.
3654         (procfs_target): Adjust.
3655         * remote-m32r-sdi.c (m32r_stop): Rename to ...
3656         (m32r_interrupt): ... this.
3657         (init_m32r_ops): Adjust.
3658         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
3659         (gdbsim_interrupt_inferior): ... this.
3660         (gdbsim_stop): Rename to ...
3661         (gdbsim_interrupt): ... this.
3662         (gdbsim_cntrl_c): Adjust.
3663         (init_gdbsim_ops): Adjust.
3664         * remote.c (sync_remote_interrupt): Adjust comments.
3665         (remote_stop_as): Rename to ...
3666         (remote_interrupt_as): ... this.
3667         (remote_stop): Adjust comment.
3668         (remote_interrupt): New function.
3669         (init_remote_ops): Install remote_interrupt.
3670         * target.c (target_interrupt): New function.
3671         * target.h (struct target_ops) <to_interrupt>: New field.
3672         (target_interrupt): New declaration.
3673         * windows-nat.c (windows_stop): Rename to ...
3674         (windows_interrupt): ... this.
3675         * target-delegates.c: Regenerate.
3676
3677 2015-08-07  Pedro Alves  <palves@redhat.com>
3678
3679         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
3680         threads" as alternative to "switching back to stepped thread".
3681
3682 2015-08-07  Pedro Alves  <palves@redhat.com>
3683
3684         * NEWS: Mention "maint set/show target-non-stop".
3685         * breakpoint.c (update_global_location_list): Check
3686         target_is_non_stop_p instead of non_stop.
3687         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
3688         * infrun.c (show_can_use_displaced_stepping)
3689         (can_use_displaced_stepping_p, start_step_over_inferior):
3690         Likewise.
3691         (internal_resume_ptid): New function.
3692         (resume): Use it.
3693         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
3694         all-stop mode but the target is always in non-stop mode, start all
3695         the other threads that are implicitly resumed too.
3696         (for_each_just_stopped_thread, fetch_inferior_event)
3697         (adjust_pc_after_break, stop_all_threads): Check
3698         target_is_non_stop_p instead of non_stop.
3699         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
3700         with the target always in non-stop mode.
3701         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
3702         instead of non_stop.
3703         (switch_back_to_stepped_thread): Check target_is_non_stop_p
3704         instead of non_stop.
3705         (keep_going_stepped_thread): Use internal_resume_ptid.
3706         (stop_waiting): If in all-stop mode, and the target is in non-stop
3707         mode, stop all threads.
3708         (keep_going_pass): Likewise, when starting a new in-line step-over
3709         sequence.
3710         * linux-nat.c (get_pending_status, select_event_lwp)
3711         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
3712         target_is_non_stop_p instead of non_stop.
3713         (linux_nat_always_non_stop_p): New function.
3714         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
3715         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
3716         * target-delegates.c: Regenerate.
3717         * target.c (target_is_non_stop_p): New function.
3718         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
3719         (maint_set_target_non_stop_command)
3720         (maint_show_target_non_stop_command): New functions.
3721         (_initilize_target): Install "maint set/show target-non-stop"
3722         commands.
3723         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
3724         (target_non_stop_enabled): New declaration.
3725         (target_is_non_stop_p): New declaration.
3726
3727 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
3728
3729         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
3730         has a pending status, return true.
3731         * gdbthread.h: Include target/waitstatus.h.
3732         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
3733         stop_pc>: New fields.
3734         (struct thread_info) <resumed>: New field.
3735         (set_resumed): Declare.
3736         * infrun.c: Include "event-loop.h".
3737         (infrun_async_inferior_event_token, infrun_is_async): New globals.
3738         (infrun_async): New function.
3739         (clear_step_over_info): Add debug output.
3740         (displaced_step_in_progress_any_inferior): New function.
3741         (displaced_step_fixup): New returns int.
3742         (start_step_over): Handle in-line step-overs too.  Assert the
3743         thread is marked resumed.
3744         (resume_cleanups): Clear the thread's resumed flag.
3745         (resume): Set the thread's resumed flag.  Return early if the
3746         thread has a pending status.  Allow stepping a breakpoint with no
3747         signal.
3748         (proceed): Adjust to check 'resumed' instead of 'executing'.
3749         (clear_proceed_status_thread): If the thread has a pending status,
3750         and that status is a finished step, discard the pending status.
3751         (clear_proceed_status): Don't clear step_over_info here.
3752         (random_pending_event_thread, do_target_wait): New functions.
3753         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
3754         do_target_wait.
3755         (wait_one): New function.
3756         (THREAD_STOPPED_BY): New macro.
3757         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3758         (thread_stopped_by_hw_breakpoint): New functions.
3759         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
3760         functions.
3761         (handle_inferior_event): Also call set_resumed(false) on all
3762         threads implicitly stopped by the event.
3763         (restart_threads, resumed_thread_with_pending_status): New
3764         functions.
3765         (finish_step_over): If we were doing an in-line step-over before,
3766         and no longer are after trying to start a new step-over, restart
3767         all threads.  If we have multiple threads with pending events,
3768         save the current event and go through the event loop again.
3769         (handle_signal_stop): Return early if finish_step_over returns
3770         false.
3771         <random signal>: If we get a signal while stepping over a
3772         breakpoint in-line in non-stop mode, restart all threads.  Clear
3773         step_over_info before delivering the signal.
3774         (keep_going_stepped_thread): Use internal_error instead of
3775         gdb_assert.  Mark the thread as resumed.
3776         (keep_going_pass_signal): Assert the thread isn't already resumed.
3777         If some other thread is doing an in-line step-over, defer the
3778         resume.  If we just started a new in-line step-over, stop all
3779         threads.  Don't clear step_over_info.
3780         (infrun_async_inferior_event_handler): New function.
3781         (_initialize_infrun): Create async event handler with
3782         infrun_async_inferior_event_handler as callback.
3783         (infrun_async): New declaration.
3784         * target.c (target_async): New function.
3785         * target.h (target_async): Declare macro and readd as function
3786         declaration.
3787         * target/waitstatus.h (enum target_stop_reason)
3788         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
3789         * thread.c (new_thread): Clear the new waitstatus field.
3790         (set_resumed): New function.
3791
3792 2015-08-07  Pedro Alves  <palves@redhat.com>
3793
3794         * infrun.c (keep_going_stepped_thread): New function, factored out
3795         from ...
3796         (switch_back_to_stepped_thread): ... here.
3797
3798 2015-08-07  Pedro Alves  <palves@redhat.com>
3799
3800         * infrun.c (currently_stepping): Extend intro comment.
3801         * target.h (target_resume): Extend intro comment.
3802
3803 2015-08-07  Pedro Alves  <palves@redhat.com>
3804
3805         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
3806         of inferior_ptid.  If the stepped thread vanished, return 0
3807         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
3808         the current stop_pc in log message.  Clear trap_expected if the
3809         thread advanced.  Don't pass currently_stepping to
3810         do_target_resume.
3811
3812 2015-08-07  Pedro Alves  <palves@redhat.com>
3813
3814         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
3815         * infrun.c (struct execution_control_state): Move higher up in the
3816         file.
3817         (reset_ecs): New function.
3818         (start_step_over): Now returns int.  Rewrite to use
3819         keep_going_pass_signal instead of manually starting a displaced step.
3820         (resume): Don't call set_running here.  If displaced stepping
3821         can't start now, clear trap_expected.
3822         (find_thread_needs_step_over): Delete function.
3823         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
3824         If the current thread needs a step over, push it in the step-over
3825         chain.  Don't set insert breakpoints nor call resume directly
3826         here.  Instead rewrite to use start_step_over and
3827         keep_going_pass_signal.
3828         (finish_step_over): New function.
3829         (handle_signal_stop): Call finish_step_over instead of
3830         start_step_over.
3831         (switch_back_to_stepped_thread): If the event thread needs another
3832         step-over do that first.  Use start_step_over.
3833         (keep_going_pass_signal): New function, factored out from ...
3834         (keep_going): ... here.
3835         (_initialize_infrun): Comment moved here.
3836         * thread.c (set_running_thread): New function.
3837         (set_running, finish_thread_state): Use set_running_thread.
3838
3839 2015-08-07  Pedro Alves  <palves@redhat.com>
3840
3841         * gdbthread.h (struct thread_info) <step_over_prev,
3842         step_over_next>: New fields.
3843         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
3844         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
3845         declarations.
3846         * infrun.c (struct displaced_step_request): Delete.
3847         (struct displaced_step_inferior_state) <step_request_queue>:
3848         Delete field.
3849         (displaced_step_prepare): Assert that trap_expected is set.  Use
3850         thread_step_over_chain_enqueue.  Split starting a new displaced
3851         step to ...
3852         (start_step_over): ... this new function.
3853         (resume): Assert the thread isn't waiting for a step over already.
3854         (proceed): Assert the thread isn't waiting for a step over
3855         already.
3856         (infrun_thread_stop_requested): Adjust to remove threads from the
3857         embedded step-over chain.
3858         (handle_inferior_event) <fork/vfork>: Call start_step_over after
3859         displaced_step_fixup.
3860         (handle_signal_stop): Call start_step_over after
3861         displaced_step_fixup.
3862         * infrun.h (step_over_queue_head): New declaration.
3863         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
3864         (thread_step_over_chain_next, thread_is_in_step_over_chain)
3865         (thread_step_over_chain_enqueue)
3866         (thread_step_over_chain_remove): New functions.
3867         (delete_thread_1): Remove thread from the step-over chain.
3868
3869 2015-08-07  Pedro Alves  <palves@redhat.com>
3870
3871         * infrun.c (thread_still_needs_step_over): Rename to ...
3872         (thread_still_needs_step_over_bp): ... this.
3873         (enum step_over_what): New.
3874         (thread_still_needs_step_over): Reimplement.
3875
3876 2015-08-07  Pedro Alves  <palves@redhat.com>
3877
3878         * remote.c (remote_wait_as): If not waiting for a stop reply,
3879         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
3880         requested, don't block waiting forever.
3881
3882 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
3883
3884         * infrun.c (adjust_pc_after_break): Now takes thread_info and
3885         waitstatus pointers instead of an ecs.  Adjust.
3886         (handle_inferior_event): Adjust caller.
3887
3888 2015-08-07  Pedro Alves  <palves@redhat.com>
3889
3890         * infrun.c (handle_inferior_event): If we get
3891         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
3892         mode, mark all threads of the exiting process as not-executing.
3893         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
3894         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
3895         exiting process, if inferior_ptid still points at a process.
3896         * thread.c (struct current_thread_cleanup) <next>: New field.
3897         (current_thread_cleanup_chain): New global.
3898         (restore_current_thread_ptid_changed): New function.
3899         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
3900         current_thread_cleanup_chain list.
3901         (make_cleanup_restore_current_thread): Add the cleanup data to the
3902         current_thread_cleanup_chain list.
3903         (_initialize_thread): Install restore_current_thread_ptid_changed
3904         as thread_ptid_changed observer.
3905
3906 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
3907
3908         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
3909         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
3910         smaller than expected.
3911
3912 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
3913
3914         * stack.c (get_frame_language): Moved ...
3915         * frame.c (get_frame_language): ... to here.
3916         * language.h (get_frame_language): Declaration moved to frame.h.
3917         * frame.h: Add language.h include, for language enum.
3918         (get_frame_language): Declaration moved from language.h.
3919         * language.c: Add frame.h include.
3920         * top.c: Add frame.h include.
3921         * symtab.h (struct obj_section): Declare.
3922         (struct cmd_list_element): Declare.
3923
3924 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
3925
3926         * language.c (show_language_command): Find selected frame before
3927         asking for the language of that frame.
3928         (set_language_command): Likewise.
3929         * language.h (get_frame_language): Add frame parameter.
3930         * stack.c (get_frame_language): Add frame parameter, assert
3931         parameter is not NULL, update comment and reindent.
3932         * top.c (check_frame_language_change): Pass the selected frame
3933         into get_frame_language.
3934
3935 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
3936
3937         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
3938         (pt_btrace_insn_flags): New.
3939         (ftrace_add_pt): Call pt_btrace_insn_flags.
3940         * btrace.h (btrace_insn_flag): New.
3941         (btrace_insn) <flags>: New.
3942         * record-btrace.c (btrace_insn_history): Print insn prefix.
3943         * NEWS: Announce it.
3944
3945 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
3946
3947         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
3948         * configure: Regenerate.
3949
3950 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
3951
3952         * Makefile.in (LIBICONV): Define.
3953         (CLIBS): Add LIBICONV.
3954         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
3955         * configure: Regenerate.
3956
3957 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
3958             Pedro Alves  <palves@redhat.com>
3959
3960         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
3961         (arm_set_abi): Likewise.
3962         * ax-general.c (ax_print): Likewise.
3963         * c-exp.y (exp : string_exp): Likewise.
3964         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
3965         (do_compile_dwarf_expr_to_c): Likewise.
3966         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
3967         Likewise.
3968         * dwarf2expr.c (execute_stack_op): Likewise.
3969         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3970         (disassemble_dwarf_expression): Likewise.
3971         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
3972         (read_array_order): Likewise.
3973         (abbrev_table_read_table): Likewise.
3974         (read_attribute_value): Likewise.
3975         (skip_unknown_opcode): Likewise.
3976         (dwarf_decode_macro_bytes): Likewise.
3977         (dwarf_decode_macros): Likewise.
3978         * eval.c (value_f90_subarray): Likewise.
3979         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
3980         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
3981         * infrun.c (handle_command): Likewise.
3982         * memory-map.c (memory_map_start_memory): Likewise.
3983         * osabi.c (set_osabi): Likewise.
3984         * parse.c (operator_length_standard): Likewise.
3985         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
3986         single return point.
3987         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3988         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3989         (gdbpy_lookup_global_symbol): Likewise.
3990         * record-full.c (record_full_restore): Likewise.
3991         * regcache.c (regcache_register_status): Likewise.
3992         (regcache_raw_read): Likewise.
3993         (regcache_cooked_read): Likewise.
3994         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
3995         * symtab.c (initialize_ordinary_address_classes): Likewise.
3996         * target-debug.h (target_debug_print_signals): Likewise.
3997         * utils.c (do_restore_current_language): Likewise.
3998
3999 2015-08-06  Clem Dickey  <clemd@acm.org>
4000
4001         PR python/17136
4002         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4003
4004 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4005
4006         * complaints.c (enum complaint_series): Add newlines and remove
4007         out of date comment.
4008         (struct complaints) <series>: Change type to enum
4009         complaint_series and remove out of date comment.
4010         (symfile_complaint_hook): Use equivalent enum value
4011         ISOLATED_MESSAGE instead of 0.
4012
4013 2015-08-06  Pedro Alves  <palves@redhat.com>
4014
4015         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4016         returned > 0.
4017
4018 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
4019
4020         * common/agent.c (symbol_list) <required>: Remove.
4021
4022 2015-08-06  Pedro Alves  <palves@redhat.com>
4023
4024         * target/waitstatus.h (enum target_stop_reason)
4025         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4026
4027 2015-08-05  Pedro Alves  <palves@redhat.com>
4028             Joel Brobecker  <brobecker@adacore.com>
4029
4030         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4031         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4032         case where BS->STOP is not set.
4033
4034 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
4035
4036         * nat/gdb_thread_db.h: Add copyright header.
4037         Protect against multiple inclusion.
4038
4039 2015-08-05  Yao Qi  <yao.qi@linaro.org>
4040
4041         * aarch64-linux-nat.c (get_thread_id): Remove.
4042         (debug_reg_change_callback): Call ptid_get_lwp instead of
4043         get_thread_id.
4044         (fetch_gregs_from_thread): Likewise.
4045         (store_gregs_to_thread): Likewise.
4046         (fetch_fpregs_from_thread): Likewise.
4047         (store_fpregs_to_thread): Likewise.
4048         (aarch64_linux_get_debug_reg_capacity): Likewise.
4049         * arm-linux-nat.c (get_thread_id): Remove.
4050         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4051         * xtensa-linux-nat.c (get_thread_id): Remove.
4052         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4053         * arm-linux-nat.c (get_thread_id): Remove.
4054         (GET_THREAD_ID): Remove.
4055         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4056         (store_fpregs, fetch_regs, store_regs): Likewise.
4057         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4058         (fetch_vfp_regs, store_vfp_regs): Likewise.
4059         (arm_linux_read_description): Likewise.
4060         (arm_linux_get_hwbp_cap): Likewise.
4061         * xtensa-linux-nat.c (get_thread_id): Remove.
4062         (GET_THREAD_ID): Remove.
4063         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4064         GET_THREAD_ID.
4065
4066 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
4067
4068         * python/py-linetable.c: Fix case of Linetable to LineTable
4069         in docstrings and code comments.
4070         * python/py-symtab.c: Same.
4071
4072 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4073
4074         * infcmd.c (signal_command): Call do_cleanups for args_chain.
4075
4076 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4077
4078         PR gdb/18767
4079         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4080         use.
4081
4082 2015-08-04  Pedro Alves  <palves@redhat.com>
4083
4084         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4085         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4086         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4087         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4088         (td_thr_validate_ftype, td_thr_get_info_ftype)
4089         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4090         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4091         New typedefs.
4092         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4093         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4094         local macros and use them instead of verbose_dlsym and dlsym
4095         calls.
4096
4097 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
4098
4099         * nios2-tdep.h: Include opcode/nios2.h here.
4100         (NIOS2_CDX_OPCODE_SIZE): New.
4101         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4102         * nios2-tdep.c: Don't include opcode/nios2.h here.
4103         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4104         4-byte read fails.
4105         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4106         (nios2_match_addi, nios2_match_orhi): Likewise.
4107         (nios2_match_stw, nios2_match_ldw): Likewise.
4108         (nios2_match_rdctl): Likewise.
4109         (nios2_match_stwm, nios2_match_ldwm): New.
4110         (nios2_match_branch): Add cases for R2 encodings.
4111         (nios2_match_jmpi, nios2_match_calli): Likewise.
4112         (nios2_match_jmpr, nios2_match_callr): Likewise.
4113         (nios2_match_break, nios2_match_trap): Likewise.
4114         (nios2_in_epilogue_p): Add R2 support.
4115         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
4116         prologues.
4117         (nios2_breakpoint_from_pc): Handle R2 instructions.
4118         (nios2_get_next_pc): Likewise.  Adjust call to
4119         tdep->syscall_next_pc.
4120         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4121         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
4122         instruction field macros instead of literal hex values.
4123         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4124         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4125         Use size field from OP instead of assuming all instructions
4126         are the same size.
4127         (nios2_linux_init_abi): Register appropriate unwinder for mach.
4128
4129 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
4130
4131         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4132         variable warning with some compilers.
4133
4134 2015-08-03  Yao Qi  <yao.qi@linaro.org>
4135
4136         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4137         in comment.  Replace "rw" with "type".
4138         (arm_linux_remove_watchpoint): Change type of "rw" to
4139         "enum target_hw_bp_type".
4140
4141 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
4142
4143         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4144         lookup_symbol.
4145         * ft32-tdep.c (ft32_skip_prologue): Likewise.
4146         * moxie-tdep.c (moxie_skip_prologue): Likewise.
4147         * mt-tdep.c (mt_skip_prologue): Likewise.
4148         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4149
4150 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4151
4152         * ada-exp.y (write_object_renaming): Replace struct
4153         ada_symbol_info with struct block_symbol.  Update field
4154         references accordingly.
4155         (block_lookup, select_possible_type_sym): Likewise.
4156         (find_primitive_type): Likewise.  Also update call to
4157         ada_lookup_symbol to extract the symbol itself.
4158         (write_var_or_type, write_name_assoc): Likewise.
4159         * ada-lang.h (struct ada_symbol_info): Remove.
4160         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4161         struct block_symbol.
4162         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4163         (ada_lookup_symbol): Return struct block_symbol instead of a
4164         mere symbol.
4165         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4166         with struct block_symbol.
4167         (resolve_subexp, ada_resolve_function, sort_choices,
4168         user_select_syms, is_nonfunction, add_defn_to_vec,
4169         num_defns_collected, defns_collected,
4170         symbols_are_identical_enums, remove_extra_symbols,
4171         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4172         ada_lookup_symbol_list, ada_iterate_over_symbols,
4173         ada_lookup_encoded_symbol, get_var_value): Likewise.
4174         (ada_lookup_symbol): Return a block_symbol instead of a mere
4175         symbol.  Replace struct ada_symbol_info with struct
4176         block_symbol.
4177         (ada_lookup_symbol_nonlocal): Likewise.
4178         (standard_lookup): Make block passing explicit through
4179         lookup_symbol_in_language.
4180         * ada-tasks.c (get_tcb_types_info): Update the calls to
4181         lookup_symbol_in_language to extract the mere symbol out of the
4182         returned value.
4183         (ada_tasks_inferior_data_sniffer): Likewise.
4184         * ax-gdb.c (gen_static_field): Likewise for the call to
4185         lookup_symbol.
4186         (gen_maybe_namespace_elt): Deal with struct block_symbol from
4187         lookup functions.
4188         (gen_expr): Likewise.
4189         * c-exp.y: Likewise.  Remove uses of block_found.
4190         (lex_one_token, classify_inner_name, c_print_token): Likewise.
4191         (classify_name): Likewise.  Rename the "sym" local variable to
4192         "bsym".
4193         * c-valprint.c (print_unpacked_pointer): Likewise.
4194         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4195         "sym" parameter from struct symbol * to struct block_symbol.
4196         Use it to remove uses of block_found.  Deal with struct
4197         block_symbol from lookup functions.
4198         (gcc_convert_symbol): Likewise.  Update the call to
4199         convert_symbol_sym.
4200         * compile/compile-object-load.c (compile_object_load): Deal with
4201         struct block_symbol from lookup functions.
4202         * cp-namespace.c (cp_lookup_nested_symbol_1,
4203         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4204         cp_search_static_and_baseclasses,
4205         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4206         cp_lookup_symbol_imports_or_template,
4207         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4208         lookup_namespace_scope, cp_lookup_nonlocal,
4209         find_symbol_in_baseclass): Return struct block_symbol instead of
4210         mere symbols and deal with struct block_symbol from lookup
4211         functions.
4212         * cp-support.c (inspect_type, replace_typedefs,
4213         cp_lookup_rtti_type): Deal with struct block_symbol from
4214         lookup functions.
4215         * cp-support.h (cp_lookup_symbol_nonlocal,
4216         cp_lookup_symbol_from_namespace,
4217         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4218         Return struct block_symbol instead of mere symbols.
4219         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4220         push_module_name):
4221         Deal with struct block_symbol from lookup functions.  Remove
4222         uses of block_found.
4223         * eval.c (evaluate_subexp_standard): Update call to
4224         cp_lookup_symbol_namespace.
4225         * f-exp.y: Deal with struct block_symbol from lookup functions.
4226         Remove uses of block_found.
4227         (yylex): Likewise.
4228         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4229         lookup_enum, lookup_template_type, check_typedef): Deal with
4230         struct block_symbol from lookup functions.
4231         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4232         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4233         (gdbscm_lookup_global_symbol): Likewise.
4234         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4235         * go-exp.y: Likewise.  Remove uses of block_found.
4236         (package_name_p, classify_packaged_name, classify_name):
4237         Likewise.
4238         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4239         * jv-exp.y (push_variable): Likewise.
4240         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4241         * language.c (language_bool_type): Likewise.
4242         * language.h (struct language_defn): Update
4243         la_lookup_symbol_nonlocal to return a struct block_symbol rather
4244         than a mere symbol.
4245         * linespec.c (find_label_symbols): Deal with struct block_symbol
4246         from lookup functions.
4247         * m2-exp.y: Likewise.  Remove uses of block_found.
4248         (yylex): Likewise.
4249         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4250         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4251         * p-exp.y: Likewise.  Remove uses of block_found.
4252         (yylex): Likewise.
4253         * p-valprint.c (pascal_val_print): Likewise.
4254         * parse.c (write_dollar_variable): Likewise.  Remove uses of
4255         block_found.
4256         * parser-defs.h (struct symtoken): Turn the SYM field into a
4257         struct block_symbol.
4258         * printcmd.c (address_info): Deal with struct block_symbol from
4259         lookup functions.
4260         * python/py-frame.c (frapy_read_var): Likewise.
4261         * python/py-symbol.c (gdbpy_lookup_symbol,
4262         gdbpy_lookup_global_symbol): Likewise.
4263         * skip.c (skip_function_command): Likewise.
4264         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4265         block_symbol instead of a mere symbol.
4266         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4267         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4268         * solib.c (solib_global_lookup): Likewise.
4269         * solist.h (solib_global_lookup): Likewise.
4270         (struct target_so_ops): Update lookup_lib_global_symbol to
4271         return a struct block_symbol rather than a mere symbol.
4272         * source.c (select_source_symtab): Deal with struct block_symbol
4273         from lookup functions.
4274         * stack.c (print_frame_args, iterate_over_block_arg_vars):
4275         Likewise.
4276         * symfile.c (set_initial_language): Likewise.
4277         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4278         block_symbol.
4279         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4280         (struct symbol_cache_slot): Turn the FOUND field into a struct
4281         block_symbol.
4282         (block_found): Remove.
4283         (eq_symbol_entry): Update to deal with struct block_symbol in
4284         cache slots.
4285         (symbol_cache_lookup): Return a struct block_symbol rather than
4286         a mere symbol.
4287         (symbol_cache_mark_found): Add a BLOCK parameter to fill
4288         appropriately the cache slots.  Update callers.
4289         (symbol_cache_dump): Update cache slots handling to the type
4290         change.
4291         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4292         lookup_symbol_aux, lookup_local_symbol,
4293         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4294         lookup_symbol_in_objfile_symtabs,
4295         lookup_symbol_in_objfile_from_linkage_name,
4296         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4297         lookup_symbol_in_static_block, lookup_static_symbol,
4298         lookup_global_symbol):
4299         Return a struct block_symbol rather than a mere symbol.  Deal
4300         with struct block_symbol from other lookup functions.  Remove
4301         uses of block_found.
4302         (lookup_symbol_in_block): Remove uses of block_found.
4303         (struct global_sym_lookup_data): Turn the RESULT field into a
4304         struct block_symbol.
4305         (lookup_symbol_global_iterator_cb): Update references to the
4306         RESULT field.
4307         (search_symbols): Deal with struct block_symbol from lookup
4308         functions.
4309         * symtab.h (struct block_symbol): New structure.
4310         (block_found): Remove.
4311         (lookup_symbol_in_language, lookup_symbol,
4312         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
4313         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4314         lookup_global_symbol_from_objfile): Return a struct block_symbol
4315         rather than just a mere symbol.  Update comments to remove
4316         mentions of block_found.
4317         * valops.c (find_function_in_inferior,
4318         value_struct_elt_for_reference, value_maybe_namespace_elt,
4319         value_of_this):  Deal with struct block_symbol from lookup
4320         functions.
4321         * value.c (value_static_field, value_fn_field): Likewise.
4322
4323 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
4324
4325         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4326         instead of integer.
4327
4328 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
4329             Pedro Alves  <palves@redhat.com>
4330
4331         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4332         type or value instead of integer.
4333         (aarch64_linux_insert_watchpoint): Likewise.
4334         (aarch64_linux_remove_watchpoint): Likewise.
4335         * ada-lang.c (ada_op_print_tab): Likewise.
4336         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4337         (amd64_linux_syscall_record_common): Likewise.
4338         * arch-utils.c (target_byte_order_user): Likewise.
4339         (default_byte_order): Likewise.
4340         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4341         (arm_linux_get_hwbp_type): Likewise.
4342         (arm_linux_hw_watchpoint_initialize): Likewise.
4343         (arm_linux_insert_watchpoint): Likewise.
4344         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4345         (arm_linux_syscall_record): Likewise.
4346         * breakpoint.c (update_watchpoint): Likewise.
4347         (breakpoint_here_p): Likewise.
4348         (bpstat_print): Likewise.
4349         (enable_breakpoint_disp): Likewise.
4350         * c-lang.c (c_op_print_tab): Likewise.
4351         * cli/cli-decode.c (add_info_alias): Likewise.
4352         * d-lang.c (d_op_print_tab): Likewise.
4353         * eval.c (evaluate_subexp_standard): Likewise.
4354         * f-exp.y (dot_ops): Likewise.
4355         (f77_keywords): Likewise.
4356         * f-lang.c (f_op_print_tab): Likewise.
4357         * go-lang.c (go_op_print_tab): Likewise.
4358         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4359         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4360         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4361         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4362         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4363         (struct scm_from_stringn_data): Likewise.
4364         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4365         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4366         (ia64_linux_remove_watchpoint): Likewise.
4367         (ia64_linux_can_use_hw_breakpoint): Likewise.
4368         * infrun.c (print_stop_event): Likewise.
4369         * jv-lang.c (java_op_print_tab): Likewise.
4370         * linux-nat.c (linux_proc_xfer_partial): Likewise.
4371         * linux-nat.h (struct lwp_info): Likewise.
4372         * linux-thread-db.c (enable_thread_event): Likewise.
4373         * m2-lang.c (m2_op_print_tab): Likewise.
4374         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4375         (mi_cmd_stack_list_variables): Likewise.
4376         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4377         * mi/mi-out.c (mi_table_begin): Likewise.
4378         (mi_table_header): Likewise.
4379         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
4380         (mips_linux_insert_watchpoint): Likewise.
4381         (mips_linux_remove_watchpoint): Likewise.
4382         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
4383         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
4384         (mips_linux_watch_type_to_irw): Likewise.
4385         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4386         (procfs_insert_hw_watchpoint): Likewise.
4387         (procfs_remove_hw_watchpoint): Likewise.
4388         (procfs_hw_watchpoint): Likewise.
4389         (procfs_can_use_hw_breakpoint): Likewise.
4390         (procfs_remove_hw_watchpoint): Likewise.
4391         (procfs_insert_hw_watchpoint): Likewise.
4392         * p-lang.c (pascal_op_print_tab): Likewise.
4393         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
4394         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
4395         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
4396         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4397         (procfs_insert_watchpoint): Likewise.
4398         (procfs_remove_watchpoint): Likewise.
4399         * psymtab.c (recursively_search_psymtabs): Likewise.
4400         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
4401         (m32r_insert_watchpoint): Likewise.
4402         * remote-mips.c (mips_can_use_watchpoint): Likewise.
4403         (mips_insert_watchpoint): Likewise.
4404         (mips_remove_watchpoint): Likewise.
4405         * remote.c (watchpoint_to_Z_packet): Likewise.
4406         (remote_insert_watchpoint): Likewise.
4407         (remote_remove_watchpoint): Likewise.
4408         (remote_check_watch_resources): Likewise.
4409         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4410         (s390_remove_watchpoint): Likewise.
4411         (s390_can_use_hw_breakpoint): Likewise.
4412         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4413         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
4414         * target.h (struct target_ops): Likewise.
4415         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4416         * ui-out.c (struct ui_out_hdr): Likewise.
4417         (append_header_to_list): Likewise.
4418         (get_next_header): Likewise.
4419         (verify_field): Likewise.
4420         (ui_out_begin): Likewise.
4421         (ui_out_field_int): Likewise.
4422         (ui_out_field_fmt_int): Likewise.
4423         (ui_out_field_skip): Likewise.
4424         (ui_out_field_string): Likewise.
4425         (ui_out_field_fmt): Likewise.
4426         * varobj.c (new_variable): Likewise.
4427         * x86-nat.c (x86_insert_watchpoint): Likewise.
4428         (x86_remove_watchpoint): Likewise.
4429         (x86_can_use_hw_breakpoint): Likewise.
4430         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
4431         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
4432         previously anonymous enumeration type..
4433         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
4434         value.
4435         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
4436         (target_debug_print_enum_bptype): New.
4437         * target-delegates.c: Regenerate.
4438
4439 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
4440
4441         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
4442         already says and disallow non-stack memory writes in the prologue.
4443
4444 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
4445
4446         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
4447         reflect how current GCC emits stack overflow checks.  Match
4448         both trap and break instructions for backward compatbility.
4449         Disallow other trap and break instructions in the prologue.
4450
4451 2015-07-30  Pedro Alves  <palves@redhat.com>
4452
4453         PR threads/18600
4454         * linux-nat.c (wait_lwp): Report to the core when thread group
4455         leader exits.
4456
4457 2015-07-30  Pedro Alves  <palves@redhat.com>
4458             Simon Marchi  <simon.marchi@ericsson.com>
4459
4460         PR threads/18600
4461         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
4462         mark the new thread as resumed.  Remove STOPPING parameter.
4463         (wait_lwp): Adjust call to linux_handle_extended_wait.
4464         (linux_nat_filter_event): Adjust call to
4465         linux_handle_extended_wait.
4466         (resume_stopped_resumed_lwps): Add debug output.
4467
4468 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
4469
4470         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
4471         isize argument.
4472         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
4473         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
4474         gdbarch_fast_tracepoint_valid_at.
4475         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
4476         * gdbarch.h: Regenerate.
4477         * gdbarch.c: Regenerate.
4478         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
4479         argument.  Do not set it.
4480         * remote.c (remote_download_tracepoint): Adjust call to
4481         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
4482         the instruction length.
4483
4484 2015-07-30  Yao Qi  <yao.qi@linaro.org>
4485
4486         * arm-tdep.h (enum gdb_regnum): Move it to ...
4487         * arch/arm.h: ... here.  New file.
4488         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
4489
4490 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
4491
4492         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
4493         Change its type to int *.
4494         (decode_br): Rename link argument to is_blr.  Change its type to
4495         int *.
4496         (decode_cb): Rename op argument to is_cbnz.  Change its type to
4497         int *.
4498         (decode_tb): Rename op argument to is_tbnz.  Change its type to
4499         int *.  Set is_tbnz to either 1 or 0.
4500         (aarch64_analyze_prologue): Change type of is_link to int.  Add
4501         new variables is_cbnz and is_tbnz.  Adjust call to
4502         aarch64_decode_cb and aarch64_decode_tb.
4503
4504 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
4505
4506         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
4507         parameter.
4508         (mips_linux_new_thread): Likewise.
4509         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
4510
4511 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
4512
4513         * top.c: Include "tui/tui.h".
4514         (undo_terminal_modifications_before_exit): New static function.
4515         (quit_force): Use it.
4516
4517 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
4518
4519         * target.c (terminal_state): Initialize to terminal_is_ours.
4520
4521 2015-07-29  Yao Qi  <yao.qi@linaro.org>
4522
4523         PR record/18691
4524         * dcache.c (dcache_read_memory_partial): Call
4525         raw_memory_xfer_partial.
4526         * target.c (raw_memory_xfer_partial): Make it non-static.
4527         * target.h (raw_memory_xfer_partial): Declare.
4528
4529 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
4530
4531         * c-valprint.c (c_val_print_array): Consider addressable memory
4532         unit size.
4533         (c_val_print_ptr): Likewise.
4534         (c_val_print_int): Likewise.
4535         * findvar.c (read_frame_register_value): Likewise.
4536         * valarith.c (find_size_for_pointer_math): Likewise.
4537         (value_ptrdiff): Likewise.
4538         (value_subscripted_rvalue): Likewise.
4539         * valops.c (read_value_memory): Likewise (and rename variables).
4540         (value_assign): Likewise.
4541         (value_repeat): Likewise.
4542         (value_array): Likewise.
4543         (value_slice): Likewise.
4544         * valprint.c (generic_val_print_ptr): Likewise.
4545         (generic_val_print_enum): Likewise.
4546         (generic_val_print_bool): Likewise.
4547         (generic_val_print_int): Likewise.
4548         (generic_val_print_char): Likewise.
4549         (generic_val_print_float): Likewise.
4550         (generic_val_print_decfloat): Likewise.
4551         (generic_val_print_complex): Likewise.
4552         (val_print_scalar_formatted): Likewise.
4553         (val_print_array_elements): Likewise.
4554         * value.c (set_value_parent): Likewise.
4555         (value_contents_copy_raw): Likewise.
4556         (set_internalvar_component): Likewise.
4557         (value_primitive_field): Likewise.
4558         (value_fetch_lazy): Likewise.
4559         * value.h (read_value_memory): Update comment.
4560
4561 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
4562
4563         * value.c (get_value_arch): New function.
4564         * value.h (get_value_arch): New declaration.
4565
4566 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
4567
4568         * value.c (struct value): Update comments.
4569
4570 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
4571
4572         * gdbtypes.c (type_length_units): New function.
4573         * gdbtypes.h (type_length_units): New declaration.
4574         (struct type) <length>: Update comment.
4575
4576 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4577
4578         * valprint.c (generic_val_print): Factor out complex
4579         printing code to ...
4580         (generic_val_print_complex): ... this new function.
4581
4582 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4583
4584         * valprint.c (generic_val_print): Factor out decfloat
4585         printing code to ...
4586         (generic_val_print_decfloat): ... this new function.
4587
4588 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4589
4590         * valprint.c (generic_val_print): Factor out float
4591         printing code to ...
4592         (generic_val_print_float): ... this new function.
4593
4594 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4595
4596         * valprint.c (generic_val_print): Factor out char
4597         printing code to ...
4598         (generic_val_print_char): ... this new function.
4599
4600 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4601
4602         * valprint.c (generic_val_print): Factor out integer
4603         printing code to ...
4604         (generic_val_print_int): ... this new function.
4605
4606 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4607
4608         * valprint.c (generic_val_print): Factor out bool
4609         printing code to ...
4610         (generic_val_print_bool): ... this new function.
4611
4612 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4613
4614         * valprint.c (generic_val_print): Factor out function/method
4615         printing code to ...
4616         (generic_val_print_func): ... this new function.
4617
4618 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4619
4620         * valprint.c (generic_val_print): Factor out flags
4621         printing code to ...
4622         (generic_val_print_flags): ... this new function.
4623
4624 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4625
4626         * valprint.c (generic_val_print): Factor out enum
4627         printing code to ...
4628         (generic_val_print_enum): ... this new function.
4629
4630 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4631
4632         * valprint.c (generic_val_print): Factor out reference
4633         printing code to ...
4634         (generic_val_print_ref): ... this new function.
4635
4636 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4637
4638         * valprint.c (generic_val_print): Factor out memberptr
4639         printing code to ...
4640         (generic_val_print_memberptr): ... this new function.
4641
4642 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4643
4644         * valprint.c (generic_val_print): Factor out pointer
4645         printing code to ...
4646         (generic_val_print_ptr): ... this new function.
4647
4648 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4649
4650         * valprint.c (generic_val_print): Factor out array
4651         printing code to ...
4652         (generic_val_print_array): ... this new function.
4653
4654 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
4655
4656         * valprint.c (generic_val_print): Factor out
4657         print_unpacked_pointer code to ...
4658         (print_unpacked_pointer): ... this new function.
4659
4660 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
4661
4662         * event-top.c (handle_sigterm): Don't inspect
4663         target_can_async_p.  Always set the quit flag and always mark
4664         the async signal handler.
4665
4666 2015-07-27  Yao Qi  <yao.qi@linaro.org>
4667
4668         * Makefile.in (REMOTE_EXAMPLES): Remove it.
4669
4670 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
4671
4672         * remote.c (read_ptid): Return null_ptid when no thread id
4673         is found.
4674         (remote_current_thread): Add log warning for malformed
4675         qC reply.
4676         (remote_start_remote): Add log warning when current thread
4677         not found.
4678
4679 2015-07-24  Pedro Alves  <palves@redhat.com>
4680
4681         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
4682         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
4683         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
4684
4685 2015-07-24  Pedro Alves  <palves@redhat.com>
4686
4687         PR gdb/18717
4688         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
4689         is resumed, and extend the debug log.
4690
4691 2015-07-24  Pedro Alves  <palves@redhat.com>
4692
4693         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
4694
4695 2015-07-24  Pedro Alves  <palves@redhat.com>
4696
4697         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
4698         sys/ptrace.h.
4699         * alpha-linux-nat.c: Likewise.
4700         * amd64-linux-nat.c: Likewise.
4701         * arm-linux-nat.c: Likewise.
4702         * hppa-linux-nat.c: Likewise.
4703         * i386-linux-nat.c: Likewise.
4704         * ia64-linux-nat.c: Likewise.
4705         * linux-fork.c: Likewise.
4706         * linux-nat.c: Likewise.
4707         * m32r-linux-nat.c: Likewise.
4708         * m68klinux-nat.c: Likewise.
4709         * mips-linux-nat.c: Likewise.
4710         * nat/linux-btrace.c: Likewise.
4711         * nat/linux-ptrace.c: Likewise.
4712         * nat/linux-ptrace.h
4713         * nat/mips-linux-watch.c: Likewise.
4714         * nat/x86-linux-dregs.c: Likewise.
4715         * ppc-linux-nat.c: Likewise.
4716         * s390-linux-nat.c: Likewise.
4717         * spu-linux-nat.c: Likewise.
4718         * tilegx-linux-nat.c: Likewise.
4719         * x86-linux-nat.c: Likewise.
4720         * xtensa-linux-nat.c: Likewise.
4721
4722 2015-07-24  Pedro Alves  <palves@redhat.com>
4723
4724         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
4725         __ptrace_request as first parameter type instead of int.
4726         (PTRACE_TYPE_ARG1): Define.
4727         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
4728         that casts first argument to PTRACE_TYPE_ARG1.
4729         * config.in: Regenerate.
4730         * configure: Regenerate.
4731
4732 2015-07-24  Pedro Alves  <palves@redhat.com>
4733
4734         * gdb_ptrace.h: Move ...
4735         * nat/gdb_ptrace.h: ... here.
4736         * inf-ptrace.c: Adjust.
4737
4738 2015-07-24  Pedro Alves  <palves@redhat.com>
4739
4740         * acinclude.m4: Include ptrace.m4.
4741         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
4742         * ptrace.m4: ... to this new file.
4743
4744 2015-07-23  Doug Evans  <dje@google.com>
4745
4746         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
4747         (load_cu): Handle dummy CUs.
4748         (dw2_do_instantiate_symtab, process_queuef): Ditto.
4749         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
4750
4751 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
4752
4753         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
4754         documentation to say that it returns a list rather than
4755         a FrozenSet.
4756         (linetable_object_methods): Update the docstring of the
4757         "source_line" entry.
4758
4759 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
4760
4761         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
4762         type to the recursive call instead of the original (maybe
4763         TYPE_CODE_TYPEDEF) type.
4764
4765 2015-07-23  Yao Qi  <yao.qi@linaro.org>
4766
4767         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
4768         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
4769         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
4770
4771 2015-07-21  Yao Qi  <yao.qi@linaro.org>
4772
4773         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
4774         Move it to nat/aarch64-linux-hw-point.c.
4775         (aarch64_linux_child_post_startup_inferior): Update.
4776         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
4777         New function.
4778         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
4779         Declare it.
4780
4781 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
4782
4783         * common/btrace-common.c (btrace_data_append): Change case label.
4784
4785 2015-07-20  Yao Qi  <yao.qi@linaro.org>
4786
4787         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
4788         Re-indent the code.
4789         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
4790         "unsigned long long".
4791
4792 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
4793
4794         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
4795         to be set for SEC_ALLOC sections too.
4796
4797 2015-07-17  Yao Qi  <yao.qi@linaro.org>
4798
4799         * Makefile.in (HFILES_NO_SRCDIR): Add
4800         nat/aarch64-linux-hw-point.h.
4801         (aarch64-linux-hw-point.o): New rule.
4802         * nat/aarch64-linux-hw-point.h: New file.
4803         * nat/aarch64-linux-hw-point.c: New file.
4804         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
4805         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
4806         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
4807         (AARCH64_HWP_ALIGNMENT): Likewise.
4808         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
4809         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
4810         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
4811         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
4812         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
4813         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
4814         (struct aarch64_debug_reg_state): Likewise.
4815         (struct arch_lwp_info): Likewise.
4816         (aarch64_linux_set_debug_regs): Likewise.
4817         (aarch64_notify_debug_reg_change): Remove static.
4818         (aarch64_align_watchpoint): Likewise.
4819         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
4820         (aarch64_watchpoint_length): Likewise.
4821         (aarch64_point_encode_ctrl_reg): Likewise
4822         (aarch64_point_is_aligned): Likewise.
4823         (aarch64_dr_state_insert_one_point): Likewise.
4824         (aarch64_dr_state_remove_one_point): Likewise.
4825         (aarch64_handle_breakpoint): Likewise.
4826         (aarch64_handle_aligned_watchpoint): Likewise.
4827         (aarch64_handle_unaligned_watchpoint): Likewise.
4828         (aarch64_handle_watchpoint): Likewise.
4829         * config/aarch64/linux.mh (NAT_FILE): Add
4830         aarch64-linux-hw-point.o.
4831
4832 2015-07-17  Yao Qi  <yao.qi@linaro.org>
4833
4834         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
4835         state and don't call aarch64_get_debug_reg_state.  All callers
4836         update.
4837         (aarch64_linux_insert_hw_breakpoint): Call
4838         aarch64_get_debug_reg_state earlier.
4839         (aarch64_linux_remove_hw_breakpoint): Likewise.
4840         (aarch64_handle_aligned_watchpoint): Add argument state and
4841         don't call aarch64_get_debug_reg_state.  All callers update.
4842         (aarch64_handle_unaligned_watchpoint): Likewise.
4843         (aarch64_handle_watchpoint): Add argument state.
4844         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
4845         earlier.
4846         (aarch64_linux_remove_watchpoint): Likewise.
4847
4848 2015-07-17  Yao Qi  <yao.qi@linaro.org>
4849
4850         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
4851         debug_printf.
4852         (aarch64_handle_unaligned_watchpoint): Likewise.
4853
4854 2015-07-17  Yao Qi  <yao.qi@linaro.org>
4855
4856         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
4857         argument type's type to 'enum target_hw_bp_type'.
4858         (aarch64_dr_state_remove_one_point): Likewise.
4859         (aarch64_handle_breakpoint): Likewise.
4860         (aarch64_linux_insert_hw_breakpoint): Likewise.
4861         (aarch64_linux_remove_hw_breakpoint): Likewise.
4862         (aarch64_handle_aligned_watchpoint): Likewise.
4863
4864 2015-07-17  Yao Qi  <yao.qi@linaro.org>
4865
4866         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
4867         ptid_get_pid instead of get_thread_id.
4868
4869 2015-07-17  Yao Qi  <yao.qi@linaro.org>
4870
4871         * remote.c (get_current_thread): Initialise ptid to null_ptid.
4872         (add_current_inferior_and_thread): Don't initialise ptid.
4873
4874 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
4875
4876         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
4877         unavailable if invalid.
4878
4879 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4880
4881         Revert the previous 6 commits:
4882         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
4883         Move gdb_regex* to common/
4884         Prepare linux_find_memory_regions_full & co. for move
4885         Move linux_find_memory_regions_full & co.
4886         gdbserver build-id attribute generator
4887         Validate symbol file using build-id
4888
4889 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
4890             Jan Kratochvil  <jan.kratochvil@redhat.com>
4891
4892         Validate symbol file using build-id.
4893         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
4894         and 'show validate-build-id'.  Add build-id attribute.
4895         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
4896         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
4897         * solib-frv.c (_initialize_frv_solib): Ditto.
4898         * solib-spu.c (set_spu_solib_ops): Ditto.
4899         * solib-svr4.c: Include rsp-low.h.
4900         (NOTE_GNU_BUILD_ID_NAME): New define.
4901         (svr4_validate): New function.
4902         (svr4_copy_library_list): Duplicate field build_id.
4903         (library_list_start_library): Parse 'build-id' attribute.
4904         (svr4_library_attributes): Add 'build-id' attribute.
4905         (_initialize_svr4_solib): Assign validate value.
4906         * solib-target.c (solib.h): Include.
4907         (_initialize_solib_target): Assign validate value.
4908         * solib.c (validate_build_id, show_validate_build_id): New.
4909         (solib_map_sections): Use ops->validate.
4910         (clear_so): Free build_id.
4911         (default_solib_validate): New function.
4912         (_initialize_solib): Add "validate-build-id".
4913         * solib.h (default_solib_validate): New declaration.
4914         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
4915         (target_so_ops): New field 'validate'.
4916
4917 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
4918             Jan Kratochvil  <jan.kratochvil@redhat.com>
4919
4920         gdbserver build-id attribute generator.
4921         * features/library-list-svr4.dtd (library-list-svr4): New
4922         'build-id' attribute.
4923
4924 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
4925             Jan Kratochvil  <jan.kratochvil@redhat.com>
4926
4927         Move linux_find_memory_regions_full & co.
4928         * linux-tdep.c (nat/linux-maps.h): Include.
4929         (gdb_regex.h): Remove the include.
4930         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
4931         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
4932         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
4933         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
4934         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
4935         and target/target.h.
4936         (struct smaps_vmflags, read_mapping, decode_vmflags)
4937         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
4938         (linux_find_memory_regions_full): Move from linux-tdep.c.
4939         * nat/linux-maps.h (read_mapping): New declaration.
4940         (linux_find_memory_region_ftype, enum filterflags): Moved from
4941         linux-tdep.c.
4942         (linux_find_memory_regions_full): New declaration.
4943         * target.c (target/target-utils.h): Include.
4944         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
4945         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
4946         definitions to target/target-utils.c.
4947         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
4948         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
4949         from target.c.
4950         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
4951         (read_alloc): New declaration.
4952         (read_stralloc_func_ftype): New typedef.
4953         (read_stralloc): New declaration.
4954         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
4955
4956 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
4957             Jan Kratochvil  <jan.kratochvil@redhat.com>
4958
4959         Prepare linux_find_memory_regions_full & co. for move.
4960         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
4961         (linux_find_memory_regions_full): Change signature and prepare
4962         for moving to linux-maps.
4963         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
4964         (linux_find_memory_regions_thunk): New.
4965         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
4966         (linux_find_memory_regions_gdb): New.
4967         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
4968         (linux_make_mappings_corefile_notes): Use
4969         linux_find_memory_regions_gdb.
4970         * target.c (read_alloc_pread_ftype): New typedef.
4971         (target_fileio_read_alloc_1_pread): New function.
4972         (read_alloc): Refactor from target_fileio_read_alloc_1.
4973         (read_stralloc_func_ftype): New typedef.
4974         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
4975         (read_stralloc): Refactored from target_fileio_read_stralloc.
4976         (target_fileio_read_stralloc): New implementation, use read_stralloc.
4977
4978 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4979
4980         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
4981         common/gdb_regex.h.
4982         (COMMON_OBS): Add gdb_regex.o.
4983         (gdb_regex.o): New.
4984         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
4985         --without-included-regex and USE_INCLUDED_REGEX.
4986         * common/gdb_regex.c: New file from utils.c functions.
4987         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
4988         file wrapping define name.
4989         * configure: Rebuilt.
4990         * configure.ac (gdb_use_included_regex, --without-included-regex)
4991         (USE_INCLUDED_REGEX): Move them to common/common.m4.
4992         * gdb_regex.h: Move it to common/gdb_regex.h.
4993         * utils.c: Remove include gdb_regex.h.
4994         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
4995         (compile_rx_or_error): Move them to common/gdb_regex.c.
4996
4997 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
4998             Jan Kratochvil  <jan.kratochvil@redhat.com>
4999
5000         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5001         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5002         common/target-utils.h.
5003         (COMMON_OBS): Add target-utils.o.
5004         (linux-maps.o, target-utils.o): New.
5005         * target/target-utils.c: New file.
5006         * target/target-utils.h: New file.
5007         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5008         * config/i386/linux64.mh (NATDEPFILES): Ditto.
5009         * nat/linux-maps.c: New file.
5010         * nat/linux-maps.h: New file.
5011
5012 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
5013             Pedro Alves <palves@redhat.com>
5014
5015         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5016         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5017         (perf_event_read_bts): Change the type of SIZE and READ.
5018         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5019         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
5020         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
5021         mmap page.
5022         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
5023         buffer size to UINT_MAX.
5024         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5025         DATA_TAIL.
5026         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5027         <last_head>: Change type.
5028         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5029         * common/btrace-common.c (btrace_data_append): Change the type of
5030         SIZE.
5031         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
5032         check.
5033
5034 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
5035
5036         * gdbtypes.h (CHECK_TYPEDEF): Remove.
5037         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5038         with check_typedef.
5039         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5040         (ada_array_length): Likewise.
5041         (find_parallel_type_by_descriptive_type): Likewise.
5042         (ada_check_typedef): Likewise.
5043         * arm-tdep.c (arm_return_in_memory): Likewise.
5044         * ax-gdb.c (gen_trace_static_fields): Likewise.
5045         (gen_struct_ref_recursive): Likewise.
5046         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5047         (variable: block COLONCOLON name): Likewise.
5048         (qualified_name: TYPENAME COLONCOLON name): Likewise.
5049         * c-lang.c (classify_type): Likewise.
5050         * c-typeprint.c (c_print_type): Likewise.
5051         (c_print_typedef): Likewise.
5052         (c_type_print_base): Likewise.
5053         * c-valprint.c (c_val_print): Likewise.
5054         * compile/compile-c-types.c (convert_type): Likewise.
5055         * compile/compile-object-load.c (get_out_value_type): Likewise.
5056         * completer.c (add_struct_fields): Likewise.
5057         (expression_completer): Likewise.
5058         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5059         (cp_lookup_nested_symbol_1): Likewise.
5060         (cp_lookup_nested_symbol): Likewise.
5061         * cp-valprint.c (cp_print_value_fields): Likewise.
5062         (cp_print_static_field): Likewise.
5063         * d-valprint.c (d_val_print): Likewise.
5064         * eval.c (evaluate_subexp_standard): Likewise.
5065         (evaluate_subexp_for_sizeof): Likewise.
5066         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5067         * f-typeprint.c (f_type_print_base): Likewise.
5068         * f-valprint.c (f_val_print): Likewise.
5069         * gdbtypes.c (get_discrete_bounds): Likewise.
5070         (create_array_type_with_stride): Likewise.
5071         (type_name_no_tag_or_error): Likewise.
5072         (lookup_struct_elt_type): Likewise.
5073         (get_unsigned_type_max): Likewise.
5074         (internal_type_vptr_fieldno): Likewise.
5075         (set_type_vptr_fieldno): Likewise.
5076         (internal_type_vptr_basetype): Likewise.
5077         (set_type_vptr_basetype): Likewise.
5078         (get_vptr_fieldno): Likewise.
5079         (is_integral_type): Likewise.
5080         (is_scalar_type): Likewise.
5081         (is_scalar_type_recursive): Likewise.
5082         (distance_to_ancestor): Likewise.
5083         (is_unique_ancestor_worker): Likewise.
5084         (check_types_equal): Likewise.
5085         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5086
5087 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5088
5089         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5090         also test for language_d.
5091         (dwarf2_compute_name): Likewise.
5092         (read_func_scope): Likewise.
5093         (read_structure_type): Likewise.
5094         (new_symbol_full): Likewise.
5095         (determine_prefix): Likewise.
5096         (read_import_statement): Use dot as the separator for language_d.
5097         (typename_concat): Likewise, but don't prefix the D main function.
5098
5099 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
5100
5101         * nat/linux-namespaces.c (setns): Rename from this ...
5102         (do_setns): ... to this.  Support calling setns if it exists.
5103         (mnsh_handle_setns): Call do_setns.
5104
5105 2015-07-13  Yao Qi  <yao.qi@linaro.org>
5106
5107         * exec.c (exec_file_attach): Add period at the end of error
5108         message.
5109
5110 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
5111
5112         * tui/tui-win.c (window_name_completer): New function.
5113         (focus_completer): Call window_name_completer.  All old content
5114         moved into window_name_completer.
5115         (winheight_completer): New function.
5116         (_initialize_tui_win): Rename variable.  Add completer to
5117         winheight command.  Update doc string on winheight.
5118
5119 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
5120
5121         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5122         all nios2 mach variants.
5123
5124 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
5125
5126         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5127         of target_read_memory.
5128
5129 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5130
5131         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5132         string copy.
5133         (parse_scrolling_args): Likewise.
5134
5135 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5136
5137         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5138         names in this function.
5139
5140 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5141
5142         * tui/tui-data.h (SRC_NAME): Convert to lower case.
5143         (CMD_NAME): Likewise.
5144         (DATA_NAME): Likewise.
5145         (DISASSEM_NAME): Likewise.
5146         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5147         (tui_set_win_height): Likewise.
5148         (parse_scrolling_args): Likewise.
5149
5150 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
5151
5152         * record-btrace.c (record_btrace_goto_begin)
5153         (record_btrace_goto_end, record_btrace_goto): Move call to
5154         print_stack_frame ...
5155         (record_btrace_set_replay): ... here.  Set stop_pc.
5156         * record-full.c (record_full_goto_entry): Set stop_pc.
5157
5158 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5159
5160         * NEWS: Mention support for tracepoints on aarch64-linux.
5161
5162 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5163
5164         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5165         function.  Return 1.
5166         (the_low_target): Install it.
5167
5168 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5169
5170         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5171         * gdb.trace/collection.exp: Likewise.
5172         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5173         * gdb.trace/mi-trace-unavailable.exp: Likewise.
5174         * gdb.trace/report.exp: Likewise.
5175         * gdb.trace/trace-break.exp: Likewise.
5176         * gdb.trace/unavailable.exp: Likewise.
5177         * gdb.trace/while-dyn.exp: Likewise.
5178
5179 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5180
5181         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5182         (aarch64_gen_return_address): New function.
5183         (aarch64_gdbarch_init): Hook it.
5184
5185 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5186
5187         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5188         swallow NOT_AVAILABLE_ERROR.
5189         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5190         available_p is not set.
5191         (aarch64_stub_frame_unwind_stop_reason): New function.
5192         (aarch64_stub_unwind): Install it.
5193
5194 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5195
5196         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5197         field.
5198         (aarch64_make_prologue_cache_1): New function, factored out from
5199         aarch64_make_prologue_cache.  Do not allocate cache.  Set
5200         available_p.
5201         (aarch64_make_prologue_cache): Reimplement wrapping
5202         aarch64_make_prologue_cache_1, and swallowing
5203         NOT_AVAILABLE_ERROR.
5204         (aarch64_prologue_frame_unwind_stop_reason): New function.
5205         Return UNWIND_UNAVAILABLE if available_p is not set.
5206         (aarch64_prologue_unwind): Install it.
5207         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5208         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
5209         frame_id_build_unavailable_stack if available_p is not set.
5210
5211 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5212
5213         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5214         fields.
5215         (aarch64_scan_prologue): Set prev_pc.
5216         (aarch64_make_prologue_cache): Set func.
5217         (aarch64_make_stub_cache): Set prev_pc.
5218         (aarch64_prologue_this_id): Remove local variables id, pc and
5219         func.  Read prev_pc and func from cache.
5220         (aarch64_stub_this_id): Read prev_pc from cache.
5221
5222 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5223
5224         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
5225         argument this_cache.  Remove unused local variables reg and
5226         unwound_fp.  Return early if this_cache is already set.  Set
5227         this_cache.
5228         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5229
5230 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5231
5232         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5233         New argument this_cache.  Return early if this_cache is already
5234         set.  Set this_cache.
5235         (aarch64_prologue_this_id): Update call to
5236         aarch64_make_prologue_cache.
5237         (aarch64_prologue_prev_register): Likewise.
5238         (aarch64_normal_frame_base): Likewise.
5239
5240 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5241
5242         * c-valprint.c (c_val_print): Factor out memberptr printing code
5243         from c_val_print to ...
5244         (c_val_print_memberptr): ... this new function.
5245
5246 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5247
5248         * c-valprint.c (c_val_print): Factor out int printing code to ...
5249         (c_val_print_int): ... this new function.
5250
5251 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5252
5253         * c-valprint.c (c_val_print): Factor out struct and union
5254         printing code to ...
5255         (c_val_print_struct): ... this new function ...
5256         (c_val_print_union): ... and this new function.
5257
5258 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5259
5260         * c-valprint.c (c_val_print): Factor out pointer printing code
5261         to ...
5262         (c_val_print_ptr): ... this new function.
5263
5264 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5265
5266         * c-valprint.c (c_valprint): Factor our array printing code from
5267         c_val_print to ...
5268         (c_val_print_array): ... this new function.
5269
5270 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5271
5272         * c-valprint.c (c_val_print): Factor out pointer printing code
5273         to ...
5274         (print_unpacked_pointer): ... this new function.
5275
5276 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5277
5278         * c-valprint.c (c_val_print): Remove an assignment to i and move
5279         its declaration.
5280
5281 2015-07-09  Yao Qi  <yao.qi@linaro.org>
5282
5283         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5284         argument ptid.  Update comments.  Caller update.
5285
5286 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
5287
5288         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5289         mnt packets.
5290
5291 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
5292
5293         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5294
5295 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
5296
5297         * progspace.c (delete_program_space): Add missing spaces.
5298
5299 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
5300
5301         * inferior.c (delete_inferior_1): Rename to ...
5302         (delete_inferior): ..., remove 'silent' parameter, delete
5303         program space when unused and remove call to prune_program_spaces.
5304         Remove the old, unused, delete_inferior.
5305         (delete_inferior_silent): Remove.
5306         (prune_inferiors): Change call from delete_inferior_1 to
5307         delete_inferior and remove 'silent' parameter. Remove call to
5308         prune_program_spaces.
5309         (remove_inferior_command): Idem.
5310         * inferior.h (delete_inferior_1): Rename to...
5311         (delete_inferior): ..., remove 'silent' parameter and remove the
5312         original delete_inferior.
5313         (delete_inferior_silent): Remove.
5314         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5315         delete_inferior_1 to delete_inferior and remove 'silent'
5316         parameter.
5317         * progspace.c (prune_program_spaces): Remove.
5318         (pspace_empty_p): Rename to...
5319         (program_space_empty_p): ... and make non-static.
5320         (delete_program_space): New.
5321         * progspace.h (prune_program_spaces): Remove declaration.
5322         (program_space_empty_p): New declaration.
5323         (delete_program_space): New declaration.
5324         * monitor.c (monitor_close): Replace call to
5325         delete_thread_silent and delete_inferior_silent with
5326         discard_all_inferiors.
5327
5328 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
5329
5330         * defs.h (deprecated_register_changed_hook): Remove prototype.
5331         * interps.c (clear_iterpreter_hooks): Remove reference to
5332         deprecated_register_changed_hook.
5333         * top.c (deprecated_register_changed_hook): Remove prototype.
5334         * valops.c (value_assign): Remove reference to
5335         deprecated_register_changed_hook.
5336         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5337         Add comment documenting the function.
5338         (tui_register_changed_observer): Define.
5339         (tui_install_hooks): Remove reference to
5340         deprecated_register_changed_hook.  Set
5341         tui_register_changed_observer.
5342         (tui_remove_hooks): Remove reference to
5343         deprecated_register_changed_hook.  Unset
5344         tui_register_changed_observer.
5345
5346 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5347
5348         PR compile/18484
5349         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5350
5351 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
5352
5353         PR exp/18617
5354         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5355
5356 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5357
5358         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5359
5360 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5361
5362         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5363         Use safe_strerror() instead of strerror().
5364
5365 2015-07-07  Yao Qi  <yao.qi@linaro.org>
5366
5367         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5368         * features/arm-with-m-fpa-layout.c: Regenerated.
5369         * features/arm-with-m-vfp-d16.xml: Likewise.
5370         * features/arm-with-m-vfp-d16.c: Regenerated.
5371         * features/arm-with-m.xml: Likewise.
5372         * features/arm-with-m.c: Regenerated.
5373         * features/arm-with-neon.xml: Likewise.
5374         * features/arm-with-neon.c: Regenerated.
5375         * features/arm-with-vfpv2.xml: Likewise.
5376         * features/arm-with-vfpv2.c: Regenerated.
5377         * features/arm-with-vfpv3.xml: Likewise.
5378         * features/arm-with-vfpv3.c: Regenerated.
5379
5380 2015-07-07  Yao Qi  <yao.qi@linaro.org>
5381
5382         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
5383         arm-linux-nat.c.
5384         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
5385         elf/external.h.
5386         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
5387         if target is 32-bit.
5388         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
5389         if target is 32-bit.
5390         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
5391         if target is 32-bit.
5392         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
5393         if target is 32-bit.
5394         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
5395         (aarch64_linux_read_description): Return the right target
5396         description.
5397         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
5398         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5399         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
5400         arm-linux-tdep.o.
5401
5402 2015-07-07  Yao Qi  <yao.qi@linaro.org>
5403
5404         * aarch32-linux-nat.c: New file.
5405         * aarch32-linux-nat.h: New file.
5406         * arm-linux-nat.c: Include aarch32-linux-nat.h.
5407         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
5408         aarch32_gp_regcache_supply.
5409         (store_regs): Move code to aarch32-linux-nat.c.  Call
5410         aarch32_gp_regcache_collect.
5411         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
5412         aarch32_vfp_regcache_supply.
5413         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
5414         aarch32_vfp_regcache_collect.
5415         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5416
5417 2015-07-07  Yao Qi  <yao.qi@linaro.org>
5418
5419         * arm-linux-nat.c (store_fpregister): Remove.
5420         (store_register): Likewise.
5421         (fetch_fpregister): Likewise.
5422         (fetch_register): Likewise.
5423         (arm_linux_store_inferior_registers): Call store_regs and
5424         store_fpregs instead.
5425         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
5426         fetch_regs instead.
5427
5428 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
5429
5430         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
5431         and focus commands.
5432
5433 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
5434
5435         * NEWS: Create a new section for the next release branch.
5436         Rename the section of the current branch, now that it has
5437         been cut.
5438
5439 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
5440
5441         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
5442         * version.in: Bump version to 7.10.50.DATE-cvs.
5443
5444 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
5445
5446         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
5447         breakpoints in a special way.
5448         (remove_breakpoint): Likewise.
5449         (mark_breakpoints_out): Likewise.
5450
5451 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
5452
5453         * doc/gdb.texinfo (TUI): Add comma after @xref.
5454
5455 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
5456
5457         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
5458         instead of casting the structure type.
5459
5460 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
5461
5462         * valops.c (search_struct_field): Remove OFFSET parameter.
5463         (value_cast_structs): Adjust calls to search_struct_field.
5464         (value_struct_elt): Same.
5465         (find_overload_match): Same.
5466
5467 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
5468
5469         * value.c (value_fetch_lazy): Update comment, change return
5470         value to void.
5471         * value.h (value_fetch_lazy): Change return value to void.
5472
5473 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
5474
5475         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
5476         (tui_win_name): Make parameter and result const.
5477         * tui/tui-data.h (tui_win_name): Make parameter and result const.
5478
5479 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
5480
5481         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
5482         use printf_unfiltered.
5483         (set_mpx_cmd): Add missing trailing space to command string
5484         literal.
5485         (_initialize_i386_tdep): Give the "mpx" prefix command its
5486         correct name.
5487
5488 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
5489
5490         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
5491         (enum rx_frame_type): New.
5492         (struct rx_prologue): Add new field `frame_type'.
5493         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
5494         parameter in the prologue struct.  Add code for recording
5495         locations of PC and PSW for fast interrupt and exception frames.
5496         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
5497         (rx_analyze_frame_prologue): Add `frame_type' parameter.
5498         (rx_frame_type): New function.
5499         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
5500         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
5501         `this_cache'.
5502         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
5503         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
5504         RX_FRAME_TYPE_FAST_INTERRUPT.
5505         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
5506         (rx_frame_sniffer, rx_exception_sniffer): New functions.
5507         (rx_frame_unwind): Use rx_frame_sniffer instead of
5508         default_frame_sniffer.
5509         (rx_frame_unwind): New unwinder.
5510         (rx_gdbarch_init): Register new unwinder.
5511
5512 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
5513
5514         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
5515         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
5516         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
5517         and RX_FPSW_REGNUM.
5518         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
5519
5520 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5521
5522         Fix GCC false warning.
5523         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
5524
5525 2015-07-02  Yao Qi  <yao.qi@linaro.org>
5526
5527         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
5528         typo in the debugging message.
5529
5530 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
5531
5532         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
5533         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
5534         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
5535         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
5536         (btrace_maint_clear): New.
5537         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
5538         (pt_print_packet, btrace_maint_decode_pt)
5539         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
5540         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
5541         (maint_btrace_packet_history_cmd)
5542         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5543         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
5544         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
5545         (maint_info_btrace_cmd, _initialize_btrace): New.
5546         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
5547         (btrace_maint_packet_history, btrace_maint_info): New.
5548         (btrace_thread_info) <maint>: New.
5549         * NEWS: Announce it.
5550
5551 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
5552
5553         * btrace.c (btrace_fetch): Append the new trace data.
5554         (btrace_clear): Clear the stored trace data.
5555         * btrace.h (btrace_thread_info) <data>: New.
5556         * common/btrace-common.h (btrace_data_clear)
5557         (btrace_data_append): New.
5558         * common/btrace-common.c (btrace_data_clear)
5559         (btrace_data_append): New.
5560
5561 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
5562
5563         * nat/linux-btrace.c (linux_enable_bts): Check for
5564         PERF_ATTR_SIZE_VER5.
5565         Check for data_offset and data_size fields.  Use them.
5566
5567 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
5568
5569         * NEWS: Announce new commands "record btrace pt" and "record pt".
5570         Announce new options "set|show record btrace pt buffer-size".
5571         * btrace.c: Include "rsp-low.h".
5572         Include "inttypes.h".
5573         (btrace_add_pc): Add forward declaration.
5574         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
5575         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
5576         (btrace_compute_ftrace_pt): New.
5577         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
5578         (check_xml_btrace_version): Update version check.
5579         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
5580         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
5581         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
5582         (btrace_pt_children): New.
5583         (btrace_children): Add support for "pt".
5584         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
5585         (btrace_conf_children): Add support for "pt".
5586         * btrace.h: Include "intel-pt.h".
5587         (btrace_pt_error): New.
5588         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
5589         (btrace_data_empty): Support BTRACE_FORMAT_PT.
5590         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
5591         (struct btrace_config_pt): New.
5592         (struct btrace_config)<pt>: New.
5593         (struct btrace_data_pt_config, struct btrace_data_pt): New.
5594         (struct btrace_data)<pt>: New.
5595         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
5596         (pt): New.
5597         * features/btrace.dtd (btrace)<pt>: New.
5598         (pt, pt-config, cpu): New.
5599         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
5600         (perf_event_pt_event_type, kernel_supports_pt)
5601         (linux_supports_pt): New.
5602         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
5603         (linux_enable_bts): Free tinfo on error.
5604         (linux_enable_pt): New.
5605         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
5606         (linux_disable_pt): New.
5607         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
5608         (linux_fill_btrace_pt_config, linux_read_pt): New.
5609         (linux_read_btrace): Support BTRACE_FORMAT_PT.
5610         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
5611         (struct btrace_target_info)<pt>: New.
5612         * record-btrace.c (set_record_btrace_pt_cmdlist)
5613         (show_record_btrace_pt_cmdlist): New.
5614         (record_btrace_print_pt_conf): New.
5615         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
5616         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
5617         (cmd_record_btrace_pt_start): New.
5618         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
5619         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
5620         (_initialize_record_btrace): Add new commands.
5621         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
5622         (remote_protocol_features): Add "Qbtrace:pt".
5623         Add "Qbtrace-conf:pt:size".
5624         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
5625         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
5626         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
5627         (_initialize_remote): Add new commands.
5628
5629 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
5630
5631         * configure.ac: check for libipt
5632         * configure: Regenerate.
5633         * config.in: Regenerate.
5634         * Makefile.in (LIBIPT): New.
5635         (CLIBS): Add $LIBIPT.
5636         * NEWS: document new configure options
5637
5638 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5639
5640         * compile/compile-object-load.c (compile_object_load): Replace debug
5641         message "lookup undefined ELF symbol" by 3 more specific messages.
5642
5643 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
5644
5645         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
5646         (rl78_register_type): Add case for RL78_PSW_REGNUM.
5647         (rl78_gdbarch_init): Initialize rl78_psw_type.
5648
5649 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
5650
5651         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
5652         Update commentary.  Always refresh the registers when frame
5653         information has changed.
5654         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
5655         Change return type to int.  Return 1 if frame information has
5656         changed, 0 otherwise.
5657         (tui_before_prompt): Update commentary.
5658         * tui/tui-stack.h (tui_show_frame_info): Change return type to
5659         int.
5660
5661 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
5662
5663         PR tui/13378
5664         * frame.c (select_frame): Remove reference to
5665         deprecated_selected_frame_level_changed_hook.
5666         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
5667         declaration.
5668         * stack.c (deprecated_selected_frame_level_changed_hook):
5669         Likewise.
5670         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
5671         Rename to ...
5672         (tui_refresh_frame_and_register_information): ... this.  Bail
5673         out if there is no stack.  Don't update register information
5674         unless registers_too_p is true.
5675         (tui_print_frame_info_listing_hook): Rename to ...
5676         (tui_dummy_print_frame_info_listing_hook): ... this.
5677         (tui_before_prompt): New function.
5678         (tui_normal_stop): New function.
5679         (tui_before_prompt_observer): New observer.
5680         (tui_normal_stop_observer): New observer.
5681         (tui_install_hooks): Set
5682         deprecated_print_frame_info_listing_hook to
5683         tui_dummy_print_frame_info_listing_hook.  Register
5684         tui_before_prompt_observer to call tui_before_prompt and
5685         tui_normal_stop_observer to call tui_normal_stop.  Remove
5686         reference to deprecated_selected_frame_level_changed_hook.
5687         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
5688         and tui_normal_stop_observer.  Remove reference to
5689         deprecated_selected_frame_level_changed_hook.
5690
5691 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
5692
5693         PR tui/13378
5694         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
5695         return an int instead of void.  Return whether the locator
5696         window has changed.
5697         (tui_show_frame_info): If the locator info has not changed, then
5698         bail out early to avoid refreshing the windows.
5699
5700 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
5701
5702         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
5703         LOCATOR_WIN to tui_alloc_content.
5704
5705 2015-06-30  Yao Qi  <yao.qi@linaro.org>
5706
5707         PR tdep/18605
5708         * arm-tdep.c (arm_get_next_pc_raw): Break for media
5709         instructions.
5710
5711 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
5712
5713         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
5714         (rx_dwarf_reg_to_regnum): New function.
5715         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
5716         unwinding.
5717
5718 2015-06-29  Pedro Alves  <palves@redhat.com>
5719
5720         PR threads/18127
5721         * infcall.c (run_inferior_call): On infcall success, if the thread
5722         was marked stopped before, reset it back to stopped.
5723         * infrun.c (resume): Don't suppress the set_running calls when
5724         doing an infcall.
5725         (normal_stop): Only discard the finish_thread_state cleanup if the
5726         infcall succeeded.
5727
5728 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
5729
5730         * MAINTAINERS (Write After Approval): Update my email address.
5731
5732 2015-06-26  Keith Seitz  <keiths@redhat.com>
5733             Doug Evans  <dje@google.com>
5734
5735         PR 16253
5736         * block.c (block_lookup_symbol): For non-function blocks,
5737         continue to search for a symbol with an exact domain match
5738         Otherwise, return any previously found "best domain" symbol.
5739         (block_lookup_symbol_primary): Likewise.
5740
5741 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
5742
5743         * NEWS: Mention the new option "history remove-duplicates".
5744         * top.c (history_remove_duplicates): New static variable.
5745         (show_history_remove_duplicates): New static function.
5746         (gdb_add_history): Conditionally remove duplicate history
5747         entries.
5748         (init_main): Add "history remove-duplicates" option.
5749
5750 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
5751
5752         * tui/tui-win.c (focus_completer): New static function.
5753         (_initialize_tui_win): Set the completion function of the
5754         "focus" command to focus_completer.
5755
5756 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5757
5758         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
5759         and language_asm..
5760         * symtab.c (find_function_start_sal): Likewise.
5761
5762 2015-06-25  Gary Benson  <gbenson@redhat.com>
5763
5764         * solib.c (solib_find_1): Set local variable sysroot to NULL if
5765         it is the empty string after trailing slashes have been stripped.
5766
5767 2015-06-25  Gary Benson  <gbenson@redhat.com>
5768
5769         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
5770         * infrun.c (follow_exec): Likewise.
5771         * remote.c (remote_filesystem_is_local): Likewise.
5772         * solib.c (solib_find_1): Likewise.
5773
5774 2015-06-24  Keith Seitz  <keiths@redhat.com>
5775
5776         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
5777         return value from lrealpath.
5778
5779 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
5780
5781         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
5782
5783 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
5784
5785         * remote-sim.c: Include gdb_bfd.h.
5786         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
5787         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
5788
5789 2015-06-24  Yao Qi  <yao.qi@linaro.org>
5790
5791         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
5792         set_gdbarch_get_siginfo_type.
5793         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5794         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5795         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5796         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
5797         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
5798         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5799         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
5800         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
5801         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
5802         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
5803
5804 2015-06-24  Gary Benson  <gbenson@redhat.com>
5805
5806         * common/buffer.c (stdint.h): Do not include.
5807         * common/print-utils.c (stdint.h): Likewise.
5808         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
5809         * compile/compile-c-types.c (gdb_assert.h): Likewise.
5810         * ft32-tdep.c (gdb_assert.h): Likewise.
5811         * guile/scm-utils.c (stdint.h): Likewise.
5812         * i386-linux-tdep.c (stdint.h): Likewise.
5813         * i386-tdep.c (stdint.h): Likewise.
5814         * nat/linux-btrace.c (stdint.h): Likewise.
5815         * nat/linux-btrace.h (stdint.h): Likewise.
5816         * nat/linux-ptrace.c (stdint.h): Likewise.
5817         * nat/mips-linux-watch.h (stdint.h): Likewise.
5818         * ppc-linux-nat.c (stdint.h): Likewise.
5819         * python/python-internal.h (stdint.h): Likewise.
5820         * stub-termcap.c (stdlib.h): Likewise.
5821         * target/target.h (stdint.h): Likewise.
5822         * xtensa-linux-nat.c (stdint.h): Likewise.
5823
5824 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
5825
5826         * top.c (init_history): Look at errno after calling strtol to
5827         properly map large GDBHISTSIZE values to infinity.
5828
5829 2015-06-23  Doug Evans  <dje@google.com>
5830
5831         * inferior.h (struct inferior_suspend_state): Delete, unused.
5832         All references deleted.
5833
5834 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
5835
5836         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
5837         (microblaze_push_dummy_call): Likewise.
5838         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
5839         and set_gdbarch_push_dummy_call.
5840
5841 2015-06-23  Yao Qi  <yao.qi@linaro.org>
5842
5843         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
5844         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
5845         (amd64_linux_store_inferior_registers): Likewise.
5846         * arm-linux-nat.c (fetch_fpregister): Likewise.
5847         (fetch_fpregs, store_fpregister): Likewise.
5848         (store_fpregister, store_fpregs): Likewise.
5849         (fetch_register, fetch_regs): Likewise.
5850         (store_register, store_regs): Likewise.
5851         (fetch_vfp_regs, store_vfp_regs): Likewise.
5852         (arm_linux_read_description): Check have_ptrace_getregset is
5853         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
5854         or TRIBOOL_FALSE.
5855         * i386-linux-nat.c (fetch_xstateregs): Check
5856         have_ptrace_getregset is not TRIBOOL_TRUE.
5857         (store_xstateregs): Likewise.
5858         * linux-nat.c (have_ptrace_getregset): Change its type to
5859         enum tribool.
5860         * linux-nat.h (tribool): New enum.
5861         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
5862         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
5863
5864 2015-06-19  Doug Evans  <dje@google.com>
5865
5866         * NEWS: Mention Sun's version of stabs is no longer supported.
5867         * elfread.c (free_elfinfo): Delete.  All uses updated.
5868         (elfstab_offset_sections): Delete.  All uses updated.
5869         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
5870         * psympriv.h (partial_symtab) <section_offsets>: Delete.
5871         All uses updated.
5872         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
5873         All callers updated.
5874
5875 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
5876
5877         * common/rsp-low.c (needs_escaping): New.
5878         (remote_escape_output): Add unit_size parameter. Refactor to
5879         support multi-byte addressable units.  Rename parameters.
5880         * common/rsp-low.h (remote_escape_output): Add unit_size
5881         parameter and rename others. Update doc.
5882         * remote.c (align_for_efficient_write): New.
5883         (remote_write_bytes_aux): Add unit_size parameter and use it.
5884         Rename some variables.  Update doc.
5885         (remote_xfer_partial): Get unit size and use it.
5886         (remote_read_bytes_1): Add unit_size parameter and use it.
5887         Rename some variables. Update doc.
5888         (remote_write_bytes): Same.
5889         (remote_xfer_live_readonly_partial): Same.
5890         (remote_read_bytes): Same.
5891         (remote_flash_write): Update call to remote_write_bytes_aux.
5892         (remote_write_qxfer): Update call to remote_escape_output.
5893         (remote_search_memory): Same.
5894         (remote_hostio_pwrite): Same.
5895
5896 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
5897
5898         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
5899         locations as inserted.
5900         Update and expand comment about permanent locations.
5901         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
5902         Move comment to add_location_to_breakpoint.
5903         (update_global_location_list): Don't error out if a permanent
5904         breakpoint is not marked inserted.
5905         Don't error out if a non-permanent breakpoint location is inserted on
5906         top of a permanent breakpoint.
5907
5908 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
5909
5910         * breakpoint.c (make_breakpoint_permanent): Remove unused
5911         function.
5912         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
5913
5914 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
5915
5916         PR gdb/16999
5917         * NEWS: Mention new GDBHISTSIZE behavior.
5918         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
5919         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
5920
5921 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
5922
5923         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
5924         * top.c (init_history): Read from GDBHISTSIZE instead of
5925         HISTSIZE.
5926         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
5927
5928 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
5929
5930         * top.c (gdb_safe_append_history): Do not call
5931         history_truncate_file if the history is not stifled.
5932
5933 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5934
5935         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
5936         * syscalls/s390x-linux.xml: Likewise.
5937
5938 2015-06-16  Michael Eager  <eager@eagercon.com>
5939
5940         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
5941
5942 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
5943
5944         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
5945         target_terminal_ours_for_output() before calling
5946         tui_show_frame_info(), and restore the original terminal
5947         settings afterwards.
5948
5949 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
5950
5951         * arm-linux-nat.c: Include nat/linux-ptrace.h.
5952
5953 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
5954
5955         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
5956         memory unit size.
5957         (mi_cmd_data_write_memory_bytes): Same.
5958
5959 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
5960
5961         * corefile.c (write_memory): Update doc.
5962         * gdbcore.h (write_memory): Same.
5963
5964 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5965
5966         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
5967         (dump_mapping_p): Use it for parameter filterflags.
5968         (linux_find_memory_regions_full): Use it for variable filterflags.
5969
5970 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
5971             Jan Kratochvil  <jan.kratochvil@redhat.com>
5972
5973         Merge multiple hex conversions.
5974         * monitor.c: Include rsp-low.h.
5975         (fromhex): Remove definition.
5976
5977 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
5978             Jan Kratochvil  <jan.kratochvil@redhat.com>
5979
5980         Move utility functions to common/.
5981         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
5982         Move defs to common/common-utils.c.
5983         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
5984         (skip_to_space_const): Move decls to common/common-utils.h.
5985         * common/common-defs.h: Move include of common-types.h before
5986         common-utils.h.
5987         * common/common-utils.c: Include host-defs.h and ctype.h.
5988         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
5989         from utils.c.
5990         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
5991         cli/cli-utils.c.
5992         * common/common-utils.h (strtoulst): Move decl from utils.h.
5993         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
5994         Move from cli/cli-utils.h.
5995         * common/host-defs.h: Include limits.h.
5996         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
5997         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
5998         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
5999         common/common-utils.h.
6000         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6001         (strtoulst): Move to common/common-utils.c.
6002         * utils.h (strtoulst): Moved decl to common/common-utils.h.
6003
6004 2015-06-15  Yao Qi  <yao.qi@linaro.org>
6005
6006         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6007
6008 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
6009
6010         * build-id.c: Don't include elf-bfd.h.
6011         (build_id_bfd_get): Use bfd_build_id.
6012         (build_id_verify): Ditto.
6013         * build-id.h: Ditto.
6014         (find_separate_debug_file_by_buildid): Ditto.
6015         * python/py-objfile.c: Don't include elf-bfd.h.
6016         (objfpy_get_build_id) Use bfd_build_id.
6017         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6018         * coffread.c: Include build-id.h.
6019         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6020
6021 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6022
6023         * windows-nat.c (do_windows_fetch_inferior_registers)
6024         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6025         conditional with __CYGWIN__.
6026
6027 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6028
6029         * completer.c: Add arch-utils.h include.
6030         (enum reg_completer_targets): New enum.
6031         (reg_or_group_completer_1): New function containing old
6032         reg_or_group_completer, add and use new parameter to control what
6033         is completed on.  Use get_current_arch rather than architecture of
6034         currently selected frame.
6035         (reg_or_group_completer): Call new reg_or_group_completer_1.
6036         (reggroup_completer): Call new reg_or_group_completer_1.
6037         * completer.h (reggroup_completer): Add declaration.
6038         * tui/tui-regs.c: Add 'completer.h' include.
6039         (tui_reg_next_command): Renamed to...
6040         (tui_reg_next): ...this.  Adjust parameters and return rather than
6041         display new group.
6042         (tui_reg_prev_command): Renamed to...
6043         (tui_reg_prev): ...this.  Adjust parameters and return rather than
6044         display new group.
6045         (tui_reg_float_command): Delete.
6046         (tui_reg_general_command): Delete.
6047         (tui_reg_system_command): Delete.
6048         (tui_reg_command): Rewrite to perform switching of register group.
6049         Add header comment.
6050         (tuireglist): Remove.
6051         (tui_reggroup_completer): New function.
6052         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6053         creation of 'tui reg' command.
6054         * NEWS: Add comment about 'tui reg' changes.
6055
6056 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6057
6058         * target.c (target_read): Consider addressable unit size when
6059         reading from a memory object.
6060         (read_memory_robust): Same.
6061         (read_whatever_is_readable): Same.
6062         (target_write_with_progress): Consider addressable unit size
6063         when writing to a memory object.
6064         * target.h (target_read): Update documentation.
6065         (target_write): Add documentation.
6066
6067 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6068
6069         * arch-utils.h (default_addressable_memory_unit_size): New.
6070         * arch-utils.c (default_addressable_memory_unit_size): New.
6071         * gdbarch.sh (addressable_memory_unit_size): New.
6072         * gdbarch.h: Re-generate.
6073         * gdbarch.c: Re-generate.
6074
6075 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6076
6077         * target.c (target_read): Rename variables and use
6078         TARGET_XFER_E_IO.
6079         (target_read_with_progress): Same.
6080         (read_memory_robust): Constify parameters and rename
6081         variables.
6082         (read_whatever_is_readable): Constify parameters,
6083         rename variables, adjust formatting.
6084         * target.h (read_memory_robust): Constify parameters.
6085
6086 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6087
6088         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6089         synthetic (non-AltiVec) vector types.
6090         (ppc64_sysv_abi_return_value): Likewise.
6091
6092 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6093
6094         PR breakpoints/16465
6095         * breakpoint.c (create_breakpoint): Save extra_string for
6096         pending breakpoints.
6097
6098 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6099
6100         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6101         and bt_mask to CORE_ADDR.
6102
6103 2015-06-11  Gary Benson <gbenson@redhat.com>
6104
6105         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6106         (mnsh_recv_message): Likewise.
6107
6108 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6109
6110         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6111         long long int and plongest instead of %ll.
6112
6113 2015-06-11  Gary Benson <gbenson@redhat.com>
6114
6115         * nat/linux-namespaces.c (gdb_wait.h): New include.
6116         (sys/wait.h): Do not include.
6117
6118 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
6119
6120         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6121         end_sequence is true.
6122
6123 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6124
6125         Code cleanup.
6126         * solib-target.c (library_list_start_list): Use explicit NULL
6127         comparison.
6128
6129 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6130
6131         * solib-target.c (library_list_start_list): Do not dereference
6132         variable version in its initialization.  Make the VERSION check handle
6133         NULL.
6134         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6135
6136 2015-06-10  Gary Benson <gbenson@redhat.com>
6137
6138         * NEWS: Announce support for direct access of executable and
6139         shared library files when attaching to inferiors in containers
6140         on GNU/Linux systems.
6141
6142 2015-06-10  Gary Benson <gbenson@redhat.com>
6143
6144         * remote.c (struct remote_state) <fs_pid>: New field.
6145         (new_remote_state): Initialize the above.
6146         (PACKET_vFile_setfs): New enum value.
6147         (remote_hostio_set_filesystem): New function.
6148         (remote_hostio_open): Call the above.
6149         (remote_hostio_unlink): Likewise.
6150         (remote_hostio_readlink): Likewise.
6151         (_initialize_remote): Register new "set/show remote
6152         hostio-setfs-packet" command.
6153         * NEWS: Announce new vFile:setfs packet.
6154
6155 2015-06-10  Gary Benson <gbenson@redhat.com>
6156
6157         * linux-nat.c (nat/linux-namespaces.h): New include.
6158         (fileio.h): Likewise.
6159         (linux_nat_filesystem_is_local): New function.
6160         (linux_nat_fileio_pid_of): Likewise.
6161         (linux_nat_fileio_open): Likewise.
6162         (linux_nat_fileio_readlink): Likewise.
6163         (linux_nat_fileio_unlink): Likewise.
6164         (linux_nat_add_target): Initialize to_filesystem_is_local,
6165         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6166         (_initialize_linux_nat): New "set/show debug linux-namespaces"
6167         commands.
6168         * NEWS: Mention new "set/show debug linux-namespaces" commands.
6169
6170 2015-06-10  Gary Benson <gbenson@redhat.com>
6171
6172         * target.h (struct inferior): New forward declaration.
6173         (struct target_ops) <to_filesystem_is_local>: Update comment.
6174         (struct target_ops) <to_fileio_open>: New argument inf.
6175         Update comment.  All implementations updated.
6176         (struct target_ops) <to_fileio_unlink>: Likewise.
6177         (struct target_ops) <to_fileio_readlink>: Likewise.
6178         (target_filesystem_is_local): Update comment.
6179         (target_fileio_open): New argument inf.  Update comment.
6180         (target_fileio_unlink): Likewise.
6181         (target_fileio_readlink): Likewise.
6182         (target_fileio_read_alloc): Likewise.
6183         (target_fileio_read_stralloc): Likewise.
6184         * target.c (target_fileio_open): New argument inf.
6185         Pass inf to implementation.  Update debug printing.
6186         (target_fileio_unlink): Likewise.
6187         (target_fileio_readlink): Likewise.
6188         (target_fileio_read_alloc_1): New argument inf. Pass inf
6189         to target_fileio_open.
6190         (target_fileio_read_alloc): New argument inf. Pass inf to
6191         target_fileio_read_alloc_1.
6192         (target_fileio_read_stralloc): Likewise.
6193         * gdb_bfd.c (inferior.h): New include.
6194         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6195         argument with new argument "inferior".  Pass inferior to
6196         target_fileio_open.
6197         (gdb_bfd_open): Supply inferior argument to
6198         gdb_bfd_iovec_fileio_open.
6199         * linux-tdep.c (linux_info_proc): Supply inf argument to
6200         relevant target_fileio calls.
6201         (linux_find_memory_regions_full): Likewise.
6202         (linux_fill_prpsinfo): Likewise.
6203         * remote.c (remote_filesystem_is_local): Supply inf
6204         argument to remote_hostio_open.
6205         (remote_file_put): Likewise.
6206         (remote_file_get): Likewise.
6207         (remote_file_delete): Supply inf argument to
6208         remote_hostio_unlink.
6209
6210 2015-06-10  Gary Benson <gbenson@redhat.com>
6211
6212         * inf-child.c (inf_child_fileio_open): Replace comment.
6213         (inf_child_fileio_pwrite): Likewise.
6214         (inf_child_fileio_pread): Likewise.
6215         (inf_child_fileio_fstat): Insert blank line before comment.
6216         (inf_child_fileio_close): Replace comment.
6217         (inf_child_fileio_unlink): Likewise.
6218         (inf_child_fileio_readlink): Likewise.
6219         * remote.c (remote_hostio_open): Likewise.
6220         (remote_hostio_pread): Likewise.
6221         (remote_hostio_pwrite): Likewise.
6222         (remote_hostio_close): Likewise.
6223         (remote_hostio_unlink): Likewise.
6224         (remote_hostio_readlink): Likewise.
6225         (remote_hostio_fstat): Likewise.
6226         (remote_filesystem_is_local): Likewise.
6227         * target.c (target_fileio_open): Likewise.
6228         (target_fileio_pwrite): Likewise.
6229         (target_fileio_pread): Likewise.
6230         (target_fileio_fstat): Insert blank line before comment.
6231         (target_fileio_close): Replace comment.
6232         (target_fileio_unlink): Likewise.
6233         (target_fileio_readlink): Likewise.
6234         (target_fileio_read_alloc): Likewise.
6235         (target_fileio_read_stralloc): Likewise.
6236
6237 2015-06-10  Gary Benson <gbenson@redhat.com>
6238
6239         * linux-thread-db.c (nat/linux-namespaces.h): New include.
6240         (check_pid_namespace_match): Use linux_ns_same rather than
6241         linux_proc_pid_get_ns to spot PID namespace mismatches.
6242         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6243         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6244
6245 2015-06-10  Gary Benson <gbenson@redhat.com>
6246
6247         * configure.ac (AC_CHECK_FUNCS): Add setns.
6248         * config.in: Regenerate.
6249         * configure: Likewise.
6250         * nat/linux-namespaces.h: New file.
6251         * nat/linux-namespaces.c: Likewise.
6252         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6253         (linux-namespaces.o): New rule.
6254         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6255         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6256         * config/arm/linux.mh (NATDEPFILES): Likewise.
6257         * config/i386/linux.mh (NATDEPFILES): Likewise.
6258         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6259         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6260         * config/m32r/linux.mh (NATDEPFILES): Likewise.
6261         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6262         * config/mips/linux.mh (NATDEPFILES): Likewise.
6263         * config/pa/linux.mh (NATDEPFILES): Likewise.
6264         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6265         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6266         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6267         * config/s390/linux.mh (NATDEPFILES): Likewise.
6268         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6269         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6270         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6271         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6272
6273 2015-06-10  Gary Benson <gbenson@redhat.com>
6274
6275         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6276         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6277         (make_cleanup_close): Likewise.
6278         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6279         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6280         (make_cleanup_close): Likewise.
6281
6282 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6283
6284         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6285         from SuspendThread().
6286
6287 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6288
6289         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6290         from OutputDebugString.
6291
6292 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6293                         Mircea Gherzan  <mircea.gherzan@intel.com>
6294
6295         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6296         MPX_BT_MASK_32): New macros.
6297         (i386_mpx_set_bounds): New function that implements
6298         the command "set-mpx-bound".
6299         (i386_mpx_enabled): Helper function to test MPX availability.
6300         (i386_mpx_bd_base): Helper function to calculate the base directory
6301         address.
6302         (i386_mpx_get_bt_entry): Helper function to access a bound
6303         table entry.
6304         (i386_mpx_print_bounds): Effectively display bound information.
6305         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6306         "show mpx".
6307         (_initialize_i386_tdep):
6308         Add "bound" to the commands "show mpx" and "set mpx" commands.
6309         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6310         and "show mpx" commands.
6311         * NEWS: List new commands for MPX support.
6312
6313 2015-06-09  Gary Benson <gbenson@redhat.com>
6314
6315         * common/fileio.h (fileio_to_host_mode): New declaration.
6316         * common/fileio.c (fileio_to_host_mode): New Function.
6317         * inf-child.c (inf_child_fileio_open): Process mode argument
6318         with fileio_to_host_mode.
6319
6320 2015-06-09  Gary Benson <gbenson@redhat.com>
6321
6322         * common/fileio.c (fileio_mode_pack): Fix preprocessor
6323         conditional.
6324
6325 2015-06-05  Gary Benson <gbenson@redhat.com>
6326
6327         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6328         * remote.c (remote_filesystem_is_local): ...here.
6329
6330 2015-06-04  Yao Qi  <yao.qi@linaro.org>
6331
6332         * gdbarch.c: Regenerate it.
6333
6334 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6335
6336         * arch-utils.c (default_infcall_munmap): New.
6337         * arch-utils.h (default_infcall_munmap): New declaration.
6338         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6339         (munmap_list_free, munmap_listp_free_cleanup): New.
6340         (struct setup_sections_data): Add field munmap_list_headp.
6341         (setup_sections): Call munmap_list_add.
6342         (compile_object_load): New variable munmap_list_head, initialize
6343         setup_sections_data.munmap_list_headp, return munmap_list_head.
6344         * compile/compile-object-load.h (struct munmap_list): New declaration.
6345         (struct compile_module): Add field munmap_list_head.
6346         (munmap_list_free): New declaration.
6347         * compile/compile-object-run.c (struct do_module_cleanup): Add field
6348         munmap_list_head.
6349         (do_module_cleanup): Call munmap_list_free.
6350         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6351         * gdbarch.c: Regenerate.
6352         * gdbarch.h: Regenerate.
6353         * gdbarch.sh (infcall_munmap): New.
6354         * linux-tdep.c (linux_infcall_munmap): New.
6355         (linux_init_abi): Install it.
6356
6357 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
6358
6359         PR gdb/15564
6360         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6361
6362 2015-06-02  Yao Qi  <yao.qi@linaro.org>
6363
6364         * i386-linux-nat.c: Include linux-nat.h.
6365
6366 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6367             Jan Kratochvil  <jan.kratochvil@redhat.com>
6368
6369         PR symtab/18392
6370         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6371         assertion.
6372         * dwarf2loc.c (chain_candidate): Likewise.
6373
6374 2015-06-01  Yao Qi  <yao.qi@linaro.org>
6375
6376         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
6377         (store_vfp_regs): Use PTRACE_SETREGSET.
6378
6379 2015-06-01  Yao Qi  <yao.qi@linaro.org>
6380
6381         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
6382         (fetch_fpregs): Likewise.
6383         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
6384         (store_fpregs): Likewise.
6385
6386 2015-06-01  Yao Qi  <yao.qi@linaro.org>
6387
6388         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
6389         (fetch_regs): Likewise.
6390         (store_regs): Use PTRACE_SETREGSET.
6391         (store_register): Likewise.
6392
6393 2015-06-01  Yao Qi  <yao.qi@linaro.org>
6394
6395         * arm-linux-nat.c (arm_linux_read_description): Check whether
6396         kernel supports PTRACE_GETREGSET.
6397
6398 2015-06-01  Yao Qi  <yao.qi@linaro.org>
6399
6400         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
6401         * linux-nat.c: ... here.
6402         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
6403         to ...
6404         * linux-nat.h: ... here.
6405
6406 2015-06-01  Yao Qi  <yao.qi@linaro.org>
6407
6408         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
6409         * i386-linux-nat.c: Likewise.
6410         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
6411         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
6412         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6413         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
6414         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6415
6416 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
6417
6418         * go32-nat.c (go32_xfer_memory): Fix the return value to be
6419         compatible to what read_child and write_child return.  This
6420         unbreaks that DJGPP build of GDB which was broken since v7.7.
6421
6422 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
6423
6424         * MAINTAINERS (Write After Approval): Add Martin Galvan.
6425
6426 2015-05-29  Roland McGrath  <mcgrathr@google.com>
6427
6428         PR gdb/18464
6429         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
6430         rather than internal_error for an unrecognized value.
6431
6432 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
6433
6434         * xtensa-tdep.c (xtensa_pseudo_register_read)
6435         (xtensa_pseudo_register_write): Don't alias last pseudo register
6436         to a1.
6437
6438 2015-05-28  Don Breazeal  <donb@codesourcery.com>
6439
6440         * infrun.c (follow_fork_inferior): Ensure the use of
6441         process-style ptids (pid,0,0) in verbose/debug "Detaching"
6442         messages.
6443
6444 2015-05-28  Doug Evans  <dje@google.com>
6445
6446         * dwarf2read.c (record_line_ftype): Remove, duplicate.
6447
6448 2015-05-28  Yao Qi  <yao.qi@linaro.org>
6449
6450         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
6451         (arm_linux_fetch_inferior_registers): Use
6452         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
6453         (arm_linux_store_inferior_registers): Likewise.
6454         (arm_linux_read_description): Don't set
6455         arm_linux_has_wmmx_registers.
6456         * arm-tdep.c (arm_gdbarch_init): Set
6457         tdep->have_wmmx_registers according target descriptions.
6458         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
6459         field.
6460
6461 2015-05-28  Yao Qi  <yao.qi@linaro.org>
6462
6463         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
6464         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
6465         instead of arm_linux_vfp_register_count.
6466         (store_vfp_regs): Likewise.
6467         (arm_linux_fetch_inferior_registers): Likewise.
6468         (arm_linux_store_inferior_registers): Likewise.
6469         (arm_linux_read_description): Don't set
6470         arm_linux_vfp_register_count.
6471         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
6472         Adjust.
6473         * arm-tdep.c (arm_gdbarch_init): Add assert on
6474         vfp_register_count.
6475         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
6476         field to vfp_register_count.  All users updated.
6477
6478 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
6479
6480         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
6481         ELFOSABI_GNU binaries.
6482
6483 2015-05-27  Doug Evans  <dje@google.com>
6484
6485         * dwarf2read.c (lnp_state_machine): New typedef.
6486         (lnp_reader_state): New typedef.
6487         (dwarf_record_line_1): Renamed from dwarf_record_line.
6488         All callers updated.
6489         (dwarf_record_line): New function.
6490         (init_lnp_state_machine): New function.
6491         (check_line_address): Replace p_record_line parameter with state.
6492         All callers updated.
6493         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
6494         Update to record state in lnp_state_machine.
6495
6496 2015-05-27  Doug Evans  <dje@google.com>
6497
6498         * dwarf2read.c (record_line_ftype): New typedef.
6499         (check_line_address): New function.
6500         (dwarf_decode_lines_1): Call it.
6501
6502 2015-05-27  Doug Evans  <dje@google.com>
6503
6504         * NEWS: Mention "set debug dwarf-line".
6505         * dwarf2read.c (dwarf_line_debug): New static global.
6506         (add_include_dir): Add debug dwarf-line support.
6507         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
6508         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
6509
6510 2015-05-27  Doug Evans  <dje@google.com>
6511
6512         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
6513         All callers updated.
6514         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
6515         * cp-support.h (cp_lookup_nested_symbol): Update.
6516
6517 2015-05-27  Doug Evans  <dje@google.com>
6518
6519         PR symtab/18258
6520         * block.c (block_find_symbol): New function.
6521         (block_find_non_opaque_type): Ditto.
6522         (block_find_non_opaque_type_preferred): Ditto.
6523         * block.h (block_symbol_matcher_ftype): New typedef.
6524         (block_find_symbol): Declare.
6525         (block_find_non_opaque_type): Ditto.
6526         (block_find_non_opaque_type_preferred): Ditto.
6527         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
6528         * psymtab.c (psym_lookup_symbol): Ditto.
6529         * symtab.c (basic_lookup_transparent_type_1): New function.
6530         (basic_lookup_transparent_type): Call it.
6531
6532 2015-05-27  Yao Qi  <yao.qi@linaro.org>
6533
6534         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
6535         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
6536
6537 2015-05-27  Yao Qi  <yao.qi@linaro.org>
6538
6539         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
6540         before operator &&.
6541         (aarch64_record_load_store): Likewise.
6542
6543 2015-05-26  Doug Evans  <dje@google.com>
6544
6545         PR c++/18141, c++/18417.
6546         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
6547         a typedef.
6548
6549 2015-05-26  Doug Evans  <dje@google.com>
6550
6551         * NEWS: Add entries for command renamings.
6552         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
6553         All uses updated.
6554         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
6555         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
6556         All uses updated.
6557         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
6558         All callers updated.  Fix spelling of DWARF in help text.
6559         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
6560         All uses updated.
6561         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
6562         All uses updated.
6563         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
6564         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
6565         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
6566         All uses updated.
6567         (show_dwarf_always_disassemble): Renamed from
6568         show_dwarf2_always_disassemble.  All callers updated.
6569         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
6570         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
6571         "set/show dwarf max-cache-age".  Rename
6572         "set/show dwarf2 always-disassemble" to
6573         "set/show dwarf always-disassemble".  Rename
6574         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
6575         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
6576
6577 2015-05-26  Doug Evans  <dje@google.com>
6578
6579         PR python/18438
6580         * python/py-lazy-string.c (stpy_convert_to_value): Use
6581         gdbpy_gdb_memory_error not PyExc_MemoryError.
6582         (gdbpy_create_lazy_string_object): Ditto.
6583
6584 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
6585
6586         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
6587
6588 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
6589
6590         * tui/tui-regs.c (tui_reg_prev_command): New function.
6591         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
6592         * reggroups.c (reggroup_prev): New function.
6593         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
6594
6595 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
6596             Yao Qi  <yao.qi@linaro.org>
6597
6598         * aarch64-linux-tdep.c: Include linux-record.h and
6599         record-full.h.
6600         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
6601         (aarch64_syscall): New enum.
6602         (aarch64_canonicalize_syscall): New function.
6603         (aarch64_all_but_pc_registers_record): New function.
6604         (aarch64_linux_syscall_record): New function.
6605         (aarch64_linux_init_abi): Install AArch64 process record
6606         handler.  Update to handle syscall recording.
6607         * aarch64-tdep.c: Include record.h and record-full.h.
6608         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
6609         (struct aarch64_mem_r): Define.
6610         (aarch64_record_result): New enum.
6611         (struct insn_decode_record): Define.
6612         (insn_decode_record): New typedef.
6613         (aarch64_record_data_proc_reg): New function.
6614         (aarch64_record_data_proc_imm): New function.
6615         (aarch64_record_branch_except_sys): New function.
6616         (aarch64_record_load_store): New function.
6617         (aarch64_record_data_proc_simd_fp): New function.
6618         (aarch64_record_asimd_load_store): New function.
6619         (aarch64_record_decode_insn_handler): New function.
6620         (deallocate_reg_mem): New function.
6621         (aarch64_process_record): New function.
6622         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
6623         New field.
6624         (aarch64_process_record): New extern declaration.
6625         * configure.tgt: Add linux-record.o to gdb_target_obs.
6626         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
6627
6628 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
6629
6630         * NEWS: Add a note on process record-replay support on aarch64*-linux*
6631         targets.
6632
6633 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
6634
6635         * amd64-tdep.c: Replace in_function_epilogue_p with
6636         stack_frame_destroyed_p throughout.
6637         * arch-utils.c: Ditto.
6638         * arch-utils.h: Ditto.
6639         * arm-tdep.c: Ditto.
6640         * breakpoint.c: Ditto.
6641         * gdbarch.sh: Ditto.
6642         * hppa-tdep.c: Ditto.
6643         * i386-tdep.c: Ditto.
6644         * mips-tdep.c: Ditto.
6645         * nios2-tdep.c: Ditto.
6646         * rs6000-tdep.c: Ditto.
6647         * s390-linux-tdep.c: Ditto.
6648         * score-tdep.c: Ditto.
6649         * sh-tdep.c: Ditto.
6650         * sparc-tdep.c: Ditto.
6651         * sparc-tdep.h: Ditto.
6652         * sparc64-tdep.c: Ditto.
6653         * spu-tdep.c: Ditto.
6654         * tic6x-tdep.c: Ditto.
6655         * tilegx-tdep.c: Ditto.
6656         * xstormy16-tdep.c: Ditto.
6657         * gdbarch.c, gdbarch.h: Re-generated.
6658
6659 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
6660
6661         * NEWS: Mention 'tui enable' and 'tui disable'.
6662         * tui/tui.c (tui_enable_command): New function.
6663         (tui_disable_command): New function.
6664         (_initialize_tui): New function.
6665
6666 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6667
6668         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
6669
6670 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6671
6672         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
6673         buf_ptr is freed.
6674
6675 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6676
6677         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
6678         into ...
6679         (tui_set_layout_for_display_command): ...here, before calling
6680         tui_set_layout.  Only set the layout if gdb has not already
6681         entered the TUI_FAILURE state.
6682
6683 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6684
6685         * tui/tui-layout.c (layout_completer): New function.
6686         (_initialize_tui_layout): Set completer on layout command.
6687
6688 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6689
6690         * tui/tui-layout.c (tui_set_layout): Remove
6691         tui_register_display_type parameter.  Remove all checking of this
6692         parameter, and reindent function.  Update header comment.
6693         (tui_set_layout_for_display_command): Rename to...
6694         (tui_set_layout_by_name): ...this, and don't check for different
6695         register class types, don't pass a tui_register_display_type to
6696         tui_set_layout.  Update header comment.
6697         (layout_names): Remove register set specific names.
6698         * tui/tui-layout.h (tui_set_layout): Remove
6699         tui_register_display_type parameter.
6700         * tui/tui.c (tui_rl_change_windows): Don't pass a
6701         tui_register_display_type to tui_set_layout.
6702         (tui_rl_delete_other_windows): Likewise.
6703         (tui_enable): Likewise.
6704         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
6705         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
6706         (TUI_GENERAL_REGS_NAME): Remove.
6707         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
6708         (TUI_SPECIAL_REGS_NAME): Remove.
6709         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
6710         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
6711         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
6712         (enum tui_register_display_type): Remove.
6713         (struct tui_layout_def): Remove regs_display_type and
6714         float_regs_display_type fields.
6715         (struct tui_data_info): Remove regs_display_type field.
6716         (tui_layout_command): Use new name for
6717         tui_set_layout_for_display_command.
6718         * tui/tui-data.c (layout_def): Don't initialise removed fields.
6719         (tui_clear_win_detail): Don't initialise removed fields of
6720         win_info.
6721         * tui/tui-regs.c (tui_show_registers): Use new name for
6722         tui_set_layout_for_display_command.
6723         * tui/tui.h (tui_set_layout_for_display_command): Rename
6724         declaration to...
6725         (tui_set_layout_by_name): ...this.
6726         * printcmd.c (display_command): Remove tui related layout call,
6727         and reindent.
6728
6729 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
6730
6731         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
6732         (handle_inferior_event): New function.
6733
6734 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
6735
6736         * ada-lang.c (to_fixed_array_type): Rename local variable
6737         typename into type_name.
6738
6739 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
6740
6741         Fix ASAN crash for gdb.compile/compile.exp.
6742         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
6743
6744 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
6745
6746         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
6747         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
6748         * compile/compile-object-load.c (setup_sections, compile_object_load):
6749         Likewise.
6750         * compile/compile.c (compile_to_object): Likewise.
6751
6752 2015-05-16  Doug Evans  <xdje42@gmail.com>
6753
6754         * NEWS: Mention support for unbuffered Guile memory ports.
6755         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
6756         (ioscm_lseek_address): Improve overflow calculation.
6757         (gdbscm_memory_port_fill_input): Add assert.
6758         (gdbscm_memory_port_write): Handle unbuffered ports.
6759         Handle large writes identical to Guile's fport_write.
6760         (gdbscm_memory_port_seek): Fix seeking past end check.
6761         (gdbscm_memory_port_close): Handle closing unbuffered port.
6762         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
6763         (ioscm_init_memory_port): Handle unbuffered ports.
6764         (ioscm_reinit_memory_port): Ditto.
6765         (ioscm_init_memory_port): Update size calculation.
6766         (gdbscm_open_memory): Support zero sized ports.
6767
6768 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6769
6770         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
6771         variable compiler warnings.
6772
6773 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6774
6775         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
6776
6777 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6778             Phil Muldoon  <pmuldoon@redhat.com>
6779
6780         * NEWS (Changes since GDB 7.9): Add compile print.
6781         * compile/compile-c-support.c (add_code_header, add_code_footer)
6782         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
6783         COMPILE_I_PRINT_VALUE_SCOPE.
6784         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
6785         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
6786         New.
6787         * compile/compile-object-load.c: Include block.h.
6788         (get_out_value_type): New function.
6789         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
6790         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
6791         OUT_VALUE_TYPE.
6792         * compile/compile-object-load.h (struct compile_module): Add fields
6793         out_value_addr and out_value_type.
6794         * compile/compile-object-run.c: Include valprint.h and compile.h.
6795         (struct do_module_cleanup): Add fields out_value_addr and
6796         out_value_type.
6797         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
6798         COMPILE_I_PRINT_VALUE_SCOPE.
6799         (compile_object_run): Propagate out_value_addr and out_value_type.
6800         Pass OUT_VALUE_ADDR.
6801         * compile/compile.c: Include valprint.h.
6802         (compile_print_value, compile_print_command): New functions.
6803         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
6804         (_initialize_compile): Update compile code help text.  Install
6805         compile_print_command.
6806         * compile/compile.h (compile_print_value): New prototype.
6807         * defs.h (enum compile_i_scope_types): Add
6808         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
6809
6810 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6811
6812         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
6813         Rely on its parameter count.
6814         (compile_object_load): Replace lookup_minimal_symbol_text by
6815         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
6816         return value.
6817         * compile/compile-object-load.h (struct compile_module): Replace
6818         func_addr by func_sym.
6819         * compile/compile-object-run.c: Include block.h.
6820         (compile_object_run): Reset module variable after it is freed.  Use
6821         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
6822
6823 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6824
6825         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
6826         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
6827         (c_compute_program): Call generate_register_struct after typedefs.
6828         * compile/compile-loc2c.c (push, pushf_register_address)
6829         (pushf_register): Cast to GCC_UINTPTR.
6830         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
6831         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
6832         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
6833         * compile/compile.c (_initialize_compile): Enable warnings for
6834         COMPILE_ARGS.
6835
6836 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6837
6838         * cli/cli-script.c (execute_control_command): Update
6839         eval_compile_command caller.
6840         * compile/compile-object-load.c (compile_object_load): Add parameters
6841         scope and scope_data.  Set them.
6842         * compile/compile-object-load.h (struct compile_module): Add fields
6843         scope and scope_data.
6844         (compile_object_load): Add parameters scope and scope_data.
6845         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
6846         scope and scope_data.
6847         (compile_object_run): Propagate the fields scope and scope_data.
6848         * compile/compile.c (compile_file_command, compile_code_command):
6849         Update eval_compile_command callers.
6850         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
6851         * compile/compile.h (eval_compile_command): Add parameter scope_data.
6852         * defs.h (struct command_line): Add field scope_data.
6853
6854 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6855
6856         * printcmd.c (struct format_data): Move it to valprint.h.
6857         (print_command_parse_format, print_value): New functions from ...
6858         (print_command_1): ... here.  Call them.
6859         * valprint.h (struct format_data): Move it here from printcmd.c.
6860         (print_command_parse_format, print_value): New declarations.
6861
6862 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6863
6864         * compile/compile-object-load.c (compile_object_load): Add
6865         COMPILE_DEBUG message.
6866
6867 2015-05-15  Jerome Guitton  <guitton@adacore.com>
6868
6869         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
6870         index to get element instead of enum value.
6871         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
6872         of index to compute length, but enum values to compute bounds.
6873         (ada_array_length): Use enum position of index instead of enum value.
6874         (pos_atr): Move position computation to...
6875         (ada_evaluate_subexp): Use enum values to compute bounds.
6876         * gdbtypes.c (discrete_position): ...this new function.
6877         * gdbtypes.h (discrete_position): New function declaration.
6878         * valprint.c (val_print_array_elements): Call discrete_position
6879         to handle array indexed by non-contiguous enumeration types.
6880
6881 2015-05-15  Jerome Guitton  <guitton@adacore.com>
6882
6883         * ada-lang.c (find_parallel_type_by_descriptive_type):
6884         Go through typedefs during lookup.
6885         (to_fixed_array_type): Add support for non-bit packed arrays
6886         as variable-length fields.
6887
6888 2015-05-15  Pedro Alves  <palves@redhat.com>
6889             Simon Marchi  <simon.marchi@ericsson.com>
6890
6891         * event-loop.c (gdb_notifier) <next_file_handler,
6892         next_poll_fds_index>: New fields.
6893         (get_next_file_handler_to_handle_and_advance): New function.
6894         (delete_file_handler): If deleting the next file handler to
6895         handle, advance to the next file handler.
6896         (gdb_wait_for_event): Bail early if no event fired.  Poll file
6897         handlers in round-robin fashion.
6898
6899 2015-05-15  Pedro Alves  <palves@redhat.com>
6900
6901         * linux-tdep.c (linux_find_memory_regions_full): Rename local
6902         'private' to 'priv'.
6903
6904 2015-05-15  Pedro Alves  <palves@redhat.com>
6905
6906         * nat/linux-nat.h: Include "target/waitstatus.h".
6907
6908 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
6909
6910         * python/py-unwind.c (struct reg_info): Move out of ...
6911         (struct cached_frame_info): ... this scope.
6912         (pending_frame_object_type, unwind_info_object_type): Make extern.
6913
6914 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
6915
6916         * ada-lang.c (ada_value_primitive_packed_val): Make sure
6917         accumSize is never negative.
6918
6919 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
6920
6921         * tui/tui-command.c: Remove include of <ctype.h>.
6922         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
6923
6924 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
6925
6926         * dwarf2read.c (die_needs_namespace): Return 1 for
6927         DW_TAG_inlined_subroutine.
6928
6929 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6930
6931         * regcache.c (regcache_cpy_no_passthrough): New declaration.
6932         (regcache_cpy_no_passthrough): Make it static, add function comment.
6933         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
6934         (regcache_cpy_no_passthrough): Remove declaration.
6935
6936 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6937
6938         * gdbthread.h (struct thread_control_state): Update comment for
6939         proceed_to_finish.
6940         * infcall.c (run_inferior_call): Update comment about
6941         proceed_to_finish.
6942         * infcmd.c (get_return_value): Update comment about stop_registers.
6943         (finish_forward): Update comment about proceed_to_finish.
6944         * infrun.c (stop_registers): Remove.
6945         (clear_proceed_status, normal_stop): Remove stop_registers handling.
6946         * infrun.h (stop_registers): Remove.
6947
6948 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6949
6950         * infcall.c (struct dummy_frame_context_saver)
6951         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
6952         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
6953         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
6954         New.
6955         (call_function_by_hand_dummy): Move discard_cleanups of
6956         inf_status_cleanup before dummy_frame_push.  Call
6957         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
6958         Use dummy_frame_context_saver_get_regs instead of stop_registers.
6959         * infcall.h (struct dummy_frame_context_saver)
6960         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
6961         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
6962         New declarations.
6963         * infcmd.c: Include infcall.h.
6964         (get_return_value): Add parameter ctx_saver, use it instead of
6965         stop_registers.
6966         (print_return_value): Add parameter ctx_saver, pass it.
6967         (struct finish_command_continuation_args): Add field ctx_saver.
6968         (finish_command_continuation): Update print_return_value caller.
6969         (finish_command_continuation_free_arg): Free also ctx_saver.
6970         (finish_forward): Call dummy_frame_context_saver_setup.
6971         * inferior.h (struct dummy_frame_context_saver): New declaration.
6972         (get_return_value): Add parameter ctx_saver.
6973         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
6974         get_return_value caller.
6975
6976 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6977
6978         * dummy-frame.c (struct dummy_frame_dtor_list): New.
6979         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
6980         (remove_dummy_frame): Process dtor_list.
6981         (pop_dummy_frame): Process dtor_list.
6982         (register_dummy_frame_dtor): Maintain dtor_list.
6983         (find_dummy_frame_dtor): Handle dtor_list.
6984         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
6985         Update comments.
6986
6987 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6988
6989         * compile/compile-object-run.c (do_module_cleanup): Add parameter
6990         registers_valid.
6991         (compile_object_run): Update do_module_cleanup caller.
6992         * dummy-frame.c: Include infcall.h.
6993         (struct dummy_frame): Update dtor comment.
6994         (remove_dummy_frame): Call dtor.
6995         (pop_dummy_frame): Update dtor caller.
6996         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
6997         registers_valid.
6998
6999 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7000
7001         GDB 7.9.1 released.
7002
7003 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7004
7005         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
7006         Xmethods now being able to specify a result type to that new
7007         sectioin.
7008
7009 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7010
7011         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7012         first before resizing the window.
7013         * tui/tui.c (tui_enable): Likewise.
7014
7015 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7016
7017         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7018         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7019         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7020         dummy_dtor parameter.
7021         * infcall.h: Include dummy-frame.h.
7022         (call_function_by_hand_dummy_dtor_ftype): Remove.
7023         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7024         parameter.
7025
7026 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7027
7028         PR gdb/17820
7029         * top.c (history_size_setshow_var): Change type to signed.
7030         Initialize to -2.  Update documentation.
7031         (set_readline_history_size): Define.
7032         (set_history_size_command): Use it.  Remove logic for handling
7033         out-of-range sizes.
7034         (init_history): Use set_readline_history_size().  Test for a
7035         value of -2 instead of 0 when determining whether to set a
7036         default history size.
7037         (init_main): Decode the argument of the "size" command as a
7038         zuinteger_unlimited.
7039
7040 2015-05-12  Doug Evans  <dje@google.com>
7041
7042         * dwarf2read.c (struct file_entry): Tweak comments.
7043         (get_debug_line_section): Tweak comments.
7044
7045 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7046
7047         * NEWS: Announce fork support in the RSP and support
7048         for fork debugging in extended mode.
7049
7050 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7051
7052         * remote.c (remote_insert_fork_catchpoint): New function.
7053         (remote_remove_fork_catchpoint): New function.
7054         (remote_insert_vfork_catchpoint): New function.
7055         (remote_remove_vfork_catchpoint): New function.
7056         (pending_fork_parent_callback): New function.
7057         (remove_new_fork_child): New function.
7058         (remote_update_thread_list): Call remote_notif_get_pending_events
7059         and remove_new_fork_child.
7060         (extended_remote_kill): Kill fork child when killing the
7061         parent before follow_fork completes.
7062         (init_extended_remote_ops): Initialize target vector with
7063         new fork catchpoint functions.
7064
7065 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7066
7067         * remote.c (remove_vfork_event_p): New function.
7068         (remote_follow_fork): Add vfork event type to event checking.
7069         (remote_parse_stop_reply): New stop reasons "vfork" and
7070         "vforkdone" for RSP 'T' Stop Reply Packet.
7071
7072 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7073
7074         * linux-nat.c (linux_nat_ptrace_options): New function.
7075         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7076         Call linux_nat_ptrace_options and use different argument to
7077         linux_enable_event_reporting.
7078         (_initialize_linux_nat): Delete call to
7079         linux_ptrace_set_additional_flags.
7080         * nat/linux-ptrace.c (current_ptrace_options): Rename to
7081         supported_ptrace_options.
7082         (additional_flags): Delete variable.
7083         (linux_check_ptrace_features): Use supported_ptrace_options.
7084         (linux_test_for_tracesysgood, linux_test_for_tracefork):
7085         Likewise, and remove additional_flags check.
7086         (linux_enable_event_reporting): Change 'attached' argument to
7087         'options'.  Use supported_ptrace_options.
7088         (ptrace_supports_feature): Change comment.  Use
7089         supported_ptrace_options.
7090         (linux_ptrace_set_additional_flags): Delete function.
7091         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7092         Delete function prototype.
7093         * remote.c (remote_fork_event_p): New function.
7094         (remote_detach_pid): New function.
7095         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7096         if doing detach-on-fork.
7097         (remote_follow_fork): New function.
7098         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7099         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7100         (init_extended_remote_ops): Initialize to_follow_fork.
7101
7102 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7103
7104         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7105         from static to extern.
7106         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7107         * remote.c (anonymous enum): <PACKET_fork_event_feature,
7108         * PACKET_vfork_event_feature>: New enumeration constants.
7109         (remote_protocol_features): Add table entries for new packets.
7110         (remote_query_supported): Add new feature queries to qSupported
7111         packet.
7112
7113 2015-05-12  Gary Benson <gbenson@redhat.com>
7114
7115         * remote.c (remote_add_inferior): Call exec_file_locate_attach
7116         for fake PIDs as well as real ones.
7117         (remote_pid_to_exec_file): Send empty annex if PID is fake.
7118
7119 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
7120
7121         * NEWS (Python Scripting): Mention the new gdb.Value methods.
7122         * python/py-value.c (valpy_reference_value): New function.
7123         (valpy_const_value): Likewise.
7124         (value_object_methods): Add new methods.
7125         * value.c (make_cv_value): New function.
7126         * value.h (make_cv_value): Declare.
7127
7128 2015-05-08  Yao Qi  <yao@codesourcery.com>
7129             Sandra Loosemore  <sandra@codesourcery.com>
7130
7131         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7132         to 'lh->include_dirs' before accessing to it.
7133         (psymtab_include_file_name): Likewise.
7134         (dwarf_decode_lines_1): Likewise.
7135         (dwarf_decode_lines): Likewise.
7136         (file_file_name): Likewise.
7137
7138 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7139
7140         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7141         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7142         (nios2_linux_rt_sigreturn_init): Adjust base address of
7143         register save area.
7144
7145 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7146
7147         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7148         "trap 31" as the breakpoint instruction on all targets.
7149
7150 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7151
7152         * infcmd.c (print_return_value): Remove unused declaration.
7153
7154 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7155
7156         * dwarf2read.c (attr_to_dynamic_prop)
7157         <DW_AT_data_member_location>: Use read_type_die isntead of
7158         get_die_type.
7159
7160 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7161
7162         * ada-lang.c (ada_convert_actual): Add handling of formals
7163         passed inside an aligner type.
7164
7165 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7166
7167         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7168
7169 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
7170
7171         PR python/18291
7172         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7173         Print xmethod matcher status.
7174
7175 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7176
7177         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7178         register in the regcache when treating the PSWM register, and vice
7179         versa.
7180
7181 2015-05-07  Gary Benson <gbenson@redhat.com>
7182
7183         * linux-thread-db.c (struct thread_db_info)
7184         <td_ta_map_id2thr_p>: Remove field.
7185         (try_thread_db_load_1): Remove initialization for the above.
7186
7187 2015-05-07  Gary Benson <gbenson@redhat.com>
7188
7189         * linux-thread-db.c (struct thread_db_info)
7190         <td_thr_validate_p>: Remove field.
7191         (try_thread_db_load_1): Remove initialization for the above.
7192
7193 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7194
7195         * compile/compile-object-load.c (compile_object_load): Support
7196         mst_text_gnu_ifunc.
7197
7198 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7199
7200         * compile/compile.c (compile_to_object): Make the cmd_string parameter
7201         const.  Use new variables for the const compatibility.
7202         (eval_compile_command): Make the cmd_string parameter const.
7203         * compile/compile.h (eval_compile_command): Make the cmd_string
7204         parameter const.
7205
7206 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7207
7208         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
7209         comment.
7210         * top.c (deprecated_init_ui_hook): Delete.
7211         (gdb_init): Remove handling of deprecated_init_ui_hook.
7212         * interps.c (clear_interpreter_hooks): Remove handling of
7213         deprecated_init_ui_hook.
7214         * main.c (captured_main): Update comment.
7215
7216 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7217
7218         * solib.c (_initialize_solib): Add "info dll" alias creation.
7219         * windows-nat.c (set_windows_aliases): Delete.
7220         (_initialize_windows_nat): Remove deprecated_init_ui_hook
7221         assignment.
7222         * NEWS: Add news entry about "info dll" now being available
7223         on all platforms.
7224
7225 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7226
7227         * ada-lang.c (value_assign_to_component): Reformat and improve
7228         documentation. Remove all trailing spaces.
7229
7230 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7231
7232         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7233         Stop counting inlined frames as soon as an out-of-line function
7234         is found.
7235
7236 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
7237
7238         * dwarf2read.c (inherit_abstract_dies): Skip
7239         DW_TAG_GNU_call_site dies while inheriting children of an
7240         abstract DIE into a scope.
7241         (read_lexical_block_scope): Inherit abstract DIE's for
7242         lexical scopes.
7243
7244 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7245
7246         * ada-valprint.c (val_print_packed_array_elements): Delete
7247         variable "len".  Add a type-length check when comparing two
7248         consecutive elements of the array.  Use the element's actual
7249         length in call to value_contents_eq.
7250         * ada-lang.c (ada_value_primitive_packed_val): Always return
7251         a value whose type has been resolved.
7252
7253 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7254
7255         * ada-lang.c (ada_value_primitive_packed_val): Recompute
7256         BIT_SIZE and LEN if the size of the resolved type is smaller
7257         than BIT_SIZE * HOST_CHAR_BIT.
7258
7259 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7260
7261         * ada-lang.c (ada_value_primitive_packed_val): Use a more
7262         correct address in call to value_at.  Adjust call to
7263         value_address accordingly.
7264
7265 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7266
7267         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7268         to print it.
7269
7270 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7271
7272         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7273         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7274         pinfo->valaddr.
7275         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7276         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7277         (resolve_dynamic_type_internal): Set pinfo.valaddr.
7278         Add handling of addr_stack->valaddr.
7279         (resolve_dynamic_type): Add "valaddr" parameter.
7280         Set pinfo.valaddr field.
7281         * ada-lang.c (ada_discrete_type_high_bound): Update call to
7282         resolve_dynamic_type.
7283         (ada_discrete_type_low_bound): Likewise.
7284         * findvar.c (default_read_var_value): Likewise.
7285         * value.c (value_from_contents_and_address): Likewise.
7286
7287 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7288
7289         * gdbtypes.c (resolve_dynamic_array): Use
7290         create_array_type_with_stride instead of create_array_type.
7291
7292 2015-04-30  DJ Delorie  <dj@redhat.com>
7293
7294         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7295         rl78_decode_opcode
7296
7297 2015-04-29  Doug Evans  <dje@google.com>
7298
7299         PR python/18285
7300         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7301         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7302         EVAL_AVOID_SIDE_EFFECTS for xmethods.
7303         * extension-priv.h (struct extension_language_ops)
7304         <get_xmethod_result_type>: New member.
7305         * extension.c (get_xmethod_result_type): New function.
7306         * extension.h (get_xmethod_result_type): Declare.
7307         * python/py-xmethods.c (get_result_type_method_name): New static
7308         global.
7309         (py_get_result_type_method_name): Ditto.
7310         (gdbpy_get_xmethod_result_type): New function.
7311         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7312         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7313         * python/python.c (python_extension_ops): Add
7314         gdbpy_get_xmethod_result_type.
7315         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7316         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7317         xmethods.
7318         (value_x_unop): Ditto.
7319         * value.c (result_type_of_xmethod): New function.
7320         * value.h (result_type_of_xmethod): Declare.
7321
7322 2015-04-29  Gary Benson <gbenson@redhat.com>
7323
7324         * solib.c (solib_find_1): Allow fd argument to be NULL.
7325         (exec_file_find): Update comment.
7326         (solib_find): Likewise.
7327         * exec.c (exec_file_locate_attach): Use NULL as fd
7328         argument to exec_file_find to avoid having to close
7329         the opened file.
7330         * infrun.c (follow_exec): Likewise.
7331
7332 2015-04-28  Doug Evans  <dje@google.com>
7333
7334         PR python/18299
7335         * python/lib/gdb/printing.py (register_pretty_printer): Handle
7336         name or __name__ attributes.  Handle gdb module as first argument.
7337
7338 2015-04-28  Doug Evans  <dje@google.com>
7339
7340         PR python/18089
7341         * python/py-prettyprint.c (print_children): Verify result of children
7342         iterator.  Provide better error message.
7343         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7344         * python/python.c (gdbpy_print_python_errors_p): New function.
7345
7346 2015-04-28  Doug Evans  <dje@google.com>
7347
7348         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7349
7350 2015-04-28  Sasha Smundak  <asmundak@google.com>
7351
7352         * NEWS: Mention gdb.Type.optimized_out method.
7353         * python/py-type.c (typy_optimized_out):  New function.
7354
7355 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
7356
7357         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7358
7359 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
7360
7361         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7362         (initialize_utils): Move call of init_page_info() to ...
7363         * top.c (gdb_init): ... here.
7364
7365 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
7366
7367         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7368         (tui_sigwinch_handler): Still update our idea of
7369         the terminal's width and height even when TUI is not active.
7370
7371 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
7372
7373         * utils.h (set_screen_width_and_height): Declare.
7374         * utils.c (set_screen_width_and_height): Define.
7375         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
7376
7377 2015-04-28  Gary Benson <gbenson@redhat.com>
7378
7379         * infrun.c (solist.h): New include.
7380         (follow_exec): Use exec_file_find to prefix execd_pathname
7381         with gdb_sysroot.
7382
7383 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
7384
7385         * tui/tui-source.c (tui_set_source_content): Avoid calling
7386         strcpy() when offset is 0.
7387
7388 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
7389
7390         PR gdb/18155
7391         * tui/tui-data.c (tui_free_window): Don't free the locator
7392         window when passed an SRC_WIN or a DISASSEM_WIN.
7393
7394 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
7395
7396         * tui/tui-data.h (struct tui_win_element): Forward-declare.
7397         (tui_win_content): Move declaration.
7398         (struct tui_gen_win_info): Give 'content' field the
7399         type tui_win_content.
7400         * tui/tui-data.c (init_content_element): Remove redundant and
7401         erroneous casts.
7402         (tui_add_content_elements): Remove erroneous cast.
7403         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
7404         casts.
7405         (tui_get_begin_asm_address): Likewise.
7406         * tui/tui-regs.c (tui_show_registers): Likewise.
7407         (tui_show_register_group): Likewise.
7408         (tui_display_registers_from): Likewise.
7409         (tui_check_register_values): Likewise.
7410         * tui/tui-source.c (tui_set_source_content): Likewise.
7411         (tui_set_source_content_nil): Likewise.
7412         (tui_source_is_displayed): Likewise.
7413         * tui/tui-stack.c (tui_show_locator_content): Likewise.
7414         (tui_set_locator_fullname): Likewise.
7415         (tui_set_locator_info): Likewise.
7416         (tui_show_frame_info): Likewise.
7417         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
7418         (tui_show_source_line): Likewise.
7419         (tui_horizontal_source_scroll): Likewise.
7420         (tui_update_breakpoint_info): Likewise.
7421         (tui_set_exec_info_content): Likewise.
7422         (tui_show_exec_info_content): Likewise.
7423         (tui_alloc_source_buffer): Likewise.
7424         (tui_line_is_displayed): Likewise.
7425         (tui_addr_is_displayed): Likewise.
7426
7427 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
7428
7429         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
7430         event if PL_FLAG_EXEC is set.
7431         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
7432         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
7433         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
7434         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
7435         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
7436
7437 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
7438
7439         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
7440         [TDP_RFPPWAIT] New variable fbsd_pending_children.
7441         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
7442         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
7443         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
7444         [PT_LWPINFO] (fbsd_wait): New function.
7445         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
7446         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
7447         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
7448         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
7449         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
7450         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
7451         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
7452         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
7453         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
7454         "fbsd_wait".
7455         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
7456         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
7457         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
7458         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
7459         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
7460         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
7461         Set "to_post_attach" to "fbsd_post_attach".
7462
7463 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
7464
7465         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
7466         (fbsd_find_memory_regions): Mark static.
7467         (fbsd_nat_add_target): New function.
7468         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
7469         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
7470         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
7471         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
7472         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
7473         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
7474
7475 2015-04-27  Gary Benson <gbenson@redhat.com>
7476
7477         * objfiles.c (allocate_objfile): Do not attempt to expand name
7478         if name is a "target:" filename.
7479         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
7480         to load auto-load scripts for objfiles with "target:" filenames.
7481
7482 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7483
7484         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
7485         (enum s390_vector_abi_kind): New enum.
7486         (struct gdbarch_tdep)<vector_abi>: New field.
7487         (s390_effective_inner_type): Add parameter min_size.  Stop
7488         unwrapping if the inner type is smaller than min_size.
7489         (s390_function_arg_float): Adjust call to
7490         s390_effective_inner_type.
7491         (s390_function_arg_vector): New function.
7492         (s390_function_arg_integer): Adjust comment.
7493         (struct s390_arg_state)<vr>: New field.
7494         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
7495         arguments according to vector ABI when appropriate.
7496         (s390_push_dummy_call): Initialize the argument state's field
7497         'vr'.  Adjust calls to s390_handle_arg.
7498         (s390_register_return_value): Handle vector return values.
7499         (s390_return_value): Apply the "register" return value convention
7500         to a vector when appropriate.
7501         (s390_gdbarch_init): Initialize tdep->vector_abi.
7502         * NEWS: Announce S390 vector ABI support.
7503
7504 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7505
7506         * s390-linux-tdep.c (s390_return_value_convention): Remove
7507         function.  Inline its logic...
7508         (s390_return_value): ...here.  Instead, move the handling of the
7509         "register" return value convention...
7510         (s390_register_return_value): ...here.  New function.
7511
7512 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7513
7514         * s390-linux-tdep.c
7515         (is_float_singleton): Remove function.  Move the "singleton" part
7516         of the logic...
7517         (s390_effective_inner_type): ...here.  New function.
7518         (is_float_like): Remove function.  Inline its logic...
7519         (s390_function_arg_float): ...here.
7520         (is_pointer_like, is_integer_like, is_struct_like): Remove
7521         functions.  Inline their logic...
7522         (s390_function_arg_integer): ...here.
7523         (s390_function_arg_pass_by_reference): Remove function.
7524         (extend_simple_arg): Remove function.
7525         (alignment_of): Remove function.
7526         (struct s390_arg_state): New structure.
7527         (s390_handle_arg): New function.
7528         (s390_push_dummy_call): Move parameter placement logic to the new
7529         function s390_handle_arg.  Call it for calculating the stack area
7530         sizes first, and again for actually writing the parameters.
7531
7532 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7533
7534         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
7535           false if the argument is zero.
7536
7537 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
7538
7539         * ada-lang.c (template_to_static_fixed_type): Return input type
7540         when it is already fixed.  Cache the input type itself when not
7541         creating a static fixed copy.  Make it explicit that we never
7542         molestate the input type.
7543         * gdbtypes.c (resolve_dynamic_struct): Reset the
7544         TYPE_TARGET_TYPE field for resolved copies.
7545
7546 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
7547
7548         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
7549         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
7550         (template_to_static_fixed_type): Call ada_check_typedef only
7551         when necessary.
7552
7553 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
7554
7555         * cli/cli-dump.c (srec_dump_command): Add internationalization
7556         mark ups.
7557         (ihex_dump_command): Likewise.
7558         (tekhex_dump_command): Likewise.
7559         (binary_dump_command): Likewise.
7560         (binary_append_command): Likewise.
7561
7562 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
7563
7564         * cli/cli-dump.c (verilog_cmdlist): New variable.
7565         (dump_verilog_memory): New function.
7566         (dump_verilog_value): New function.
7567         (verilog_dump_command): New function.
7568         (_initialize_cli_dump): Add new commands to support verilog dump
7569         format.
7570         * NEWS: Add entry for "dump verilog".
7571
7572 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
7573
7574         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
7575         descriptive type when there is none.
7576
7577 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
7578
7579         * tui/tui-win.c (tui_async_resize_screen): Call
7580         rl_resize_terminal().
7581
7582 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
7583
7584         * windows-nat.c (handle_output_debug_string): Don't change
7585         current_event.dwThreadId.
7586         (get_windows_debug_event): Use thread_id, rather than relying on
7587         current_event.dwThreadId being changed.
7588
7589 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
7590
7591         * windows-nat.c (windows_continue): Report an error if
7592         ContinueDebugEvent() fails.
7593
7594 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
7595
7596         * windows-nat.c (windows_resume): Fix misspelling in debug output.
7597
7598 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
7599
7600         * windows-nat.c (get_windows_debug_event): Replace retval with
7601         thread_id throughout.  Update stale comment.
7602
7603 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
7604
7605         * windows-nat.c (get_windows_debug_event): Don't use ternary
7606         conditional operator.
7607
7608 2015-04-21  Pierre Muller  <muller@sourceware.org>
7609
7610         PR pascal/17815
7611         p-exp.y (yylex): Reorganize code to return the matched pattern
7612         for a field of this.
7613
7614 2015-04-21  Gary Benson <gbenson@redhat.com>
7615
7616         * common/fileio.h (fileio_to_host_openflags): New declaration.
7617         * common/fileio.c (fcntl.h): New include.
7618         (fileio_to_host_openflags): New function, factored out from...
7619         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
7620         Single use updated.
7621
7622 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
7623
7624         * rl78-tdep.c (RL78_SP_ADDR): Define.
7625         (opc_reg_to_gdb_regnum): New static function.
7626         (rl78_analyze_prologue): Recognize instructions forming slightly
7627         more interesting prologues.
7628
7629 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
7630
7631         Revert:
7632         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7633         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
7634         TYPE_CODE_REF types so that they are not considered as dynamic
7635         depending on the referenced type.
7636         (resolve_dynamic_type_internal): Likewise.
7637
7638 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
7639
7640         Revert:
7641         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7642         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
7643         "top_level" parameter.
7644         (resolve_dynamic_type_internal): Remove the unused "top_level"
7645         parameter.  Update call to is_dynamic_type_internal.
7646         (is_dynamic_type): Update call to is_dynamic_type_internal.
7647         (resolve_dynamic_range): Update call to
7648         resolve_dynamic_type_internal.
7649         (resolve_dynamic_union): Likewise.
7650         (resolve_dynamic_struct): Likewise.
7651         (resolve_dynamic_type): Likewise.
7652
7653 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
7654
7655         * breakpoint.c (update_dprintf_command_list): Remove duplicated
7656         xmalloc.
7657
7658 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7659
7660         * reply_mig_hack.awk: Robustify parsing.
7661
7662         * reply_mig_hack.awk: Don't bother to declare an intermediate
7663         function pointer variable.
7664
7665 2015-04-17  Doug Evans  <dje@google.com>
7666
7667         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
7668         to "exec_displacement" to avoid confusion with inner use of the name.
7669
7670 2015-04-17  Pedro Alves  <palves@redhat.com>
7671
7672         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
7673         if HW point of TYPE isn't supported.
7674
7675 2015-04-17  Yao Qi  <yao.qi@linaro.org>
7676             Pedro Alves  <palves@redhat.com>
7677
7678         * target.h (target_can_use_hardware_watchpoint): Update comments.
7679         Remove trailing ";".
7680
7681 2015-04-17  Gary Benson <gbenson@redhat.com>
7682
7683         * remote.c (remote_add_inferior): New argument try_open_exec.
7684         If nonzero, attempt to open the inferior's executable file as
7685         the main executable if no main executable is open already.
7686         All callers updated.
7687         * NEWS: Mention that GDB now supports automatic location and
7688         retrieval of executable + files from remote targets.
7689
7690 2015-04-17  Gary Benson <gbenson@redhat.com>
7691
7692         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
7693         * remote.c (PACKET_qXfer_exec_file): Likewise.
7694         (remote_protocol_features): Register the
7695         "qXfer:exec-file:read" feature.
7696         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
7697         (remote_pid_to_exec_file): New function.
7698         (init_remote_ops): Initialize to_pid_to_exec_file.
7699         (_initialize_remote): Register new "set/show remote
7700         pid-to-exec-file-packet" command.
7701         * NEWS: Announce new qXfer:exec-file:read packet.
7702
7703 2015-04-17  Gary Benson <gbenson@redhat.com>
7704
7705         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
7706         New declaration.
7707         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
7708         New function, factored out from...
7709         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
7710
7711 2015-04-17  Gary Benson <gbenson@redhat.com>
7712
7713         * exec.c (solist.h): New include.
7714         (exec_file_locate_attach): Prefix absolute executable
7715         paths with gdb_sysroot if set.
7716         * NEWS: Mention that executable paths may be prepended
7717         with sysroot.
7718
7719 2015-04-17  Gary Benson <gbenson@redhat.com>
7720
7721         * solist.h (exec_file_find): New declaration.
7722         * solib.c (solib_find_1): New function, factored out from...
7723         (solib_find): ...here.
7724         (exec_file_find): New function.
7725
7726 2015-04-17  Gary Benson <gbenson@redhat.com>
7727
7728         * gdbcore.h (exec_file_locate_attach): New declaration.
7729         * exec.c (exec_file_locate_attach): New function, factored
7730         out from...
7731         * infcmd.c (attach_command_post_wait): ...here.
7732
7733 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
7734
7735         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
7736
7737 2015-04-16  Yao Qi  <yao.qi@linaro.org>
7738
7739         * infrun.c (maybe_software_singlestep): Declare.
7740         (displaced_step_fixup): Call maybe_software_singlestep.
7741
7742 2015-04-15  Doug Evans  <dje@google.com>
7743
7744         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
7745
7746 2015-04-15  Doug Evans  <dje@google.com>
7747
7748         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
7749
7750 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
7751
7752         * python/lib/gdb/command/unwinders.py: Add parentheses.
7753
7754 2015-04-15  Yao Qi  <yao.qi@linaro.org>
7755
7756         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
7757
7758 2015-04-15  Yao Qi  <yao.qi@linaro.org>
7759
7760         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
7761
7762 2015-04-15  Yao Qi  <yao.qi@linaro.org>
7763
7764         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7765         dsc->insn_size instead of 4.
7766
7767 2015-04-14  Gary Benson <gbenson@redhat.com>
7768
7769         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
7770         * minidebug.c (lzma_stat): Likewise.
7771         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
7772         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
7773
7774 2015-04-13  Stan Shebs  <stanshebs@google.com>
7775
7776         * MAINTAINERS: Update my email address.
7777
7778 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
7779
7780         * amd64-tdep.c (amd64_target_description): New function.
7781         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
7782         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
7783         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
7784         x86 extended save area.
7785         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
7786         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
7787         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
7788         (_initialize_amd64fbsd_nat): Set "to_read_description" to
7789         "amd64fbsd_read_description".
7790         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
7791         (amd64fbsd_supply_xstateregset): New function.
7792         (amd64fbsd_collect_xstateregset): New function.
7793         Add "amd64fbsd_xstateregset".
7794         (amd64fbsd_iterate_over_regset_sections): New function.
7795         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
7796         "I386_FBSD_XSAVE_XCR0_OFFSET".
7797         Add "iterate_over_regset_sections" gdbarch method.
7798         Add "core_read_description" gdbarch method.
7799         * i386-tdep.c (i386_target_description): New function.
7800         * i386-tdep.h: Export i386_target_description and tdesc_i386.
7801         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
7802         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
7803         x86 extended save area.
7804         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
7805         * i386bsd-nat.h: Export i386bsd_xsave_len.
7806         * i386fbsd-nat.c (i386fbsd_read_description): New function.
7807         (_initialize_i386fbsd_nat): Set "to_read_description" to
7808         "i386fbsd_read_description".
7809         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
7810         (i386fbsd_core_read_description): New function.
7811         (i386fbsd_supply_xstateregset): New function.
7812         (i386fbsd_collect_xstateregset): New function.
7813         Add "i386fbsd_xstateregset".
7814         (i386fbsd_iterate_over_regset_sections): New function.
7815         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
7816         "I386_FBSD_XSAVE_XCR0_OFFSET".
7817         Add "iterate_over_regset_sections" gdbarch method.
7818         Add "core_read_description" gdbarch method.
7819         * i386fbsd-tdep.h: New file.
7820
7821 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7822
7823         * NEWS (Changes since GDB 7.9): Add removed -xdb.
7824         * breakpoint.c (command_line_is_silent): Remove xdb_commands
7825         conditional.
7826         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
7827         and lb.
7828         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
7829         va.
7830         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
7831         conditional.
7832         * defs.h (xdb_commands): Remove declaration.
7833         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
7834         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
7835         * infcmd.c (run_no_args_command, go_command): Remove.
7836         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
7837         * infrun.c (xdb_handle_command): Remove.
7838         (_initialize_infrun): Remove xdb_commands for lz and z.
7839         * main.c (xdb_commands): Remove variable.
7840         (captured_main): Remove "xdb" from long_options.
7841         (print_gdb_help): Remove --xdb from help.
7842         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
7843         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
7844         * stack.c (backtrace_full_command, args_plus_locals_info)
7845         (current_frame_command): Remove.
7846         (_initialize_stack): Remove xdb_commands for t, T and l.
7847         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
7848         * thread.c (_initialize_thread): Remove xdb_commands condition.
7849         * tui/tui-layout.c (tui_toggle_layout_command)
7850         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
7851         (_initialize_tui_layout): Remove xdb_commands for td and ts.
7852         * tui/tui-regs.c (tui_scroll_regs_forward_command)
7853         (tui_scroll_regs_backward_command): Remove.
7854         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
7855         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
7856         (_initialize_tui_win): Remove xdb_commands for U and w.
7857         * utils.c (pagination_on_command, pagination_off_command): Remove.
7858         (initialize_utils): Remove xdb_commands for am and sm.
7859
7860 2015-04-10  Pedro Alves  <palves@redhat.com>
7861
7862         * infrun.c (displaced_step_fixup): Switch to the event ptid
7863         earlier.  If the thread stopped for a watchpoint and the
7864         target/arch has non-continuable watchpoints, cancel the displaced
7865         step.
7866         (resume): Don't start a displaced step if in-line step-over info
7867         is valid.
7868
7869 2015-04-10  Pedro Alves  <palves@redhat.com>
7870
7871         * infrun.c (displaced_step_in_progress): New function.
7872         (do_target_resume): Advise target to report all signals if
7873         displaced stepping.
7874
7875 2015-04-10  Pedro Alves  <palves@redhat.com>
7876
7877         PR gdb/18216
7878         * infrun.c (process_event_stop_test): Don't assume a step-resume
7879         is set if tp->stepped_breakpoint is true.
7880
7881 2015-04-10  Yao Qi  <yao.qi@linaro.org>
7882
7883         * arm-tdep.c (install_alu_reg): Update comment.
7884         (thumb_copy_alu_reg): Remove local variable rn.  Update
7885         debugging message.  Use r2 instead of r1 in the modified
7886         instruction.
7887
7888 2015-04-10  Pedro Alves  <palves@redhat.com>
7889
7890         PR gdb/13858
7891         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
7892         linux_displaced_step_location as gdbarch_displaced_step_location
7893         hook.
7894         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7895         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7896         * linux-tdep.c (linux_displaced_step_location): New function,
7897         based on ppc_linux_displaced_step_location.
7898         * linux-tdep.h (linux_displaced_step_location): New declaration.
7899         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
7900         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
7901         Delete.
7902         (ppc_linux_init_abi): Install linux_displaced_step_location as
7903         gdbarch_displaced_step_location hook, even without Cell/B.E..
7904         (_initialize_ppc_linux_tdep): Don't install
7905         ppc_linux_inferior_created as inferior_created observer.
7906         * s390-linux-tdep.c (s390_gdbarch_init): Install
7907         linux_displaced_step_location as gdbarch_displaced_step_location
7908         hook.
7909
7910 2015-04-09  Gary Benson <gbenson@redhat.com>
7911
7912         * common/common-remote-fileio.h: Rename to...
7913         * common/fileio.h: ...this.  Update all references.
7914         (remote_fileio_to_fio_error): Rename to...
7915         (host_to_fileio_error): ...this.
7916         (remote_fileio_to_be): Rename to...
7917         (host_to_bigendian): ...this.  Update all callers.
7918         (remote_fileio_to_fio_uint): Rename to...
7919         (host_to_fileio_uint): ...this.  Update all callers.
7920         (remote_fileio_to_fio_time): Rename to...
7921         (host_to_fileio_time): ...this.  Update all callers.
7922         (remote_fileio_to_fio_stat): Rename to...
7923         (host_to_fileio_stat): ...this.
7924         Update all references.
7925         * common/common-remote-fileio.c: Rename to...
7926         * common/fileio.c: ...this.  Update all references.
7927         (remote_fileio_to_fio_error): Rename to...
7928         (host_to_fileio_error): ...this.  Update all callers.
7929         (remote_fileio_mode_to_target): Rename to...
7930         (fileio_mode_pack): ...this.  Update all callers.
7931         (remote_fileio_to_fio_mode): Rename to...
7932         (host_to_fileio_mode): ...this.  Update all callers.
7933         (remote_fileio_to_fio_ulong): Rename to...
7934         (host_to_fileio_ulong): ...this.  Update all callers.
7935         (remote_fileio_to_fio_stat): Rename to...
7936         (host_to_fileio_stat): ...this.  Update all callers.
7937
7938 2015-04-09  Andy Wingo  <wingo@igalia.com>
7939
7940         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
7941         (frame_functions): Bind gdbscm_frame_read_register to
7942         frame-read-register.
7943         * guile/lib/gdb.scm (frame-read-register): Export.
7944
7945 2015-04-09  Gary Benson <gbenson@redhat.com>
7946
7947         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
7948         New declaration.
7949         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
7950         New function, factored out the named functions below.
7951         * inf-child.c (gdb/fileio.h): Remove include.
7952         (common-remote-fileio.h): New include.
7953         (inf_child_errno_to_fileio_error): Remove function.  Update
7954         all callers to use remote_fileio_to_fio_error.
7955         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
7956
7957 2015-04-09  Andy Wingo  <wingo@igalia.com>
7958
7959         * MAINTAINERS (Write After Approval): Add Andy Wingo.
7960
7961 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
7962
7963         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
7964         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
7965         * configure: Regenerated.
7966
7967 2015-04-09  Pedro Alves  <palves@redhat.com>
7968
7969         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
7970         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
7971         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
7972         * gnulib/import/Makefile.am: Update.
7973         * gnulib/import/Makefile.in: Update.
7974         * gnulib/import/m4/gnulib-cache.m4: Update.
7975         * gnulib/import/m4/gnulib-comp.m4: Update.
7976         * gnulib/import/m4/strtok_r.m4: New file.
7977         * gnulib/import/strtok_r.c: New file.
7978
7979 2015-04-09  Pedro Alves  <palves@redhat.com>
7980
7981         * gnulib/update-gnulib.sh (aclocal version check): Filter out
7982         "called too early to check prototype".
7983
7984 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
7985
7986         PR python/16699
7987         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
7988         use a caching mechanism.  Adjust comments and code to reflect
7989         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
7990         (cmdpy_completer_handle_brkchars): Adjust call to
7991         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
7992         (cmdpy_completer): Likewise.
7993
7994 2015-04-08  Yao Qi  <yao.qi@linaro.org>
7995
7996         * spu-tdep.c (spu_gdbarch_init): Don't call
7997         set_gdbarch_cannot_step_breakpoint.
7998
7999 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
8000
8001         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8002
8003 2015-04-07  Pedro Alves  <palves@redhat.com>
8004
8005         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8006         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8007         (delete_exited_threads): New declaration.
8008         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8009         * linux-nat.c (linux_nat_update_thread_list): New function.
8010         (linux_nat_add_target): Install it.
8011         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8012         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8013         (delete_exited_threads): New function.
8014
8015 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
8016
8017         * infrun.c (resume) <displaced stepping debug output>: Get the
8018         leader thread's regcache, not resume_ptid's.
8019
8020 2015-04-06  Doug Evans  <xdje42@gmail.com>
8021
8022         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8023         VAR_DOMAIN.
8024         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8025         Include symbol domain in debugging output.
8026
8027 2015-04-06  Pedro Alves  <palves@redhat.com>
8028             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8029
8030         * configure.ac: Remove the mingw32-specific stub-termcap.o
8031         fallback, and instead fallback to the stub termcap on all hosts.
8032         * configure: Regenerate.
8033         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8034         symbols.
8035
8036 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8037
8038         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8039         "top_level" parameter.
8040         (resolve_dynamic_type_internal): Remove the unused "top_level"
8041         parameter.  Update call to is_dynamic_type_internal.
8042         (is_dynamic_type): Update call to is_dynamic_type_internal.
8043         (resolve_dynamic_range): Update call to
8044         resolve_dynamic_type_internal.
8045         (resolve_dynamic_union): Likewise.
8046         (resolve_dynamic_struct): Likewise.
8047         (resolve_dynamic_type): Likewise.
8048
8049 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8050
8051         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8052         TYPE_CODE_REF types so that they are not considered as dynamic
8053         depending on the referenced type.
8054         (resolve_dynamic_type_internal): Likewise.
8055
8056 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8057
8058         * Makefile.in (top_srcdir): New.
8059         * configure: Regenerated.
8060
8061 2015-04-02  Gary Benson <gbenson@redhat.com>
8062
8063         * NEWS: Announce the new default sysroot of "target:".
8064
8065 2015-04-02  Gary Benson <gbenson@redhat.com>
8066
8067         * main.c (captured_main): Set gdb_sysroot to "target:"
8068         if not otherwise set.
8069
8070 2015-04-02  Gary Benson <gbenson@redhat.com>
8071
8072         * exec.c (exec_file_attach): Support "target:" filenames.
8073
8074 2015-04-02  Gary Benson <gbenson@redhat.com>
8075
8076         * solib.c (solib_find): Strip "target:" prefix from sysroot
8077         if accessing local files.
8078
8079 2015-04-02  Gary Benson <gbenson@redhat.com>
8080
8081         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8082         checks and error messages.
8083
8084 2015-04-02  Gary Benson <gbenson@redhat.com>
8085
8086         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8087         (remote_filename_p): Remove declaration.
8088         (remote_bfd_open): Likewise.
8089         * remote.c (remote_bfd_iovec_open): Remove function.
8090         (remote_bfd_iovec_close): Likewise.
8091         (remote_bfd_iovec_pread): Likewise.
8092         (remote_bfd_iovec_stat): Likewise.
8093         (remote_filename_p): Likewise.
8094         (remote_bfd_open): Likewise.
8095         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8096         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8097         (gdb_bfd_open_maybe_remote): Remove function.
8098         (symfile_bfd_open):  Replace remote filename check with
8099         target filename check.
8100         (reread_symbols): Use gdb_bfd_open.
8101         * build-id.c (gdbcore.h): New include.
8102         (build_id_to_debug_bfd): Use gdb_bfd_open.
8103         * infcmd.c (attach_command_post_wait): Remove remote filename
8104         check.
8105         * solib.c (solib_find): Replace remote-specific handling with
8106         target-specific handling.  Update comments where necessary.
8107         (solib_bfd_open): Replace remote-specific handling with
8108         target-specific handling.
8109         (gdb_sysroot_changed): New function.
8110         (_initialize_solib): Call the above when gdb_sysroot changes.
8111         * windows-tdep.c (gdbcore.h): New include.
8112         (windows_xfer_shared_library): Use gdb_bfd_open.
8113
8114 2015-04-02  Gary Benson <gbenson@redhat.com>
8115
8116         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8117         (is_target_filename): New declaration.
8118         (gdb_bfd_has_target_filename): Likewise.
8119         (gdb_bfd_open): Update documentation comment.
8120         * gdb_bfd.c (target.h): New include.
8121         (gdb/fileio.h): Likewise.
8122         (is_target_filename): New function.
8123         (gdb_bfd_has_target_filename): Likewise.
8124         (fileio_errno_to_host): Likewise.
8125         (gdb_bfd_iovec_fileio_open): Likewise.
8126         (gdb_bfd_iovec_fileio_pread): Likewise.
8127         (gdb_bfd_iovec_fileio_close): Likewise.
8128         (gdb_bfd_iovec_fileio_fstat): Likewise.
8129         (gdb_bfd_open): Use target fileio to access paths prefixed
8130         with "target:" where necessary.
8131
8132 2015-04-02  Gary Benson <gbenson@redhat.com>
8133
8134         * target.h (struct target_ops) <to_filesystem_is_local>:
8135         New field.
8136         (target_filesystem_is_local): New macro.
8137         * target-delegates.c: Regenerate.
8138         * remote.c (remote_filesystem_is_local): New function.
8139         (init_remote_ops): Initialize to_filesystem_is_local.
8140
8141 2015-04-02  Gary Benson <gbenson@redhat.com>
8142
8143         * target.h (struct target_ops) <to_fileio_fstat>: New field.
8144         (target_fileio_fstat): New declaration.
8145         * target.c (target_fileio_fstat): New function.
8146         * inf-child.c (inf_child_fileio_fstat): Likewise.
8147         (inf_child_target): Initialize to_fileio_fstat.
8148         * remote.c (init_remote_ops): Likewise.
8149
8150 2015-04-01  Sasha Smundak  <asmundak@google.com>
8151
8152         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8153         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8154         (py-unwind.o): New recipe.
8155         * NEWS: mention Python frame unwinding.
8156         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8157         gdb/unwinder.py and gdb/command/unwinder.py
8158         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8159         list.
8160         (execute_unwinders): New function.
8161         * python/lib/gdb/command/unwinders.py: New file.
8162         * python/lib/gdb/unwinder.py: New file.
8163         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8164         (objfpy_dealloc): Decrement frame_unwinders reference count.
8165         (objfpy_initialize): Create frame_unwinders list.
8166         (objfpy_get_frame_unwinders): New function.
8167         (objfpy_set_frame_unwinders): Ditto.
8168         (objfile_getset): Add frame_unwinders attribute to Objfile.
8169         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8170         (pspy_dealloc): Decrement frame_unwinders reference count.
8171         (pspy_initialize): Create frame_unwinders list.
8172         (pspy_get_frame_unwinders): New function.
8173         (pspy_set_frame_unwinders): Ditto.
8174         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8175         * python/py-unwind.c: New file.
8176         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8177         (objpy_get_frame_unwinders): New prototype.
8178         (gdbpy_initialize_unwind): New prototype.
8179         * python/python.c (gdbpy_apply_type_printers): Call
8180         gdbpy_initialize_unwind.
8181
8182 2015-04-01  Pedro Alves  <palves@redhat.com>
8183
8184         * infrun.c (resume): Check currently_stepping after clearing
8185         stepped_breakpoint, not before.
8186
8187 2015-04-01  Pedro Alves  <palves@redhat.com>
8188
8189         * infrun.c (print_target_wait_results): Print all the ptid
8190         elements.
8191
8192 2015-04-01  Pedro Alves  <palves@redhat.com>
8193
8194         * infrun.c (keep_going): Also discard cleanups if inserting
8195         breakpoints fails.
8196
8197 2015-04-01  Pedro Alves  <palves@redhat.com>
8198
8199         * infrun.c (wait_for_inferior): Install the
8200         finish_thread_state_cleanup cleanup across the whole function, not
8201         just around handle_inferior_event.
8202
8203 2015-04-01  Pedro Alves  <palves@redhat.com>
8204
8205         * infrun.c (resume) <step past permanent breakpoint>: Use
8206         do_target_resume.
8207
8208 2015-04-01  Pedro Alves  <palves@redhat.com>
8209
8210         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8211
8212 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
8213
8214         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8215
8216 2015-04-01  Pedro Alves  <palves@redhat.com>
8217
8218         * linux-thread-db.c (record_thread): Readd the thread to gdb's
8219         list if it was marked exited.
8220
8221 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
8222
8223         * configure: Regenerated.
8224
8225 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8226             Jan Kratochvil  <jan.kratochvil@redhat.com>
8227             Oleg Nesterov  <oleg@redhat.com>
8228
8229         PR corefiles/16092
8230         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8231         New enum identifying the various options of the coredump_filter
8232         file.
8233         (struct smaps_vmflags): New struct.
8234         (use_coredump_filter): New variable.
8235         (decode_vmflags): New function.
8236         (mapping_is_anonymous_p): Likewise.
8237         (dump_mapping_p): Likewise.
8238         (linux_find_memory_regions_full): New variables
8239         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8240         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
8241         parsing of its information.  Implement memory mapping filtering
8242         based on its contents.
8243         (show_use_coredump_filter): New function.
8244         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8245         * NEWS: Mention the possibility of using the
8246         '/proc/PID/coredump_filter' file when generating a corefile.
8247         Mention new command 'set use-coredump-filter'.
8248
8249 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8250
8251         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8252         read_memory_unsigned_integer.
8253
8254 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8255
8256         * Makefile.in (ZLIB): New.
8257         (ZLIBINC): Likewise.
8258         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8259         (CLIBS): Add $(ZLIB).
8260         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8261         Add -lz to LIBS.
8262         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8263         * top.c (print_gdb_configuration): Remove --with-zlib and
8264         --without-zlib.
8265         * config.in: Regenerated.
8266         * configure: Likewise.
8267
8268 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8269
8270         * NEWS: Mention info os cpus support.
8271         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8272         (struct osdata_type): Add cpus entry, reorder the entries in
8273         alphabetical order.
8274
8275 2015-03-31  Matthias Klose  <doko@ubuntu.com>
8276
8277         * compile/compile.c (compile_to_object): Allow triplets with or
8278         without vendor set.
8279
8280 2015-03-30  Doug Evans  <dje@google.com>
8281
8282         PR c++/18141
8283         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8284         klass in VAR_DOMAIN.
8285
8286 2015-03-30  Gary Benson <gbenson@redhat.com>
8287
8288         * remote.c (remote_mourn_1): Remove function.  Update all callers
8289         to use remote_mourn.
8290         (extended_remote_mourn_1): Remove function.  Update all callers
8291         to use extended_remote_mourn.
8292         (extended_remote_attach_1): Remove function.  Update all callers
8293         to use extended_remote_attach.
8294
8295 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
8296
8297         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8298         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8299         (ALLDEPFILES): Add ft32-tdep.c.
8300         * configure.tgt: Add FT32 entry.
8301         * ft32-tdep.c: New file, FT32 target-dependent code.
8302         * ft32-tdep.h: New file, FT32 target-dependent code.
8303
8304 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8305
8306         Revert:
8307         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8308         Code cleanup.
8309         * printcmd.c (print_command_1): Move expr variable scope.
8310
8311 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
8312
8313         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8314
8315 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
8316
8317         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8318         sections.
8319
8320 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
8321
8322         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8323         exception raised while parsing the probe arguments.
8324         Force parsing to be done using the C language parser.
8325         * expression.h (parse_expression_with_language): Declare.
8326         * parse.c (parse_expression_with_language): New function.
8327
8328 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
8329
8330         * MAINTAINERS (Write After Approval): Add "Jon Turney".
8331
8332 2015-03-26  Andy Wingo  <wingo@igalia.com>
8333
8334         PR symtab/18148
8335         * dwarf2read.c (struct partial_die_info): Add has_const_value
8336         member.
8337         (add_partial_symbol): Don't punt on symbols that have const_value
8338         attributes.
8339         (read_partial_die): Detect DW_AT_const_value.
8340
8341 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8342
8343         Code cleanup.
8344         * printcmd.c (print_command_1): Move expr variable scope.
8345
8346 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8347
8348         Code cleanup.
8349         * printcmd.c (validate_format): Make the parameter cmdname const.
8350
8351 2015-03-26  Don Breazeal  <donb@codesourcery.com>
8352
8353         * remote.c (_initialize_remote): Update comment.
8354
8355 2015-03-26  Pedro Alves  <palves@redhat.com>
8356             Jon TURNEY  <jon.turney@dronecode.org.uk>
8357
8358         * coffread.c (coff_symfile_read): When constructing the name of an
8359         import stub symbol from import symbol for amd64, only skip the
8360         char after _imp_ if the target is underscored (like i386) and the
8361         char is indeed the target's leading char.
8362
8363 2015-03-25  Pedro Alves  <palves@redhat.com>
8364
8365         * target.h <to_async>: Replace 'callback' and 'context' parameters
8366         with boolean 'enable' parameter.
8367         (target_async): Replace CALLBACK and CONTEXT parameters with
8368         boolean ENABLE parameter.
8369         * inf-loop.c (inferior_event_handler): Adjust.
8370         * linux-nat.c (linux_nat_attach, linux_nat_resume)
8371         (linux_nat_resume): Adjust.
8372         (async_client_callback, async_client_context): Delete.
8373         (handle_target_event): Call inferior_event_handler directly.
8374         (linux_nat_async): Replace 'callback' and 'context' parameters
8375         with boolean 'enable' parameter.  Adjust.  Remove references to
8376         async_client_callback and async_client_context.
8377         (linux_nat_close): Adjust.
8378         * record-btrace.c (record_btrace_async): Replace 'callback' and
8379         'context' parameters with boolean 'enable' parameter.  Adjust.
8380         (record_btrace_resume): Adjust.
8381         * record-full.c (record_full_async): Replace 'callback' and
8382         'context' parameters with boolean 'enable' parameter.  Adjust.
8383         (record_full_resume, record_full_core_resume): Adjust.
8384         * remote.c (struct remote_state) <async_client_callback,
8385         async_client_context>: Delete fields.
8386         (remote_start_remote, extended_remote_attach_1, remote_resume)
8387         (extended_remote_create_inferior): Adjust.
8388         (remote_async_serial_handler): Call inferior_event_handler
8389         directly.
8390         (remote_async): Replace 'callback' and 'context' parameters with
8391         boolean 'enable' parameter.  Adjust.
8392         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
8393         Adjust.
8394         * target-delegates.c: Regenerate.
8395
8396 2015-03-25  Gary Benson <gbenson@redhat.com>
8397             Pedro Alves  <palves@redhat.com>
8398
8399         * target.c (fileio_ft_t): New typedef, define object vector.
8400         (fileio_fhandles): New static variable.
8401         (is_closed_fileio_fh): New macro.
8402         (lowest_closed_fd): New static variable.
8403         (acquire_fileio_fd): New function.
8404         (release_fileio_fd): Likewise.
8405         (fileio_fd_to_fh): New macro.
8406         (target_fileio_open): Wrap the file descriptor on success.
8407         (target_fileio_pwrite): Updated to use wrapped file descriptor.
8408         (target_fileio_pread): Likewise.
8409         (target_fileio_close): Likewise.
8410
8411 2015-03-24  Pedro Alves  <palves@redhat.com>
8412
8413         * thread.c (thread_apply_all_command): Take exited threads into
8414         account.
8415
8416 2015-03-24  Pedro Alves  <palves@redhat.com>
8417
8418         * infrun.c (resume, proceed): Mention
8419         switch_back_to_stepped_thread, not switch_back_to_stepping.
8420
8421 2015-03-24  Pedro Alves  <palves@redhat.com>
8422
8423         * infrun.c (user_visible_resume_ptid): Rewrite going from
8424         most-locked to unlocked instead of the opposite.  Move comment ...
8425         * infrun.h (user_visible_resume_ptid): ... here.
8426
8427 2015-03-24  Pedro Alves  <palves@redhat.com>
8428
8429         * linux-nat.c (linux_nat_resume): Output debug logs before trying
8430         to resume the event lwp.  Use the lwp's ptid instead of the passed
8431         in (maybe wildcard) ptid.
8432         (stop_wait_callback): Tweak debug log output.
8433         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
8434         TRAP_TRACE.
8435         (linux_nat_filter_event): In debug output, distinguish a
8436         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
8437         before trying to resume the lwp.
8438
8439 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
8440
8441         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
8442         pointer indirection.
8443         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
8444         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
8445
8446 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
8447
8448         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
8449         Renames DYN_ATTR_DATA_LOCATION.
8450         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
8451         DYN_ATTR_DATA_LOCATION.
8452         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
8453         instead of DYN_ATTR_DATA_LOCATION.
8454
8455 2015-03-24  Pedro Alves  <palves@redhat.com>
8456
8457         * breakpoint.c (until_break_command): Adjust call to proceed.
8458         * gdbthread.h (struct thread_control_state) <stepping_command>:
8459         New field.
8460         * infcall.c (run_inferior_call): Adjust call to proceed.
8461         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
8462         Adjust calls to proceed.
8463         (set_step_frame): Set the current thread's step_start_function
8464         here.
8465         (step_once): Adjust calls to proceed.
8466         (jump_command, signal_command, until_next_command)
8467         (finish_backward, finish_forward, proceed_after_attach_callback)
8468         (attach_command_post_wait): Adjust calls to proceed.
8469         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
8470         (do_target_resume): New function, factored out from ...
8471         (resume): ... here.  Remove 'step' parameter.  Instead, check
8472         currently_stepping to determine whether the thread should be
8473         single-stepped.
8474         (proceed): Remove 'step' parameter and don't set the thread's
8475         step_start_function here.  Adjust call to 'resume'.
8476         (handle_inferior_event): Adjust calls to 'resume'.
8477         (switch_back_to_stepped_thread): Use do_target_resume instead of
8478         'resume'.
8479         (keep_going): Adjust calls to 'resume'.
8480         * infrun.h (proceed): Remove 'step' parameter.
8481         (resume): Likewise.
8482         * windows-nat.c (do_initial_windows_stuff): Adjust call to
8483         'resume'.
8484         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
8485
8486 2015-03-24  Pedro Alves  <palves@redhat.com>
8487
8488         * gdbthread.h (struct thread_control_state) <stepping_command>:
8489         New field.
8490         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
8491         the thread's stepping_command field.
8492         * infrun.c (resume): Check the thread's stepping_command flag to
8493         determine which threads should be resumed.  Rename 'entry_step'
8494         local to user_step.
8495         (clear_proceed_status_thread): Clear 'stepping_command'.
8496         (schedlock_applies): Change parameter type to struct thread_info
8497         pointer.  Adjust.
8498         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
8499         (switch_back_to_stepped_thread): Adjust calls to
8500         'schedlock_applies'.
8501         (_initialize_infrun): Adjust "set scheduler-locking step" help.
8502
8503 2015-03-24  Pedro Alves  <palves@redhat.com>
8504
8505         * infrun.c (step_start_function): Delete and ...
8506         * gdbthread.h (struct thread_control_state) <step_start_function>:
8507         ... now a field here.
8508         * infrun.c (clear_proceed_status_thread): Clear the thread's
8509         step_start_function.
8510         (proceed, process_event_stop_test, print_stop_event): Adjust.
8511
8512 2015-03-24  Pedro Alves  <palves@redhat.com>
8513
8514         * infrun.c (proceed): No longer handle negative step.
8515
8516 2015-03-24  Gary Benson  <gbenson@redhat.com>
8517
8518         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
8519         (x86_linux_prepare_to_resume): Likewise.
8520         * x86-linux-nat.c (x86_linux_new_thread):
8521         Moved to nat/x86-linux.c.
8522         (x86_linux_prepare_to_resume): Likewise.
8523         * nat/x86-linux.c (x86_linux_new_thread): New function.
8524         (x86_linux_prepare_to_resume): Likewise.
8525
8526 2015-03-24  Gary Benson  <gbenson@redhat.com>
8527
8528         * nat/x86-linux-dregs.h: New file.
8529         * nat/x86-linux-dregs.c: Likewise.
8530         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
8531         (x86-linux-dregs.o): New rule.
8532         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
8533         * config/i386/linux64.mh (NATDEPFILES): Likewise.
8534         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
8535         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8536         (x86_linux_dr_get): Likewise.
8537         (x86_linux_dr_set): Likewise.
8538         (x86_linux_dr_get_addr): Likewise.
8539         (x86_linux_dr_get_control): Likewise.
8540         (x86_linux_dr_get_status): Likewise.
8541         (update_debug_registers_callback): Likewise.
8542         (x86_linux_dr_set_control): Likewise.
8543         (x86_linux_dr_set_addr): Likewise.
8544         (x86_linux_update_debug_registers): Likewise.
8545
8546 2015-03-24  Gary Benson  <gbenson@redhat.com>
8547
8548         * x86-linux-nat.c (x86_linux_update_debug_registers):
8549         New function, factored out from...
8550         (x86_linux_prepare_to_resume): ...this.
8551
8552 2015-03-24  Gary Benson  <gbenson@redhat.com>
8553
8554         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
8555         (x86_linux_dr_set): Likewise.
8556         (x86_linux_dr_get_addr): Likewise.
8557         (x86_linux_dr_get_control): Likewise.
8558         (x86_linux_dr_get_status): Likewise.
8559         (update_debug_registers_callback): Likewise.
8560         (x86_linux_dr_set_control): Likewise.
8561         (x86_linux_dr_set_addr): Likewise.
8562         (x86_linux_prepare_to_resume): Likewise.
8563         (x86_linux_new_thread): Likewise.
8564
8565 2015-03-24  Gary Benson  <gbenson@redhat.com>
8566
8567         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
8568         (x86_linux_new_thread): Rename argument.
8569
8570 2015-03-24  Gary Benson  <gbenson@redhat.com>
8571
8572         * nat/x86-linux.h: New file.
8573         * nat/x86-linux.c: Likewise.
8574         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
8575         (x86-linux.o): New rule.
8576         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
8577         * config/i386/linux64.mh (NATDEPFILES): Likewise.
8578         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
8579         (lwp_set_arch_private_info): New declaration.
8580         (lwp_arch_private_info): Likewise.
8581         * linux-nat.c (lwp_set_arch_private_info): New function.
8582         (lwp_arch_private_info): Likewise.
8583         * x86-linux-nat.c: Include nat/x86-linux.h.
8584         (arch_lwp_info): Removed structure.
8585         (update_debug_registers_callback):
8586         Use lwp_set_debug_registers_changed.
8587         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8588         and lwp_set_debug_registers_changed.
8589         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8590
8591 2015-03-24  Gary Benson  <gbenson@redhat.com>
8592
8593         * nat/linux-nat.h (ptid_of_lwp): New declaration.
8594         (lwp_is_stopped): Likewise.
8595         (lwp_stop_reason): Likewise.
8596         * linux-nat.c (ptid_of_lwp): New function.
8597         (lwp_is_stopped): Likewise.
8598         (lwp_is_stopped_by_watchpoint): Likewise.
8599         * x86-linux-nat.c (update_debug_registers_callback):
8600         Use lwp_is_stopped.
8601         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8602         lwp_stop_reason.
8603
8604 2015-03-24  Gary Benson  <gbenson@redhat.com>
8605
8606         * linux-nat.h (linux_stop_lwp): Move declaration to...
8607         * nat/linux-nat.h (linux_stop_lwp): New declaration.
8608
8609 2015-03-24  Gary Benson  <gbenson@redhat.com>
8610
8611         * linux-nat.h: Include nat/linux-nat.h.
8612         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
8613         * nat/linux-nat.h (struct lwp_info): New forward declaration.
8614         (iterate_over_lwps_ftype): New typedef.
8615         (iterate_over_lwps): New declaration.
8616         * linux-nat.h (iterate_over_lwps): Update comment.  Use
8617         iterate_over_lwps_ftype.  Update callback return value check.
8618
8619 2015-03-24  Gary Benson  <gbenson@redhat.com>
8620
8621         * x86-nat.h (x86_debug_reg_state): Move declaration to...
8622         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
8623
8624 2015-03-24  Gary Benson  <gbenson@redhat.com>
8625
8626         * nat/linux-nat.h (current_lwp_ptid): New declaration.
8627         * linux-nat.c (current_lwp_ptid): New function.
8628         * x86-linux-nat.c: Include nat/linux-nat.h.
8629         (x86_linux_dr_get_addr): Use current_lwp_ptid.
8630         (x86_linux_dr_get_control): Likewise.
8631         (x86_linux_dr_get_status): Likewise.
8632         (x86_linux_dr_set_control): Likewise.
8633         (x86_linux_dr_set_addr): Likewise.
8634
8635 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8636
8637         PR breakpoints/16466
8638         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
8639
8640 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
8641
8642         * ser-mingw.c (ser_windows_setparity): Fix indentation.
8643         * ser-unix.c (hardwire_setparity): Likewise.
8644
8645 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
8646
8647         * NEWS: Mention set/show serial parity command.
8648         * monitor.c (monitor_open): Call serial_setparity.
8649         * remote.c (remote_open_1): Likewise.
8650         * ser-base.c (ser_base_serparity): New function.
8651         * ser-base.h (ser_base_setparity): Add  declaration.
8652         * ser-go32.c (dos_ops): Set "setparity" field.
8653         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
8654         state.Parity.
8655         (ser_windows_setparity): New function.
8656         (hardwire_ops): Add ser_windows_setparity.
8657         (tty_ops): Add NULL for setparity field.
8658         (pipe_ops): Add ser_base_setparity.
8659         (tcp_ops): Likewise.
8660         * ser-pipe.c (pipe_ops): Likewise.
8661         * ser-tcp.c (tcp_ops): Likewise.
8662         * ser-unix.c (hardwire_setparity): Add declaration.
8663         (hardwire_raw): Don't reset PARENB flag.
8664         (hardwire_setparity): New function.
8665         (hardwire_ops): Add hardwire_setparity.
8666         * serial.c (serial_setparity): New function.
8667         (serial_parity): New global.
8668         (parity_none, parity_odd, parity_even, parity_enums, parity):
8669         New static globals.
8670         (set_parity): New function.
8671         (_initialize_serial): Add set/show serial parity commands.
8672         * serial.h (GDBPARITY_NONE): Define.
8673         (GDBPARITY_ODD): Define.
8674         (GDBPARITY_EVEN): Define.
8675         (serial_setparity) Add declaration.
8676         (struct serial_ops): Add setparity field.
8677         * target.h (serial_parity): Add declaration.
8678
8679 2015-03-23  Keith Seitz  <keiths@redhat.com>
8680
8681         * linespec.c (linespec_lexer_lex_keyword): Update comment.
8682
8683 2015-03-23  Keith Seitz  <keiths@redhat.com>
8684
8685         * breakpoint.c (parse_breakpoint_sals): Use
8686         linespec_lexer_lex_keyword to ascertain if the user specified
8687         a NULL location.
8688         * linespec.c [IF_KEYWORD_INDEX]: Define.
8689         (linespec_lexer_lex_keyword): Export.
8690         (struct ls_parser) <keyword_ok>: Remove.
8691         A keyword is only a keyword if not followed by another keyword.
8692         (linespec_lexer_lex_one): Remove keyword_ok handling.
8693         Add comment explaining why the parsing stream is not advanced
8694         when a keyword is seen.
8695         (parse_linespec): Remove parser->keyword_ok.
8696         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
8697
8698 2015-03-23  Keith Seitz  <keiths@redhat.com>
8699
8700         PR gdb/18021
8701         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
8702         if we find a static method with DW_AT_vtable_elem_location.
8703
8704 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
8705
8706         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
8707         before the second loop, to avoid undefined behavior.  Reported by
8708         Anton Blanchard <anton@samba.org>.
8709
8710 2015-03-20  Keven Boell  <keven.boell@intel.com>
8711
8712         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
8713         data_location usage to linked list.
8714         (resolve_dynamic_type_internal): Adapt data_location to
8715         linked list.
8716         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
8717         (copy_type_recursive, copy_type): Add copy of linked list.
8718         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
8719         (struct dynamic_prop_list): New struct.
8720         * dwarf2read.c (set_die_type): Set data_location data.
8721
8722 2015-03-20  Pedro Alves  <palves@redhat.com>
8723
8724         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
8725         inner block and make it const.
8726         * machoread.c (get_archive_prefix_len): Make "lparen" const.
8727
8728 2015-03-20  Pedro Alves  <palves@redhat.com>
8729
8730         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
8731         * breakpoint.h (set_breakpoint_condition): Update declaration.
8732
8733 2015-03-20  Pedro Alves  <palves@redhat.com>
8734
8735         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
8736
8737 2015-03-20  Pedro Alves  <palves@redhat.com>
8738
8739         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
8740
8741 2015-03-20  Pedro Alves  <palves@redhat.com>
8742
8743         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
8744
8745 2015-03-20  Pedro Alves  <palves@redhat.com>
8746
8747         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
8748         (nto_init_solib_absolute_prefix): Likewise.
8749
8750 2015-03-20  Pedro Alves  <palves@redhat.com>
8751
8752         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
8753         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
8754
8755 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8756
8757         * config/djgpp/README: Remove gdb.hp.
8758
8759 2015-03-20  Yao Qi  <yao.qi@linaro.org>
8760
8761         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
8762         set_gdbarch_cannot_step_breakpoint.
8763
8764 2015-03-19  Pedro Alves  <palves@redhat.com>
8765
8766         * linux-nat.c (linux_resume_one_lwp): Rename to ...
8767         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
8768         instead call perror_with_name.
8769         (check_ptrace_stopped_lwp_gone): New function.
8770         (linux_resume_one_lwp): Reimplement as wrapper around
8771         linux_resume_one_lwp_throw that swallows errors if the LWP is
8772         gone.
8773         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
8774         swallows errors if the LWP is gone.  Use
8775         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
8776
8777 2015-03-19  Pedro Alves  <palves@redhat.com>
8778
8779         * linux-nat.c (status_callback): Return early if the LWP has no
8780         status pending.
8781
8782 2015-03-19  Pedro Alves  <palves@redhat.com>
8783
8784         * linux-nat.c (select_event_lwp_callback): Update comment to no
8785         longer mention SIGTRAP.
8786
8787 2015-03-18  Tristan Gingold  <gingold@adacore.com>
8788
8789         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
8790         redirection code to ...
8791         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
8792         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
8793
8794 2015-03-18  Gary Benson <gbenson@redhat.com>
8795
8796         (remote_protocol_features): Remove the "vFile:fstat" feature.
8797         (remote_hostio_fstat): Probe for "vFile:fstat" support.
8798
8799 2015-03-11  Yao Qi  <yao.qi@linaro.org>
8800
8801         PR tdep/18107
8802         * aarch64-linux-tdep.c: Include xml-syscall.h
8803         (aarch64_linux_get_syscall_number): New function.
8804         (aarch64_linux_init_abi): Call
8805         set_gdbarch_get_syscall_number.
8806         * syscalls/aarch64-linux.xml: New file.
8807
8808 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
8809
8810         * ser-base.h (ser_base_setstopbits): Change second argument name
8811         from "rate" to "num".
8812
8813 2015-03-17  Gary Benson <gbenson@redhat.com>
8814             Luke Allardyce <lukeallardyce@gmail.com>
8815
8816         PR gdb/18131
8817         * common/common-remote-fileio.h (sys/stat.h): New include.
8818         (stuct stat): Remove forward declaration.
8819
8820 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
8821
8822         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
8823         before writing core register notes.
8824
8825 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
8826             Pedro Alves  <palves@redhat.com>
8827
8828         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
8829         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
8830         (tgoto): Wrap with extern "C".
8831
8832 2015-03-16  Pedro Alves  <palves@redhat.com>
8833             Yuanhui Zhang  <asmwarrior@gmail.com>
8834
8835         * stub-termcap.c (tputs): Change prototype.
8836
8837 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
8838             Pedro Alves  <palves@redhat.com>
8839
8840         * windows-nat.c (struct thread_info_struct): Rename to ...
8841         (struct windows_thread_info_struct): ... this.
8842         (thread_info): Rename to ...
8843         (windows_thread_info): ... this.
8844         All users updated.
8845
8846 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8847             Pedro Alves  <palves@redhat.com>
8848
8849         * NEWS: New Removed targets and native configurations.
8850
8851 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8852
8853         Remove HPUX.
8854         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
8855         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
8856         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
8857         ia64-hpux-tdep.h, solib-ia64-hpux.h.
8858         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
8859         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
8860         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
8861         hppa-hpux-tdep.c.
8862         * config/ia64/hpux.mh: Remove file.
8863         * config/pa/hpux.mh: Remove file.
8864         * configure: Rebuilt.
8865         * configure.ac (dlgetmodinfo, somread.o): Remove.
8866         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
8867         (ia64-*-hpux*): Remove its float format exception.
8868         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
8869         * hppa-hpux-nat.c: Remove file.
8870         * hppa-hpux-tdep.c: Remove file.
8871         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
8872         Move them here from hppa-tdep.h
8873         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
8874         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
8875         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
8876         Move them to hppa-tdep.c.
8877         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
8878         declarations.
8879         * ia64-hpux-nat.c: Remove file.
8880         * ia64-hpux-tdep.c: Remove file.
8881         * ia64-hpux-tdep.h: Remove file.
8882         * inf-ttrace.c: Remove file.
8883         * inf-ttrace.h: Remove file.
8884         * solib-ia64-hpux.c: Remove file.
8885         * solib-ia64-hpux.h: Remove file.
8886         * solib-pa64.c: Remove file.
8887         * solib-pa64.h: Remove file.
8888         * solib-som.c: Remove file.
8889         * solib-som.h: Remove file.
8890         * somread.c: Remove file.
8891
8892 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
8893
8894         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
8895         * config.in: Regenerate.
8896         * configure: Regenerate.
8897         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
8898         define.
8899         (fbsd_find_memory_regions): Use kinfo_getvmmap to
8900         enumerate memory regions if present.
8901
8902 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
8903
8904         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
8905         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
8906         expressions.
8907         (i386fbsd_sigtramp_p): Likewise.
8908
8909 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
8910
8911         * MAINTAINERS (Write After Approval): Add John Baldwin.
8912
8913 2015-03-12  Gary Benson <gbenson@redhat.com>
8914
8915         * solib.c (_initialize_solib): Make "set/show sysroot" use
8916         add_setshow_optional_filename_cmd so it can be restored to
8917         empty after being set.
8918
8919 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
8920
8921         * Makefile.in (SFILES): New source break-catch-syscall.c.
8922         (COMMON_OBS): New object break-catch-syscall.o.
8923         * break-catch-syscall.c: New file.
8924         * breakpoint.c: Remove inclusion of "xml-syscall.h".
8925         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
8926         (struct syscall_catchpoint): Likewise.
8927         (dtor_catch_syscall): Likewise.
8928         (catch_syscall_inferior_data): Likewise.
8929         (struct catch_syscall_inferior_data): Likewise.
8930         (get_catch_syscall_inferior_data): Likewise.
8931         (catch_syscall_inferior_data_cleanup): Likewise.
8932         (insert_catch_syscall): Likewise.
8933         (remove_catch_syscall): Likewise.
8934         (breakpoint_hit_catch_syscall): Likewise.
8935         (print_it_catch_syscall): Likewise.
8936         (print_one_catch_syscall): Likewise.
8937         (print_mention_catch_syscall): Likewise.
8938         (print_recreate_catch_syscall): Likewise.
8939         (catch_syscall_breakpoint_ops): Likewise.
8940         (syscall_catchpoint_p): Likewise.
8941         (create_syscall_event_catchpoint): Likewise.
8942         (catch_syscall_split_args): Likewise.
8943         (catch_syscall_command_1): Likewise.
8944         (is_syscall_catchpoint_enabled): Likewise.
8945         (catch_syscall_enabled): Likewise.
8946         (catching_syscall_number): Likewise.
8947         (catch_syscall_completer): Likewise.
8948         (clear_syscall_counts): Likewise.
8949         (initialize_breakpoint_ops): Move initialization of syscall
8950         catchpoints to break-catch-syscall.c.
8951         (_initialize_breakpoint): Move code related to syscall catchpoints
8952         to break-catch-syscall.c.
8953
8954 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
8955
8956         * breakpoint.c (breakpoint_find_if): New function.
8957         * breakpoint.h (breakpoint_find_if): New prototype.
8958
8959 2015-03-11  Gary Benson <gbenson@redhat.com>
8960
8961         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
8962         * remote-fileio.c (remote_fileio_to_host_uint): New function.
8963         (remote_fileio_to_host_ulong): Likewise.
8964         (remote_fileio_to_host_mode): Likewise.
8965         (remote_fileio_to_host_time): Likewise.
8966         (remote_fileio_to_host_stat): Likewise.
8967         * remote.c (PACKET_vFile_fstat): New enum value.
8968         (remote_protocol_features): Register the "vFile:fstat" feature.
8969         (remote_hostio_fstat): New function.
8970         (remote_bfd_iovec_stat): Use the above.
8971         (_initialize_remote): Register new "set/show remote
8972         hostio-fstat-packet" command.
8973         * symfile.c (separate_debug_file_exists): Update comment.
8974         * NEWS: Announce new vFile:fstat packet.
8975
8976 2015-03-11  Gary Benson <gbenson@redhat.com>
8977
8978         * common/common-remote-fileio.h: New file.
8979         * common/common-remote-fileio.c: Likewise.
8980         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8981         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
8982         (COMMON_OBS): Add common-remote-fileio.o.
8983         (common-remote-fileio.o): New rule.
8984         * remote-fileio.h (common-remote-fileio.h): New include.
8985         * remote-fileio.c (gdb/fileio.h): Do not include.
8986         (remote_fileio_to_be): Moved to common-remote-fileio.h.
8987         (remote_fileio_to_fio_uint): Likewise.
8988         (remote_fileio_to_fio_time): Likewise.
8989         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
8990         (remote_fileio_to_fio_mode): Likewise.
8991         (remote_fileio_to_fio_ulong): Likewise.
8992         (remote_fileio_to_fio_stat): Likewise.
8993
8994 2015-03-11  Andy Wingo  <wingo@igalia.com>
8995
8996         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
8997         we were checking the cached type, not the cached dynamic type.
8998
8999 2015-03-11  Andy Wingo  <wingo@igalia.com>
9000
9001         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9002         other strings, as these are on the GC'd heap, and will be
9003         collected along with the smob.
9004
9005 2015-03-11  Andy Wingo  <wingo@igalia.com>
9006
9007         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9008         (objfile_functions): Bind gdbscm_objfile_progspace to
9009         objfile-progspace.
9010         * guile/lib/gdb.scm: Add objfile-progspace to exports.
9011
9012 2015-03-11  Andy Wingo  <wingo@igalia.com>
9013
9014         * guile/guile.c (_initialize_guile): Disable automatic
9015         finalization, if Guile offers us that possibility.
9016         * guile/guile.c (call_initialize_gdb_module):
9017         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9018         finalizers in appropriate places.
9019         * configure.ac (AC_TRY_LIBGUILE): Add a check for
9020         scm_set_automatic_finalization_enabled.
9021         * configure: Regenerated.
9022
9023 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9024
9025         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9026         SAL, if possible.
9027
9028 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9029
9030         * s390-linux-nat.c (struct arch_lwp_info): New.
9031         (s390_fix_watch_points): Rename to...
9032         (s390_prepare_to_resume): ...this.  Skip the PER info update
9033         unless the watch points have changed.
9034         (s390_refresh_per_info, s390_new_thread): New functions.
9035         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9036         s390_fix_watch_points.
9037         (s390_remove_watchpoint): Likewise.
9038         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9039         Register s390_prepare_to_resume.
9040
9041 2015-03-09  Pedro Alves  <palves@redhat.com>
9042
9043         Revert:
9044         2015-03-07  Pedro Alves  <palves@redhat.com>
9045         * common/gdb_socket.h: New file.
9046         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9047         sys/socket.h.
9048         (net_open): Use union gdb_sockaddr_u.
9049
9050 2015-03-07  Pedro Alves  <palves@redhat.com>
9051
9052         * configure.ac (build_warnings): Move -Wmissing-prototypes
9053         -Wdeclaration-after-statement -Wmissing-parameter-type
9054         -Wold-style-declaration -Wold-style-definition to the C-specific
9055         set.
9056         * configure: Regenerate.
9057
9058 2015-03-07  Pedro Alves  <palves@redhat.com>
9059
9060         * common/gdb_socket.h: New file.
9061         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9062         sys/socket.h.
9063         (net_open): Use union gdb_sockaddr_u.
9064
9065 2015-03-07  Pedro Alves  <palves@redhat.com>
9066
9067         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9068         (exceptions_state_mc_action_iter)
9069         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9070         Don't define.
9071         [__cplusplus] (try_scope_depth): New global.
9072         [__cplusplus] (exception_try_scope_entry)
9073         (exception_try_scope_exit, gdb_exception_sliced_copy)
9074         (exception_rethrow): New functions.
9075         (throw_exception): In C++ mode, throw
9076         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9077         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9078         (throw_it): In C++ mode, use try_scope_depth.
9079         * common/common-exceptions.h [!__cplusplus]
9080         (exceptions_state_mc_action_iter)
9081         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9082         Don't declare.
9083         [__cplusplus] (exception_try_scope_entry)
9084         (exception_try_scope_exit, exception_rethrow): Declare.
9085         [__cplusplus] (struct exception_try_scope): New struct.
9086         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9087         C++ exceptions.
9088         (struct gdb_exception_RETURN_MASK_ALL)
9089         (struct gdb_exception_RETURN_MASK_ERROR)
9090         (struct gdb_exception_RETURN_MASK_QUIT): New types.
9091
9092 2015-03-07  Pedro Alves  <palves@redhat.com>
9093
9094         * main.c (handle_command_errors): Remove volatile qualifier from
9095         parameter.
9096
9097 2015-03-07  Pedro Alves  <palves@redhat.com>
9098
9099         * breakpoint.c (save_breakpoints): Adjust to avoid code between
9100         TRY and CATCH.
9101         * gdbtypes.c (safe_parse_type): Remove empty line.
9102         (types_deeply_equal):
9103         * guile/scm-frame.c (gdbscm_frame_name):
9104         * linux-thread-db.c (find_new_threads_once):
9105         * python/py-breakpoint.c (bppy_get_commands):
9106         * record-btrace.c (record_btrace_insert_breakpoint)
9107         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9108         (record_btrace_start_replaying): Adjust to avoid code between TRY
9109         and CATCH.
9110
9111 2015-03-07  Pedro Alves  <palves@redhat.com>
9112
9113         * common/common-exceptions.c (struct catcher) <exception>: No
9114         longer a pointer to volatile exception.  Now an exception value.
9115         <mask>: Delete field.
9116         (exceptions_state_mc_init): Remove all parameters.  Adjust.
9117         (exceptions_state_mc): No longer pop the catcher here.
9118         (exceptions_state_mc_catch): New function.
9119         (throw_exception): Adjust.
9120         * common/common-exceptions.h (exceptions_state_mc_init): Remove
9121         all parameters.
9122         (exceptions_state_mc_catch): Declare.
9123         (TRY_CATCH): Rename to ...
9124         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
9125         (CATCH, END_CATCH): New.
9126         All callers adjusted.
9127
9128 2015-03-07  Tom Tromey  <tromey@redhat.com>
9129
9130         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9131
9132 2015-03-07  Pedro Alves  <palves@redhat.com>
9133
9134         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9135         (amd64_epilogue_frame_cache): Normal exception handling code.
9136         * break-catch-throw.c (check_status_exception_catchpoint)
9137         (re_set_exception_catchpoint): Ditto.
9138         * cli/cli-interp.c (safe_execute_command):
9139         * cli/cli-script.c (script_from_file): Ditto.
9140         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9141         Ditto.
9142         * compile/compile-object-run.c (compile_object_run): Ditto.
9143         * cp-abi.c (baseclass_offset): Ditto.
9144         * cp-valprint.c (cp_print_value): Ditto.
9145         * exceptions.c (catch_exceptions_with_msg):
9146         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9147         * frame.c (get_frame_address_in_block_if_available): Ditto.
9148         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9149         (i386_sigtramp_frame_cache): Ditto.
9150         * infcmd.c (post_create_inferior): Ditto.
9151         * linespec.c (parse_linespec, find_linespec_symbols):
9152         * p-valprint.c (pascal_object_print_value): Ditto.
9153         * parse.c (parse_expression_for_completion): Ditto.
9154         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9155         * remote.c (remote_get_noisy_reply): Ditto.
9156         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9157         * solib-svr4.c (solib_svr4_r_map): Ditto.
9158
9159 2015-03-06  Gary Benson  <gbenson@redhat.com>
9160
9161         * common/common-utils.h (startswith): New inline function.
9162         All places where this logic was used updated to use the above.
9163
9164 2015-03-05  Pedro Alves  <palves@redhat.com>
9165
9166         PR gdb/18002
9167         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9168         after reading the breakpoint's shadow memory.
9169
9170 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
9171
9172         * hppabsd-nat.c: Remove file.
9173         * hppaobsd-nat.c: New file.
9174         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
9175         hppaobsd-nat.c.
9176         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9177         hppaobsd-nat.o.
9178
9179 2015-03-04  Pedro Alves  <palves@redhat.com>
9180
9181         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9182         (target_decr_pc_after_break): Delete declaration.
9183         * target.c (default_target_decr_pc_after_break)
9184         (target_decr_pc_after_break): Delete.
9185         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9186         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9187         * linux-thread-db.c (check_event): Likewise.
9188         * infrun.c (adjust_pc_after_break): Likewise.
9189         * darwin-nat.c (cancel_breakpoint): Likewise.
9190         * aix-thread.c (aix_thread_wait): Likewise.
9191         * target-delegates.c: Regenerate.
9192
9193 2015-03-04  Pedro Alves  <palves@redhat.com>
9194
9195         * linux-nat.c (save_sigtrap): Check for breakpoints before
9196         checking watchpoints.
9197         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9198         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9199         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9200         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9201         (linux_nat_stopped_by_sw_breakpoint)
9202         (linux_nat_supports_stopped_by_sw_breakpoint)
9203         (linux_nat_stopped_by_hw_breakpoint)
9204         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9205         (linux_nat_wait_1): Don't re-increment the PC if relying on
9206         SIGTRAP's siginfo->si_code.
9207         (linux_nat_add_target): Install new target methods.
9208         * linux-thread-db.c (check_event): Don't account for breakpoint PC
9209         offset if the target already adjusted the PC.
9210         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9211         (GDB_ARCH_TRAP_BRKPT): New.
9212         (TRAP_HWBKPT): Define if not already defined.
9213
9214 2015-03-04  Pedro Alves  <palves@redhat.com>
9215
9216         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9217         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9218         Delete field.
9219         <stop_reason>: New field.
9220         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9221         (packet_set_cmd_state): New function.
9222         (remote_protocol_features): Register the "swbreak" and "hwbreak"
9223         features.
9224         (remote_query_supported): If not disabled with the corresponding
9225         "set remote foo-packet" command, report support for the swbreak
9226         and hwbreak features.
9227         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9228         field.
9229         <stop_reason>: New field.
9230         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9231         (remote_wait_as): Adjust.
9232         (remote_stopped_by_sw_breakpoint)
9233         (remote_supports_stopped_by_sw_breakpoint)
9234         (remote_stopped_by_hw_breakpoint)
9235         (remote_supports_stopped_by_hw_breakpoint): New functions.
9236         (remote_stopped_by_watchpoint): New function.
9237         (init_remote_ops): Install them.
9238         (_initialize_remote): Register new "set/show remote
9239         swbreak-feature-packet" and "set/show remote
9240         swbreak-feature-packet" commands.
9241
9242 2015-03-04  Pedro Alves  <palves@redhat.com>
9243
9244         * btrace.h: Include target/waitstatus.h.
9245         (struct btrace_thread_info) <stop_reason>: New field.
9246         * record-btrace.c (record_btrace_step_thread): Use
9247         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9248         (record_btrace_decr_pc_after_break): Delete.
9249         (record_btrace_stopped_by_sw_breakpoint)
9250         (record_btrace_supports_stopped_by_sw_breakpoint)
9251         (record_btrace_stopped_by_hw_breakpoint)
9252         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9253         (init_record_btrace_ops): Install them.
9254         * record-full.c (record_full_hw_watchpoint): Delete and replace
9255         with ...
9256         (record_full_stop_reason): ... this throughout.
9257         (record_full_exec_insn): Adjust.
9258         (record_full_wait_1): Adjust.  No longer re-increment the PC.
9259         (record_full_wait_1): Adjust.  Use
9260         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9261         (record_full_stopped_by_watchpoint): Adjust.
9262         (record_full_stopped_by_sw_breakpoint)
9263         (record_full_supports_stopped_by_sw_breakpoint)
9264         (record_full_supports_stopped_by_sw_breakpoint)
9265         (record_full_stopped_by_hw_breakpoint)
9266         (record_full_supports_stopped_by_hw_breakpoint): New functions.
9267         (init_record_full_ops, init_record_full_core_ops): Install them.
9268         * record.c (record_check_stopped_by_breakpoint): New function.
9269         * record.h: Include target/waitstatus.h.
9270         (record_check_stopped_by_breakpoint): New declaration.
9271
9272 2015-03-04  Pedro Alves  <palves@redhat.com>
9273
9274         enum lwp_stop_reason -> enum target_stop_reason
9275         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9276         (linux_nat_stopped_by_watchpoint, status_callback)
9277         (linux_nat_wait_1): Adjust.
9278         * linux-nat.h (enum lwp_stop_reason): Delete.
9279         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9280         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9281         * target/waitstatus.h (enum target_stop_reason): New.
9282
9283 2015-03-04  Pedro Alves  <palves@redhat.com>
9284
9285         * breakpoint.c (need_moribund_for_location_type): New function.
9286         (bpstat_stop_status): Don't skipping checking moribund locations
9287         of breakpoint types which the target tell caused a stop.
9288         (program_breakpoint_here_p): New function, factored out from ...
9289         (bp_loc_is_permanent): ... this.
9290         (update_global_location_list): Don't create a moribund location if
9291         the target supports reporting stops of the type of the removed
9292         breakpoint.
9293         * breakpoint.h (program_breakpoint_here_p): New declaration.
9294         * infrun.c (adjust_pc_after_break): Return early if the target has
9295         already adjusted the PC.  Add comments.
9296         (handle_signal_stop): If nothing explains a signal, and the target
9297         tells us the stop was caused by a software breakpoint, check if
9298         there's a breakpoint instruction in the memory.  If so, adjust the
9299         PC before presenting the stop to the user.  Otherwise, ignore the
9300         trap.  If nothing explains a signal, and the target tells us the
9301         stop was caused by a hardware breakpoint, ignore the trap.
9302         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9303         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9304         to_supports_stopped_by_hw_breakpoint>: New fields.
9305         (target_stopped_by_sw_breakpoint)
9306         (target_supports_stopped_by_sw_breakpoint)
9307         (target_stopped_by_hw_breakpoint)
9308         (target_supports_stopped_by_hw_breakpoint): Define.
9309         * target-delegates.c: Regenerate.
9310
9311 2015-03-04  Pedro Alves  <palves@redhat.com>
9312
9313         * infrun.c (follow_fork_inferior): Use the whole of the
9314         inferior_ptid and pending_follow.related_pid ptids instead of
9315         building ptids from the process components.  Adjust verbose output
9316         to use target_pid_to_str.
9317         * linux-nat.c (linux_child_follow_fork): Use the whole of the
9318         inferior_ptid and pending_follow.related_pid ptids instead of
9319         building ptids from the process components.
9320
9321 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
9322
9323         * inf-ptrace.c [PT_GET_PROCESS_STATE]
9324         (inf_ptrace_insert_fork_catchpoint): New function.
9325         (inf_ptrace_remove_fork_catchpoint): New function.
9326         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9327
9328 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9329
9330         * s390-linux-tdep.c (s390_register_name): Return empty string
9331         instead of NULL for registers that shouldn't be visible.
9332
9333 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9334
9335         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9336         XML file for 64-bit targets.
9337
9338 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
9339
9340         * target.h (find_default_create_inferior): Remove declaration.
9341         (find_default_attach): Likewise.
9342
9343 2015-03-03  Pedro Alves  <palves@redhat.com>
9344
9345         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9346         Use ptid_get_pid to get the overall process id when resuming all
9347         threads.
9348
9349 2015-03-03  Pedro Alves  <palves@redhat.com>
9350
9351         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9352         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
9353         * inf-ptrace.c (get_ptrace_pid): New function.
9354         (inf_ptrace_resume): Use it.
9355         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9356         to the lower layer.
9357
9358 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
9359
9360         * nat/linux-btrace.c: Include sys/utsname.h.
9361         (linux_determine_kernel_ptr_bits): New.
9362         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9363         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9364         ptr_bits.
9365
9366 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
9367
9368         * btrace.c (ftrace_update_function): Treat return as tailcall for
9369         "_dl_runtime_resolve".
9370
9371 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
9372
9373         * btrace.h (btrace_function) <lbegin, lend>: Remove.
9374         * btrace.c (ftrace_debug): Do not print the line range.
9375         (ftrace_skip_file, ftrace_update_lines): Remove.
9376         (ftrace_new_function): Remove lbegin and lend initialization.
9377         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
9378         * record-btrace.c (btrace_compute_src_line_range): New.
9379         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
9380
9381 2015-03-02  Pedro Alves  <palves@redhat.com>
9382
9383         * infrun.c (follow_exec): Delete all threads of the process except
9384         the event thread.  Extended comments.
9385
9386 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
9387
9388         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
9389
9390 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
9391
9392         * utils.h: Remove <stdbool.h> #include.
9393         (producer_is_gcc): Change return type to "int".
9394         * utils.c (producer_is_gcc): Change return type to int.
9395         Return 1 instead of true, and 0 instead of false.
9396         Adjust function documentation accordingly.
9397
9398 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9399
9400         * s390-linux-nat.c (have_regset_vxrs): New static variable.
9401         (s390_linux_fetch_inferior_registers): Handle vector registers, if
9402         present.
9403         (s390_linux_store_inferior_registers): Likewise.
9404         (s390_get_hwcap): Remove function.  Embed its logic...
9405         (s390_read_description): ...here.  Yield a target description with
9406         vector registers if applicable.
9407         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
9408         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
9409         "features/s390x-tevx-linux64.c".
9410         (struct gdbarch_tdep) <v0_full_regnum>: New field.
9411         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
9412         for "GNU/Linux-specific registers".
9413         (s390_dwarf_reg_r0l): New enum value.
9414         (s390_dwarf_reg_to_regnum): Support vector registers.
9415         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
9416         of GPR lower halves.
9417         (regnum_is_vxr_full): New function.
9418         (s390_register_name): New function.
9419         (s390_pseudo_register_name): Handle v0-v15, which are composed of
9420         f0-f15 and v0l-v15l.
9421         (s390_pseudo_register_type): Likewise.
9422         (s390_pseudo_register_read): Likewise.
9423         (s390_pseudo_register_write): Likewise.
9424         (s390_value_from_register): Account for the fact that values are
9425         placed left-justified in vector registers.
9426         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
9427         the vector reggroup and omit them from the general reggroup.
9428         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
9429         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
9430         (s390_iterate_over_regset_sections): Add iterations for the two
9431         new vector regsets.
9432         (s390_core_read_description): Yield a target description with
9433         vector registers if applicable.
9434         (s390_gdbarch_init): Handle target descriptions with vector
9435         registers.  Add "register_name" gdbarch method.
9436         (_initialize_s390_tdep): Call new tdesc initialization functions.
9437         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
9438         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
9439         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
9440         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
9441         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
9442         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
9443         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
9444         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
9445         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
9446         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
9447         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
9448         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
9449         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
9450         (S390_NUM_REGS): Adjust value.
9451         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
9452         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9453         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
9454         * NEWS: Announce S/390 vector register support.
9455
9456 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9457
9458         * features/s390-tevx-linux64.xml: New file.
9459         * features/s390-vx-linux64.xml: New file.
9460         * features/s390-vx.xml: New file.
9461         * features/s390x-tevx-linux64.xml: New file.
9462         * features/s390x-vx-linux64.xml: New file.
9463         * features/Makefile (WHICH): Add s390-vx-linux64,
9464         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
9465         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
9466         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
9467         macros.
9468         * features/s390-tevx-linux64.c: New generated file.
9469         * features/s390-vx-linux64.c: Likewise.
9470         * features/s390x-tevx-linux64.c: Likewise.
9471         * features/s390x-vx-linux64.c: Likewise.
9472         * regformats/s390-tevx-linux64.dat: Likewise.
9473         * regformats/s390-vx-linux64.dat: Likewise.
9474         * regformats/s390x-tevx-linux64.dat: Likewise.
9475         * regformats/s390x-vx-linux64.dat: Likewise.
9476
9477 2015-02-28  Doug Evans  <xdje42@gmail.com>
9478
9479         * symtab.h (struct symtab) <next>: Fix comment.
9480
9481 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
9482
9483         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
9484         python_GdbMethods.
9485
9486 2015-02-27  Pedro Alves  <palves@redhat.com>
9487
9488         * dtrace-probe.c (dtrace_probe_ops): Make extern.
9489
9490 2015-02-27  Pedro Alves  <palves@redhat.com>
9491
9492         * common/common-exceptions.h (exception_none): Declare.
9493         * common/common-exceptions.c (exception_none): Moved from
9494         exceptions.c.
9495         (exceptions_state_mc_init): Use exception_none.
9496         * exceptions.c (exception_none): Move to
9497         common/common-exceptions.c.
9498         * exceptions.h (exception_none): Move to
9499         common/common-exceptions.h.
9500
9501 2015-02-27  Pedro Alves  <palves@redhat.com>
9502
9503         * main.c (catch_command_errors, catch_command_errors_const):
9504         Remove 'mask' argument.  Adjust.
9505         (captured_main): Adjust callers.
9506
9507 2015-02-27  Pedro Alves  <palves@redhat.com>
9508
9509         * python/python-internal.h: Include "extension-priv.h".
9510
9511 2015-02-27  Pedro Alves  <palves@redhat.com>
9512
9513         * breakpoint.h (enum print_stop_action): Move further up in the
9514         file.
9515
9516 2015-02-27  Pedro Alves  <palves@redhat.com>
9517
9518         * gdbarch.sh: Include regcache.h.
9519         * gdbarch.h: Regenerate.
9520
9521 2015-02-27  Pedro Alves  <palves@redhat.com>
9522
9523         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
9524         Remove duplicate const.
9525         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
9526         duplicate const.
9527
9528 2015-02-27  Pedro Alves  <palves@redhat.com>
9529
9530         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
9531         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
9532         * features/feature_to_c.sh: Tag the generated xml_builtin array
9533         with extern const in C++ mode.
9534
9535 2015-02-27  Tom Tromey  <tromey@redhat.com>
9536
9537         * minidebug.c (struct lzma_stream): Rename to ...
9538         (struct gdb_lzma_stream): ... this.
9539         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
9540
9541 2015-02-27  Pedro Alves  <palves@redhat.com>
9542
9543         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
9544         function.
9545         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9546         (mi_cmd_stack_list_variables): Use it.
9547
9548 2015-02-27  Pedro Alves  <palves@redhat.com>
9549
9550         * x86-linux-nat.c (u_debugreg_offset): New function.
9551         (x86_linux_dr_get, x86_linux_dr_set): Use it.
9552
9553 2015-02-27  Pedro Alves  <palves@redhat.com>
9554
9555         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
9556         declaration.
9557         Include break-common.h.
9558
9559 2015-02-27  Tom Tromey  <tromey@redhat.com>
9560             Pedro Alves <palves@redhat.com>
9561
9562         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
9563         local used to iterate over enums.
9564         * completer.c (signal_completer): Likewise.
9565         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
9566         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
9567         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
9568         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
9569         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
9570         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
9571         * tui-wingeneral.c (tui_refresh_all):  Likewise.
9572
9573 2015-02-27  Pedro Alves  <palves@redhat.com>
9574
9575         * target.h: Include "infrun.h".
9576
9577 2015-02-27  Pedro Alves  <palves@redhat.com>
9578
9579         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9580
9581 2015-02-27  Pedro Alves  <palves@redhat.com>
9582
9583         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
9584         (IPA_SYM): Use it.
9585         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
9586
9587 2015-02-27  Pedro Alves  <palves@redhat.com>
9588
9589         * cli-out.c (_rl_erase_entire_line): Move declaration out of
9590         cli_mld_erase_entire_line, and make it extern "C".
9591         * common/common-defs.h (EXTERN_C): New.
9592         * completer.c (_rl_completion_prefix_display_length)
9593         (_rl_print_completions_horizontally, QSFUNC): Move declarations
9594         out of gdb_display_match_list_1.
9595         (_rl_qsort_string_compare): Move declaration out of
9596         gdb_display_match_list_1, and make it extern "C".
9597         * defs.h (re_comp): Use EXTERN_C.
9598         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
9599         and make it extern "C".
9600         (monstartup): Move declaration out of maintenance_set_profile_cmd,
9601         and make it extern "C".
9602         (main): Move declaration out of maintenance_set_profile_cmd.
9603         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
9604         EXTERN_C.
9605
9606 2015-02-27  Pedro Alves  <palves@redhat.com>
9607
9608         * python/python.c (GdbMethods): Rename to ...
9609         (python_GdbMethods): ... this and make extern.
9610         (GdbModuleDef): Rename to ...
9611         (python_GdbModuleDef): ... this and make extern.
9612
9613 2015-02-27  Pedro Alves  <palves@redhat.com>
9614
9615         * record-btrace.c (set_record_btrace_cmdlist)
9616         (show_record_btrace_cmdlist): Remove redefinitions.
9617
9618 2015-02-27  Tom Tromey  <tromey@redhat.com>
9619             Pedro Alves  <palves@redhat.com>
9620
9621         * dwarf2-frame.c (enum cfa_how_kind, struct
9622         dwarf2_frame_state_reg_info): Move out of struct
9623         dwarf2_frame_state.
9624         * dwarf2read.c (struct tu_stats): Move out of struct
9625         dwarf2_per_objfile.
9626         (struct file_entry): Move out of struct line_header.
9627         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
9628         typedef_field_list): Move out of struct field_info.
9629         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
9630         Move out of struct dynamic_prop.
9631         (union type_owner, union field_location, struct field, struct
9632         range_bounds, union type_specific): Move out of struct main_type.
9633         (struct fn_fieldlist, struct fn_field, struct typedef_field)
9634         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
9635         (struct call_site_target, union call_site_parameter_u, struct
9636         call_site_parameter): Move out of struct call_site.
9637         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
9638         m32c_prologue.
9639         (enum srcdest_kind): Move out of struct srcdest.
9640         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
9641         * prologue-value.h (enum prologue_value_kind): Move out of struct
9642         prologue_value.
9643         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
9644         gdbarch_tdep.
9645         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
9646         out of struct field_info.
9647         * symfile.h (struct other_sections): Move out of struct
9648         section_addr_info.
9649         * symtab.c (struct symbol_cache_slot): Move out struct
9650         block_symbol_cache.
9651         * target-descriptions.c (enum tdesc_type_kind): Move out of
9652         typedef struct tdesc_type.
9653         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
9654         struct tui_line_or_address.
9655         * value.c (enum internalvar_kind, union internalvar_data): Move
9656         out of struct internalvar.
9657         * xtensa-tdep.h (struct ctype_cache): Move out of struct
9658         gdbarch_tdep.
9659
9660 2015-02-27  Tom Tromey  <tromey@redhat.com>
9661             Pedro Alves  <palves@redhat.com>
9662
9663         Rename symbols whose names are reserved C++ keywords throughout.
9664
9665 2015-02-27  Pedro Alves  <palves@redhat.com>
9666
9667         * Makefile.in (COMPILER): New, get it from autoconf.
9668         (COMPILE.pre, CC_LD): Use COMPILER.
9669         (CXX): Get from autoconf instead.
9670         (CXX_FOR_TARGET): Default to g++ instead of gcc.
9671         * acinclude.m4: Include build-with-cxx.m4.
9672         * build-with-cxx.m4: New file.
9673         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9674         Disable -Werror by default if building in C++ mode.
9675         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9676         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
9677         Run supported-warning-flags tests with the C++ compiler.
9678         Save/restore CXXFLAGS too.
9679         * configure: Regenerate.
9680
9681 2015-02-27  Pedro Alves  <palves@redhat.com>
9682
9683         * libiberty.m4: New file.
9684         * acinclude.m4: Include libiberty.m4.
9685         * configure.ac: Call libiberty_INIT.
9686         * config.in, configure: Regenerate.
9687
9688 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9689
9690         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
9691         31-bit targets, but 64-bit targets as well.
9692         (s390_gnu_triplet_regexp): New function.
9693         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
9694         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
9695         method.
9696
9697 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
9698
9699         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
9700         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
9701         from CONTEXT_DEBUGGER.
9702
9703 2015-02-26  Doug Evans  <dje@google.com>
9704
9705         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
9706         CHECK_TYPEDEF.
9707         (set_type_vptr_fieldno): Ditto.
9708         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
9709         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
9710
9711 2015-02-26  Pedro Alves  <palves@redhat.com>
9712
9713         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
9714         * complaints.c (vcomplaint): Pass argument FMT directly to
9715         printf-like functions instead of complaint->fmt.
9716         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
9717         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
9718         * compile/compile-loc2c.c (pushf, unary, binary): Add
9719         ATTRIBUTE_PRINTF.
9720         (do_compile_dwarf_expr_to_c): Pass string literal as format string
9721         to pushf.
9722         (BINARY): Pass string literal as format string to 'binary'.
9723         * compile/compile-object-load.c (link_callbacks_einfo): Add
9724         ATTRIBUTE_PRINTF.
9725         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
9726
9727 2015-02-26  Pedro Alves  <palves@redhat.com>
9728
9729         * windows-termcap.c: Rename to ...
9730         * stub-termcap.c: ... this.  Adjust header line.
9731         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
9732         windows-termcap.c.
9733         * configure: Regenerate.
9734         * configure.ac: Refer to stub-termcap.o instead of
9735         windows-termcap.o.
9736         * gdb_curses.h: Mention stub-termcap.c instead of
9737         windows-termcap.c.
9738
9739 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9740
9741         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
9742         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
9743
9744 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9745
9746         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
9747
9748 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9749
9750         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
9751         bfd_canonicalize_symtab.
9752
9753 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
9754
9755         * amd64fbsd-nat.c: Include sys/user.h.
9756         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
9757         instead of KERN_PS_STRINGS to locate the signal trampoline.
9758         * i386fbsd-nat.c: Include sys/user.h.
9759         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
9760         instead of KERN_PS_STRINGS to locate the signal trampoline.
9761         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
9762         (amd64fbsd_sigtramp_p): New.
9763         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
9764         longer set default values.
9765         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
9766         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
9767         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
9768         (i386fbsd_freebsd4_sigtramp_start)
9769         (i386fbsd_freebsd4_sigtramp_middle)
9770         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
9771         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
9772         (i386fbsd_sigtramp_p): New.
9773         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
9774         longer set default values.
9775         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
9776
9777 2015-02-25  John Baldwin  <jhb@freebsd.org>
9778
9779         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
9780         get_frame_register instead of frame_unwind_register_unsigned.
9781
9782 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9783
9784         PR build/18033
9785         * compile/compile-c-support.c (c_compute_program): Change // comment.
9786         * compile/compile-object-load.c (setup_sections): Change // comment.
9787
9788 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
9789
9790         PR build/18033:
9791         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
9792
9793 2015-02-23  Pedro Alves  <palves@redhat.com>
9794
9795         * remote.c (skip_to_semicolon): New function.
9796         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
9797         special case the stop reasons that look like hex numbers
9798         upfront.  Instead handle real register numbers after matching
9799         all the known stop reasons.
9800
9801 2015-02-21  Doug Evans  <dje@google.com>
9802
9803         PR c++/17976, symtab/17821
9804         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
9805         is_in_anonymous.  All callers updated.
9806         (find_symbol_in_baseclass): Ditto.
9807         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
9808         for symbols in an anonymous namespace.
9809         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
9810         DW_AT_name directly.
9811         (dwarf2_name): Convert missing namespace name to
9812         CP_ANONYMOUS_NAMESPACE_STR.
9813
9814 2015-02-20  Pedro Alves  <palves@redhat.com>
9815
9816         * linux-nat.c (linux_handle_extended_wait): Call
9817         thread_db_notice_clone whenever a new clone LWP is detected.
9818         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
9819         functions.
9820         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
9821         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
9822         (linux_unstop_all_lwps): Declare.
9823         * linux-thread-db.c (struct thread_get_info_inout): Delete.
9824         (thread_get_info_callback): Delete.
9825         (thread_from_lwp): Use td_thr_get_info and record_thread.
9826         (thread_db_attach_lwp): Delete.
9827         (thread_db_notice_clone): New function.
9828         (try_thread_db_load_1): If /proc is mounted and shows the
9829         process'es task list, walk over all LWPs and call thread_from_lwp
9830         instead of relying on td_ta_thr_iter.
9831         (attach_thread): Don't call check_thread_signals here.  Split the
9832         tail part of the function (which adds the thread to the core GDB
9833         thread list) to ...
9834         (record_thread): ... this function.  Call check_thread_signals
9835         here.
9836         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
9837         call thread_from_lwp.
9838         (thread_db_update_thread_list): Rename to ...
9839         (thread_db_update_thread_list_org): ... this.
9840         (thread_db_update_thread_list): New function.
9841         (thread_db_find_thread_from_tid): Delete.
9842         (thread_db_get_ada_task_ptid): Simplify.
9843         * nat/linux-procfs.c: Include <sys/stat.h>.
9844         (linux_proc_task_list_dir_exists): New function.
9845         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
9846
9847 2015-02-20  Pedro Alves  <palves@redhat.com>
9848
9849         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
9850         main LWP.  Handle the case of waitpid returning 0 if we're already
9851         attached to the LWP.  Don't set the LWP's last_resume_kind to
9852         resume_stop if we already knew about the LWP.
9853         (linux_nat_filter_event): Add debug logs.
9854
9855 2015-02-20  Pedro Alves  <palves@redhat.com>
9856
9857         * target.h (forward_target_decr_pc_after_break): Delete
9858         declaration.
9859
9860 2015-02-20  Pedro Alves  <palves@redhat.com>
9861
9862         PR threads/18006
9863         * linux-thread-db.c (thread_get_info_callback): Return early if
9864         the thread's lwp id is -1.
9865
9866 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
9867
9868         GDB 7.9 released.
9869
9870 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
9871
9872         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
9873         (dtrace_get_probes) Change type of variable 'dof'.
9874
9875 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9876
9877         PR breakpoints/16812
9878         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
9879         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
9880         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
9881
9882 2015-02-19  David Taylor  <dtaylor@emc.com>
9883
9884         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
9885
9886 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
9887
9888         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
9889         function.
9890         (tui_putc): Don't call tui_handle_resize_during_io.
9891         (tui_getc): Likewise.
9892         (tui_mld_getc): Likewise.
9893         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
9894         (tui_sigwinch_token): New static variable.
9895         (tui_initialize_win): Adjust documentation.  Set
9896         tui_sigwinch_token.
9897         (tui_async_resize_screen): New asynchronous callback.
9898         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
9899         invoke tui_async_resize_screen.
9900
9901 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
9902
9903         * configure: Regenerated.
9904         * configure.ac: Use GDB_AC_TRANSFORM.
9905         * Makefile.in (aclocal_m4_deps): Added transform.m4.
9906         * acinclude.m4: sinclude transform.m4.
9907         * transform.m4: New file.
9908         (GDB_AC_TRANSFORM): New macro.
9909
9910 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
9911
9912         * NEWS: Announce the support for DTrace SDT probes.
9913
9914 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
9915
9916         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
9917         (amd64_dtrace_parse_probe_argument): New function.
9918         (amd64_dtrace_probe_is_enabled): Likewise.
9919         (amd64_dtrace_enable_probe): Likewise.
9920         (amd64_dtrace_disable_probe): Likewise.
9921         (amd64_linux_init_abi): Register the
9922         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
9923         `gdbarch_dtrace_disable_probe' and
9924         `gdbarch_dtrace_probe_is_enabled' hooks.
9925         (amd64_dtrace_disabled_probe_sequence_1): New constant.
9926         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
9927         (amd64_dtrace_enable_probe_sequence): Likewise.
9928         (amd64_dtrace_disable_probe_sequence): Likewise.
9929
9930 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
9931
9932         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
9933         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
9934         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
9935         handle ELF files.
9936         * Makefile.in (SFILES): dtrace-probe.c added.
9937         * configure: Regenerate.
9938         * dtrace-probe.c: New file.
9939         (SHT_SUNW_dof): New constant.
9940         (dtrace_probe_type): New enum.
9941         (dtrace_probe_arg): New struct.
9942         (dtrace_probe_arg_s): New typedef.
9943         (struct dtrace_probe_enabler): New struct.
9944         (dtrace_probe_enabler_s): New typedef.
9945         (dtrace_probe): New struct.
9946         (dtrace_probe_is_linespec): New function.
9947         (dtrace_dof_sect_type): New enum.
9948         (dtrace_dof_dofh_ident): Likewise.
9949         (dtrace_dof_encoding): Likewise.
9950         (DTRACE_DOF_ENCODE_LSB): Likewise.
9951         (DTRACE_DOF_ENCODE_MSB): Likewise.
9952         (dtrace_dof_hdr): New struct.
9953         (dtrace_dof_sect): Likewise.
9954         (dtrace_dof_provider): Likewise.
9955         (dtrace_dof_probe): Likewise.
9956         (DOF_UINT): New macro.
9957         (DTRACE_DOF_PTR): Likewise.
9958         (DTRACE_DOF_SECT): Likewise.
9959         (dtrace_process_dof_probe): New function.
9960         (dtrace_process_dof): Likewise.
9961         (dtrace_build_arg_exprs): Likewise.
9962         (dtrace_get_arg): Likewise.
9963         (dtrace_get_probes): Likewise.
9964         (dtrace_get_probe_argument_count): Likewise.
9965         (dtrace_can_evaluate_probe_arguments): Likewise.
9966         (dtrace_evaluate_probe_argument): Likewise.
9967         (dtrace_compile_to_ax): Likewise.
9968         (dtrace_probe_destroy): Likewise.
9969         (dtrace_gen_info_probes_table_header): Likewise.
9970         (dtrace_gen_info_probes_table_values): Likewise.
9971         (dtrace_probe_is_enabled): Likewise.
9972         (dtrace_probe_ops): New variable.
9973         (info_probes_dtrace_command): New function.
9974         (_initialize_dtrace_probe): Likewise.
9975         (dtrace_type_name): Likewise.
9976
9977 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
9978
9979         * gdbarch.sh (dtrace_parse_probe_argument): New.
9980         (dtrace_probe_is_enabled): Likewise.
9981         (dtrace_enable_probe): Likewise.
9982         (dtrace_disable_probe): Likewise.
9983         * gdbarch.c: Regenerate.
9984         * gdbarch.h: Regenerate.
9985
9986 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
9987
9988         * stap-probe.c (stap_probe_ops): Add NULLs in the static
9989         stap_probe_ops for `enable_probe' and `disable_probe'.
9990         * probe.c (enable_probes_command): New function.
9991         (disable_probes_command): Likewise.
9992         (_initialize_probe): Define the cli commands `enable probe' and
9993         `disable probe'.
9994         (parse_probe_linespec): New function.
9995         (info_probes_for_ops): Use parse_probe_linespec.
9996         * probe.h (probe_ops): New hooks `enable_probe' and
9997         `disable_probe'.
9998
9999 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10000
10001         * probe.c (compute_probe_arg): Moved from stap-probe.c
10002         (compile_probe_arg): Likewise.
10003         (probe_funcs): Likewise.
10004         * stap-probe.c (compute_probe_arg): Moved to probe.c.
10005         (compile_probe_arg): Likewise.
10006         (probe_funcs): Likewise.
10007
10008 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10009
10010         * probe.c (print_ui_out_not_applicables): New function.
10011         (exists_probe_with_pops): Likewise.
10012         (info_probes_for_ops): Do not include column headers for probe
10013         types for which no probe has been actually found on any object.
10014         Also invoke `print_ui_out_not_applicables' in order to match the
10015         column rows with the header when probes of several types are
10016         listed.
10017         Print the "Type" column.
10018         * probe.h (probe_ops): Added a new probe operation `type_name'.
10019         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10020         (stap_type_name): New function.
10021
10022 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
10023
10024         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10025         (key_is_command_char): Delete.
10026
10027 2015-02-17  Pedro Alves  <palves@redhat.com>
10028
10029         * tui/tui.c (tui_enable): Resize windows before anything
10030         might show a window.
10031
10032 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10033
10034         PR gdb/17984
10035         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10036         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10037         call.
10038         * aarch64-tdep.h (tdesc_aarch64): Declare.
10039
10040 2015-02-12  Mark Wielaard  <mjw@redhat.com>
10041
10042         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10043
10044 2015-02-13  Doug Evans  <dje@google.com>
10045
10046         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10047         anonymous_namespace to is_in_anonymous for consistency with the rest
10048         of the file.
10049         (cp_lookup_bare_symbol): Fix typo in comment.
10050         (cp_search_static_and_baseclasses): Ditto.
10051         (search_symbol_list): Use vertical space in comment better.
10052         (reset_directive_searched): Ditto. Fix typo.
10053         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10054
10055 2015-02-13  Yao Qi  <yao.qi@arm.com>
10056
10057         * MAINTAINERS: Update my email address.
10058
10059 2015-02-12  Doug Evans  <dje@google.com>
10060
10061         * symtab.c (completion_list_add_name): Fix memory leak.
10062
10063 2015-02-12  Doug Evans  <dje@google.com>
10064
10065         * completer.c (complete_line): Remove incorrect comment.
10066
10067 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10068
10069         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10070         (py_print_frame): Use RETURN_MASK_ERROR.
10071
10072 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10073
10074         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10075         function comment.  Wrap all function that can throw in cleanups.
10076         (gdbpy_apply_frame_filter): Wrap all function that can throw in
10077         cleanups.
10078
10079 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10080
10081         * python/py-framefilter.c (py_print_frame): Substitute goto error.
10082         Remove the error label.
10083
10084 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10085
10086         * python/py-framefilter.c (py_print_frame): Put conditional code paths
10087         with goto first, indent the former else codepath left.  Put variable
10088         'elided' to a new inner block.
10089
10090 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10091
10092         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10093
10094 2015-02-11  Pedro Alves  <palves@redhat.com>
10095
10096         * xcoffread.c (within_function): Delete.
10097
10098 2015-02-11  Tom Tromey  <tromey@redhat.com>
10099             Pedro Alves <palves@redhat.com>
10100
10101         * breakpoint.c (base_breakpoint_ops): Delete.
10102         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10103         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10104         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10105         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10106         * python/py-arch.c (arch_object_type): Make extern.
10107         * python/py-block.c (block_syms_iterator_object_type): Make extern.
10108         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10109         * python/py-cmd.c (cmdpy_object_type): Make extern.
10110         * python/py-continueevent.c (continue_event_object_type)
10111         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10112         parameter.  Update all callers.
10113         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10114         * python/py-exitedevent.c (exited_event_object_type): Make extern.
10115         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10116         * python/py-function.c (fnpy_object_type): Make extern.
10117         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10118         * python/py-infevents.c (call_pre_event_object_type)
10119         (inferior_call_post_event_object_type).
10120         (memory_changed_event_object_type): Make extern.
10121         * python/py-infthread.c (thread_object_type): Make extern.
10122         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10123         * python/py-linetable.c (linetable_entry_object_type)
10124         (linetable_object_type, ltpy_iterator_object_type): Make extern.
10125         * python/py-newobjfileevent.c (new_objfile_event_object_type)
10126         (clear_objfiles_event_object_type): Make extern.
10127         * python/py-objfile.c (objfile_object_type): Make extern.
10128         * python/py-param.c (parmpy_object_type): Make extern.
10129         * python/py-progspace.c (pspace_object_type): Make extern.
10130         * python/py-signalevent.c (signal_event_object_type): Make extern.
10131         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10132         * python/py-type.c (type_object_type, field_object_type)
10133         (type_iterator_object_type): Make extern.
10134         * python/python.c (python_extension_script_ops)
10135         (python_extension_ops): Make extern.
10136         * stap-probe.c (stap_probe_ops): Make extern.
10137
10138 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
10139
10140         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10141         because the event thread is not the current thread.
10142
10143 2015-02-11  Doug Evans  <xdje42@gmail.com>
10144
10145         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10146         been initialized yet, return NULL.
10147
10148 2015-02-11  Doug Evans  <dje@google.com>
10149
10150         * symfile.h (new_symfile_objfile): Delete.
10151         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10152         All callers updated.
10153
10154 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10155
10156         * tui/tui-io.c (tui_handle_resize_during_io): Call
10157         tui_update_gdb_sizes() after resizing the screen.
10158         * tui/tui.c (tui_enable): Resize the terminal before
10159         calling tui_update_gdb_sizes().
10160
10161 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10162
10163         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10164         line before printing a newline.
10165
10166 2015-02-11  Mark Wielaard  <mjw@redhat.com>
10167
10168         * utils.c (producer_is_gcc): Return true or false.
10169
10170 2015-02-10  Mark Wielaard  <mjw@redhat.com>
10171
10172         * utils.h (producer_is_gcc): Change return type to bool. Add major
10173         argument.
10174         * utils.c (producer_is_gcc): Likewise.
10175         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10176         * dwarf2read.c (check_producer): Likewise.
10177
10178 2015-02-10  Pedro Alves  <palves@redhat.com>
10179
10180         * infrun.c (displaced_step_fixup): Switch to the event thread
10181         before calling gdbarch_displaced_step_fixup.
10182
10183 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
10184
10185         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10186
10187 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
10188
10189         * ada-varobj.c (ada_name_of_child): Constify parent.
10190         (ada_path_expr_of_child): Same.
10191         (ada_value_of_child): Same.
10192         (ada_type_of_child): Same.
10193         * c-varobj.c (c_is_path_expr_parent): Same.
10194         (c_describe_child): Same.
10195         (c_name_of_child): Same.
10196         (c_value_of_child): Same.
10197         (c_type_of_child): Same.
10198         (cplus_number_of_children): Same.
10199         (cplus_describe_child): Constify var.
10200         (cplus_name_of_child): Constify parent.
10201         (cplus_value_of_child): Same.
10202         (cplus_type_of_child): Same.
10203         * jv-varobj.c (java_name_of_child): Same.
10204         (java_value_of_child): Same.
10205         (java_type_of_child): Same.
10206         * varobj.c (value_of_child): Same.
10207         (varobj_default_is_path_expr_parent): Constify var, parent and return
10208         value.
10209         (varobj_get_path_expr): Constify var, modify path_expr through
10210         mutable_var.
10211         (install_new_value): Constify parent.
10212         (value_of_child): Constify parent.
10213         * varobj.h (struct varobj): Constify parent.
10214         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10215         type_of_child.
10216         (varobj_get_path_expr): Constify var.
10217         (varobj_get_path_expr_parent): Constify var and return value.
10218
10219 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
10220
10221         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10222         (arm_prologue_this_id): Move PC and SP limit checks to
10223         arm_prologue_unwind_stop_reason.
10224         (arm_prologue_unwind) <stop_reason> : Set to
10225         arm_prologue_unwind_stop_reason.
10226
10227 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10228
10229         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10230         DW_LANG_Fortran08 as language_fortran.
10231
10232 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
10233
10234         PR remote/17946
10235         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10236         of pointer against char.
10237
10238 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10239
10240         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10241         (c_type_print_modifier): Likewise.
10242         * dwarf2read.c (read_tag_atomic_type): New function.
10243         (read_type_die_1): Handle DW_TAG_atomic_type.
10244         * gdbtypes.c (make_atomic_type): New function.
10245         (recursive_dump_type): Handle TYPE_ATOMIC.
10246         * gdbtypes.h (enum type_flag_values): Renumber.
10247         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10248         (TYPE_ATOMIC): New macro.
10249         (make_atomic_type): Declare.
10250
10251 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10252
10253         * btrace.c (ftrace_find_call): Skip gaps.
10254         (ftrace_new_function): Initialize level.
10255         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10256         (ftrace_new_switch): Update
10257         level computation.
10258         (ftrace_new_gap): New.
10259         (ftrace_update_function): Create new function after gap.
10260         (btrace_compute_ftrace_bts): Create gap on error.
10261         (btrace_stitch_bts): Update parameters.  Clear trace if it
10262         becomes empty.
10263         (btrace_stitch_trace): Update parameters.  Update callers.
10264         (btrace_clear): Reset the number of gaps.
10265         (btrace_insn_get): Return NULL if the iterator points to a gap.
10266         (btrace_insn_number): Return zero if the iterator points to a gap.
10267         (btrace_insn_end): Allow gaps at the end.
10268         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10269         (btrace_find_insn_by_number): Assert that the found iterator does
10270         not point to a gap.
10271         (btrace_call_next, btrace_call_prev): Assert that the last function
10272         is not a gap.
10273         * btrace.h (btrace_bts_error): New.
10274         (btrace_function): Update comment.
10275         (btrace_function) <insn, insn_offset, number>: Update comment.
10276         (btrace_function) <errcode>: New.
10277         (btrace_thread_info) <ngaps>: New.
10278         (btrace_thread_info) <replay>: Update comment.
10279         (btrace_insn_get): Update comment.
10280         * record-btrace.c (btrace_ui_out_decode_error): New.
10281         (record_btrace_info): Print number of gaps.
10282         (btrace_insn_history, btrace_call_history): Call
10283         btrace_ui_out_decode_error for gaps.
10284         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10285
10286 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10287
10288         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10289         * nat/linux-btrace.c: (btrace_this_cpu): New.
10290         (cpu_supports_bts): Call btrace_this_cpu.
10291         (intel_supports_bts): Add cpu parameter.
10292
10293 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10294
10295         * btrace.h (btrace_insn_class): New.
10296         (btrace_insn) <size, iclass>: New.
10297         * btrace.c (ftrace_find_call): Update parameters.  Update users.
10298         Use instruction classification.
10299         (ftrace_new_return): Update parameters.  Update users.
10300         (ftrace_update_function): Update parameters.  Update users.  Use
10301         instruction classification.
10302         (ftrace_update_insns): Update parameters.  Update users.
10303         (ftrace_classify_insn): New.
10304         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
10305         TRY_CATCH around call to gdb_insn_length.
10306
10307 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10308
10309         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10310         Update parameters.  Update users.
10311
10312 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10313
10314         * btrace.c (parse_xml_btrace_conf_bts): Add size.
10315         (btrace_conf_bts_attributes): New.
10316         (btrace_conf_children): Add attributes.
10317         * common/btrace-common.h (btrace_config_bts): New.
10318         (btrace_config)<bts>: New.
10319         (btrace_config): Update comment.
10320         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10321         Use config.
10322         * features/btrace-conf.dtd: Increment version.  Add size
10323         attribute to bts element.
10324         * record-btrace.c (set_record_btrace_bts_cmdlist,
10325         show_record_btrace_bts_cmdlist): New.
10326         (record_btrace_adjust_size, record_btrace_print_bts_conf,
10327         record_btrace_print_conf, cmd_set_record_btrace_bts,
10328         cmd_show_record_btrace_bts): New.
10329         (record_btrace_info): Call record_btrace_print_conf.
10330         (_initialize_record_btrace): Add commands.
10331         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10332         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10333         (btrace_sync_conf): Synchronize bts size.
10334         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10335         * NEWS: Announce new commands and new packets.
10336
10337 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10338
10339         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10340         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10341         (x86_linux_btrace_conf): New.
10342         (x86_linux_create_target): Initialize to_btrace_conf.
10343         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10344         Check format.  Split into this and ...
10345         (linux_enable_bts): ... this.
10346         (linux_btrace_conf): New.
10347         (perf_event_skip_record): Renamed into ...
10348         (perf_event_skip_bts_record): ... this.  Updated users.
10349         (linux_disable_btrace): Split into this and ...
10350         (linux_disable_bts): ... this.
10351         (linux_read_btrace): Check format.
10352         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10353         (linux_btrace_conf): New.
10354         (btrace_target_info)<ptid>: Moved.
10355         (btrace_target_info)<conf>: New.
10356         (btrace_target_info): Split into this and ...
10357         (btrace_tinfo_bts): ... this.  Updated users.
10358         * btrace.c (btrace_enable): Update parameters.
10359         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10360         (btrace_conf_children, btrace_conf_attributes)
10361         (btrace_conf_elements): New.
10362         * btrace.h (btrace_enable): Update parameters.
10363         (btrace_conf, parse_xml_btrace_conf): New.
10364         * common/btrace-common.h (btrace_config): New.
10365         * feature/btrace-conf.dtd: New.
10366         * record-btrace.c (record_btrace_conf): New.
10367         (record_btrace_cmdlist): New.
10368         (record_btrace_enable_warn, record_btrace_open): Pass
10369         &record_btrace_conf.
10370         (record_btrace_info): Print recording format.
10371         (cmd_record_btrace_bts_start): New.
10372         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10373         (_initialize_record_btrace): Add "record btrace bts" subcommand.
10374         Add "record bts" alias command.
10375         * remote.c (remote_state)<btrace_config>: New.
10376         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
10377         (remote_protocol_features): Add qXfer:btrace-conf:read.
10378         (remote_open_1): Call remote_btrace_reset.
10379         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
10380         (btrace_target_info)<conf>: New.
10381         (btrace_sync_conf, btrace_read_config): New.
10382         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
10383         btrace_read_conf.
10384         (remote_btrace_conf): New.
10385         (init_remote_ops): Initialize to_btrace_conf.
10386         (_initialize_remote): Add qXfer:btrace-conf packet.
10387         * target.c (target_enable_btrace): Update parameters.
10388         (target_btrace_conf): New.
10389         * target.h (target_enable_btrace): Update parameters.
10390         (target_btrace_conf): New.
10391         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
10392         (target_ops)<to_enable_btrace>: Update parameters and comment.
10393         (target_ops)<to_btrace_conf>: New.
10394         * target-delegates: Regenerate.
10395         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
10396         (target_debug_print_const_struct_btrace_target_info_p): New.
10397         * NEWS: Announce new command and new packet.
10398
10399 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10400
10401         * nat/linux-btrace.h (perf_event_buffer): New.
10402         (btrace_target_info) <buffer, size, data_head>: Replace with ...
10403         <bts>: ... this.
10404         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
10405         (perf_event_buffer_size, perf_event_buffer_begin)
10406         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
10407         Updated users.
10408         (perf_event_new_data): New.
10409
10410 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10411
10412         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
10413         * record-btrace.c (record_btrace_open): Remove call to
10414         target_supports_btrace.
10415         * remote.c (remote_supports_btrace): Update parameters.
10416         * target.c (target_supports_btrace): Update parameters.
10417         * target.h (to_supports_btrace, target_supports_btrace): Update
10418         parameters.
10419         * target-delegates.c: Regenerate.
10420         * target-debug.h (target_debug_print_enum_btrace_format): New.
10421         * nat/linux-btrace.c
10422         (kernel_supports_btrace): Rename into ...
10423         (kernel_supports_bts): ... this.  Update users.  Update warning text.
10424         (intel_supports_btrace): Rename into ...
10425         (intel_supports_bts): ... this.  Update users.
10426         (cpu_supports_btrace): Rename into ...
10427         (cpu_supports_bts): ... this.  Update users.
10428         (linux_supports_btrace): Update parameters.  Split into this and ...
10429         (linux_supports_bts): ... this.
10430         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
10431
10432 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10433
10434         * Makefile.in (SFILES): Add common/btrace-common.c.
10435         (COMMON_OBS): Add common/btrace-common.o.
10436         (btrace-common.o): Add build rules.
10437         * btrace.c (parse_xml_btrace): Update parameters.
10438         (parse_xml_btrace_block): Set format field.
10439         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
10440         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
10441         (btrace_compute_ftrace): Split into this and...
10442         (btrace_compute_ftrace_bts): ...this.
10443         (btrace_stitch_trace): Split into this and...
10444         (btrace_stitch_bts): ...this.
10445         * btrace.h (parse_xml_btrace): Update parameters.
10446         (make_cleanup_btrace_data): New.
10447         * common/btrace-common.c: New.
10448         * common/btrace-common.h: Include common-defs.h.
10449         (btrace_block_s): Update comment.
10450         (btrace_format): New.
10451         (btrace_format_string): New.
10452         (btrace_data_bts): New.
10453         (btrace_data): New.
10454         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
10455         * remote.c (remote_read_btrace): Update parameters.
10456         * target.c (target_read_btrace): Update parameters.
10457         * target.h (target_read_btrace): Update parameters.
10458         (target_ops)<to_read_btrace>: Update parameters.
10459         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
10460         * target-delegates.c: Regenerate.
10461         * target-debug (target_debug_print_struct_btrace_data_p): New.
10462         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
10463         (linux_read_bts): ...this.
10464         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
10465
10466 2015-02-06  Doug Evans  <dje@google.com>
10467
10468         * remote-m32r-sdi.c: Include symfile.h.
10469
10470 2015-02-06  Doug Evans  <dje@google.com>
10471
10472         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
10473         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
10474         to here.
10475
10476 2015-02-06  Pedro Alves  <palves@redhat.com>
10477
10478         * linux-thread-db.c (find_new_threads_callback): Add debug output.
10479
10480 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
10481
10482         PR gdb/15678
10483         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
10484         (enable_count_command): Check args for NULL value.
10485
10486 2015-02-05  Doug Evans  <xdje42@gmail.com>
10487
10488         * guile/scm-frame.c: Fix spelling errors in a comment.
10489
10490 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10491
10492         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
10493         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
10494         return type.
10495
10496 2015-02-04  Pedro Alves  <palves@redhat.com>
10497
10498         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
10499         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
10500         returns true.
10501         (resume_stopped_resumed_lwps): Don't check whether the thread is
10502         marked as executing.
10503         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
10504
10505 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10506
10507         * regset.h (struct regset): Add flags field.
10508         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
10509         * corelow.c (get_core_register_section): Add warning if the size
10510         exceeds the requested size and the regset does not have the
10511         REGSET_VARIABLE_SIZE flag set.
10512         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
10513         flag.
10514         * armbsd-tdep.c (armbsd_gregset): Likewise.
10515         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
10516         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
10517         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
10518         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
10519
10520 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10521
10522         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
10523         For ".reg-xstate", explicitly specify the requested section size
10524         via X86_XSTATE_SIZE instead of just 0 on input and
10525         X86_XSTATE_MAX_SIZE on output.
10526         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
10527         Likewise.
10528
10529 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10530
10531         PR corefiles/17808:
10532         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
10533         function type, particularly its SIZE parameter.
10534         * gdbarch.h: Regenerate.
10535         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
10536         actual against required size using ">=" instead of "==".
10537         (amd64_collect_fpregset): Likewise.
10538         * i386-tdep.c (i386_supply_gregset): Likewise.
10539         (i386_collect_gregset): Likewise.
10540         (i386_supply_fpregset): Likewise.
10541         (i386_collect_fpregset): Likewise.
10542         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
10543         (mips_fill_gregset_wrapper): Likewise.
10544         (mips_supply_fpregset_wrapper): Likewise.
10545         (mips_fill_fpregset_wrapper): Likewise.
10546         (mips64_supply_gregset_wrapper): Likewise.
10547         (mips64_fill_gregset_wrapper): Likewise.
10548         (mips64_supply_fpregset_wrapper): Likewise.
10549         (mips64_fill_fpregset_wrapper): Likewise.
10550         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
10551         (am33_supply_fpregset_method): Likewise.
10552         (am33_collect_gregset_method): Likewise.
10553         (am33_collect_fpregset_method): Likewise.
10554
10555 2015-02-04  Doug Evans  <dje@google.com>
10556             Pedro Alves  <palves@redhat.com>
10557             Eli Zaretskii  <eliz@gnu.org>
10558
10559         PR tui/17810
10560         * tui/tui-command.c (tui_refresh_cmd_win): New function.
10561         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
10562         * tui/tui-file.c: #include tui/tui-command.h.
10563         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
10564         (tui_file_flush): Refresh command window if stream is gdb_stdout.
10565         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
10566
10567 2015-02-04  Pedro Alves  <palves@redhat.com>
10568
10569         Fix build breakage.
10570         * event-loop.c (gdb_do_one_event): Add default switch case.
10571
10572 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10573
10574         Filter out inferior gcc option -fpreprocessed.
10575         * compile/compile.c (filter_args): New function.
10576         (get_args): Use it.
10577
10578 2015-02-03  Pedro Alves  <palves@redhat.com>
10579
10580         * event-loop.c: Don't declare nor define a queue type for
10581         gdb_event_p.
10582         (event_queue): Delete.
10583         (create_event, create_file_event, gdb_event_xfree)
10584         (initialize_event_loop, process_event): Delete.
10585         (gdb_do_one_event): Return as soon as one event is handled.
10586         (handle_file_event): Change prototype.  Used the passed in
10587         file_handler pointer and ready_mask instead of looping over all
10588         file handlers.
10589         (gdb_wait_for_event): Update the poll/select timeouts before
10590         blocking.  Run event handlers directly instead of queueing events.
10591         Return as soon as one event is handled.
10592         (struct async_event_handler_data): Delete.
10593         (invoke_async_event_handler): Delete.
10594         (check_async_event_handlers): Change return type to int.  Run
10595         event handlers directly instead of queueing events.  Return as
10596         soon as one event is handled.
10597         (handle_timer_event): Delete.
10598         (update_wait_timeout): New function, factored out from
10599         poll_timers.
10600         (poll_timers): Reimplement.
10601         * event-loop.h (initialize_event_loop): Delete declaration.
10602         * top.c (gdb_init): Don't call initialize_event_loop.
10603
10604 2015-02-03  Pedro Alves  <palves@redhat.com>
10605
10606         * event-loop.c (clear_async_event_handler): New function.
10607         * event-loop.h (clear_async_event_handler): New declaration.
10608         * record-btrace.c (record_btrace_async): New function.
10609         (init_record_btrace_ops): Install record_btrace_async.
10610         * record-full.c (record_full_async): New function.
10611         (record_full_resume): Don't mark the async event source here.
10612         (init_record_full_ops): Install record_full_async.
10613         (record_full_core_resume): Don't mark the async event source here.
10614         (init_record_full_core_ops): Install record_full_async.
10615         * remote.c (remote_async): Mark and clear the async stop reply
10616         queue event-loop token as appropriate.
10617
10618 2015-02-03  Pedro Alves  <palves@redhat.com>
10619
10620         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
10621         target_is_async_p instead of target_can_async.
10622         (linux_nat_wait): Use target_is_async_p instead of
10623         target_can_async.  Don't enable async here.
10624         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
10625         target_is_async_p instead of target_can_async.
10626
10627 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
10628
10629         * varobj.h (lang_varobj_ops): Mention which return values need
10630         to be freed.
10631
10632 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
10633
10634         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
10635
10636 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
10637
10638         PR gdb/17856:
10639         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
10640         results found in the cache.
10641
10642 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
10643
10644         PR gdb/17854:
10645         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
10646         when allocating a new one.
10647
10648 2015-02-01  Tom Tromey  <tom@tromey.com>
10649
10650         * MAINTAINERS: Remove myself.
10651
10652 2015-01-31  Doug Evans  <xdje42@gmail.com>
10653
10654         * dwarf2read.c (process_structure_scope): Update setting of
10655         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
10656         * gdbtypes.c (internal_type_vptr_fieldno): New function.
10657         (set_type_vptr_fieldno): New function.
10658         (internal_type_vptr_basetype): New function.
10659         (set_type_vptr_basetype): New function.
10660         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
10661         TYPE_VPTR_BASETYPE.
10662         (allocate_cplus_struct_type): Initialize vptr_fieldno.
10663         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
10664         (print_cplus_stuff): ... moved here.
10665         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
10666         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
10667         moved to ...
10668         (struct cplus_struct_type): ... here.  All uses updated.
10669         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
10670         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
10671         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
10672         * stabsread.c (read_tilde_fields): Update setting of
10673         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
10674
10675 2015-01-31  Doug Evans  <xdje42@gmail.com>
10676
10677         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
10678         to self_p.
10679         (cp_print_class_member): Rename local domain to self_type.
10680         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
10681         domain_type to self_type.
10682         (set_die_type) <need_gnat_info>: Handle
10683         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
10684         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
10685         TYPE_SPECIFIC_SELF_TYPE.
10686         * gdbtypes.c (internal_type_self_type): New function.
10687         (set_type_self_type): New function.
10688         (smash_to_memberptr_type): Rename parameter domain to self_type.
10689         Update setting of TYPE_SELF_TYPE.
10690         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
10691         (smash_to_method_type): Rename parameter domain to self_type.
10692         Update setting of TYPE_SELF_TYPE.
10693         (check_stub_method): Call smash_to_method_type.
10694         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
10695         (copy_type_recursive): Ditto.
10696         * gdbtypes.h (enum type_specific_kind): New value
10697         TYPE_SPECIFIC_SELF_TYPE.
10698         (struct main_type) <type_specific>: New member self_type.
10699         (struct cplus_struct_type) <fn_field.type>: Update comment.
10700         (TYPE_SELF_TYPE): Rewrite.
10701         (internal_type_self_type, set_type_self_type): Declare.
10702         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
10703         self_type.
10704         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
10705         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
10706         TYPE_TARGET_TYPE.
10707         * stabsread.c (read_member_functions): Mark methods with
10708         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
10709         TYPE_SELF_TYPE.
10710
10711 2015-01-31  Doug Evans  <xdje42@gmail.com>
10712
10713         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
10714         All uses updated.
10715
10716 2015-01-31  Doug Evans  <xdje42@gmail.com>
10717
10718         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
10719         or unions.  Return zero if union.
10720         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
10721         (gnuv3_rtti_type): Pass already-check_typedef'd value to
10722         gnuv3_get_vtable.
10723         (compute_vtable_size): Assert only passed structs.
10724         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
10725
10726 2015-01-31  Doug Evans  <xdje42@gmail.com>
10727
10728         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
10729         kinds.
10730
10731 2015-01-31  Gary Benson <gbenson@redhat.com>
10732             Doug Evans  <dje@google.com>
10733
10734         PR cli/9007
10735         PR cli/11920
10736         PR cli/15548
10737         * cli/cli-cmds.c (complete_command): Notify user if max-completions
10738         reached.
10739         * common/common-exceptions.h (enum errors)
10740         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
10741         * completer.h (get_max_completions_reached_message): New declaration.
10742         (max_completions): Likewise.
10743         (completion_tracker_t): New typedef.
10744         (new_completion_tracker): New declaration.
10745         (make_cleanup_free_completion_tracker): Likewise.
10746         (maybe_add_completion_enum): New enum.
10747         (maybe_add_completion): New declaration.
10748         (throw_max_completions_reached_error): Likewise.
10749         * completer.c (max_completions): New global variable.
10750         (new_completion_tracker): New function.
10751         (free_completion_tracker): Likewise.
10752         (make_cleanup_free_completion_tracker): Likewise.
10753         (maybe_add_completions): Likewise.
10754         (throw_max_completions_reached_error): Likewise.
10755         (complete_line): Remove duplicates and limit result to max_completions
10756         entries.
10757         (get_max_completions_reached_message): New function.
10758         (gdb_display_match_list): Handle max_completions.
10759         (_initialize_completer): New declaration and function.
10760         * symtab.c: Include completer.h.
10761         (completion_tracker): New static variable.
10762         (completion_list_add_name): Call maybe_add_completion.
10763         (default_make_symbol_completion_list_break_on_1): Renamed from
10764         default_make_symbol_completion_list_break_on.  Maintain
10765         completion_tracker across calls to completion_list_add_name.
10766         (default_make_symbol_completion_list_break_on): New function.
10767         * top.c (init_main): Set rl_completion_display_matches_hook.
10768         * tui/tui-io.c: Include completer.h.
10769         (tui_old_rl_display_matches_hook): New static global.
10770         (tui_rl_display_match_list): Notify user if max-completions reached.
10771         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
10772         * NEWS (New Options): Mention set/show max-completions.
10773
10774 2015-01-31  Gary Benson  <gbenson@redhat.com>
10775
10776         * symtab.c (struct add_name_data) <code>: New field.
10777         Updated comments.
10778         (add_symtab_completions): New function.
10779         (symtab_expansion_callback): Likewise.
10780         (default_make_symbol_completion_list_break_on): Set datum.code.
10781         Move minimal symbol scan before calling expand_symtabs_matching.
10782         Scan known primary symtabs for externs and statics before calling
10783         expand_symtabs_matching.  Pass symtab_expansion_callback as
10784         expansion_notify argument to expand_symtabs_matching.  Do not scan
10785         primary symtabs for externs and statics after calling
10786         expand_symtabs_matching.
10787
10788 2015-01-31  Gary Benson  <gbenson@redhat.com>
10789
10790         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
10791         (struct quick_symbol_functions) <expand_symtabs_matching>:
10792         New argument expansion_notify.  All uses updated.
10793         (expand_symtabs_matching): New argument expansion_notify.
10794         All uses updated.
10795         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10796         Also print expansion notify.
10797         * symtab.c (expand_symtabs_matching_via_partial): Call
10798         expansion_notify whenever a partial symbol table is expanded.
10799         * dwarf2read.c (dw2_expand_symtabs_matching): Call
10800         expansion_notify whenever a symbol table is instantiated.
10801
10802 2015-01-31  Doug Evans  <xdje42@gmail.com>
10803
10804         * cli-out.c: #include completer.h, readline/readline.h.
10805         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
10806         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
10807         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
10808         * cli-out.h (cli_display_match_list): Declare.
10809         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
10810         (ELLIPSIS_LEN): Ditto.
10811         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
10812         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
10813         (gdb_fnprint, gdb_print_filename): Ditto.
10814         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
10815         (gdb_display_match_list): Ditto.
10816         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
10817         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
10818         (mld_beep_ftype, mld_read_key_ftype): Ditto.
10819         (match_list_displayer): New struct.
10820         (gdb_display_match_list): Declare.
10821         * top.c (init_main): Set rl_completion_display_matches_hook.
10822         * tui/tui-io.c: #include completer.h.
10823         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
10824         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
10825         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
10826         (tui_mld_getc, tui_mld_read_key): Ditto.
10827         (tui_rl_display_match_list): Rewrite.
10828         (tui_handle_resize_during_io): New arg for_completion.  All callers
10829         updated.
10830
10831 2015-01-31  Doug Evans  <xdje42@gmail.com>
10832
10833         Add symbol lookup cache.
10834         * NEWS: Document new options and commands.
10835         * symtab.c (symbol_cache_key): New static global.
10836         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
10837         (SYMBOL_LOOKUP_FAILED): New macro.
10838         (symbol_cache_slot_state): New enum.
10839         (block_symbol_cache): New struct.
10840         (symbol_cache): New struct.
10841         (new_symbol_cache_size, symbol_cache_size): New static globals.
10842         (hash_symbol_entry, eq_symbol_entry): New functions.
10843         (symbol_cache_byte_size, resize_symbol_cache): New functions.
10844         (make_symbol_cache, free_symbol_cache): New functions.
10845         (get_symbol_cache, symbol_cache_cleanup): New function.
10846         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
10847         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
10848         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
10849         (symbol_cache_flush, symbol_cache_dump): New functions.
10850         (maintenance_print_symbol_cache): New function.
10851         (maintenance_flush_symbol_cache): New function.
10852         (symbol_cache_stats): New function.
10853         (maintenance_print_symbol_cache_statistics): New function.
10854         (symtab_new_objfile_observer): New function.
10855         (symtab_free_objfile_observer): New function.
10856         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
10857         (_initialize_symtab): Init symbol_cache_key.  New parameter
10858         maint symbol-cache-size.  New maint commands print symbol-cache,
10859         print symbol-cache-statistics, flush-symbol-cache.
10860         Install new_objfile, free_objfile observers.
10861
10862 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
10863
10864         PR symtab/17855
10865         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
10866         to end.
10867
10868 2015-01-31  Doug Evans  <xdje42@gmail.com>
10869
10870         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
10871         * auto-load.c: #include ctype.h.
10872         (struct auto_load_pspace_info): Replace member loaded_scripts with
10873         new members loaded_script_files, loaded_script_texts.
10874         (auto_load_pspace_data_cleanup): Update.
10875         (init_loaded_scripts_info): Update.
10876         (get_auto_load_pspace_data_for_loading): Update.
10877         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
10878         updated.
10879         (maybe_add_script_text): New function.
10880         (clear_section_scripts): Update.
10881         (source_script_file, execute_script_contents): New functions.
10882         (source_section_scripts): Add support for
10883         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
10884         (print_scripts): New function.
10885         (auto_load_info_scripts): Also print inlined scripts.
10886         (maybe_print_unsupported_script_warning): Renamed from
10887         unsupported_script_warning_print.  All callers updated.
10888         (maybe_print_script_not_found_warning): Renamed from
10889         script_not_found_warning_print.  All callers updated.
10890         * extension-priv.h (struct extension_language_script_ops): New member
10891         objfile_script_executor.
10892         * extension.c (ext_lang_objfile_script_executor): New function.
10893         * extension.h (objfile_script_executor_func): New typedef.
10894         (ext_lang_objfile_script_executor): Declare.
10895         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
10896         * guile/guile.c (guile_extension_script_ops): Update.
10897         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
10898         * python/python.c (python_extension_script_ops): Update.
10899         (gdbpy_execute_objfile_script): New function.
10900
10901 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
10902
10903         * tui/tui-io.c (tui_expand_tabs): New function.
10904         (tui_puts, tui_redisplay_readline): Expand TABs into the
10905         appropriate number of spaces.
10906         * tui/tui-regs.c: Include tui-io.h.
10907         (tui_register_format): Call tui_expand_tabs to expand TABs into
10908         the appropriate number of spaces.
10909         * tui/tui-io.h: Add prototype for tui_expand_tabs.
10910
10911 2015-01-30  Doug Evans  <dje@google.com>
10912
10913         * NEWS: "info source" command now display producer string if present.
10914         * source.c (source_info): Print producer string if present.
10915
10916 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
10917
10918         * varobj.c (varobj_delete): Fix comment.
10919
10920 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
10921
10922         * varobj.c (create_child): Modify comment.
10923
10924 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
10925
10926         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
10927         parameter.
10928         (ada_name_of_variable): Same.
10929         (ada_path_expr_of_child): Same.
10930         (ada_value_of_variable): Same.
10931         (ada_value_is_changeable_p): Same.
10932         (ada_value_has_mutated): Same.
10933         * c-varobj.c (varobj_is_anonymous_child): Same.
10934         (c_is_path_expr_parent): Same.
10935         (c_number_of_children): Same.
10936         (c_name_of_variable): Same.
10937         (c_path_expr_of_child): Same.
10938         (get_type): Same.
10939         (c_value_of_variable): Same.
10940         (cplus_number_of_children): Same.
10941         (cplus_name_of_variable): Same.
10942         (cplus_path_expr_of_child): Same.
10943         (cplus_value_of_variable): Same.
10944         * jv-varobj.c (java_number_of_children): Same.
10945         (java_name_of_variable): Same.
10946         (java_path_expr_of_child): Same.
10947         (java_value_of_variable): Same.
10948         * varobj.c (number_of_children): Same.
10949         (name_of_variable): Same.
10950         (is_root_p): Same.
10951         (varobj_ensure_python_env): Same.
10952         (varobj_get_objname): Same.
10953         (varobj_get_expression): Same.
10954         (varobj_get_display_format): Same.
10955         (varobj_get_display_hint): Same.
10956         (varobj_has_more): Same.
10957         (varobj_get_thread_id): Same.
10958         (varobj_get_frozen): Same.
10959         (dynamic_varobj_has_child_method): Same.
10960         (varobj_get_gdb_type): Same.
10961         (is_path_expr_parent): Same.
10962         (varobj_default_is_path_expr_parent): Same.
10963         (varobj_get_language): Same.
10964         (varobj_get_attributes): Same.
10965         (varobj_is_dynamic_p): Same.
10966         (varobj_get_child_range): Same.
10967         (varobj_value_has_mutated): Same.
10968         (varobj_get_value_type): Same.
10969         (number_of_children): Same.
10970         (name_of_variable): Same.
10971         (check_scope): Same.
10972         (varobj_editable_p): Same.
10973         (varobj_value_is_changeable_p): Same.
10974         (varobj_floating_p): Same.
10975         (varobj_default_value_is_changeable_p): Same.
10976
10977 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
10978
10979         * varobj.c (varobj_get_path_expr): Set var->path_expr.
10980         * c-varobj.c (c_path_expr_of_child): Set local var instead of
10981         child->path_expr.
10982         (cplus_path_expr_of_child): Same.
10983
10984 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
10985
10986         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
10987         result.
10988         (mi_cmd_var_info_expression): Same.
10989         * varobj.c (varobj_get_expression): Mention in the comment that
10990         the result must by freed by the caller.
10991
10992 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
10993
10994         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
10995         varobj_get_type.
10996         (varobj_update_one): Same.
10997         * varobj.c (update_type_if_necessary): Free curr_type_str and
10998         new_type_str.
10999         (varobj_get_type): Specify in comment that the result needs to be
11000         freed by the caller.
11001
11002 2015-01-29  Doug Evans  <dje@google.com>
11003
11004         PR symtab/17890
11005         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11006
11007 2015-01-25  Mark Wielaard  <mjw@redhat.com>
11008
11009         * dwarf2read.c (checkproducer): Call producer_is_gcc.
11010         * utils.c (producer_is_gcc_ge_4): Likewise.
11011         (producer_is_gcc): New function.
11012         * utils.h (producer_is_gcc): New declaration.
11013
11014 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11015
11016         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11017         kind.
11018         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11019         parameter by "addr_stack" parameter.
11020         (resolve_dynamic_range): Replace "addr" parameter by
11021         "stack_addr" parameter.  Update function documentation.
11022         Update code accordingly.
11023         (resolve_dynamic_array, resolve_dynamic_union)
11024         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11025         (resolve_dynamic_type): Update code, following the changes made
11026         to resolve_dynamic_type_internal's interface.
11027         * dwarf2loc.h (struct property_addr_info): New.
11028         (dwarf2_evaluate_property): Replace "address" parameter
11029         by "addr_stack" parameter.  Adjust function documentation.
11030         (struct dwarf2_offset_baton): New.
11031         (struct dwarf2_property_baton): Update documentation of
11032         field "referenced_type" to be more general. New field
11033         "offset_info" in union data field.
11034         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11035         parameter by "addr_stack" parameter.  Adjust code accordingly.
11036         Add support for PROP_ADDR_OFFSET properties.
11037         * dwarf2read.c (attr_to_dynamic_prop): Add support for
11038         DW_AT_data_member_location attributes as well.  Use case
11039         statements instead of if/else condition.
11040
11041 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11042
11043         * ada-varobj.c (ada_varobj_get_array_number_of_children):
11044         Return zero if PARENT_VALUE is NULL and parent_type's
11045         range type is dynamic.
11046
11047 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11048
11049         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11050         nonzero if the type's subtype is dynamic.
11051         (resolve_dynamic_range): Also resolve the range's subtype.
11052
11053 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
11054
11055         Pushed by Joel Brobecker  <brobecker@adacore.com>.
11056         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11057
11058 2015-01-27  Doug Evans  <dje@google.com>
11059
11060         * NEWS: Mention gdb.Objfile.username.
11061         * python/py-objfile.c (objfpy_get_username): New function.
11062         (objfile_getset): Add "username".
11063
11064 2015-01-24  Mark Wielaard  <mjw@redhat.com>
11065
11066         * stack.c (return_command): Markup warning message with _.
11067
11068 2015-01-24  Doug Evans  <xdje42@gmail.com>
11069
11070         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11071
11072 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11073
11074         Fix 100x slowdown regression on DWZ files.
11075         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11076         (struct line_header): Add offset and offset_in_dwz.
11077         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11078         (free_line_header_voidp): New declaration.
11079         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11080         functions.
11081         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11082         (handle_DW_AT_stmt_list): Use line_header_hash.
11083         (free_line_header_voidp): New function.
11084         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11085         (dwarf_decode_lines): New parameter decode_mapping, use it.
11086         (dwarf2_free_objfile): Free line_header_hash.
11087
11088 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
11089
11090         PR gdb/17416
11091         * valops.c (value_rtti_indirect_type): Catch exception thrown by
11092         value_ind.
11093
11094 2015-01-15  Mark Wielaard  <mjw@redhat.com>
11095
11096         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11097         DW_AT_noreturn.
11098         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11099         calling_convention an 8 bit bit field.
11100         (TYPE_NO_RETURN): New macro.
11101         * infcmd.c (finish_command): Query if function does not return
11102         normally.
11103         * stack.c (return_command): Likewise.
11104
11105 2015-01-23  Pedro Alves  <palves@redhat.com>
11106
11107         * linux-nat.c (linux_is_async_p): New macro.
11108         (linux_nat_is_async_p):
11109         (linux_nat_terminal_inferior): Check whether the target can async
11110         instead of whether it is already async.
11111         (linux_nat_terminal_ours): Don't check whether the target is
11112         async.
11113         (linux_async_pipe): Use linux_is_async_p.
11114
11115 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11116
11117         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11118         '-ascending'.
11119         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11120         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11121         Sort tp_array using tp_array_compar.
11122         (_initialize_thread): Extend thread_apply_all_command help.
11123
11124 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11125
11126         * corelow.c (core_open): Call also thread_command.
11127         * gdbthread.h (thread_command): New prototype moved from ...
11128         * thread.c (thread_command): ... here.
11129         (thread_command): Make it global.
11130
11131 2015-01-22  Pedro Alves  <palves@redhat.com>
11132
11133         * configure.ac [*mingw32*]: Check $curses_found instead of
11134         $prefer_curses.
11135         * configure: Regenerate.
11136         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11137         HAVE_NCURSES_NCURSES_H checks.
11138
11139 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11140
11141         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11142         fails with the 1st arg NULL, try again with "unknown".  Don't test
11143         the "cup" capability: it isn't supported by the Windows port of
11144         ncurses, but the Windows console driver is still capable of
11145         supporting TUI.
11146
11147 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11148
11149         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11150
11151 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11152
11153         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11154         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
11155         reason that "make TAGS" is broken.
11156
11157 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
11158
11159         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11160         and check additional store instructions.
11161
11162 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11163
11164         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11165
11166 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11167
11168         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11169         ppc_canonicalize_syscall, ppc_linux_syscall_record,
11170         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11171         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11172         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11173         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11174         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11175         ppc_process_record_op19, ppc_process_record_op31,
11176         ppc_process_record_op59, ppc_process_record_op60,
11177         ppc_process_record_op63): Likewise.
11178
11179 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
11180
11181         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11182         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11183         strerror.
11184
11185 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
11186
11187         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11188         ppc_process_record_op31, ppc_process_record_op59,
11189         ppc_process_record_op60, ppc_process_record_op63,
11190         ppc_process_record): Fix -Wformat warning.
11191         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11192         Remove unused variables.
11193
11194 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
11195
11196         * MAINTAINERS (Write After Approval): Add "Chen Gang".
11197
11198 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
11199
11200         * configure.ac [*mingw32*]: Only add windows-termcap.o to
11201         CONFIG_OBS if not building with a curses library.
11202         * configure: Regenerate.
11203
11204         * windows-termcap.c: Include defs.h.  Make the whole body empty if
11205         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11206         HAVE_NCURSES_NCURSES_H is defined.
11207
11208 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
11209
11210         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11211         from end of line to start of next line.
11212
11213 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11214
11215         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11216         Scan PLT stub backward for reverse debugging.
11217         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11218
11219 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11220             Ulrich Weigand  <uweigand@de.ibm.com>
11221
11222         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11223         gdb_target_obs.
11224         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11225         record.
11226         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11227         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11228         (ppc_linux_init_abi): Set process_record, process_record_signal.
11229         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11230         ppc_linux_record_tdep to gdbarch_tdep.
11231         (ppc_process_record): New declaration.
11232         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11233         ppc_process_record_op19, ppc_process_record_op31,
11234         ppc_process_record_op59, ppc_process_record_op60,
11235         ppc_process_record_op63, ppc_process_record): New functions.
11236
11237 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11238
11239         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11240         rs6000_in_function_epilogue_frame_p and add an argument
11241         for frame_info.
11242         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11243         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11244         New functions.
11245         (rs6000_epilogue_frame_unwind): New.
11246         (rs6000_gdbarch_init): Append epilogue unwinder.
11247
11248 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11249
11250         * nat/linux-personality.c: Replace "#ifndef
11251         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11252         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11253         systems.
11254
11255 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
11256
11257         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11258         functions.
11259         (_initialize_tui_win) <border-kind, border-mode>:
11260         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11261         (tui_set_tab_width_command): Fix the commentary.
11262
11263         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11264
11265         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11266         Doc fix.
11267         (tui_set_tab_width_command): Delete and recreate the source and
11268         the disassembly windows, to show the effect of the changed tab
11269         size immediately.
11270
11271         * tui/tui-data.h (LINE_PREFIX): Make shorter
11272         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11273         "Thread NNNNN.XXXX" thread ID notation on Windows.
11274
11275 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11276
11277         Fix gcc-5 compilation.
11278         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11279
11280 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
11281
11282         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11283         (linux-personality.o): New rule.
11284         * common/common-defs.h: Include <stdint.h>.
11285         * config/aarch64/linux.mh (NATDEPFILES): Include
11286         linux-personality.o.
11287         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11288         * config/arm/linux.mh (NATDEPFILES): Likewise.
11289         * config/i386/linux64.mh (NATDEPFILES): Likewise.
11290         * config/i386/linux.mh (NATDEPFILES): Likewise.
11291         * config/ia64/linux.mh (NATDEPFILES): Likewise.
11292         * config/m32r/linux.mh (NATDEPFILES): Likewise.
11293         * config/m68k/linux.mh (NATDEPFILES): Likewise.
11294         * config/mips/linux.mh (NATDEPFILES): Likewise.
11295         * config/pa/linux.mh (NATDEPFILES): Likewise.
11296         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11297         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11298         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11299         * config/s390/linux.mh (NATDEPFILES): Likewise.
11300         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11301         * config/sparc/linux.mh (NATDEPFILES): Likewise.
11302         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11303         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11304         * defs.h: Remove #include <stdint.h> (moved to
11305         common/common-defs.h).
11306         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
11307         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11308         nat/linux-personality.c).
11309         (linux_nat_create_inferior): Remove code to disable address space
11310         randomization (moved to nat/linux-personality.c).  Create cleanup
11311         to disable address space randomization.
11312         * nat/linux-personality.c: New file.
11313         * nat/linux-personality.h: Likewise.
11314
11315 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
11316
11317         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11318         common/posix-strerror.c.
11319         (posix-strerror.o): New rule.
11320         (mingw-strerror.o): Likewise.
11321         * common/common-utils.h (safe_strerror): Move prototype to here,
11322         from utils.h.
11323         * common/common.host: New file.
11324         * common/mingw-strerror.c: Likewise.
11325         * common/posix-strerror.c: Likewise.
11326         * configure: Regenerated.
11327         * configure.ac: Source common/common.host.  Add variable
11328         common_host_obs to gdb_host_obs.
11329         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11330         gdb/common/posix-strerror.c when warning about the use of
11331         strerror.
11332         * mingw-hdep.c (safe_strerror): Remove definition; move it to
11333         common/mingw-strerror.c.
11334         * posix-hdep.c (safe_strerror): Remove definition; move it to
11335         common/posix-hdep.c.
11336         * utils.h (safe_strerror): Remove prototype; move to
11337         common/common-utils.h.
11338
11339 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
11340
11341         GDB 7.8.2 released.
11342
11343 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
11344
11345         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11346         ___XA type if the array has already been fixed.
11347
11348 2015-01-14  Yao Qi  <yao@codesourcery.com>
11349
11350         * Makefile.in (ppc-linux.o): New rule.
11351         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11352         * configure.ac: AC_CHECK_FUNCS(getauxval).
11353         * config.in: Re-generated.
11354         * configure: Re-generated.
11355         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11356         Declare.
11357         * nat/ppc-linux.c: New file.
11358         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11359         Call ppc64_64bit_inferior_p.
11360
11361 2015-01-14  Yao Qi  <yao@codesourcery.com>
11362
11363         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11364         nat/ppc-linux.h.
11365         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11366         (PPC_FEATURE_HAS_DFP): Likewise.
11367         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11368         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11369         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11370         Include "nat/ppc-linux.h".
11371         * nat/ppc-linux.h: New file.
11372         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
11373
11374 2015-01-14  Pedro Alves  <palves@redhat.com>
11375
11376         PR gdb/17525
11377         * breakpoint.c: Include "interps.h".
11378         (bpstat_do_actions_1): Also check whether the interpreter is
11379         async.
11380
11381 2015-01-14  Pedro Alves  <palves@redhat.com>
11382
11383         PR cli/17828
11384         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
11385         reinstall if the interpreter is sync.
11386
11387 2015-01-13  Doug Evans  <dje@google.com>
11388
11389         * objfiles.c (objfile_filename): New function.
11390         * objfiles.h (objfile_filename): Declare it.
11391         (objfile_name): Add function comment.
11392         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
11393         bfd file name (which may be realpath'd), and the original name.
11394
11395 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
11396
11397         * NEWS: Create a new section for the next release branch.
11398         Rename the section of the current branch, now that it has
11399         been cut.
11400
11401 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
11402
11403         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
11404         * version.in: Bump version to 7.9.50.DATE-cvs.
11405
11406 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
11407
11408         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
11409         Remove trailing new-line in argument of call to warning.
11410
11411 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
11412
11413         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
11414         new-line in argument of call to "warning".
11415
11416 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
11417
11418         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
11419         in static block, then try searching for primitive types.
11420
11421 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
11422
11423         * top.h (gdb_add_history): Declare.
11424         * top.c (command_count): New variable.
11425         (gdb_add_history): New function.
11426         (gdb_safe_append_history): New static function.
11427         (quit_force): Call it.
11428         (command_line_input): Use gdb_add_history instead of
11429         add_history.
11430         * event-top.c (command_line_handler): Likewise.
11431
11432 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
11433
11434         PR gdb/17046
11435         * darwin-nat.c: Replace <machine/setjmp.h> #include by
11436         <setjmp.h> #include.
11437
11438 2015-01-11  Doug Evans  <xdje42@gmail.com>
11439
11440         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
11441
11442 2015-01-11  Doug Evans  <xdje42@gmail.com>
11443
11444         PR gdb/15830
11445         * NEWS: The "maint demangle" command is renamed as "demangle".
11446         * demangle.c: #include cli/cli-utils.h, language.h.
11447         (demangle_command): New function.
11448         (_initialize_demangle): Add new command "demangle".
11449         * maint.c (maintenance_demangle): Stub out.
11450         (_initialize_maint_cmds): Update help text for "maint demangle",
11451         and mark as deprecated.
11452
11453 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
11454
11455         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
11456         inferior_thread is a function.
11457
11458 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
11459
11460         * Makefile.in (.y.c): Don't munge yacc's #line
11461         directives.
11462
11463 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
11464
11465         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
11466         to prompt for input.
11467         * tui/tui-hooks.c (tui_query_hook): Remove.
11468         (tui_install_hooks): Don't set deprecated_query_hook.
11469         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
11470         height calculation.  Always update the command window's cur_line.
11471
11472 2015-01-09  Pedro Alves  <palves@redhat.com>
11473
11474         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
11475         function.
11476         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
11477         declaration.
11478         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
11479         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
11480         stop_reason.
11481         (check_stopped_by_watchpoint): New function.
11482         (save_sigtrap): Reimplement.
11483         (linux_nat_stopped_by_watchpoint): Adjust.
11484         (linux_nat_lp_status_is_event): Delete.
11485         (stop_wait_callback): Only call save_sigtrap after storing the
11486         pending status.
11487         (status_callback): If the thread had been stopped for a breakpoint
11488         that has since been removed, discard the event and resume the LWP.
11489         (count_events_callback, select_event_lwp_callback): Use
11490         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
11491         (cancel_breakpoint): Rename to ...
11492         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
11493         stopped for a software breakpoint or hardware breakpoint.
11494         (select_event_lwp): Only give preference to the stepping LWP in
11495         all-stop mode.  Adjust comments.
11496         (stop_and_resume_callback): Remove references to new_pending_p.
11497         (linux_nat_filter_event): Likewise.  Leave exit events of the
11498         leader thread pending here.  Handle signal short circuiting here.
11499         Only call save_sigtrap after storing the pending waitstatus.
11500         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
11501         new_pending.  Don't handle leaving events the caller is not
11502         interested in pending here, nor handle signal short-circuiting
11503         here.  Also give equal priority to all LWPs that have had events
11504         in non-stop mode.  If reporting a software breakpoint event,
11505         unadjust the LWP's PC.
11506         * linux-nat.h (enum lwp_stop_reason): New.
11507         (struct lwp_info) <stop_pc>: New field.
11508         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
11509         (struct lwp_info) <stop_reason>: New field.
11510         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11511
11512 2015-01-09  Pedro Alves  <palves@redhat.com>
11513
11514         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
11515         Set the LWP's 'resumed' flag.
11516
11517 2015-01-09  Pedro Alves  <palves@redhat.com>
11518
11519         * linux-nat.c (linux_resume_one_lwp): New function.
11520         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
11521         (linux_nat_resume): Use lwp_status_pending_p and
11522         linux_resume_one_lwp.
11523         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
11524         (linux_handle_extended_wait): Use linux_resume_one_lwp.
11525         (status_callback, running_callback): Use lwp_status_pending_p.
11526         (lwp_status_pending_p): New function.
11527         (stop_and_resume_callback): Use lwp_status_pending_p.
11528         (linux_nat_filter_event): Use linux_resume_one_lwp.
11529         (linux_nat_wait_1): Always use status_callback to look for an LWP
11530         with a pending status.  Use linux_resume_one_lwp.
11531         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
11532         linux_resume_one_lwp.
11533
11534 2015-01-09  Pedro Alves  <palves@redhat.com>
11535
11536         * breakpoint.c (bp_location_inserted_here_p): New function,
11537         factored out from ...
11538         (breakpoint_inserted_here_p): ... here.  Use
11539         ALL_BP_LOCATIONS_AT_ADDR.
11540         (software_breakpoint_inserted_here_p): Use
11541         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
11542
11543 2014-01-09  Pedro Alves  <palves@redhat.com>
11544
11545         Skip enabling event reporting if the kernel supports
11546         PTRACE_EVENT_CLONE.
11547         * linux-thread-db.c: Include "nat/linux-ptrace.h".
11548         (thread_db_use_events): New function.
11549         (try_thread_db_load_1): Check thread_db_use_events before enabling
11550         event reporting.
11551         (update_thread_state): New function.
11552         (attach_thread): Use it.  Check thread_db_use_events before
11553         enabling event reporting.
11554         (thread_db_detach): Check thread_db_use_events before disabling
11555         event reporting.
11556         (find_new_threads_callback): Check thread_db_use_events before
11557         enabling event reporting.  Update the thread's state if not using
11558         libthread_db events.
11559
11560 2015-01-09  Pedro Alves  <palves@redhat.com>
11561
11562         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
11563         about to wait for is > 0.
11564         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
11565         the kernel thread ID is -1.
11566
11567 2015-01-09  Pedro Alves  <palves@redhat.com>
11568
11569         * linux-nat.c (attach_proc_task_lwp_callback): New function.
11570         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
11571         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
11572         ptrace option flags.
11573         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
11574         field.
11575         * nat/linux-procfs.c: Include <dirent.h>.
11576         (linux_proc_get_int): New parameter "warn".  Handle it.
11577         (linux_proc_get_tgid): Adjust.
11578         (linux_proc_get_tracerpid): Rename to ...
11579         (linux_proc_get_tracerpid_nowarn): ... this.
11580         (linux_proc_pid_get_state): New function, factored out from
11581         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
11582         and handle it.
11583         (linux_proc_pid_is_gone): New function.
11584         (linux_proc_pid_is_stopped): Adjust.
11585         (linux_proc_pid_is_zombie_maybe_warn)
11586         (linux_proc_pid_is_zombie_nowarn): New functions.
11587         (linux_proc_pid_is_zombie): Use
11588         linux_proc_pid_is_zombie_maybe_warn.
11589         (linux_proc_attach_tgid_threads): New function.
11590         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
11591         (linux_proc_get_tracerpid): Rename to ...
11592         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
11593         (linux_proc_pid_is_gone): New declaration.
11594         (linux_proc_pid_is_zombie): Update comment.
11595         (linux_proc_pid_is_zombie_nowarn): New declaration.
11596         (linux_proc_attach_lwp_func): New typedef.
11597         (linux_proc_attach_tgid_threads): New declaration.
11598         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
11599         use nowarn functions.
11600         (linux_ptrace_attach_fail_reason_string): Move here from
11601         gdbserver/linux-low.c and rename.
11602         (ptrace_supports_feature): If the current ptrace options are not
11603         known yet, check them now, instead of asserting.
11604         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
11605         Declare.
11606
11607 2015-01-09  Pedro Alves  <palves@redhat.com>
11608
11609         * linux-thread-db.c (thread_db_find_new_threads_silently)
11610         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
11611         (find_new_threads_once): Print debug output on gdb_stdlog.
11612
11613 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
11614             Pedro Alves  <palves@redhat.com>
11615
11616         * compile/compile.c: Include "gdb_wait.h".
11617         (do_rmdir): Check return value, and free 'zap'.
11618
11619 2015-01-08  Pedro Alves  <palves@redhat.com>
11620             Yao Qi  <yao@codesourcery.com>
11621
11622         * dwarf2loc.c (indirect_pieced_value): Don't call
11623         gdb_sign_extend.  Call extract_signed_integer instead.
11624         * utils.c (gdb_sign_extend): Remove.
11625         * utils.h (gdb_sign_extend): Remove declaration.
11626
11627 2015-01-07  Pierre Muller  <muller@sourceware.org>
11628
11629         PR symtab/17811
11630         * stabsread.c (define_symbol): Set language for C++ special symbols.
11631
11632 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
11633
11634         * inflow.c (initial_gdb_ttystate): Tweak comment.
11635
11636 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
11637
11638         * inflow.c (set_initial_gdb_ttystate): Add empty line after
11639         comment documenting function.
11640
11641 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
11642
11643         * terminal.h (set_initial_gdb_ttystate): Declare.
11644         * inflow.c (initial_gdb_ttystate): New static variable.
11645         (set_initial_gdb_ttystate): New setter.
11646         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
11647         instead of our current terminal state.
11648         * top.c (gdb_init): Call set_initial_gdb_ttystate.
11649
11650 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
11651
11652         * guile/scm-type.c (tyscm_array_1): Add comment.
11653         * python/py-type.c (typy_array_1): Add comment.
11654
11655 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
11656
11657         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
11658         error if N2 is equal to N1 - 1.
11659
11660 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
11661
11662         * python/py-type.c (typy_array_1): Do not raise negative-length
11663         exception if N2 is equal to N1 - 1.
11664
11665 2015-01-03  Doug Evans  <xdje42@gmail.com>
11666
11667         * c-exp.y: Whitespace cleanup.
11668         (classify_inner_name): Remove extra ;.
11669
11670 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
11671
11672         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
11673         offset signed.
11674
11675 2015-01-02  Doug Evans  <dje@google.com>
11676
11677         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
11678
11679 2015-01-02  Doug Evans  <dje@google.com>
11680
11681         * symtab.h (struct symbol): Fix typo in comment.
11682
11683 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
11684
11685         Update year range in copyright notice of all files.
11686
11687 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
11688
11689         * top.c (print_gdb_version): Update copyright year to 2015.
11690
11691 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
11692
11693         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
11694
11695 For older changes see ChangeLog-2014.
11696 \f
11697 Local Variables:
11698 mode: change-log
11699 left-margin: 8
11700 fill-column: 74
11701 version-control: never
11702 coding: utf-8
11703 End: