i386: Fix type of gdbarch_tdep::register_reggroup_p
[external/binutils.git] / gdb / ChangeLog
1 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2
3         * i386-tdep.h (struct gdbarch_tdep): Change type of
4         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
5
6 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
7
8         * cris-tdep.c (struct instruction_environment): Change type of
9         byte_order to enum bfd_endian.
10
11 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
12
13         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
14         enum gdb_syscall casts.
15
16 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
17
18         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
19         * arm-tdep.c (struct stack_item): Likewise.
20         (push_stack_item): Add gdb_byte* cast.
21         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
22         (push_stack_item): Add gdb_byte* cast.
23         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
24         and add cast.
25         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
26         (push_stack_item): Add gdb_byte* cast.
27         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
28         add cast.
29         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
30         gdb_byte*.
31         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
32         gdb_byte* and remove unnecessary cast.
33         (h8300h_extract_return_value): Likewise.
34         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
35         (h8300h_store_return_value): Likewise.
36         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
37         gdb_byte* and remove unnecessary cast.
38         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
39         and add cast.
40         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
41         gdb_byte* and remove unnecessary cast.
42         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
43         valbuf.
44         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
45         (mep_pseudo_cr64_read): Likewise.
46         (mep_pseudo_csr_write): Likewise.
47         (mep_pseudo_cr32_write): Likewise.
48         (mep_pseudo_cr64_write): Likewise.
49         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
50         gdb_byte* and add cast.
51         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
52         gdb_byte* and remove unnecessary cast.
53         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
54         valbuf.
55         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
56         gdb_byte*.
57         * printcmd.c (void): Likewise.
58         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
59         gdb_byte* and add cast.
60         (infpy_write_memory): Likewise.
61         (infpy_search_memory): Likewise.
62         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
63         and add cast.
64         (regcache_raw_write_unsigned): Likewise.
65         (regcache_cooked_write_signed): Likewise.
66         (regcache_cooked_write_unsigned): Likewise.
67         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
68         gdb_byte*.
69
70 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
71
72         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
73         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
74
75 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
76
77         * stack.c (print_stack_frame):
78         * utils.c (printchar): Fix typos in commentary.
79
80 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
81
82         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
83         (PostfixExpression): Support `expr.sizeof' expressions.
84         (PrimaryExpression): Support `typeof(expr)' expressions.
85
86 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
87
88         * MAINTAINERS: Update my email address.
89
90 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
91
92         * record-btrace.c (record_btrace_resume): Fix void return.
93
94 2015-10-07  Yao Qi  <yao.qi@linaro.org>
95
96         * aarch64-tdep.c: Include opcode/aarch64.h.
97         (submask): Move it above.
98         (bit): Likewise.
99         (bits): Likewise.
100         (aarch64_software_single_step): Call aarch64_decode_insn.
101         Decode instruction by aarch64_inst instead of using
102         aarch64_decode_bcond and decode_masked_match.
103
104 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
105
106         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
107         only when the file is binary.
108
109 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
110
111         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
112         subroutine handling.
113
114 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
115
116         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
117
118 2015-09-30  Doug Evans  <dje@google.com>
119
120         * dwarf2read.c (setup_type_unit_groups): Add comment.
121
122 2015-09-30  Pedro Alves  <palves@redhat.com>
123
124         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
125         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
126         (x86_linux_create_target): Don't install
127         x86_linux_always_non_stop_p.
128
129 2015-09-30  Don Breazeal  <donb@codesourcery.com>
130
131         * remote.c (remote_parse_stop_reply): Call strprefix instead
132         of strncmp.
133
134 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
135
136         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
137         * gdbarch.h: Regenerate.
138         * i386-tdep.c (i386_gdbarch_init): Remove cast to
139         struct gdbarch_tdep_info *.
140         * mips-tdep.c (mips_gdbarch_init): Likewise.
141         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
142         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
143         * spu-multiarch.c (spu_gdbarch): Likewise.
144
145 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
146
147         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
148         record a NULL value.
149
150 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
151
152         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
153         and union arguments the same as pointer arguments when determining
154         size of argument.
155
156 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
157
158         * ft32-tdep.c: #include "opcode/ft32.h".
159         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
160         (ft32_analyze_prologue): Use FT32_* macros.
161
162 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
163
164         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
165         comment.
166
167 2015-09-28  Doug Evans  <dje@google.com>
168
169         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
170
171 2015-09-28  Doug Evans  <dje@google.com>
172
173         * common/filestuff.c (make_cleanup_close): Update comment.
174
175 2015-09-26  Simon Marchi  <simark@nova.polymtl.ca>
176
177         * btrace.c (parse_xml_btrace_block): Fix cast of
178         xml_find_attribute's return value.
179         * memory-map.c (memory_map_start_memory): Likewise.
180         * solib-svr4.c (library_list_start_library): Likewise.
181         * solib-target.c (library_list_start_segment): Likewise.
182         (library_list_start_section): Likewise.
183         * tracepoint.c (traceframe_info_start_memory): Likewise.
184
185 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
186
187         * d-namespace.c (d_lookup_symbol): New arg langdef.
188         All callers updated.  Support looking up symbol as a primitive type.
189         (lookup_module_scope): New arg langdef.  All callers updated.
190         Call d_lookup_symbol directly for simple bare symbols.
191
192 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
193
194         * macrocmd.c (print_macro_callback): Add cast(s).
195         * macrotab.c (macro_bcache_str): Likewise.
196         (new_macro_definition): Likewise.
197         * main.c (captured_main): Likewise.
198         * maint.c (print_bfd_section_info): Likewise.
199         * mdebugread.c (mdebug_build_psymtabs): Likewise.
200         (basic_type): Likewise.
201         * memattr.c (mem_region_cmp): Likewise.
202         * memory-map.c (memory_map_start_memory): Likewise.
203         (memory_map_end_memory): Likewise.
204         (memory_map_start_property): Likewise.
205         (memory_map_end_property): Likewise.
206         (clear_result): Likewise.
207         * memrange.c (compare_mem_ranges): Likewise.
208         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
209         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
210         * mi/mi-console.c (mi_console_file_delete): Likewise.
211         (mi_console_file_fputs): Likewise.
212         (mi_console_raw_packet): Likewise.
213         (mi_console_file_flush): Likewise.
214         (mi_console_set_raw): Likewise.
215         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
216         (mi_new_thread): Likewise.
217         (mi_thread_exit): Likewise.
218         (mi_record_changed): Likewise.
219         (mi_inferior_added): Likewise.
220         (mi_inferior_appeared): Likewise.
221         (mi_inferior_exit): Likewise.
222         (mi_inferior_removed): Likewise.
223         (mi_interp_data): Likewise.
224         (mi_on_normal_stop): Likewise.
225         (mi_traceframe_changed): Likewise.
226         (mi_tsv_created): Likewise.
227         (mi_tsv_deleted): Likewise.
228         (mi_tsv_modified): Likewise.
229         (mi_breakpoint_created): Likewise.
230         (mi_breakpoint_deleted): Likewise.
231         (mi_breakpoint_modified): Likewise.
232         (mi_output_running_pid): Likewise.
233         (mi_inferior_count): Likewise.
234         (mi_solib_loaded): Likewise.
235         (mi_solib_unloaded): Likewise.
236         (mi_command_param_changed): Likewise.
237         (mi_memory_changed): Likewise.
238         (report_initial_inferior): Likewise.
239         (mi_ui_out): Likewise.
240         (mi_set_logging): Likewise.
241         * mi/mi-main.c (collect_cores): Likewise.
242         (print_one_inferior): Likewise.
243         (free_vector_of_ints): Likewise.
244         (free_splay_tree): Likewise.
245         (mi_execute_command): Likewise.
246         * mi/mi-out.c (mi_table_body): Likewise.
247         (mi_table_end): Likewise.
248         (mi_table_header): Likewise.
249         (mi_begin): Likewise.
250         (mi_end): Likewise.
251         (mi_field_int): Likewise.
252         (mi_field_string): Likewise.
253         (mi_field_fmt): Likewise.
254         (mi_flush): Likewise.
255         (mi_redirect): Likewise.
256         (field_separator): Likewise.
257         (mi_open): Likewise.
258         (mi_close): Likewise.
259         (mi_out_buffered): Likewise.
260         (mi_out_rewind): Likewise.
261         (mi_out_put): Likewise.
262         (mi_version): Likewise.
263         (mi_out_data_dtor): Likewise.
264         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
265         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
266         * minidebug.c (lzma_open): Likewise.
267         (lzma_pread): Likewise.
268         (lzma_close): Likewise.
269         (lzma_stat): Likewise.
270         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
271         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
272         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
273         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
274         (mips_micro_frame_cache): Likewise.
275         (mips_insn32_frame_cache): Likewise.
276         (mips_stub_frame_cache): Likewise.
277         (gdb_print_insn_mips): Likewise.
278         (value_of_mips_user_reg): Likewise.
279         (mips_gdbarch_init): Likewise.
280         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
281         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
282         (mipsnbsd_supply_gregset): Likewise.
283         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
284         (am33_collect_gregset_method): Likewise.
285         (am33_collect_fpregset_method): Likewise.
286         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
287         * moxie-tdep.c (moxie_frame_cache): Likewise.
288         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
289         (msp430_analyze_frame_prologue): Likewise.
290         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
291         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
292         (nios2_collect_gregset): Likewise.
293         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
294         (nios2_stub_frame_cache): Likewise.
295         * objc-lang.c (find_methods): Likewise.
296         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
297         (get_objfile_pspace_data): Likewise.
298         (get_objfile_bfd_data): Likewise.
299         (objfile_bfd_data_free): Likewise.
300         (add_to_objfile_sections): Likewise.
301         (do_free_objfile_cleanup): Likewise.
302         (resume_section_map_updates_cleanup): Likewise.
303         * opencl-lang.c (builtin_opencl_type): Likewise.
304         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
305         * osdata.c (osdata_start_osdata): Likewise.
306         (osdata_start_item): Likewise.
307         (osdata_start_column): Likewise.
308         (osdata_end_column): Likewise.
309         (clear_parsing_data): Likewise.
310         (osdata_free_cleanup): Likewise.
311         * parse.c (type_stack_cleanup): Likewise.
312         (exp_uses_objfile_iter): Likewise.
313         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
314         (ppc_linux_collect_gregset): Likewise.
315         (ppu2spu_prev_arch): Likewise.
316         (ppu2spu_this_id): Likewise.
317         (ppu2spu_prev_register): Likewise.
318         (ppu2spu_unwind_register): Likewise.
319         (ppu2spu_sniffer): Likewise.
320         (ppu2spu_dealloc_cache): Likewise.
321         (ppc_linux_init_abi): Likewise.
322         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
323         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
324         * progspace.c (restore_program_space): Likewise.
325         * psymtab.c (find_pc_sect_psymtab): Likewise.
326         (compare_psymbols): Likewise.
327         (psymbol_bcache_full): Likewise.
328         (allocate_psymtab): Likewise.
329         (discard_psymtabs_upto): Likewise.
330         * python/py-block.c (set_block): Likewise.
331         (del_objfile_blocks): Likewise.
332         * python/py-breakpoint.c (build_bp_list): Likewise.
333         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
334         (build_inferior_list): Likewise.
335         (py_free_inferior): Likewise.
336         * python/py-objfile.c (py_free_objfile): Likewise.
337         (objfile_to_objfile_object): Likewise.
338         * python/py-prettyprint.c (py_restore_tstate): Likewise.
339         * python/py-progspace.c (py_free_pspace): Likewise.
340         (pspace_to_pspace_object): Likewise.
341         * python/py-symbol.c (set_symbol): Likewise.
342         (del_objfile_symbols): Likewise.
343         * python/py-symtab.c (set_sal): Likewise.
344         (set_symtab): Likewise.
345         (del_objfile_symtab): Likewise.
346         (del_objfile_sal): Likewise.
347         * python/py-type.c (save_objfile_types): Likewise.
348         (set_type): Likewise.
349         * python/py-unwind.c (pyuw_prev_register): Likewise.
350         (pyuw_on_new_gdbarch): Likewise.
351         * python/py-utils.c (py_decref): Likewise.
352         (py_xdecref): Likewise.
353         (gdb_py_generic_dict): Likewise.
354         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
355         (gdbpy_clone_xmethod_worker_data): Likewise.
356         (gdbpy_get_xmethod_arg_types): Likewise.
357         (gdbpy_get_xmethod_result_type): Likewise.
358         (gdbpy_invoke_xmethod): Likewise.
359         * python/python.c (gdbpy_apply_type_printers): Likewise.
360         (gdbpy_free_type_printers): Likewise.
361         * record-btrace.c (record_btrace_disable_callback): Likewise.
362         (bfcache_hash): Likewise.
363         (bfcache_eq): Likewise.
364         (btrace_get_frame_function): Likewise.
365         (record_btrace_frame_unwind_stop_reason): Likewise.
366         (record_btrace_frame_this_id): Likewise.
367         (record_btrace_frame_prev_register): Likewise.
368         (record_btrace_frame_dealloc_cache): Likewise.
369         * record-full.c (record_full_message_wrapper): Likewise.
370         (record_full_save_cleanups): Likewise.
371         * regcache.c (regcache_descr): Likewise.
372         (do_regcache_xfree): Likewise.
373         (do_regcache_invalidate): Likewise.
374         (do_cooked_read): Likewise.
375         (regcache_transfer_regset): Likewise.
376         * reggroups.c (reggroup_add): Likewise.
377         (reggroup_next): Likewise.
378         (reggroup_prev): Likewise.
379         * remote-fileio.c (do_remote_fileio_request): Likewise.
380         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
381         (do_notif_event_xfree): Likewise.
382         * remote.c (get_remote_arch_state): Likewise.
383         (remote_pspace_data_cleanup): Likewise.
384         (get_remote_exec_file): Likewise.
385         (set_pspace_remote_exec_file): Likewise.
386         (compare_pnums): Likewise.
387         (clear_threads_listing_context): Likewise.
388         (remote_newthread_step): Likewise.
389         (start_thread): Likewise.
390         (end_thread): Likewise.
391         (remove_child_of_pending_fork): Likewise.
392         (remove_stop_reply_for_inferior): Likewise.
393         (remove_stop_reply_of_remote_state): Likewise.
394         (remote_notif_remove_once_on_match): Likewise.
395         (stop_reply_match_ptid_and_ws): Likewise.
396         (kill_child_of_pending_fork): Likewise.
397         (register_remote_g_packet_guess): Likewise.
398         (remote_read_description_p): Likewise.
399         (remote_read_description): Likewise.
400         (free_actions_list_cleanup_wrapper): Likewise.
401         (remote_async_serial_handler): Likewise.
402         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
403         (rl78_analyze_frame_prologue): Likewise.
404         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
405         (ppc_supply_fpregset): Likewise.
406         (ppc_supply_vsxregset): Likewise.
407         (ppc_supply_vrregset): Likewise.
408         (ppc_collect_gregset): Likewise.
409         (ppc_collect_fpregset): Likewise.
410         (ppc_collect_vsxregset): Likewise.
411         (ppc_collect_vrregset): Likewise.
412         (e500_move_ev_register): Likewise.
413         (do_regcache_raw_write): Likewise.
414         (rs6000_frame_cache): Likewise.
415         (rs6000_epilogue_frame_cache): Likewise.
416         (rs6000_gdbarch_init): Likewise.
417         * rx-tdep.c (rx_get_opcode_byte): Likewise.
418         (rx_analyze_frame_prologue): Likewise.
419         (rx_frame_type): Likewise.
420         (rx_frame_sniffer_common): Likewise.
421         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
422         (s390_frame_unwind_cache): Likewise.
423         (s390_stub_frame_unwind_cache): Likewise.
424         (s390_sigtramp_frame_unwind_cache): Likewise.
425         * score-tdep.c (score_make_prologue_cache): Likewise.
426         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
427         (sentinel_frame_prev_arch): Likewise.
428         * ser-base.c (fd_event): Likewise.
429         (push_event): Likewise.
430         (ser_base_write): Likewise.
431         * ser-pipe.c (pipe_close): Likewise.
432         * serial.c (serial_write): Likewise.
433         * sh-tdep.c (sh_frame_cache): Likewise.
434         (sh_stub_this_id): Likewise.
435         * sh64-tdep.c (sh64_frame_cache): Likewise.
436         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
437         (library_list_start_library): Likewise.
438         (library_list_start_list): Likewise.
439         (solib_aix_free_library_list): Likewise.
440         * solib-darwin.c (get_darwin_info): Likewise.
441         * solib-dsbt.c (get_dsbt_info): Likewise.
442         * solib-spu.c (append_ocl_sos): Likewise.
443         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
444         (get_svr4_info): Likewise.
445         (library_list_start_library): Likewise.
446         (svr4_library_list_start_list): Likewise.
447         (hash_probe_and_action): Likewise.
448         (equal_probe_and_action): Likewise.
449         (svr4_update_solib_event_breakpoint): Likewise.
450         (set_solib_svr4_fetch_link_map_offsets): Likewise.
451         (svr4_fetch_link_map_offsets): Likewise.
452         (svr4_have_link_map_offsets): Likewise.
453         * solib-target.c (library_list_start_segment): Likewise.
454         (library_list_start_section): Likewise.
455         (library_list_start_library): Likewise.
456         (library_list_end_library): Likewise.
457         (library_list_start_list): Likewise.
458         (solib_target_free_library_list): Likewise.
459         * solib.c (solib_ops): Likewise.
460         (set_solib_ops): Likewise.
461         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
462         * sparc-tdep.c (sparc_frame_cache): Likewise.
463         (sparc32_frame_cache): Likewise.
464         (sparc32_supply_gregset): Likewise.
465         (sparc32_collect_gregset): Likewise.
466         (sparc32_supply_fpregset): Likewise.
467         (sparc32_collect_fpregset): Likewise.
468         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
469         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
470         (sparc64_collect_gregset): Likewise.
471         (sparc64_supply_fpregset): Likewise.
472         (sparc64_collect_fpregset): Likewise.
473         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
474         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
475         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
476         (sparc64obsd_trapframe_cache): Likewise.
477         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
478         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
479         * spu-multiarch.c (spu_gdbarch): Likewise.
480         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
481         (spu2ppu_prev_arch): Likewise.
482         (spu2ppu_this_id): Likewise.
483         (spu2ppu_prev_register): Likewise.
484         (spu2ppu_dealloc_cache): Likewise.
485         (spu_dis_asm_print_address): Likewise.
486         (gdb_print_insn_spu): Likewise.
487         (spu_get_overlay_table): Likewise.
488         * stabsread.c (rs6000_builtin_type): Likewise.
489         * stack.c (do_print_variable_and_value): Likewise.
490         * stap-probe.c (get_stap_base_address_1): Likewise.
491         * symfile-debug.c (debug_qf_has_symbols): Likewise.
492         (debug_qf_find_last_source_symtab): Likewise.
493         (debug_qf_forget_cached_source_info): Likewise.
494         (debug_qf_map_symtabs_matching_filename): Likewise.
495         (debug_qf_lookup_symbol): Likewise.
496         (debug_qf_print_stats): Likewise.
497         (debug_qf_dump): Likewise.
498         (debug_qf_relocate): Likewise.
499         (debug_qf_expand_symtabs_for_function): Likewise.
500         (debug_qf_expand_all_symtabs): Likewise.
501         (debug_qf_expand_symtabs_with_fullname): Likewise.
502         (debug_qf_map_matching_symbols): Likewise.
503         (debug_qf_expand_symtabs_matching): Likewise.
504         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
505         (debug_qf_map_symbol_filenames): Likewise.
506         (debug_sym_get_probes): Likewise.
507         (debug_sym_new_init): Likewise.
508         (debug_sym_init): Likewise.
509         (debug_sym_read): Likewise.
510         (debug_sym_read_psymbols): Likewise.
511         (debug_sym_finish): Likewise.
512         (debug_sym_offsets): Likewise.
513         (debug_sym_read_linetable): Likewise.
514         (debug_sym_relocate): Likewise.
515         (uninstall_symfile_debug_logging): Likewise.
516         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
517         * symfile.c (place_section): Likewise.
518         (add_section_size_callback): Likewise.
519         (load_progress): Likewise.
520         (load_section_callback): Likewise.
521         (clear_memory_write_data): Likewise.
522         (allocate_symtab): Likewise.
523         * symmisc.c (maintenance_expand_file_matcher): Likewise.
524         * symtab.c (lookup_symtab_callback): Likewise.
525         (hash_demangled_name_entry): Likewise.
526         (eq_demangled_name_entry): Likewise.
527         (get_symbol_cache): Likewise.
528         (symbol_cache_cleanup): Likewise.
529         (set_symbol_cache_size): Likewise.
530         (symbol_cache_flush): Likewise.
531         (maintenance_print_symbol_cache): Likewise.
532         (maintenance_print_symbol_cache_statistics): Likewise.
533         (delete_filename_seen_cache): Likewise.
534         (output_partial_symbol_filename): Likewise.
535         (search_symbols_file_matches): Likewise.
536         (search_symbols_name_matches): Likewise.
537         (do_free_completion_list): Likewise.
538         (maybe_add_partial_symtab_filename): Likewise.
539         (get_main_info): Likewise.
540         (main_info_cleanup): Likewise.
541         * target-dcache.c (target_dcache_cleanup): Likewise.
542         (target_dcache_init_p): Likewise.
543         (target_dcache_invalidate): Likewise.
544         (target_dcache_get): Likewise.
545         (target_dcache_get_or_init): Likewise.
546         * target-descriptions.c (target_find_description): Likewise.
547         (tdesc_find_type): Likewise.
548         (tdesc_data_cleanup): Likewise.
549         (tdesc_find_arch_register): Likewise.
550         (tdesc_register_name): Likewise.
551         (tdesc_register_type): Likewise.
552         (tdesc_register_reggroup_p): Likewise.
553         (set_tdesc_pseudo_register_name): Likewise.
554         (set_tdesc_pseudo_register_type): Likewise.
555         (set_tdesc_pseudo_register_reggroup_p): Likewise.
556         (tdesc_use_registers): Likewise.
557         (free_target_description): Likewise.
558         * target-memory.c (compare_block_starting_address): Likewise.
559         (cleanup_request_data): Likewise.
560         (cleanup_write_requests_vector): Likewise.
561         * target.c (open_target): Likewise.
562         (cleanup_restore_target_terminal): Likewise.
563         (free_memory_read_result_vector): Likewise.
564         * thread.c (disable_thread_stack_temporaries): Likewise.
565         (finish_thread_state_cleanup): Likewise.
566         (do_restore_current_thread_cleanup): Likewise.
567         (restore_current_thread_cleanup_dtor): Likewise.
568         (set_thread_refcount): Likewise.
569         (tp_array_compar): Likewise.
570         (do_captured_thread_select): Likewise.
571         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
572         (tic6x_stub_this_id): Likewise.
573         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
574         * top.c (do_restore_instream_cleanup): Likewise.
575         (gdb_readline_wrapper_cleanup): Likewise.
576         (kill_or_detach): Likewise.
577         (print_inferior_quit_action): Likewise.
578         * tracefile-tfile.c (match_blocktype): Likewise.
579         (build_traceframe_info): Likewise.
580         * tracefile.c (trace_file_writer_xfree): Likewise.
581         * tracepoint.c (memrange_cmp): Likewise.
582         (do_collect_symbol): Likewise.
583         (do_clear_collection_list): Likewise.
584         (do_restore_current_traceframe_cleanup): Likewise.
585         (restore_current_traceframe_cleanup_dtor): Likewise.
586         (free_current_marker): Likewise.
587         (traceframe_info_start_memory): Likewise.
588         (traceframe_info_start_tvar): Likewise.
589         (free_result): Likewise.
590         * tramp-frame.c (tramp_frame_cache): Likewise.
591         * tui/tui-file.c (tui_file_delete): Likewise.
592         (tui_fileopen): Likewise.
593         (tui_sfileopen): Likewise.
594         (tui_file_isatty): Likewise.
595         (tui_file_rewind): Likewise.
596         (tui_file_put): Likewise.
597         (tui_file_fputs): Likewise.
598         (tui_file_get_strbuf): Likewise.
599         (tui_file_adjust_strbuf): Likewise.
600         (tui_file_flush): Likewise.
601         * tui/tui-layout.c (make_command_window): Likewise.
602         (make_data_window): Likewise.
603         (show_source_disasm_command): Likewise.
604         (show_data): Likewise.
605         (make_source_or_disasm_window): Likewise.
606         (show_source_or_disasm_and_command): Likewise.
607         * tui/tui-out.c (tui_field_int): Likewise.
608         (tui_field_string): Likewise.
609         (tui_field_fmt): Likewise.
610         (tui_text): Likewise.
611         * typeprint.c (hash_typedef_field): Likewise.
612         (eq_typedef_field): Likewise.
613         (do_free_typedef_hash): Likewise.
614         (copy_typedef_hash_element): Likewise.
615         (do_free_global_table): Likewise.
616         (find_global_typedef): Likewise.
617         (find_typedef_in_hash): Likewise.
618         * ui-file.c (ui_file_write_for_put): Likewise.
619         (do_ui_file_xstrdup): Likewise.
620         (mem_file_delete): Likewise.
621         (mem_file_rewind): Likewise.
622         (mem_file_put): Likewise.
623         (mem_file_write): Likewise.
624         (stdio_file_delete): Likewise.
625         (stdio_file_flush): Likewise.
626         (stdio_file_read): Likewise.
627         (stdio_file_write): Likewise.
628         (stdio_file_write_async_safe): Likewise.
629         (stdio_file_fputs): Likewise.
630         (stdio_file_isatty): Likewise.
631         (stdio_file_fseek): Likewise.
632         (tee_file_delete): Likewise.
633         (tee_file_flush): Likewise.
634         (tee_file_write): Likewise.
635         (tee_file_fputs): Likewise.
636         (tee_file_isatty): Likewise.
637         * ui-out.c (do_cleanup_table_end): Likewise.
638         (do_cleanup_end): Likewise.
639         * user-regs.c (user_reg_add): Likewise.
640         (user_reg_map_name_to_regnum): Likewise.
641         (usernum_to_user_reg): Likewise.
642         (maintenance_print_user_registers): Likewise.
643         * utils.c (do_bfd_close_cleanup): Likewise.
644         (do_fclose_cleanup): Likewise.
645         (do_obstack_free): Likewise.
646         (do_ui_file_delete): Likewise.
647         (do_ui_out_redirect_pop): Likewise.
648         (do_free_section_addr_info): Likewise.
649         (restore_integer): Likewise.
650         (do_unpush_target): Likewise.
651         (do_htab_delete_cleanup): Likewise.
652         (do_restore_ui_file): Likewise.
653         (do_value_free): Likewise.
654         (do_free_so): Likewise.
655         (free_current_contents): Likewise.
656         (do_regfree_cleanup): Likewise.
657         (core_addr_hash): Likewise.
658         (core_addr_eq): Likewise.
659         (do_free_char_ptr_vec): Likewise.
660         * v850-tdep.c (v850_frame_cache): Likewise.
661         * varobj.c (do_free_variable_cleanup): Likewise.
662         * vax-tdep.c (vax_supply_gregset): Likewise.
663         (vax_frame_cache): Likewise.
664         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
665         * xml-support.c (gdb_xml_body_text): Likewise.
666         (gdb_xml_values_cleanup): Likewise.
667         (gdb_xml_start_element): Likewise.
668         (gdb_xml_start_element_wrapper): Likewise.
669         (gdb_xml_end_element): Likewise.
670         (gdb_xml_end_element_wrapper): Likewise.
671         (gdb_xml_cleanup): Likewise.
672         (gdb_xml_fetch_external_entity): Likewise.
673         (gdb_xml_parse_attr_enum): Likewise.
674         (xinclude_start_include): Likewise.
675         (xinclude_end_include): Likewise.
676         (xml_xinclude_default): Likewise.
677         (xml_xinclude_start_doctype): Likewise.
678         (xml_xinclude_end_doctype): Likewise.
679         (xml_xinclude_cleanup): Likewise.
680         (xml_fetch_content_from_file): Likewise.
681         * xml-syscall.c (free_syscalls_info): Likewise.
682         (syscall_start_syscall): Likewise.
683         * xml-tdesc.c (tdesc_end_arch): Likewise.
684         (tdesc_end_osabi): Likewise.
685         (tdesc_end_compatible): Likewise.
686         (tdesc_start_target): Likewise.
687         (tdesc_start_feature): Likewise.
688         (tdesc_start_reg): Likewise.
689         (tdesc_start_union): Likewise.
690         (tdesc_start_struct): Likewise.
691         (tdesc_start_flags): Likewise.
692         (tdesc_start_field): Likewise.
693         (tdesc_start_vector): Likewise.
694         (fetch_available_features_from_target): Likewise.
695         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
696         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
697         (xtensa_frame_cache): Likewise.
698         (xtensa_frame_prev_register): Likewise.
699         (xtensa_extract_return_value): Likewise.
700
701 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
702
703         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
704         (aarch64_make_stub_cache): Likewise.
705         (value_of_aarch64_user_reg): Likewise.
706         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
707         (get_ada_inferior_data): Likewise.
708         (get_ada_pspace_data): Likewise.
709         (ada_pspace_data_cleanup): Likewise.
710         (ada_complete_symbol_matcher): Likewise.
711         (ada_exc_search_name_matches): Likewise.
712         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
713         (get_ada_tasks_inferior_data): Likewise.
714         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
715         (splay_obstack_alloc): Likewise.
716         (splay_obstack_free): Likewise.
717         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
718         (alpha_linux_collect_gregset): Likewise.
719         (alpha_linux_supply_fpregset): Likewise.
720         (alpha_linux_collect_fpregset): Likewise.
721         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
722         * alpha-tdep.c (alpha_lds): Likewise.
723         (alpha_sts): Likewise.
724         (alpha_sigtramp_frame_unwind_cache): Likewise.
725         (alpha_heuristic_frame_unwind_cache): Likewise.
726         (alpha_supply_int_regs): Likewise.
727         (alpha_fill_int_regs): Likewise.
728         (alpha_supply_fp_regs): Likewise.
729         (alpha_fill_fp_regs): Likewise.
730         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
731         (alphanbsd_aout_supply_gregset): Likewise.
732         (alphanbsd_supply_gregset): Likewise.
733         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
734         (amd64_x32_linux_init_abi): Likewise.
735         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
736         (amd64_collect_native_gregset): Likewise.
737         * amd64-tdep.c (amd64_frame_cache): Likewise.
738         (amd64_sigtramp_frame_cache): Likewise.
739         (amd64_epilogue_frame_cache): Likewise.
740         (amd64_supply_fxsave): Likewise.
741         (amd64_supply_xsave): Likewise.
742         (amd64_collect_fxsave): Likewise.
743         (amd64_collect_xsave): Likewise.
744         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
745         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
746         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
747         (arm_linux_collect_gregset): Likewise.
748         (arm_linux_supply_nwfpe): Likewise.
749         (arm_linux_collect_nwfpe): Likewise.
750         (arm_linux_supply_vfp): Likewise.
751         (arm_linux_collect_vfp): Likewise.
752         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
753         (arm_prologue_unwind_stop_reason): Likewise.
754         (arm_prologue_this_id): Likewise.
755         (arm_prologue_prev_register): Likewise.
756         (arm_exidx_data_free): Likewise.
757         (arm_find_exidx_entry): Likewise.
758         (arm_stub_this_id): Likewise.
759         (arm_m_exception_this_id): Likewise.
760         (arm_m_exception_prev_register): Likewise.
761         (arm_normal_frame_base): Likewise.
762         (gdb_print_insn_arm): Likewise.
763         (arm_objfile_data_free): Likewise.
764         (arm_record_special_symbol): Likewise.
765         (value_of_arm_user_reg): Likewise.
766         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
767         (armbsd_supply_gregset): Likewise.
768         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
769         (get_auto_load_pspace_data): Likewise.
770         (hash_loaded_script_entry): Likewise.
771         (eq_loaded_script_entry): Likewise.
772         (clear_section_scripts): Likewise.
773         (collect_matching_scripts): Likewise.
774         * auxv.c (auxv_inferior_data_cleanup): Likewise.
775         (get_auxv_inferior_data): Likewise.
776         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
777         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
778         * bfd-target.c (target_bfd_xfer_partial): Likewise.
779         (target_bfd_xclose): Likewise.
780         (target_bfd_get_section_table): Likewise.
781         * bfin-tdep.c (bfin_frame_cache): Likewise.
782         * block.c (find_block_in_blockvector): Likewise.
783         (call_site_for_pc): Likewise.
784         (block_find_non_opaque_type_preferred): Likewise.
785         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
786         (signal_catchpoint_remove_location): Likewise.
787         (signal_catchpoint_breakpoint_hit): Likewise.
788         (signal_catchpoint_print_one): Likewise.
789         (signal_catchpoint_print_mention): Likewise.
790         (signal_catchpoint_print_recreate): Likewise.
791         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
792         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
793         (bp_location_compare_addrs): Likewise.
794         (get_first_locp_gte_addr): Likewise.
795         (check_tracepoint_command): Likewise.
796         (do_map_commands_command): Likewise.
797         (get_breakpoint_objfile_data): Likewise.
798         (free_breakpoint_probes): Likewise.
799         (do_captured_breakpoint_query): Likewise.
800         (compare_breakpoints): Likewise.
801         (bp_location_compare): Likewise.
802         (bpstat_remove_breakpoint_callback): Likewise.
803         (do_delete_breakpoint_cleanup): Likewise.
804         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
805         (bsd_uthread_set_collect_uthread): Likewise.
806         (bsd_uthread_activate): Likewise.
807         (bsd_uthread_fetch_registers): Likewise.
808         (bsd_uthread_store_registers): Likewise.
809         * btrace.c (check_xml_btrace_version): Likewise.
810         (parse_xml_btrace_block): Likewise.
811         (parse_xml_btrace_pt_config_cpu): Likewise.
812         (parse_xml_btrace_pt_raw): Likewise.
813         (parse_xml_btrace_pt): Likewise.
814         (parse_xml_btrace_conf_bts): Likewise.
815         (parse_xml_btrace_conf_pt): Likewise.
816         (do_btrace_data_cleanup): Likewise.
817         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
818         * charset.c (cleanup_iconv): Likewise.
819         (do_cleanup_iterator): Likewise.
820         * cli-out.c (cli_uiout_dtor): Likewise.
821         (cli_table_begin): Likewise.
822         (cli_table_body): Likewise.
823         (cli_table_end): Likewise.
824         (cli_table_header): Likewise.
825         (cli_begin): Likewise.
826         (cli_end): Likewise.
827         (cli_field_int): Likewise.
828         (cli_field_skip): Likewise.
829         (cli_field_string): Likewise.
830         (cli_field_fmt): Likewise.
831         (cli_spaces): Likewise.
832         (cli_text): Likewise.
833         (cli_message): Likewise.
834         (cli_wrap_hint): Likewise.
835         (cli_flush): Likewise.
836         (cli_redirect): Likewise.
837         (out_field_fmt): Likewise.
838         (field_separator): Likewise.
839         (cli_out_set_stream): Likewise.
840         * cli/cli-cmds.c (compare_symtabs): Likewise.
841         * cli/cli-dump.c (call_dump_func): Likewise.
842         (restore_section_callback): Likewise.
843         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
844         (do_restore_user_call_depth): Likewise.
845         (do_free_command_lines_cleanup): Likewise.
846         * coff-pe-read.c (get_section_vmas): Likewise.
847         (pe_as16): Likewise.
848         (pe_as32): Likewise.
849         * coffread.c (coff_symfile_read): Likewise.
850         * common/agent.c (agent_look_up_symbols): Likewise.
851         * common/filestuff.c (do_close_cleanup): Likewise.
852         * common/format.c (free_format_pieces_cleanup): Likewise.
853         * common/vec.c (vec_o_reserve): Likewise.
854         * compile/compile-c-support.c (print_one_macro): Likewise.
855         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
856         (eq_symbol_error): Likewise.
857         (del_symbol_error): Likewise.
858         (error_symbol_once): Likewise.
859         (gcc_convert_symbol): Likewise.
860         (gcc_symbol_address): Likewise.
861         (hash_symname): Likewise.
862         (eq_symname): Likewise.
863         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
864         (eq_type_map_instance): Likewise.
865         (insert_type): Likewise.
866         (convert_type): Likewise.
867         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
868         (setup_sections): Likewise.
869         (link_hash_table_free): Likewise.
870         (copy_sections): Likewise.
871         * compile/compile-object-run.c (do_module_cleanup): Likewise.
872         * compile/compile.c (compile_print_value): Likewise.
873         (do_rmdir): Likewise.
874         (cleanup_compile_instance): Likewise.
875         (cleanup_unlink_file): Likewise.
876         * completer.c (free_completion_tracker): Likewise.
877         * corelow.c (add_to_spuid_list): Likewise.
878         * cp-namespace.c (reset_directive_searched): Likewise.
879         * cp-support.c (reset_directive_searched): Likewise.
880         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
881         (cris_frame_unwind_cache): Likewise.
882         * d-lang.c (builtin_d_type): Likewise.
883         * d-namespace.c (reset_directive_searched): Likewise.
884         * dbxread.c (dbx_free_symfile_info): Likewise.
885         (do_free_bincl_list_cleanup): Likewise.
886         * disasm.c (hash_dis_line_entry): Likewise.
887         (eq_dis_line_entry): Likewise.
888         (dis_asm_print_address): Likewise.
889         (fprintf_disasm): Likewise.
890         (do_ui_file_delete): Likewise.
891         * doublest.c (convert_floatformat_to_doublest): Likewise.
892         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
893         (dummy_frame_prev_register): Likewise.
894         (dummy_frame_this_id): Likewise.
895         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
896         (cache_eq): Likewise.
897         (cache_find): Likewise.
898         (tailcall_frame_this_id): Likewise.
899         (dwarf2_tailcall_prev_register_first): Likewise.
900         (tailcall_frame_prev_register): Likewise.
901         (tailcall_frame_dealloc_cache): Likewise.
902         (tailcall_frame_prev_arch): Likewise.
903         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
904         (dwarf2_frame_set_init_reg): Likewise.
905         (dwarf2_frame_init_reg): Likewise.
906         (dwarf2_frame_set_signal_frame_p): Likewise.
907         (dwarf2_frame_signal_frame_p): Likewise.
908         (dwarf2_frame_set_adjust_regnum): Likewise.
909         (dwarf2_frame_adjust_regnum): Likewise.
910         (clear_pointer_cleanup): Likewise.
911         (dwarf2_frame_cache): Likewise.
912         (find_cie): Likewise.
913         (dwarf2_frame_find_fde): Likewise.
914         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
915         (free_dwarf_expr_context_cleanup): Likewise.
916         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
917         (locexpr_get_frame_base): Likewise.
918         (loclist_find_frame_base_location): Likewise.
919         (loclist_get_frame_base): Likewise.
920         (dwarf_expr_dwarf_call): Likewise.
921         (dwarf_expr_get_base_type): Likewise.
922         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
923         (dwarf_expr_get_obj_addr): Likewise.
924         (entry_data_value_coerce_ref): Likewise.
925         (entry_data_value_copy_closure): Likewise.
926         (entry_data_value_free_closure): Likewise.
927         (get_frame_address_in_block_wrapper): Likewise.
928         (dwarf2_evaluate_property): Likewise.
929         (dwarf2_compile_property_to_c): Likewise.
930         (needs_frame_read_addr_from_reg): Likewise.
931         (needs_frame_get_reg_value): Likewise.
932         (needs_frame_frame_base): Likewise.
933         (needs_frame_frame_cfa): Likewise.
934         (needs_frame_tls_address): Likewise.
935         (needs_frame_dwarf_call): Likewise.
936         (needs_dwarf_reg_entry_value): Likewise.
937         (get_ax_pc): Likewise.
938         (locexpr_read_variable): Likewise.
939         (locexpr_read_variable_at_entry): Likewise.
940         (locexpr_read_needs_frame): Likewise.
941         (locexpr_describe_location): Likewise.
942         (locexpr_tracepoint_var_ref): Likewise.
943         (locexpr_generate_c_location): Likewise.
944         (loclist_read_variable): Likewise.
945         (loclist_read_variable_at_entry): Likewise.
946         (loclist_describe_location): Likewise.
947         (loclist_tracepoint_var_ref): Likewise.
948         (loclist_generate_c_location): Likewise.
949         * dwarf2read.c (line_header_hash_voidp): Likewise.
950         (line_header_eq_voidp): Likewise.
951         (dwarf2_has_info): Likewise.
952         (dwarf2_get_section_info): Likewise.
953         (locate_dwz_sections): Likewise.
954         (hash_file_name_entry): Likewise.
955         (eq_file_name_entry): Likewise.
956         (delete_file_name_entry): Likewise.
957         (dw2_setup): Likewise.
958         (dw2_get_file_names_reader): Likewise.
959         (dw2_find_pc_sect_compunit_symtab): Likewise.
960         (hash_signatured_type): Likewise.
961         (eq_signatured_type): Likewise.
962         (add_signatured_type_cu_to_table): Likewise.
963         (create_debug_types_hash_table): Likewise.
964         (lookup_dwo_signatured_type): Likewise.
965         (lookup_dwp_signatured_type): Likewise.
966         (lookup_signatured_type): Likewise.
967         (hash_type_unit_group): Likewise.
968         (eq_type_unit_group): Likewise.
969         (get_type_unit_group): Likewise.
970         (process_psymtab_comp_unit_reader): Likewise.
971         (sort_tu_by_abbrev_offset): Likewise.
972         (process_skeletonless_type_unit): Likewise.
973         (psymtabs_addrmap_cleanup): Likewise.
974         (dwarf2_read_symtab): Likewise.
975         (psymtab_to_symtab_1): Likewise.
976         (die_hash): Likewise.
977         (die_eq): Likewise.
978         (load_full_comp_unit_reader): Likewise.
979         (reset_die_in_process): Likewise.
980         (free_cu_line_header): Likewise.
981         (handle_DW_AT_stmt_list): Likewise.
982         (hash_dwo_file): Likewise.
983         (eq_dwo_file): Likewise.
984         (hash_dwo_unit): Likewise.
985         (eq_dwo_unit): Likewise.
986         (create_dwo_cu_reader): Likewise.
987         (create_dwo_unit_in_dwp_v1): Likewise.
988         (create_dwo_unit_in_dwp_v2): Likewise.
989         (lookup_dwo_unit_in_dwp): Likewise.
990         (dwarf2_locate_dwo_sections): Likewise.
991         (dwarf2_locate_common_dwp_sections): Likewise.
992         (dwarf2_locate_v2_dwp_sections): Likewise.
993         (hash_dwp_loaded_cutus): Likewise.
994         (eq_dwp_loaded_cutus): Likewise.
995         (lookup_dwo_cutu): Likewise.
996         (abbrev_table_free_cleanup): Likewise.
997         (dwarf2_free_abbrev_table): Likewise.
998         (find_partial_die_in_comp_unit): Likewise.
999         (free_line_header_voidp): Likewise.
1000         (follow_die_offset): Likewise.
1001         (follow_die_sig_1): Likewise.
1002         (free_heap_comp_unit): Likewise.
1003         (free_stack_comp_unit): Likewise.
1004         (dwarf2_free_objfile): Likewise.
1005         (per_cu_offset_and_type_hash): Likewise.
1006         (per_cu_offset_and_type_eq): Likewise.
1007         (get_die_type_at_offset): Likewise.
1008         (partial_die_hash): Likewise.
1009         (partial_die_eq): Likewise.
1010         (dwarf2_per_objfile_free): Likewise.
1011         (hash_strtab_entry): Likewise.
1012         (eq_strtab_entry): Likewise.
1013         (add_string): Likewise.
1014         (hash_symtab_entry): Likewise.
1015         (eq_symtab_entry): Likewise.
1016         (delete_symtab_entry): Likewise.
1017         (cleanup_mapped_symtab): Likewise.
1018         (add_indices_to_cpool): Likewise.
1019         (hash_psymtab_cu_index): Likewise.
1020         (eq_psymtab_cu_index): Likewise.
1021         (add_address_entry_worker): Likewise.
1022         (unlink_if_set): Likewise.
1023         (write_one_signatured_type): Likewise.
1024         (save_gdb_index_command): Likewise.
1025         * elfread.c (elf_symtab_read): Likewise.
1026         (elf_gnu_ifunc_cache_hash): Likewise.
1027         (elf_gnu_ifunc_cache_eq): Likewise.
1028         (elf_gnu_ifunc_record_cache): Likewise.
1029         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1030         (elf_get_probes): Likewise.
1031         (probe_key_free): Likewise.
1032         * f-lang.c (builtin_f_type): Likewise.
1033         * frame-base.c (frame_base_append_sniffer): Likewise.
1034         (frame_base_set_default): Likewise.
1035         (frame_base_find_by_frame): Likewise.
1036         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1037         (frame_unwind_append_unwinder): Likewise.
1038         (frame_unwind_find_by_frame): Likewise.
1039         * frame.c (frame_addr_hash): Likewise.
1040         (frame_addr_hash_eq): Likewise.
1041         (frame_stash_find): Likewise.
1042         (do_frame_register_read): Likewise.
1043         (unwind_to_current_frame): Likewise.
1044         (frame_cleanup_after_sniffer): Likewise.
1045         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1046         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1047         * ft32-tdep.c (ft32_frame_cache): Likewise.
1048         * gcore.c (do_bfd_delete_cleanup): Likewise.
1049         (gcore_create_callback): Likewise.
1050         * gdb_bfd.c (hash_bfd): Likewise.
1051         (eq_bfd): Likewise.
1052         (gdb_bfd_open): Likewise.
1053         (free_one_bfd_section): Likewise.
1054         (gdb_bfd_ref): Likewise.
1055         (gdb_bfd_unref): Likewise.
1056         (get_section_descriptor): Likewise.
1057         (gdb_bfd_map_section): Likewise.
1058         (gdb_bfd_crc): Likewise.
1059         (gdb_bfd_mark_parent): Likewise.
1060         (gdb_bfd_record_inclusion): Likewise.
1061         (gdb_bfd_requires_relocations): Likewise.
1062         (print_one_bfd): Likewise.
1063         * gdbtypes.c (type_pair_hash): Likewise.
1064         (type_pair_eq): Likewise.
1065         (builtin_type): Likewise.
1066         (objfile_type): Likewise.
1067         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1068         (vtable_address_point_offset): Likewise.
1069         (gnuv3_get_vtable): Likewise.
1070         (hash_value_and_voffset): Likewise.
1071         (eq_value_and_voffset): Likewise.
1072         (compare_value_and_voffset): Likewise.
1073         (compute_vtable_size): Likewise.
1074         (gnuv3_get_typeid_type): Likewise.
1075         * go-lang.c (builtin_go_type): Likewise.
1076         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1077         (bkscm_eq_block_smob): Likewise.
1078         (bkscm_objfile_block_map): Likewise.
1079         (bkscm_del_objfile_blocks): Likewise.
1080         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1081         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1082         (gdbscm_disasm_print_address): Likewise.
1083         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1084         (frscm_eq_frame_smob): Likewise.
1085         (frscm_inferior_frame_map): Likewise.
1086         (frscm_del_inferior_frames): Likewise.
1087         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1088         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1089         (ofscm_objfile_smob_from_objfile): Likewise.
1090         * guile/scm-ports.c (ioscm_write): Likewise.
1091         (ioscm_file_port_delete): Likewise.
1092         (ioscm_file_port_rewind): Likewise.
1093         (ioscm_file_port_put): Likewise.
1094         (ioscm_file_port_write): Likewise.
1095         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1096         (psscm_pspace_smob_from_pspace): Likewise.
1097         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1098         (scscm_recording_unwind_handler): Likewise.
1099         (gdbscm_with_catch): Likewise.
1100         (scscm_call_0_body): Likewise.
1101         (scscm_call_1_body): Likewise.
1102         (scscm_call_2_body): Likewise.
1103         (scscm_call_3_body): Likewise.
1104         (scscm_call_4_body): Likewise.
1105         (scscm_apply_1_body): Likewise.
1106         (scscm_eval_scheme_string): Likewise.
1107         (gdbscm_safe_eval_string): Likewise.
1108         (scscm_source_scheme_script): Likewise.
1109         (gdbscm_safe_source_script): Likewise.
1110         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1111         (gdbscm_call_scm_from_stringn): Likewise.
1112         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1113         (syscm_eq_symbol_smob): Likewise.
1114         (syscm_get_symbol_map): Likewise.
1115         (syscm_del_objfile_symbols): Likewise.
1116         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1117         (stscm_eq_symtab_smob): Likewise.
1118         (stscm_objfile_symtab_map): Likewise.
1119         (stscm_del_objfile_symtabs): Likewise.
1120         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1121         (tyscm_eq_type_smob): Likewise.
1122         (tyscm_type_map): Likewise.
1123         (tyscm_copy_type_recursive): Likewise.
1124         (save_objfile_types): Likewise.
1125         * guile/scm-utils.c (extract_arg): Likewise.
1126         * h8300-tdep.c (h8300_frame_cache): Likewise.
1127         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1128         * hppa-tdep.c (compare_unwind_entries): Likewise.
1129         (find_unwind_entry): Likewise.
1130         (hppa_frame_cache): Likewise.
1131         (hppa_stub_frame_unwind_cache): Likewise.
1132         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1133         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1134         (hppaobsd_supply_fpregset): Likewise.
1135         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1136         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1137         * i386-tdep.c (i386_frame_cache): Likewise.
1138         (i386_epilogue_frame_cache): Likewise.
1139         (i386_sigtramp_frame_cache): Likewise.
1140         (i386_supply_gregset): Likewise.
1141         (i386_collect_gregset): Likewise.
1142         (i386_gdbarch_init): Likewise.
1143         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1144         (i386obsd_trapframe_cache): Likewise.
1145         * i387-tdep.c (i387_supply_fsave): Likewise.
1146         (i387_collect_fsave): Likewise.
1147         (i387_supply_fxsave): Likewise.
1148         (i387_collect_fxsave): Likewise.
1149         (i387_supply_xsave): Likewise.
1150         (i387_collect_xsave): Likewise.
1151         * ia64-tdep.c (ia64_frame_cache): Likewise.
1152         (ia64_sigtramp_frame_cache): Likewise.
1153         * infcmd.c (attach_command_continuation): Likewise.
1154         (attach_command_continuation_free_args): Likewise.
1155         * inferior.c (restore_inferior): Likewise.
1156         (delete_thread_of_inferior): Likewise.
1157         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1158         (get_inflow_inferior_data): Likewise.
1159         (inflow_inferior_exit): Likewise.
1160         * infrun.c (displaced_step_clear_cleanup): Likewise.
1161         (restore_current_uiout_cleanup): Likewise.
1162         (release_stop_context_cleanup): Likewise.
1163         (do_restore_infcall_suspend_state_cleanup): Likewise.
1164         (do_restore_infcall_control_state_cleanup): Likewise.
1165         (restore_inferior_ptid): Likewise.
1166         * inline-frame.c (block_starting_point_at): Likewise.
1167         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1168         * jit.c (get_jit_objfile_data): Likewise.
1169         (get_jit_program_space_data): Likewise.
1170         (jit_object_close_impl): Likewise.
1171         (jit_find_objf_with_entry_addr): Likewise.
1172         (jit_breakpoint_deleted): Likewise.
1173         (jit_unwind_reg_set_impl): Likewise.
1174         (jit_unwind_reg_get_impl): Likewise.
1175         (jit_dealloc_cache): Likewise.
1176         (jit_frame_sniffer): Likewise.
1177         (jit_frame_prev_register): Likewise.
1178         (jit_prepend_unwinder): Likewise.
1179         (jit_inferior_exit_hook): Likewise.
1180         (free_objfile_data): Likewise.
1181         * jv-lang.c (jv_per_objfile_free): Likewise.
1182         (get_dynamics_objfile): Likewise.
1183         (get_java_class_symtab): Likewise.
1184         (builtin_java_type): Likewise.
1185         * language.c (language_string_char_type): Likewise.
1186         (language_bool_type): Likewise.
1187         (language_lookup_primitive_type): Likewise.
1188         (language_lookup_primitive_type_as_symbol): Likewise.
1189         * linespec.c (hash_address_entry): Likewise.
1190         (eq_address_entry): Likewise.
1191         (iterate_inline_only): Likewise.
1192         (iterate_name_matcher): Likewise.
1193         (decode_line_2_compare_items): Likewise.
1194         (collect_one_symbol): Likewise.
1195         (compare_symbols): Likewise.
1196         (compare_msymbols): Likewise.
1197         (add_symtabs_to_list): Likewise.
1198         (collect_symbols): Likewise.
1199         (compare_msyms): Likewise.
1200         (add_minsym): Likewise.
1201         (cleanup_linespec_result): Likewise.
1202         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1203         * linux-nat.c (delete_lwp_cleanup): Likewise.
1204         (count_events_callback): Likewise.
1205         (select_event_lwp_callback): Likewise.
1206         (resume_stopped_resumed_lwps): Likewise.
1207         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1208         (invalidate_linux_cache_inf): Likewise.
1209         (get_linux_inferior_data): Likewise.
1210         (linux_find_memory_regions_thunk): Likewise.
1211         (linux_make_mappings_callback): Likewise.
1212         (linux_corefile_thread_callback): Likewise.
1213         (find_mapping_size): Likewise.
1214         * linux-thread-db.c (find_new_threads_callback): Likewise.
1215         * lm32-tdep.c (lm32_frame_cache): Likewise.
1216         * m2-lang.c (builtin_m2_type): Likewise.
1217         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1218         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1219         (m32r_linux_supply_gregset): Likewise.
1220         (m32r_linux_collect_gregset): Likewise.
1221         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1222         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1223         * m68k-tdep.c (m68k_frame_cache): Likewise.
1224         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1225         (m68kbsd_supply_gregset): Likewise.
1226         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1227         * m88k-tdep.c (m88k_frame_cache): Likewise.
1228         (m88k_supply_gregset): Likewise.
1229
1230 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1231
1232         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1233         to allocation result assignment.
1234         * ada-exp.y (write_object_renaming): Likewise.
1235         (write_ambiguous_var): Likewise.
1236         (ada_nget_field_index): Likewise.
1237         (write_var_or_type): Likewise.
1238         * ada-lang.c (ada_decode_symbol): Likewise.
1239         (ada_value_assign): Likewise.
1240         (value_pointer): Likewise.
1241         (cache_symbol): Likewise.
1242         (add_nonlocal_symbols): Likewise.
1243         (ada_name_for_lookup): Likewise.
1244         (symbol_completion_add): Likewise.
1245         (ada_to_fixed_type_1): Likewise.
1246         (ada_get_next_arg): Likewise.
1247         (defns_collected): Likewise.
1248         * ada-lex.l (processId): Likewise.
1249         (processString): Likewise.
1250         * ada-tasks.c (read_known_tasks_array): Likewise.
1251         (read_known_tasks_list): Likewise.
1252         * ada-typeprint.c (decoded_type_name): Likewise.
1253         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1254         * amd64-tdep.c (amd64_push_arguments): Likewise.
1255         (amd64_displaced_step_copy_insn): Likewise.
1256         (amd64_classify_insn_at): Likewise.
1257         (amd64_relocate_instruction): Likewise.
1258         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1259         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1260         (initialize_current_architecture): Likewise.
1261         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1262         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1263         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1264         (arm_push_dummy_call): Likewise.
1265         (extend_buffer_earlier): Likewise.
1266         (arm_adjust_breakpoint_address): Likewise.
1267         (arm_skip_stub): Likewise.
1268         * auto-load.c (filename_is_in_pattern): Likewise.
1269         (maybe_add_script_file): Likewise.
1270         (maybe_add_script_text): Likewise.
1271         (auto_load_objfile_script_1): Likewise.
1272         * auxv.c (ld_so_xfer_auxv): Likewise.
1273         * ax-general.c (new_agent_expr): Likewise.
1274         (grow_expr): Likewise.
1275         (ax_reg_mask): Likewise.
1276         * bcache.c (bcache_full): Likewise.
1277         * breakpoint.c (program_breakpoint_here_p): Likewise.
1278         * btrace.c (parse_xml_raw): Likewise.
1279         * build-id.c (build_id_to_debug_bfd): Likewise.
1280         * buildsym.c (end_symtab_with_blockvector): Likewise.
1281         * c-exp.y (string_exp): Likewise.
1282         (qualified_name): Likewise.
1283         (write_destructor_name): Likewise.
1284         (operator_stoken): Likewise.
1285         (parse_number): Likewise.
1286         (scan_macro_expansion): Likewise.
1287         (yylex): Likewise.
1288         (c_print_token): Likewise.
1289         * c-lang.c (c_get_string): Likewise.
1290         (emit_numeric_character): Likewise.
1291         * charset.c (wchar_iterate): Likewise.
1292         * cli/cli-cmds.c (complete_command): Likewise.
1293         (make_command): Likewise.
1294         * cli/cli-dump.c (restore_section_callback): Likewise.
1295         (restore_binary_file): Likewise.
1296         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1297         * cli/cli-script.c (execute_control_command): Likewise.
1298         * cli/cli-setshow.c (do_set_command): Likewise.
1299         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1300         (read_pe_exported_syms): Likewise.
1301         * coffread.c (coff_read_struct_type): Likewise.
1302         (coff_read_enum_type): Likewise.
1303         * common/btrace-common.c (btrace_data_append): Likewise.
1304         * common/buffer.c (buffer_grow): Likewise.
1305         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1306         * common/format.c (parse_format_string): Likewise.
1307         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1308         * common/xml-utils.c (xml_escape_text): Likewise.
1309         * compile/compile-object-load.c (copy_sections): Likewise.
1310         (compile_object_load): Likewise.
1311         * compile/compile-object-run.c (compile_object_run): Likewise.
1312         * completer.c (filename_completer): Likewise.
1313         * corefile.c (read_memory_typed_address): Likewise.
1314         (write_memory_unsigned_integer): Likewise.
1315         (write_memory_signed_integer): Likewise.
1316         (complete_set_gnutarget): Likewise.
1317         * corelow.c (get_core_register_section): Likewise.
1318         * cp-name-parser.y (d_grab): Likewise.
1319         (allocate_info): Likewise.
1320         (cp_new_demangle_parse_info): Likewise.
1321         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1322         (cp_lookup_symbol_in_namespace): Likewise.
1323         (lookup_namespace_scope): Likewise.
1324         (find_symbol_in_baseclass): Likewise.
1325         (cp_lookup_nested_symbol): Likewise.
1326         (cp_lookup_transparent_type_loop): Likewise.
1327         * cp-support.c (copy_string_to_obstack): Likewise.
1328         (make_symbol_overload_list): Likewise.
1329         (make_symbol_overload_list_namespace): Likewise.
1330         (make_symbol_overload_list_adl_namespace): Likewise.
1331         (first_component_command): Likewise.
1332         * cp-valprint.c (cp_print_value): Likewise.
1333         * ctf.c (ctf_xfer_partial): Likewise.
1334         * d-exp.y (StringExp): Likewise.
1335         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1336         (lookup_module_scope): Likewise.
1337         (find_symbol_in_baseclass): Likewise.
1338         (d_lookup_nested_symbol): Likewise.
1339         * dbxread.c (find_stab_function_addr): Likewise.
1340         (read_dbx_symtab): Likewise.
1341         (dbx_end_psymtab): Likewise.
1342         (cp_set_block_scope): Likewise.
1343         * dcache.c (dcache_alloc): Likewise.
1344         * demangle.c (_initialize_demangler): Likewise.
1345         * dicos-tdep.c (dicos_load_module_p): Likewise.
1346         * dictionary.c (dict_create_hashed_expandable): Likewise.
1347         (dict_create_linear_expandable): Likewise.
1348         (expand_hashtable): Likewise.
1349         (add_symbol_linear_expandable): Likewise.
1350         * dwarf2-frame.c (add_cie): Likewise.
1351         (add_fde): Likewise.
1352         (dwarf2_build_frame_info): Likewise.
1353         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1354         (dwarf_expr_fetch_address): Likewise.
1355         (add_piece): Likewise.
1356         (execute_stack_op): Likewise.
1357         * dwarf2loc.c (chain_candidate): Likewise.
1358         (dwarf_entry_parameter_to_value): Likewise.
1359         (read_pieced_value): Likewise.
1360         (write_pieced_value): Likewise.
1361         * dwarf2read.c (dwarf2_read_section): Likewise.
1362         (add_type_unit): Likewise.
1363         (read_comp_units_from_section): Likewise.
1364         (fixup_go_packaging): Likewise.
1365         (dwarf2_compute_name): Likewise.
1366         (dwarf2_physname): Likewise.
1367         (create_dwo_unit_in_dwp_v1): Likewise.
1368         (create_dwo_unit_in_dwp_v2): Likewise.
1369         (read_func_scope): Likewise.
1370         (read_call_site_scope): Likewise.
1371         (dwarf2_attach_fields_to_type): Likewise.
1372         (process_structure_scope): Likewise.
1373         (mark_common_block_symbol_computed): Likewise.
1374         (read_common_block): Likewise.
1375         (abbrev_table_read_table): Likewise.
1376         (guess_partial_die_structure_name): Likewise.
1377         (fixup_partial_die): Likewise.
1378         (add_file_name): Likewise.
1379         (dwarf2_const_value_data): Likewise.
1380         (dwarf2_const_value_attr): Likewise.
1381         (build_error_marker_type): Likewise.
1382         (guess_full_die_structure_name): Likewise.
1383         (anonymous_struct_prefix): Likewise.
1384         (typename_concat): Likewise.
1385         (dwarf2_canonicalize_name): Likewise.
1386         (dwarf2_name): Likewise.
1387         (write_constant_as_bytes): Likewise.
1388         (dwarf2_fetch_constant_bytes): Likewise.
1389         (copy_string): Likewise.
1390         (parse_macro_definition): Likewise.
1391         * elfread.c (elf_symfile_segments): Likewise.
1392         (elf_rel_plt_read): Likewise.
1393         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1394         (elf_gnu_ifunc_resolve_by_got): Likewise.
1395         (elf_read_minimal_symbols): Likewise.
1396         (elf_gnu_ifunc_record_cache): Likewise.
1397         * event-top.c (top_level_prompt): Likewise.
1398         (command_line_handler): Likewise.
1399         * exec.c (resize_section_table): Likewise.
1400         * expprint.c (print_subexp_standard): Likewise.
1401         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1402         * findcmd.c (parse_find_args): Likewise.
1403         * findvar.c (address_from_register): Likewise.
1404         * frame.c (get_prev_frame_always): Likewise.
1405         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1406         (get_section_descriptor): Likewise.
1407         * gdb_obstack.c (obconcat): Likewise.
1408         (obstack_strdup): Likewise.
1409         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1410         (create_set_type): Likewise.
1411         (lookup_unsigned_typename): Likewise.
1412         (lookup_signed_typename): Likewise.
1413         (resolve_dynamic_union): Likewise.
1414         (resolve_dynamic_struct): Likewise.
1415         (add_dyn_prop): Likewise.
1416         (copy_dynamic_prop_list): Likewise.
1417         (arch_flags_type): Likewise.
1418         (append_composite_type_field_raw): Likewise.
1419         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1420         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1421         * go-exp.y (string_exp): Likewise.
1422         * go-lang.c (go_demangle): Likewise.
1423         * guile/guile.c (compute_scheme_string): Likewise.
1424         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1425         (gdbscm_canonicalize_command_name): Likewise.
1426         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1427         (ioscm_init_memory_port): Likewise.
1428         (ioscm_reinit_memory_port): Likewise.
1429         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1430         (gdbscm_gc_dup_argv): Likewise.
1431         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1432         * hppa-tdep.c (internalize_unwinds): Likewise.
1433         (read_unwind_info): Likewise.
1434         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1435         (windows_core_xfer_shared_libraries): Likewise.
1436         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1437         (i386_stap_parse_special_token_triplet): Likewise.
1438         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1439         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1440         * inf-child.c (inf_child_fileio_readlink): Likewise.
1441         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1442         (inf_ptrace_store_register): Likewise.
1443         * infrun.c (follow_exec): Likewise.
1444         (displaced_step_prepare_throw): Likewise.
1445         (save_stop_context): Likewise.
1446         (save_infcall_suspend_state): Likewise.
1447         * jit.c (jit_read_descriptor): Likewise.
1448         (jit_read_code_entry): Likewise.
1449         (jit_symtab_line_mapping_add_impl): Likewise.
1450         (finalize_symtab): Likewise.
1451         (jit_unwind_reg_get_impl): Likewise.
1452         * jv-exp.y (QualifiedName): Likewise.
1453         * jv-lang.c (get_java_utf8_name): Likewise.
1454         (type_from_class): Likewise.
1455         (java_demangle_type_signature): Likewise.
1456         (java_class_name_from_physname): Likewise.
1457         * jv-typeprint.c (java_type_print_base): Likewise.
1458         * jv-valprint.c (java_value_print): Likewise.
1459         * language.c (add_language): Likewise.
1460         * linespec.c (add_sal_to_sals_basic): Likewise.
1461         (add_sal_to_sals): Likewise.
1462         (decode_objc): Likewise.
1463         (find_linespec_symbols): Likewise.
1464         * linux-fork.c (fork_save_infrun_state): Likewise.
1465         * linux-nat.c (linux_nat_detach): Likewise.
1466         (linux_nat_fileio_readlink): Likewise.
1467         * linux-record.c (record_linux_sockaddr): Likewise.
1468         (record_linux_msghdr): Likewise.
1469         (Do): Likewise.
1470         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1471         (linux_collect_regset_section_cb): Likewise.
1472         (linux_get_siginfo_data): Likewise.
1473         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1474         (try_thread_db_load_from_dir): Likewise.
1475         (thread_db_load_search): Likewise.
1476         (info_auto_load_libthread_db): Likewise.
1477         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1478         (m32c_m16c_pointer_to_address): Likewise.
1479         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1480         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1481         * machoread.c (macho_check_dsym): Likewise.
1482         * macroexp.c (resize_buffer): Likewise.
1483         (gather_arguments): Likewise.
1484         (maybe_expand): Likewise.
1485         * macrotab.c (new_macro_key): Likewise.
1486         (new_source_file): Likewise.
1487         (new_macro_definition): Likewise.
1488         * mdebugread.c (parse_symbol): Likewise.
1489         (parse_type): Likewise.
1490         (parse_partial_symbols): Likewise.
1491         (psymtab_to_symtab_1): Likewise.
1492         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1493         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1494         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1495         (mi_cmd_data_read_memory_bytes): Likewise.
1496         (mi_cmd_data_write_memory_bytes): Likewise.
1497         (mi_cmd_trace_frame_collected): Likewise.
1498         * mi/mi-parse.c (mi_parse_argv): Likewise.
1499         (mi_parse): Likewise.
1500         * minidebug.c (lzma_open): Likewise.
1501         (lzma_pread): Likewise.
1502         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1503         (mips_print_fp_register): Likewise.
1504         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1505         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1506         * mt-tdep.c (mt_register_name): Likewise.
1507         (mt_registers_info): Likewise.
1508         (mt_push_dummy_call): Likewise.
1509         * namespace.c (add_using_directive): Likewise.
1510         * nat/linux-btrace.c (perf_event_read): Likewise.
1511         (linux_enable_bts): Likewise.
1512         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1513         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1514         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1515         (nto_parse_redirection): Likewise.
1516         * objc-lang.c (objc_demangle): Likewise.
1517         (find_methods): Likewise.
1518         * objfiles.c (get_objfile_bfd_data): Likewise.
1519         (set_objfile_main_name): Likewise.
1520         (allocate_objfile): Likewise.
1521         (objfile_relocate): Likewise.
1522         (update_section_map): Likewise.
1523         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1524         * p-exp.y (exp): Likewise.
1525         (yylex): Likewise.
1526         * p-valprint.c (pascal_object_print_value): Likewise.
1527         * parse.c (initialize_expout): Likewise.
1528         (mark_completion_tag): Likewise.
1529         (copy_name): Likewise.
1530         (parse_float): Likewise.
1531         (type_stack_reserve): Likewise.
1532         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1533         (ppu2spu_prev_register): Likewise.
1534         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1535         * printcmd.c (printf_wide_c_string): Likewise.
1536         (printf_pointer): Likewise.
1537         * probe.c (parse_probes): Likewise.
1538         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1539         (cmdpy_init): Likewise.
1540         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1541         * python/py-symtab.c (set_sal): Likewise.
1542         * python/py-unwind.c (pyuw_sniffer): Likewise.
1543         * python/python.c (python_interactive_command): Likewise.
1544         (compute_python_string): Likewise.
1545         * ravenscar-thread.c (get_running_thread_id): Likewise.
1546         * record-full.c (record_full_exec_insn): Likewise.
1547         (record_full_core_open_1): Likewise.
1548         * regcache.c (regcache_raw_read_signed): Likewise.
1549         (regcache_raw_read_unsigned): Likewise.
1550         (regcache_cooked_read_signed): Likewise.
1551         (regcache_cooked_read_unsigned): Likewise.
1552         * remote-fileio.c (remote_fileio_func_open): Likewise.
1553         (remote_fileio_func_rename): Likewise.
1554         (remote_fileio_func_unlink): Likewise.
1555         (remote_fileio_func_stat): Likewise.
1556         (remote_fileio_func_system): Likewise.
1557         * remote-mips.c (mips_xfer_memory): Likewise.
1558         (mips_load_srec): Likewise.
1559         (pmon_end_download): Likewise.
1560         * remote.c (new_remote_state): Likewise.
1561         (map_regcache_remote_table): Likewise.
1562         (remote_register_number_and_offset): Likewise.
1563         (init_remote_state): Likewise.
1564         (get_memory_packet_size): Likewise.
1565         (remote_pass_signals): Likewise.
1566         (remote_program_signals): Likewise.
1567         (remote_start_remote): Likewise.
1568         (remote_check_symbols): Likewise.
1569         (remote_query_supported): Likewise.
1570         (extended_remote_attach): Likewise.
1571         (process_g_packet): Likewise.
1572         (store_registers_using_G): Likewise.
1573         (putpkt_binary): Likewise.
1574         (read_frame): Likewise.
1575         (compare_sections_command): Likewise.
1576         (remote_hostio_pread): Likewise.
1577         (remote_hostio_readlink): Likewise.
1578         (remote_file_put): Likewise.
1579         (remote_file_get): Likewise.
1580         (remote_pid_to_exec_file): Likewise.
1581         (_initialize_remote): Likewise.
1582         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1583         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1584         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1585         (bfd_uses_spe_extensions): Likewise.
1586         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1587         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1588         * solib-dsbt.c (decode_loadmap): Likewise.
1589         (fetch_loadmap): Likewise.
1590         (scan_dyntag): Likewise.
1591         (enable_break): Likewise.
1592         (dsbt_relocate_main_executable): Likewise.
1593         * solib-frv.c (fetch_loadmap): Likewise.
1594         (enable_break2): Likewise.
1595         (frv_relocate_main_executable): Likewise.
1596         * solib-spu.c (spu_relocate_main_executable): Likewise.
1597         (spu_bfd_open): Likewise.
1598         * solib-svr4.c (lm_info_read): Likewise.
1599         (read_program_header): Likewise.
1600         (find_program_interpreter): Likewise.
1601         (scan_dyntag): Likewise.
1602         (elf_locate_base): Likewise.
1603         (open_symbol_file_object): Likewise.
1604         (read_program_headers_from_bfd): Likewise.
1605         (svr4_relocate_main_executable): Likewise.
1606         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1607         * solib.c (solib_find_1): Likewise.
1608         (exec_file_find): Likewise.
1609         (solib_find): Likewise.
1610         * source.c (openp): Likewise.
1611         (print_source_lines_base): Likewise.
1612         (forward_search_command): Likewise.
1613         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1614         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1615         (spu_get_overlay_table): Likewise.
1616         * stabsread.c (patch_block_stabs): Likewise.
1617         (define_symbol): Likewise.
1618         (again:): Likewise.
1619         (read_member_functions): Likewise.
1620         (read_one_struct_field): Likewise.
1621         (read_enum_type): Likewise.
1622         (common_block_start): Likewise.
1623         * stack.c (read_frame_arg): Likewise.
1624         (backtrace_command): Likewise.
1625         * stap-probe.c (stap_parse_register_operand): Likewise.
1626         * symfile.c (syms_from_objfile_1): Likewise.
1627         (find_separate_debug_file): Likewise.
1628         (load_command): Likewise.
1629         (load_progress): Likewise.
1630         (load_section_callback): Likewise.
1631         (reread_symbols): Likewise.
1632         (add_filename_language): Likewise.
1633         (allocate_compunit_symtab): Likewise.
1634         (read_target_long_array): Likewise.
1635         (simple_read_overlay_table): Likewise.
1636         * symtab.c (symbol_set_names): Likewise.
1637         (resize_symbol_cache): Likewise.
1638         (rbreak_command): Likewise.
1639         (completion_list_add_name): Likewise.
1640         (completion_list_objc_symbol): Likewise.
1641         (add_filename_to_list): Likewise.
1642         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1643         * target-memory.c (target_write_memory_blocks): Likewise.
1644         * target.c (target_read_string): Likewise.
1645         (read_whatever_is_readable): Likewise.
1646         (target_read_alloc_1): Likewise.
1647         (simple_search_memory): Likewise.
1648         (target_fileio_read_alloc_1): Likewise.
1649         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1650         * top.c (command_line_input): Likewise.
1651         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1652         * tracefile.c (tracefile_fetch_registers): Likewise.
1653         * tracepoint.c (add_memrange): Likewise.
1654         (init_collection_list): Likewise.
1655         (add_aexpr): Likewise.
1656         (trace_dump_actions): Likewise.
1657         (parse_trace_status): Likewise.
1658         (parse_tracepoint_definition): Likewise.
1659         (parse_tsv_definition): Likewise.
1660         (parse_static_tracepoint_marker_definition): Likewise.
1661         * tui/tui-file.c (tui_sfileopen): Likewise.
1662         (tui_file_adjust_strbuf): Likewise.
1663         * tui/tui-io.c (tui_expand_tabs): Likewise.
1664         * tui/tui-source.c (tui_set_source_content): Likewise.
1665         * typeprint.c (find_global_typedef): Likewise.
1666         * ui-file.c (do_ui_file_xstrdup): Likewise.
1667         (ui_file_obsavestring): Likewise.
1668         (mem_file_write): Likewise.
1669         * utils.c (make_hex_string): Likewise.
1670         (get_regcomp_error): Likewise.
1671         (puts_filtered_tabular): Likewise.
1672         (gdb_realpath_keepfile): Likewise.
1673         (ldirname): Likewise.
1674         (gdb_bfd_errmsg): Likewise.
1675         (substitute_path_component): Likewise.
1676         * valops.c (search_struct_method): Likewise.
1677         (find_oload_champ_namespace_loop): Likewise.
1678         * valprint.c (print_decimal_chars): Likewise.
1679         (read_string): Likewise.
1680         (generic_emit_char): Likewise.
1681         * varobj.c (varobj_delete): Likewise.
1682         (varobj_value_get_print_value): Likewise.
1683         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1684         * windows-tdep.c (display_one_tib): Likewise.
1685         * xcoffread.c (read_xcoff_symtab): Likewise.
1686         (process_xcoff_symbol): Likewise.
1687         (swap_sym): Likewise.
1688         (scan_xcoff_symtab): Likewise.
1689         (xcoff_initial_scan): Likewise.
1690         * xml-support.c (gdb_xml_end_element): Likewise.
1691         (xml_process_xincludes): Likewise.
1692         (xml_fetch_content_from_file): Likewise.
1693         * xml-syscall.c (xml_list_of_syscalls): Likewise.
1694         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1695
1696 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
1697
1698         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1699         instead of builtin_func_ptr.
1700         (ft32_pointer_to_address): New function.
1701         (ft32_address_class_type_flags): New function.
1702         (ft32_address_class_type_flags_to_name): New function.
1703         (ft32_address_class_name_to_type_flags): New function.
1704         (ft32_gdbarch_init): Set tdep->pc_type.  Call
1705         set_gdbarch_pointer_to_address,
1706         set_gdbarch_address_class_type_flags
1707         set_gdbarch_address_class_name_to_type_flags,
1708         and set_gdbarch_address_class_type_flags_to_name.
1709         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1710
1711 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
1712
1713         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1714         value is a reference, actually dereference it in order to get
1715         the underlying value.
1716
1717 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
1718
1719         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1720
1721 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
1722
1723         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1724         * linespec.c (linespec_lexer_lex_string): Same.
1725
1726 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1727
1728         * NEWS: Mention support for fast tracepoints on aarch64-linux.
1729
1730 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1731
1732         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1733         variable.  Call aarch64_decode_adr instead of
1734         aarch64_decode_adrp.
1735         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1736         (aarch64_decode_adr): New function declaration.
1737         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1738         (aarch64_decode_adr): New function, factored out from
1739         aarch64_decode_adrp to decode both adr and adrp instructions.
1740
1741 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1742
1743         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1744         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1745         (aarch64-insn.o): New rule.
1746         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1747         (aarch64*-*-linux*): Likewise.
1748         * arch/aarch64-insn.c: New file.
1749         * arch/aarch64-insn.h: New file.
1750         * aarch64-tdep.c: Include arch/aarch64-insn.h.
1751         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
1752         arch/aarch64-insn.h.
1753         (decode_add_sub_imm): Rename to ...
1754         (aarch64_decode_add_sub_imm): ... this.
1755         (decode_adrp): Rename to ...
1756         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
1757         Declare in arch/aarch64-insn.h.
1758         (decode_b): Rename to ...
1759         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
1760         Declare in arch/aarch64-insn.h.
1761         (decode_bcond): Rename to ...
1762         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
1763         Declare in arch/aarch64-insn.h.
1764         (decode_br): Rename to ...
1765         (aarch64_decode_br): ... this.
1766         (decode_cb): Rename to ...
1767         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
1768         Declare in arch/aarch64-insn.h.
1769         (decode_eret): Rename to ...
1770         (aarch64_decode_eret): ... this.
1771         (decode_movz): Rename to ...
1772         (aarch64_decode_movz): ... this.
1773         (decode_orr_shifted_register_x): Rename to ...
1774         (aarch64_decode_orr_shifted_register_x): ... this.
1775         (decode_ret): Rename to ...
1776         (aarch64_decode_ret): ... this.
1777         (decode_stp_offset): Rename to ...
1778         (aarch64_decode_stp_offset): ... this.
1779         (decode_stp_offset_wb): Rename to ...
1780         (aarch64_decode_stp_offset_wb): ... this.
1781         (decode_stur): Rename to ...
1782         (aarch64_decode_stur): ... this.
1783         (decode_tb): Rename to ...
1784         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
1785         Declare in arch/aarch64-insn.h.
1786         (aarch64_analyze_prologue): Adjust calls to renamed functions.
1787
1788 2015-09-20  Doug Evans  <xdje42@gmail.com>
1789
1790         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1791
1792 2015-09-20  Doug Evans  <xdje42@gmail.com>
1793
1794         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
1795         variable name that collides with a parameter.
1796
1797 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
1798
1799         * dwarf2loc.c (locexpr_get_frame_base): Renames
1800         block_op_get_frame_base.
1801         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1802         block_op_get_frame_base by reference to locexpr_get_frame_base.
1803         (loclist_get_frame_base): New function, near identical copy of
1804         locexpr_get_frame_base.
1805         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1806         block_op_get_frame_base by reference to loclist_get_frame_base.
1807
1808 2015-09-19  Doug Evans  <xdje42@gmail.com>
1809
1810         * ravenscar-thread.c (ravenscar_inferior_created): Replace
1811         current_inferior ()->gdbarch with its wrapper target_gdbarch.
1812
1813 2015-09-18  Doug Evans  <xdje42@gmail.com>
1814
1815         * linux-thread-db.c (record_thread): Return the created thread.
1816         (thread_from_lwp): Likewise.
1817         (thread_db_get_thread_local_address): Update.
1818
1819 2015-09-18  Doug Evans  <xdje42@gmail.com>
1820
1821         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1822         move only member demangled_name up.  All uses updated.
1823
1824 2015-09-18  Doug Evans  <xdje42@gmail.com>
1825
1826         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1827         kind of minimal symbol in the error message.
1828         * objfiles.c (objfile_flavour_name): New function.
1829         * objfiles.h (objfile_flavour_name): Declare.
1830
1831 2015-09-18  Yao Qi  <yao.qi@linaro.org>
1832
1833         * nat/aarch64-linux.c: Include elf/common.h,
1834         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1835         (aarch64_ps_get_thread_area): New function.
1836         * nat/aarch64-linux.h: Include gdb_proc_service.h.
1837         (aarch64_ps_get_thread_area): Declare.
1838         * aarch64-linux-nat.c (ps_get_thread_area): Call
1839         aarch64_ps_get_thread_area.
1840
1841 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1842
1843         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1844
1845 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1846
1847         * NEWS: Announce new scheduler-locking mode.
1848         * infrun.c (schedlock_replay): New.
1849         (scheduler_enums): Add schedlock_replay.
1850         (scheduler_mode): Change default to schedlock_replay.
1851         (user_visible_resume_ptid): Handle schedlock_replay.
1852         (clear_proceed_status_thread): Stop replaying if resumed thread is
1853         not replaying.
1854         (schedlock_applies): Handle schedlock_replay.
1855         (_initialize_infrun): Document new scheduler-locking mode.
1856         * record-btrace.c (record_btrace_resume): Remove code to stop other
1857         threads when not replaying the resumed thread.
1858
1859 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1860
1861         * record-btrace.c ((record_btrace_will_replay): New.
1862         (init_record_btrace_ops): Initialize to_record_will_replay.
1863         * record-full.c ((record_full_will_replay): New.
1864         (init_record_full_ops): Initialize to_record_will_replay.
1865         * target-delegates.c: Regenerated.
1866         * target.c (target_record_will_replay): New.
1867         * target.h (struct target_ops) <to_record_will_replay>: New.
1868         (target_record_will_replay): New.
1869
1870 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1871
1872         * record-btrace.c (record_btrace_resume): Call
1873         target_record_stop_replaying.
1874         (record_btrace_stop_replaying_all): New.
1875         (init_record_btrace_ops): Initialize to_record_stop_replaying.
1876         * record-full.c (record_full_stop_replaying): New.
1877         (init_record_full_ops ): Initialize to_record_stop_replaying.
1878         * target-delegates.c: Regenerated.
1879         * target.c (target_record_stop_replaying): New.
1880         * target.h (struct target_ops) <to_record_stop_replaying>: New.
1881         (target_record_stop_replaying): New.
1882
1883 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1884
1885         * record-btrace.c (record_btrace_xfer_partial)
1886         (record_btrace_store_registers, record_btrace_prepare_to_store):
1887         Call record_btrace_is_replaying with inferior_ptid instead of
1888         minus_one_ptid.
1889         (record_btrace_store_registers): Change error message.
1890
1891 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1892
1893         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1894         Update users to pass minus_one_ptid.
1895         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1896         * record.c (cmd_record_delete): Pass inferior_ptid to
1897         target_record_is_replaying.
1898         * target-delegates.c: Regenerated.
1899         * target.c (target_record_is_replaying): Add ptid argument.
1900         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1901         argument.
1902         (target_record_is_replaying): Add ptid argument.
1903
1904 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1905
1906         * record-btrace.c (record_btrace_open): Remove non_stop check.
1907         * NEWS: Announce that record btrace supports non-stop mode.
1908
1909 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1910
1911         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1912         in the TARKET_WAITKIND_NO_HISTORY case.
1913
1914 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1915
1916         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1917         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1918
1919 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1920
1921         * record-btrace.c (get_thread_current_frame): New.
1922         (record_btrace_start_replaying): Call get_thread_current_frame.
1923
1924 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1925
1926         * record-btrace.c (record_btrace_resume_thread): A move request
1927         overwrites a previous move request.
1928         (record_btrace_find_resume_thread): Removed.
1929         (record_btrace_resume): Resume all requested threads.
1930
1931 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1932
1933         * record-btrace.c: Include vec.h.
1934         (record_btrace_find_thread_to_move): Removed.
1935         (btrace_step_no_resumed, btrace_step_again)
1936         (record_btrace_stop_replaying_at_end): New.
1937         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1938         (record_btrace_single_step_forward): Remove calls to
1939         record_btrace_stop_replaying.
1940         (record_btrace_step_thread): Do only one step for BTHR_CONT and
1941         BTHR_RCONT.  Keep threads at the end of their history moving.
1942         (record_btrace_wait): Call record_btrace_step_thread for all threads
1943         until one reports an event.  Call record_btrace_stop_replaying_at_end
1944         for the eventing thread.
1945
1946 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1947
1948         * record-btrace.c (record_btrace_single_step_forward): Return
1949         NO_HISTORY if a step brings us to the end of the execution history.
1950
1951 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1952
1953         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1954         to ...
1955         (record_btrace_single_step_forward): ... here and
1956         (record_btrace_single_step_backward): ... here.
1957
1958 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1959
1960         * record-btrace.c (btrace_step_spurious)
1961         (record_btrace_single_step_forward)
1962         (record_btrace_single_step_backward): New.
1963         (record_btrace_step_thread): Call record_btrace_single_step_forward
1964         and record_btrace_single_step_backward.
1965
1966 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1967
1968         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1969         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1970
1971 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1972
1973         * record-btrace.c (btrace_thread_flag_to_str)
1974         (record_btrace_cancel_resume): New.
1975         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1976         (record_btrace_resume): Print execution direction.
1977         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1978         (record_btrace_wait): Call record_btrace_cancel_resume.
1979
1980 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1981
1982         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1983         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1984         (record_btrace_find_thread_to_move): Also accept threads that have
1985         BTHR_STOP set.
1986         (btrace_step_stopped_on_request, record_btrace_stop): New.
1987         (record_btrace_step_thread): Support BTHR_STOP.
1988         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1989         (init_record_btrace_ops): Initialize to_stop.
1990
1991 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1992
1993         * record-btrace.c (record_btrace_wait): Replace non_stop check with
1994         target_is_non_stop_p ().
1995
1996 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
1997
1998         * ada-typeprint.c (print_array_type): Do not describe arrays as
1999         packed when they embed dynamic elements.
2000
2001 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2002
2003         * symtab.h (address_class): Document that TLS variables
2004         are handled by LOC_UNRESOLVED.
2005         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2006         * printcmd.c (address_info): Don't relocate TLS variables.
2007
2008 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2009
2010         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2011         (decode_adrp): Likewise.
2012         (decode_b): Likewise.
2013         (decode_bcond): Likewise.
2014         (decode_br): Likewise.
2015         (decode_cb): Likewise.
2016         (decode_eret): Likewise.
2017         (decode_movz): Likewise.
2018         (decode_orr_shifted_register_x): Likewise.
2019         (decode_ret): Likewise.
2020         (decode_stp_offset): Likewise.
2021         (decode_stp_offset_wb): Likewise.
2022         (decode_stur): Likewise.
2023         (decode_tb): Likewise.
2024         (aarch64_analyze_prologue): Likewise.
2025         (pass_in_x): Likewise.
2026         (pass_in_v): Likewise.
2027         (pass_on_stack): Likewise.
2028         (aarch64_push_dummy_call): Likewise.
2029         (aarch64_extract_return_value): Likewise.
2030         (aarch64_store_return_value): Likewise.
2031         (aarch64_return_value): Likewise.
2032         (aarch64_record_asimd_load_store): Likewise.
2033         (aarch64_record_load_store): Likewise.
2034         (aarch64_record_data_proc_simd_fp): Likewise.
2035
2036 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2037
2038         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2039         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2040         (ppc64_skip_trampoline_code_1): ... here.
2041         (ppc64_skip_trampoline_code): New wrapper function.
2042         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2043
2044 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2045
2046         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2047         function.
2048         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2049         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2050         if target_can_do_single_step returns 1.
2051         * remote.c (struct vCont_action_support) <s, S>: New fields.
2052         (PACKET_vContSupported): New enum.
2053         (remote_protocol_features): New element for vContSupported.
2054         (remote_query_supported): Append "vContSupported+".
2055         (remote_vcont_probe): Remove support_s and support_S, use
2056         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2057         vCont packet if c and C actions are not supported.
2058         (remote_can_do_single_step): New function.
2059         (init_remote_ops): Install it to to_can_do_single_step.
2060         (_initialize_remote): Call add_packet_config_cmd.
2061         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2062         (target_can_do_single_step): New macro.
2063         * target-delegates.c: Re-generated.
2064
2065 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2066
2067         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2068         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2069         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2070         New function.
2071         (aarch64_siginfo_from_compat_siginfo): New function.
2072         * nat/aarch64-linux.h: Include signal.h.
2073         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2074         (compat_timer_t, compat_clock_t): Likewise.
2075         (struct compat_timeval): New.
2076         (union compat_sigval): New.
2077         (struct compat_siginfo): New.
2078         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2079         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2080         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2081         (cpt_si_band, cpt_si_fd): Likewise.
2082
2083 2015-09-14  Pedro Alves  <palves@redhat.com>
2084
2085         * infrun.c (current_stop_id): New global.
2086         (get_stop_id, new_stop_id): New functions.
2087         (fetch_inferior_event): Handle normal_stop proceeding the target.
2088         (struct stop_context): New.
2089         (save_stop_context, release_stop_context_cleanup)
2090         (stop_context_changed): New functions.
2091         (normal_stop): Return true if the hook-stop changes the stop
2092         context.
2093         * infrun.h (get_stop_id): Declare.
2094         (normal_stop): Now returns int.  Add documentation.
2095
2096 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2097
2098         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2099         comment.  Handle packed arrays.
2100
2101 2015-09-14  Pedro Alves  <palves@redhat.com>
2102
2103         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2104         mention of maint set/show target-non-stop.
2105
2106 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2107
2108         * NEWS: Announce new remote packets for the exec-events
2109         feature and the exec-events feature and associated commands.
2110
2111 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2112
2113         * remote.c (remote_exec_event_p): New function.
2114         (remote_insert_exec_catchpoint): New function.
2115         (remote_remove_exec_catchpoint): New function.
2116         (init_extended_remote_ops): Initialize extended_remote_ops
2117         members to_insert_exec_catchpoint and
2118         to_remove_exec_catchpoint.
2119
2120 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2121             Luis Machado  <lgustavo@codesourcery.com>
2122
2123         * infrun.c (follow_exec): Use process-style ptid for
2124         exec message.  Call add_inferior_with_spaces and
2125         target_follow_exec.
2126         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2127         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2128         * remote.c (remote_pspace_data): New static variable.
2129         (remote_pspace_data_cleanup): New function.
2130         (get_remote_exec_file): New function.
2131         (set_remote_exec_file_1): New function.
2132         (set_remote_exec_file): New function.
2133         (show_remote_exec_file): New function.
2134         (remote_exec_file): Delete static variable.
2135         (anonymous enum) <PACKET_exec_event_feature>: New
2136         enumeration constant.
2137         (remote_protocol_features): Add entry for exec-events feature.
2138         (remote_query_supported): Add client side of qSupported query
2139         for exec-events feature.
2140         (remote_follow_exec): New function.
2141         (remote_parse_stop_reply): Handle 'exec' stop reason.
2142         (extended_remote_run, extended_remote_create_inferior): Call
2143         get_remote_exec_file and set_remote_exec_file_1.
2144         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2145         member.
2146         (_initialize_remote): Call
2147         register_program_space_data_with_cleanup.  Call
2148         add_packet_config_cmd for remote exec-events feature.
2149         Modify call to add_setshow_string_noescape_cmd for exec-file
2150         to use new functions set_remote_exec_file and
2151         show_remote_exec_file.
2152         * target-debug.h, target-delegates.c: Regenerated.
2153         * target.c (target_follow_exec): New function.
2154         * target.h (struct target_ops) <to_follow_exec>: New member.
2155         (target_follow_exec): Declare new function.
2156
2157 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2158
2159         * aarch64-tdep.c (decode_cb): Move up comment describing the
2160         encoding.
2161         (decode_tb): Fix a typo in comment above the function.  Move up
2162         comment describing the encoding.
2163
2164 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2165
2166         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2167
2168 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2169
2170         PR gdb/18947
2171         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2172         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2173
2174 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2175
2176         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2177         operations.
2178
2179 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2180
2181         * ada-lang.c (ada_search_struct_field): Constify parameters
2182         and/or variables..
2183         (xget_renaming_scope): Likewise.
2184         (ada_is_redundant_range_encoding): Likewise.
2185         (scan_discrim_bound): Likewise.
2186         (to_fixed_range_type): Likewise.
2187
2188 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2189
2190         * breakpoint.c (download_tracepoint_locations): New local
2191         can_download_tracepoint.  Check the result of
2192         target_can_download_tracepoint and save it in
2193         can_download_tracepoint if there are tracepoints to download.
2194         * linux-nat.h (enum tribool): Move it to ...
2195         * common/common-types.h: ... here.
2196
2197 2015-09-09  Pedro Alves  <palves@redhat.com>
2198
2199         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2200         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2201
2202 2015-09-09  Pedro Alves  <palves@redhat.com>
2203
2204         * continuations.c (add_continuation, restore_thread_cleanup)
2205         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2206         (do_all_continuations_thread, do_all_continuations)
2207         (discard_all_continuations_thread_callback)
2208         (discard_all_continuations_thread, discard_all_continuations)
2209         (add_intermediate_continuation)
2210         (do_all_intermediate_continuations_thread_callback)
2211         (do_all_intermediate_continuations_thread)
2212         (do_all_intermediate_continuations)
2213         (discard_all_intermediate_continuations_thread_callback)
2214         (discard_all_intermediate_continuations_thread)
2215         (discard_all_intermediate_continuations): Delete.
2216         * continuations.h (add_continuation, do_all_continuations)
2217         (do_all_continuations_thread, discard_all_continuations)
2218         (discard_all_continuations_thread, add_intermediate_continuation)
2219         (do_all_intermediate_continuations)
2220         (do_all_intermediate_continuations_thread)
2221         (discard_all_intermediate_continuations)
2222         (discard_all_intermediate_continuations_thread): Delete
2223         declarations.
2224         * event-top.c (stdin_event_handler): Delete references to
2225         continuations.
2226         * gdbthread.h (struct thread_info): Delete continuations and
2227         intermediate_continuations fields.
2228         * inf-loop.c (inferior_event_handler): Remove references to
2229         continuations.
2230         * infrun.c (infrun_thread_stop_requested_callback): Remove
2231         references to continuations.
2232         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2233         * thread.c: Don't include "continuations.h".
2234         (clear_thread_inferior_resources): Remove references to
2235         continuations.
2236
2237 2015-09-09  Pedro Alves  <palves@redhat.com>
2238
2239         * infcall.c (struct dummy_frame_context_saver): Delete.
2240         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2241         (dummy_frame_context_saver_drop)
2242         (dummy_frame_context_saver_cleanup)
2243         (dummy_frame_context_saver_get_regs)
2244         (dummy_frame_context_saver_setup): Delete.
2245         * infcall.h (dummy_frame_context_saver_drop)
2246         (dummy_frame_context_saver_cleanup)
2247         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2248         Delete.
2249         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2250         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2251         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2252
2253 2015-09-09  Pedro Alves  <palves@redhat.com>
2254
2255         * breakpoint.c: Include "thread-fsm.h".
2256         (struct until_break_command_continuation_args): Delete.
2257         (struct until_break_fsm): New.
2258         (until_break_fsm_ops): New global.
2259         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2260         (until_break_command_continuation): Delete.
2261         (until_break_fsm_clean_up): New function.
2262         (until_break_fsm_async_reply_reason): New function.
2263         (until_break_command): Adjust to create an until_break_fsm instead
2264         of a continuation.
2265         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2266         here.
2267         * infcmd.c (struct until_next_fsm): New.
2268         (until_next_fsm_ops): New global.
2269         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2270         (until_next_continuation): Delete.
2271         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2272         functions.
2273         (until_next_command): Adjust to create a new until_next_fsm
2274         instead of a continuation.
2275
2276 2015-09-09  Pedro Alves  <palves@redhat.com>
2277
2278         * infcall.c: Include thread_fsm.h.
2279         (struct call_return_meta_info): New.
2280         (get_call_return_value): New function, factored out from
2281         call_function_by_hand_dummy.
2282         (struct call_thread_fsm): New.
2283         (call_thread_fsm_ops): New global.
2284         (new_call_thread_fsm, call_thread_fsm_should_stop)
2285         (call_thread_fsm_should_notify_stop): New functions.
2286         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2287         the thread.
2288         (call_function_by_hand_dummy): Create a new call_thread_fsm
2289         instance, associate it with the thread, and wait for the FSM to
2290         finish.  If finished successfully, fetch the function's result
2291         value out of the FSM.
2292         * infrun.c (fetch_inferior_event): If the FSM says the stop
2293         shouldn't be notified, don't call normal_stop.
2294         (maybe_remove_breakpoints): New function, factored out from ...
2295         (normal_stop): ... here.  Simplify.
2296         * infrun.h (maybe_remove_breakpoints): Declare.
2297         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2298         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2299         (thread_fsm_should_notify_stop): Declare.
2300
2301 2015-09-09  Pedro Alves  <palves@redhat.com>
2302
2303         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2304         * breakpoint.c (handle_jit_event): Print debug output.
2305         (bpstat_what): Split event callback handling to ...
2306         (bpstat_run_callbacks): ... this new function.
2307         (momentary_bkpt_print_it): No longer handle bp_finish here.
2308         * breakpoint.h (bpstat_run_callbacks): Declare.
2309         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2310         <thread_fsm>: New field.
2311         (thread_cancel_execution_command): Declare.
2312         * infcmd.c: Include thread-fsm.h.
2313         (struct step_command_fsm): New.
2314         (step_command_fsm_ops): New global.
2315         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2316         (step_1): Adjust to use step_command_fsm_prepare and
2317         prepare_one_step.
2318         (struct step_1_continuation_args): Delete.
2319         (step_1_continuation): Delete.
2320         (step_command_fsm_should_stop): New function.
2321         (step_once): Delete.
2322         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2323         (prepare_one_step): New function, based on step_once.
2324         (until_next_command): Remove step_multi reference.
2325         (struct return_value_info): New.
2326         (print_return_value): Rename to ...
2327         (print_return_value_1): ... this.  New struct return_value_info
2328         parameter.  Adjust.
2329         (print_return_value): Reimplement as wrapper around
2330         print_return_value_1.
2331         (struct finish_command_fsm): New.
2332         (finish_command_continuation): Delete.
2333         (finish_command_fsm_ops): New global.
2334         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2335         functions.
2336         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2337         New.
2338         (finish_command_continuation_free_arg): Delete.
2339         (finish_command_fsm_async_reply_reason): New.
2340         (finish_backward, finish_forward): Change symbol parameter to a
2341         finish_command_fsm.  Adjust.
2342         (finish_command): Create a finish_command_fsm.  Adjust.
2343         * infrun.c: Include "thread-fsm.h".
2344         (clear_proceed_status_thread): Delete the thread's FSM.
2345         (infrun_thread_stop_requested_callback): Cancel the thread's
2346         execution command.
2347         (clean_up_just_stopped_threads_fsms): New function.
2348         (fetch_inferior_event): Handle the event_thread's should_stop
2349         method saying the command isn't done yet.
2350         (process_event_stop_test): Run breakpoint callbacks here.
2351         (print_stop_event): Rename to ...
2352         (print_stop_location): ... this.
2353         (restore_current_uiout_cleanup): New function.
2354         (print_stop_event): Reimplement.
2355         (normal_stop): No longer notify the end_stepping_range observers
2356         here handle "step N" nor "finish" here.  No longer call
2357         print_stop_event here.
2358         * infrun.h (struct return_value_info): Forward declare.
2359         (print_return_value): Declare.
2360         (print_stop_event): Change prototype.
2361         * thread-fsm.c: New file.
2362         * thread-fsm.h: New file.
2363         * thread.c: Include "thread-fsm.h".
2364         (thread_cancel_execution_command): New function.
2365         (clear_thread_inferior_resources): Call it.
2366         * cli/cli-interp.c (cli_on_normal_stop): New function.
2367         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2368         observer.
2369         * mi/mi-interp.c: Include "thread-fsm.h".
2370         (restore_current_uiout_cleanup): Delete.
2371         (mi_on_normal_stop): If the thread has an FSM associated, and it
2372         finished, ask it for the async-reply-reason to print.  Always call
2373         print_stop_event here, regardless of the top-level interpreter.
2374         Check bpstat_what to tell whether an asynchronous breakpoint hit
2375         triggered.
2376         * tui/tui-interp.c (tui_on_normal_stop): New function.
2377         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2378
2379 2015-09-09  Pedro Alves  <palves@redhat.com>
2380
2381         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2382         check whether the target can async.
2383         * inf-loop.c (inferior_event_handler): Only call target_async if
2384         the target can async.
2385         * infcall.c: Include top.h and interps.h.
2386         (run_inferior_call): For the interpreter to sync mode while
2387         running the infcall.  Call wait_sync_command_done instead of
2388         wait_for_inferior plus normal_stop.
2389         * infcmd.c (prepare_execution_command): Don't check whether the
2390         target can async when running in the foreground.
2391         (step_1): Delete synchronous case handling.
2392         (step_once): Always install a continuation, even in sync mode.
2393         (until_next_command, finish_forward): Don't check whether the
2394         target can async.
2395         (attach_command_post_wait, notice_new_inferior): Always install a
2396         continuation, even in sync mode.
2397         * infrun.c (mark_infrun_async_event_handler): New function.
2398         (proceed): In sync mode, mark infrun's event source instead of
2399         waiting for events here.
2400         (fetch_inferior_event): If the target can't async, do a blocking
2401         wait.
2402         (prepare_to_wait): In sync mode, mark infrun's event source.
2403         (infrun_async_inferior_event_handler): No longer bail out if the
2404         target can't async.
2405         * infrun.h (mark_infrun_async_event_handler): New declaration.
2406         * linux-nat.c (linux_nat_wait_1): Remove calls to
2407         set_sigint_trap/clear_sigint_trap.
2408         (linux_nat_terminal_inferior): No longer check whether the target
2409         can async.
2410         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2411         comment.
2412         (mi_execute_command_input_handler): No longer check whether the
2413         target is async.  Update and simplify comment.
2414         * target.c (default_target_wait): New function.
2415         * target.h (struct target_ops) <to_wait>: Now defaults to
2416         default_target_wait.
2417         (default_target_wait): Declare.
2418         * top.c (wait_sync_command_done): New function, factored out from
2419         ...
2420         (maybe_wait_sync_command_done): ... this.
2421         * top.h (wait_sync_command_done): Declare.
2422         * target-delegates.c: Regenerate.
2423
2424 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2425
2426         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2427         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2428         Remove include of sys/utsname.h.
2429         (linux_determine_kernel_ptr_bits): Remove.
2430         (linux_determine_kernel_start): New.
2431         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2432         Update check.
2433         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2434         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2435         initialization.
2436         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2437         assignment.
2438
2439 2015-09-07  Pedro Alves  <palves@redhat.com>
2440
2441         * guile/guile-internal.h (as_a_scm_t_subr): New.
2442         * guile/guile.c (misc_guile_functions): Use it.
2443         * guile/scm-arch.c (arch_functions): Use it.
2444         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2445         Use it.
2446         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2447         * guile/scm-cmd.c (command_functions): Use it.
2448         * guile/scm-disasm.c (disasm_functions): Use it.
2449         * guile/scm-exception.c (exception_functions)
2450         (private_exception_functions): Use it.
2451         * guile/scm-frame.c (frame_functions)
2452         * guile/scm-gsmob.c (gsmob_functions): Use it.
2453         * guile/scm-iterator.c (iterator_functions): Use it.
2454         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2455         * guile/scm-math.c (math_functions): Use it.
2456         * guile/scm-objfile.c (objfile_functions): Use it.
2457         * guile/scm-param.c (parameter_functions): Use it.
2458         * guile/scm-ports.c (port_functions, private_port_functions): Use
2459         it.
2460         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2461         * guile/scm-progspace.c (pspace_functions): Use it.
2462         * guile/scm-string.c (string_functions): Use it.
2463         * guile/scm-symbol.c (symbol_functions): Use it.
2464         * guile/scm-symtab.c (symtab_functions): Use it.
2465         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2466         it.
2467         * guile/scm-value.c (value_functions): Use it.
2468
2469 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2470
2471         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2472         (tui_next_win): Likewise.
2473         (tui_prev_win): Likewise.
2474         (tui_partial_win_by_name): Likewise.
2475         (tui_init_generic_part): Likewise.
2476         (init_content_element): Likewise.
2477         (tui_del_window): Likewise.
2478         (tui_free_window): Likewise.
2479         (tui_del_data_windows): Likewise.
2480         (tui_free_data_content): Likewise.
2481         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2482         * tui/tui-regs.c (tui_show_register_group): Likewise.
2483         * tui/tui-win.c (tui_resize_all): Likewise.
2484         (tui_set_focus): Likewise.
2485         (tui_set_win_height): Likewise.
2486         (make_invisible_and_set_new_height): Likewise.
2487         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2488         * tui/tui-wingeneral.c (make_visible): Likewise.
2489
2490 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2491
2492         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2493
2494 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2495
2496         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2497         pointer.
2498         * dbxread.c (dbx_end_psymtab): Likewise.
2499         * gnu-nat.c (gnu_write_inferior): Likewise.
2500         * mdebugread.c (cross_ref): Likewise.
2501         * p-valprint.c (pascal_val_print): Likewise.
2502         * xcoffread.c (xcoff_end_psymtab): Likewise.
2503
2504 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2505
2506         * NEWS: Mention the aarch64 multi-arch debugging support.
2507
2508 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2509
2510         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2511         type instead of a TYPE_CODE_INT one for the string_char_type
2512         and the ada_primitive_type_char types.
2513
2514 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2515
2516         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2517         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2518         aarch64_linux_region_ok_for_watchpoint.
2519         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2520         New function.
2521         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2522         Declare it.
2523
2524 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2525
2526         * gdb_obstack.h (obstack_strdup): Declare.
2527         * gdb_obstack.c (obstack_strdup): Define.
2528         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2529         * gdbarch.c: Regenerate.
2530         * gdbarch.h: Regenerate.
2531         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2532
2533 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2534
2535         * gdbtypes.c (copy_type_recursive): Update documentation.
2536
2537 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2538
2539         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2540         as zero.
2541
2542 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2543
2544         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2545
2546 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2547
2548         * solib-svr4.c (solib_event_probe_action): Call
2549         get_probe_argument_count using TRY...CATCH.
2550         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2551
2552 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2553
2554         * probe.h (struct probe_ops) <get_probe_argument_count,
2555         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2556         the comment that the function can throw an exception.
2557         (get_probe_argument_count): Likewise.
2558         (evaluate_probe_argument): Likewise.
2559         * stap-probe.c (stap_get_opcode): Call error instead of
2560         internal_error.
2561         (stap_get_expected_argument_type): Likewise.  Add argument
2562         'probe'.  Improve error message by mentioning the probe's name.
2563         (stap_parse_probe_arguments): Adjust call to
2564         stap_get_expected_argument_type.
2565         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2566         not zero.  Call internal_error if GDB requests an argument but the
2567         probe has no arguments.
2568
2569 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2570
2571         * ada-lang.c (ada_resolve_function): Do not ask the user what
2572         match to use when in completion mode.
2573
2574 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2575
2576         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2577         cast of NULL.
2578
2579 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2580
2581         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2582         call_abi using XSHAL_ABI macro.
2583
2584 2015-08-29  Doug Evans  <xdje42@gmail.com>
2585
2586         * symtab.h (struct symbol): Tweak comment.
2587
2588 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2589
2590         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2591         gdbarch obstack instead of on the heap.  Update commentary
2592         accordingly.
2593
2594 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2595
2596         GDB 7.10 released.
2597
2598 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2599
2600         * NEWS: Update entry about non-8-bits addressable memory.
2601
2602 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2603
2604         Revert:
2605         2014-11-06  Doug Evans  <xdje42@gmail.com>
2606         * solib.c (solib_global_lookup): Fetch arch from objfile,
2607         not target_gdbarch.
2608
2609 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2610
2611         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2612         attempt to relocate a TLS variable offset.
2613
2614 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2615
2616         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2617         registered yet.  Set inferior_ptid while calling target_read_memory.
2618
2619 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2620
2621         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2622         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2623         * linux-nat.c (check_stopped_by_breakpoint): Use
2624         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2625
2626 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2627
2628         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2629         thread was not yet discovered, use thread_from_lwp instead of
2630         calling thread_db_find_new_threads_1.
2631
2632 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2633
2634         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2635         statements.
2636
2637 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2638
2639         * NEWS: Document support for non-8-bits addressable memory.
2640
2641 2015-08-27  Pedro Alves  <palves@redhat.com>
2642
2643         * configure.ac: Remove AC_TYPE_SIGNAL call.
2644         * configure, config.in: Regenerate.
2645
2646 2015-08-27  Pedro Alves  <palves@redhat.com>
2647
2648         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2649         * extension-priv.h: Include signal.h.
2650         (struct signal_handler) <handler>: Change type to sighandler_t.
2651         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2652         * inflow.c (sigint_ours, sigquit_ours): Change type to
2653         sighandler_t.
2654         (child_terminal_inferior): Remove casts.
2655         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
2656         (osig): Change type to sighandler_t.
2657         * nto-procfs.c (ofunc): Change type to sighandler_t.
2658         (procfs_wait): Remove casts.
2659         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2660         * remote-sim.c (gdbsim_wait): Use sighandler_t.
2661         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2662
2663 2015-08-27  Pedro Alves  <palves@redhat.com>
2664
2665         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2666         * gnulib/aclocal.m4: Renegerate.
2667         * gnulib/config.in: Renegerate.
2668         * gnulib/configure: Renegerate.
2669         * gnulib/import/Makefile.am: Update.
2670         * gnulib/import/Makefile.in: Regenerate.
2671         * gnulib/import/m4/gnulib-cache.m4: Update.
2672         * gnulib/import/m4/gnulib-comp.m4: Update.
2673         * gnulib/import/m4/signal_h.m4: New file.
2674         * gnulib/import/signal.in.h: New file.
2675
2676 2015-08-27  Pedro Alves  <palves@redhat.com>
2677
2678         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2679         (MIN_MEMORY_PACKET_SIZE): New.
2680         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2681         (get_memory_packet_size): Adjust.  No longer limit the max packet
2682         size.
2683         (set_memory_packet_size): Adjust, and remove dead code.
2684         (remote_check_symbols): Use xmalloc and a cleanup instead of
2685         alloca.
2686         (remote_packet_size): No longer cap the packet size.
2687         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2688
2689 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
2690
2691         * compile/compile.c (compile_to_object): Mention language in
2692         error message.
2693
2694 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
2695
2696         * target.c (target_pre_inferior): Unset attach_flag.
2697
2698 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2699
2700         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2701         * gdbarch.c: Re-generate.
2702
2703 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2704
2705         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2706         function with the XNEW-family equivalent.
2707         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2708         * ada-exp.y (write_ambiguous_var): Likewise.
2709         * ada-lang.c (resolve_subexp): Likewise.
2710         (user_select_syms): Likewise.
2711         (assign_aggregate): Likewise.
2712         (ada_evaluate_subexp): Likewise.
2713         (cache_symbol): Likewise.
2714         * addrmap.c (allocate_key): Likewise.
2715         (addrmap_create_mutable): Likewise.
2716         * aix-thread.c (sync_threadlists): Likewise.
2717         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2718         (alpha_gdbarch_init): Likewise.
2719         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2720         * arm-linux-nat.c (arm_linux_add_process): Likewise.
2721         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2722         * arm-tdep.c (push_stack_item): Likewise.
2723         (arm_displaced_step_copy_insn): Likewise.
2724         (arm_gdbarch_init): Likewise.
2725         (_initialize_arm_tdep): Likewise.
2726         * avr-tdep.c (push_stack_item): Likewise.
2727         * ax-general.c (new_agent_expr): Likewise.
2728         * block.c (block_initialize_namespace): Likewise.
2729         * breakpoint.c (alloc_counted_command_line): Likewise.
2730         (update_dprintf_command_list): Likewise.
2731         (parse_breakpoint_sals): Likewise.
2732         (decode_static_tracepoint_spec): Likewise.
2733         (until_break_command): Likewise.
2734         (clear_command): Likewise.
2735         (update_global_location_list): Likewise.
2736         (get_breakpoint_objfile_data) Likewise.
2737         * btrace.c (ftrace_new_function): Likewise.
2738         (btrace_set_insn_history): Likewise.
2739         (btrace_set_call_history): Likewise.
2740         * buildsym.c (add_symbol_to_list): Likewise.
2741         (record_pending_block): Likewise.
2742         (start_subfile): Likewise.
2743         (start_buildsym_compunit): Likewise.
2744         (push_subfile): Likewise.
2745         (end_symtab_get_static_block): Likewise.
2746         (buildsym_init): Likewise.
2747         * cli/cli-cmds.c (source_command): Likewise.
2748         * cli/cli-decode.c (add_cmd): Likewise.
2749         * cli/cli-script.c (build_command_line): Likewise.
2750         (setup_user_args): Likewise.
2751         (realloc_body_list): Likewise.
2752         (process_next_line): Likewise.
2753         (copy_command_lines): Likewise.
2754         * cli/cli-setshow.c (do_set_command): Likewise.
2755         * coff-pe-read.c (read_pe_exported_syms): Likewise.
2756         * coffread.c (coff_locate_sections): Likewise.
2757         (coff_symtab_read): Likewise.
2758         (coff_read_struct_type): Likewise.
2759         * common/cleanups.c (make_my_cleanup2): Likewise.
2760         * common/common-exceptions.c (throw_it): Likewise.
2761         * common/filestuff.c (make_cleanup_close): Likewise.
2762         * common/format.c (parse_format_string): Likewise.
2763         * common/queue.h (DEFINE_QUEUE_P): Likewise.
2764         * compile/compile-object-load.c (munmap_list_add): Likewise.
2765         (compile_object_load): Likewise.
2766         * compile/compile-object-run.c (compile_object_run): Likewise.
2767         * compile/compile.c (append_args): Likewise.
2768         * corefile.c (specify_exec_file_hook): Likewise.
2769         * cp-support.c (make_symbol_overload_list): Likewise.
2770         * cris-tdep.c (push_stack_item): Likewise.
2771         (cris_gdbarch_init): Likewise.
2772         * ctf.c (ctf_trace_file_writer_new): Likewise.
2773         * dbxread.c (init_header_files): Likewise.
2774         (add_new_header_file): Likewise.
2775         (init_bincl_list): Likewise.
2776         (dbx_end_psymtab): Likewise.
2777         (start_psymtab): Likewise.
2778         (dbx_end_psymtab): Likewise.
2779         * dcache.c (dcache_init): Likewise.
2780         * dictionary.c (dict_create_hashed): Likewise.
2781         (dict_create_hashed_expandable): Likewise.
2782         (dict_create_linear): Likewise.
2783         (dict_create_linear_expandable): Likewise.
2784         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2785         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2786         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2787         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2788         (decode_frame_entry_1): Likewise.
2789         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2790         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2791         * dwarf2read.c (dwarf2_has_info): Likewise.
2792         (create_signatured_type_table_from_index): Likewise.
2793         (dwarf2_read_index): Likewise.
2794         (dw2_get_file_names_reader): Likewise.
2795         (create_all_type_units): Likewise.
2796         (read_cutu_die_from_dwo): Likewise.
2797         (init_tu_and_read_dwo_dies): Likewise.
2798         (init_cutu_and_read_dies): Likewise.
2799         (create_all_comp_units): Likewise.
2800         (queue_comp_unit): Likewise.
2801         (inherit_abstract_dies): Likewise.
2802         (read_call_site_scope): Likewise.
2803         (dwarf2_add_field): Likewise.
2804         (dwarf2_add_typedef): Likewise.
2805         (dwarf2_add_member_fn): Likewise.
2806         (attr_to_dynamic_prop): Likewise.
2807         (abbrev_table_alloc_abbrev): Likewise.
2808         (abbrev_table_read_table): Likewise.
2809         (add_include_dir): Likewise.
2810         (add_file_name): Likewise.
2811         (dwarf_decode_line_header): Likewise.
2812         (dwarf2_const_value_attr): Likewise.
2813         (dwarf_alloc_block): Likewise.
2814         (parse_macro_definition): Likewise.
2815         (set_die_type): Likewise.
2816         (write_psymtabs_to_index): Likewise.
2817         (create_cus_from_index): Likewise.
2818         (dwarf2_create_include_psymtab): Likewise.
2819         (process_psymtab_comp_unit_reader): Likewise.
2820         (build_type_psymtab_dependencies): Likewise.
2821         (read_comp_units_from_section): Likewise.
2822         (compute_compunit_symtab_includes): Likewise.
2823         (create_dwo_unit_in_dwp_v1): Likewise.
2824         (create_dwo_unit_in_dwp_v2): Likewise.
2825         (read_func_scope): Likewise.
2826         (process_structure_scope): Likewise.
2827         (mark_common_block_symbol_computed): Likewise.
2828         (load_partial_dies): Likewise.
2829         (dwarf2_symbol_mark_computed): Likewise.
2830         * elfread.c (elf_symfile_segments): Likewise.
2831         (elf_read_minimal_symbols): Likewise.
2832         * environ.c (make_environ): Likewise.
2833         * eval.c (evaluate_subexp_standard): Likewise.
2834         * event-loop.c (create_file_handler): Likewise.
2835         (create_async_signal_handler): Likewise.
2836         (create_async_event_handler): Likewise.
2837         (create_timer): Likewise.
2838         * exec.c (build_section_table): Likewise.
2839         * fbsd-nat.c (fbsd_remember_child): Likewise.
2840         * fork-child.c (fork_inferior): Likewise.
2841         * frv-tdep.c (new_variant): Likewise.
2842         * gdbarch.sh (gdbarch_alloc): Likewise.
2843         (append_name): Likewise.
2844         * gdbtypes.c (rank_function): Likewise.
2845         (copy_type_recursive): Likewise.
2846         (add_dyn_prop): Likewise.
2847         * gnu-nat.c (make_proc): Likewise.
2848         (make_inf): Likewise.
2849         (gnu_write_inferior): Likewise.
2850         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2851         (build_std_type_info_type): Likewise.
2852         * guile/scm-param.c (compute_enum_list): Likewise.
2853         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2854         * guile/scm-value.c (gdbscm_value_call): Likewise.
2855         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2856         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2857         (read_unwind_info): Likewise.
2858         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2859         * infcall.c (dummy_frame_context_saver_setup): Likewise.
2860         (call_function_by_hand_dummy): Likewise.
2861         * infcmd.c (step_once): Likewise.
2862         (finish_forward): Likewise.
2863         (attach_command): Likewise.
2864         (notice_new_inferior): Likewise.
2865         * inferior.c (add_inferior_silent): Likewise.
2866         * infrun.c (add_displaced_stepping_state): Likewise.
2867         (save_infcall_control_state): Likewise.
2868         (save_inferior_ptid): Likewise.
2869         (_initialize_infrun): Likewise.
2870         * jit.c (bfd_open_from_target_memory): Likewise.
2871         (jit_gdbarch_data_init): Likewise.
2872         * language.c (add_language): Likewise.
2873         * linespec.c (decode_line_2): Likewise.
2874         * linux-nat.c (add_to_pid_list): Likewise.
2875         (add_initial_lwp): Likewise.
2876         * linux-thread-db.c (add_thread_db_info): Likewise.
2877         (record_thread): Likewise.
2878         (info_auto_load_libthread_db): Likewise.
2879         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2880         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2881         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2882         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2883         * macrocmd.c (macro_define_command): Likewise.
2884         * macroexp.c (gather_arguments): Likewise.
2885         * macroscope.c (sal_macro_scope): Likewise.
2886         * macrotab.c (new_macro_table): Likewise.
2887         * mdebugread.c (push_parse_stack): Likewise.
2888         (parse_partial_symbols): Likewise.
2889         (parse_symbol): Likewise.
2890         (psymtab_to_symtab_1): Likewise.
2891         (new_block): Likewise.
2892         (new_psymtab): Likewise.
2893         (mdebug_build_psymtabs): Likewise.
2894         (add_pending): Likewise.
2895         (elfmdebug_build_psymtabs): Likewise.
2896         * mep-tdep.c (mep_gdbarch_init): Likewise.
2897         * mi/mi-main.c (mi_execute_command): Likewise.
2898         * mi/mi-parse.c (mi_parse_argv): Likewise.
2899         * minidebug.c (lzma_open): Likewise.
2900         * minsyms.c (terminate_minimal_symbol_table): Likewise.
2901         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2902         * mips-tdep.c (mips_gdbarch_init): Likewise.
2903         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2904         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2905         * mt-tdep.c (mt_registers_info): Likewise.
2906         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2907         * nat/linux-btrace.c (linux_enable_bts): Likewise.
2908         (linux_enable_pt): Likewise.
2909         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2910         (linux_xfer_osdata_processgroups): Likewise.
2911         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2912         * nto-procfs.c (procfs_meminfo): Likewise.
2913         * objc-lang.c (start_msglist): Likewise.
2914         (selectors_info): Likewise.
2915         (classes_info): Likewise.
2916         (find_methods): Likewise.
2917         * objfiles.c (allocate_objfile): Likewise.
2918         (update_section_map): Likewise.
2919         * osabi.c (gdbarch_register_osabi): Likewise.
2920         (gdbarch_register_osabi_sniffer): Likewise.
2921         * parse.c (start_arglist): Likewise.
2922         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2923         (hwdebug_insert_point): Likewise.
2924         * printcmd.c (display_command): Likewise.
2925         (ui_printf): Likewise.
2926         * procfs.c (create_procinfo): Likewise.
2927         (load_syscalls): Likewise.
2928         (proc_get_LDT_entry): Likewise.
2929         (proc_update_threads): Likewise.
2930         * prologue-value.c (make_pv_area): Likewise.
2931         (pv_area_store): Likewise.
2932         * psymtab.c (extend_psymbol_list): Likewise.
2933         (init_psymbol_list): Likewise.
2934         (allocate_psymtab): Likewise.
2935         * python/py-inferior.c (add_thread_object): Likewise.
2936         * python/py-param.c (compute_enum_values): Likewise.
2937         * python/py-value.c (valpy_call): Likewise.
2938         * python/py-varobj.c (py_varobj_iter_next): Likewise.
2939         * python/python.c (ensure_python_env): Likewise.
2940         * record-btrace.c (record_btrace_start_replaying): Likewise.
2941         * record-full.c (record_full_reg_alloc): Likewise.
2942         (record_full_mem_alloc): Likewise.
2943         (record_full_end_alloc): Likewise.
2944         (record_full_core_xfer_partial): Likewise.
2945         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2946         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2947         * remote-notif.c (remote_notif_state_allocate): Likewise.
2948         * remote.c (demand_private_info): Likewise.
2949         (remote_notif_stop_alloc_reply): Likewise.
2950         (remote_enable_btrace): Likewise.
2951         * reverse.c (save_bookmark_command): Likewise.
2952         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2953         * rx-tdep.c (rx_gdbarch_init): Likewise.
2954         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2955         * ser-go32.c (dos_get_tty_state): Likewise.
2956         (dos_copy_tty_state): Likewise.
2957         * ser-mingw.c (ser_windows_open): Likewise.
2958         (ser_console_wait_handle): Likewise.
2959         (ser_console_get_tty_state): Likewise.
2960         (make_pipe_state): Likewise.
2961         (net_windows_open): Likewise.
2962         * ser-unix.c (hardwire_get_tty_state): Likewise.
2963         (hardwire_copy_tty_state): Likewise.
2964         * solib-aix.c (solib_aix_new_lm_info): Likewise.
2965         * solib-dsbt.c (dsbt_current_sos): Likewise.
2966         (dsbt_relocate_main_executable): Likewise.
2967         * solib-frv.c (frv_current_sos): Likewise.
2968         (frv_relocate_main_executable): Likewise.
2969         * solib-spu.c (spu_bfd_fopen): Likewise.
2970         * solib-svr4.c (lm_info_read): Likewise.
2971         (svr4_copy_library_list): Likewise.
2972         (svr4_default_sos): Likewise.
2973         * source.c (find_source_lines): Likewise.
2974         (line_info): Likewise.
2975         (add_substitute_path_rule): Likewise.
2976         * spu-linux-nat.c (spu_bfd_open): Likewise.
2977         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2978         * stabsread.c (dbx_lookup_type): Likewise.
2979         (read_type): Likewise.
2980         (read_member_functions): Likewise.
2981         (read_struct_fields): Likewise.
2982         (read_baseclasses): Likewise.
2983         (read_args): Likewise.
2984         (_initialize_stabsread): Likewise.
2985         * stack.c (func_command): Likewise.
2986         * stap-probe.c (handle_stap_probe): Likewise.
2987         * symfile.c (addrs_section_sort): Likewise.
2988         (addr_info_make_relative): Likewise.
2989         (load_section_callback): Likewise.
2990         (add_symbol_file_command): Likewise.
2991         (init_filename_language_table): Likewise.
2992         * symtab.c (create_filename_seen_cache): Likewise.
2993         (sort_search_symbols_remove_dups): Likewise.
2994         (search_symbols): Likewise.
2995         * target.c (make_cleanup_restore_target_terminal): Likewise.
2996         * thread.c (new_thread): Likewise.
2997         (enable_thread_stack_temporaries): Likewise.
2998         (make_cleanup_restore_current_thread): Likewise.
2999         (thread_apply_all_command): Likewise.
3000         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3001         * top.c (gdb_readline_wrapper): Likewise.
3002         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3003         * tracepoint.c (trace_find_line_command): Likewise.
3004         (all_tracepoint_actions_and_cleanup): Likewise.
3005         (make_cleanup_restore_current_traceframe): Likewise.
3006         (get_uploaded_tp): Likewise.
3007         (get_uploaded_tsv): Likewise.
3008         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3009         (tui_alloc_win_info): Likewise.
3010         (tui_alloc_content): Likewise.
3011         (tui_add_content_elements): Likewise.
3012         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3013         (tui_set_disassem_content): Likewise.
3014         * ui-file.c (ui_file_new): Likewise.
3015         (stdio_file_new): Likewise.
3016         (tee_file_new): Likewise.
3017         * utils.c (make_cleanup_restore_integer): Likewise.
3018         (add_internal_problem_command): Likewise.
3019         * v850-tdep.c (v850_gdbarch_init): Likewise.
3020         * valops.c (find_oload_champ): Likewise.
3021         * value.c (allocate_value_lazy): Likewise.
3022         (record_latest_value): Likewise.
3023         (create_internalvar): Likewise.
3024         * varobj.c (install_variable): Likewise.
3025         (new_variable): Likewise.
3026         (new_root_variable): Likewise.
3027         (cppush): Likewise.
3028         (_initialize_varobj): Likewise.
3029         * windows-nat.c (windows_make_so): Likewise.
3030         * x86-nat.c (x86_add_process): Likewise.
3031         * xcoffread.c (arrange_linetable): Likewise.
3032         (allocate_include_entry): Likewise.
3033         (process_linenos): Likewise.
3034         (SYMBOL_DUP): Likewise.
3035         (xcoff_start_psymtab): Likewise.
3036         (xcoff_end_psymtab): Likewise.
3037         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3038         * xtensa-tdep.c (xtensa_register_type): Likewise.
3039         * gdbarch.c: Regenerate.
3040         * gdbarch.h: Regenerate.
3041
3042 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3043
3044         * infrun.c (follow_exec): Re-order operations for
3045         handling follow-exec-mode "new".
3046         (handle_inferior_event_1): Assign ecs->event_thread
3047         to the current thread.
3048         * remote.c (get_remote_arch_state): Add an assertion.
3049
3050 2015-08-26  Pedro Alves  <palves@redhat.com>
3051
3052         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3053
3054 2015-08-25  Pedro Alves  <palves@redhat.com>
3055
3056         PR gdb/18804
3057         * defs.h (maybe_quit): Declare.
3058         (QUIT): Now calls maybe_quit.
3059         * event-loop.c (clear_async_signal_handler)
3060         (async_signal_handler_is_marked): New functions.
3061         * event-loop.h (async_signal_handler_is_marked)
3062         (clear_async_signal_handler): New declarations.
3063         * remote.c (remote_check_pending_interrupt): New function.
3064         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3065         longer check whether the target is async.  If waiting for a stop
3066         reply, and a Ctrl-C as been sent to the target, offer to
3067         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3068         Otherwise do not disconnect and throw a quit.
3069         (_initialize_remote): Install remote_check_pending_interrupt as
3070         to_check_pending_interrupt.
3071         * target.c (target_check_pending_interrupt): New function.
3072         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3073         field.
3074         (target_check_pending_interrupt): New declaration.
3075         * utils.c (maybe_quit): New function.
3076         * target-delegates.c: Regenerate.
3077
3078 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3079
3080         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3081         Rename local variable pid to tid, and get lwpid of lwp.  Update
3082         debug output.
3083
3084 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3085
3086         * ada-lang.c (ada_read_var_value): Add a var_block argument
3087         and pass it to default_read_var_value.
3088         * block.c (block_static_link): New accessor.
3089         * block.h (block_static_link): Declare it.
3090         * buildsym.c (finish_block_internal): Add a static_link
3091         argument.  If there is a static link, associate it to the new
3092         block.
3093         (finish_block): Add a static link argument and pass it to
3094         finish_block_internal.
3095         (end_symtab_get_static_block): Update calls to finish_block and
3096         to finish_block_internal.
3097         (end_symtab_with_blockvector): Update call to
3098         finish_block_internal.
3099         * buildsym.h: Forward-declare struct dynamic_prop.
3100         (struct context_stack): Add a static_link field.
3101         (finish_block): Add a static link argument.
3102         * c-exp.y: Remove an obsolete comment (evaluation of variables
3103         already start from the selected frame, and now they climb *up*
3104         the call stack) and propagate the block information to the
3105         produced expression.
3106         * d-exp.y: Likewise.
3107         * f-exp.y: Likewise.
3108         * go-exp.y: Likewise.
3109         * jv-exp.y: Likewise.
3110         * m2-exp.y: Likewise.
3111         * p-exp.y: Likewise.
3112         * coffread.c (coff_symtab_read): Update calls to finish_block.
3113         * dbxread.c (process_one_symbol): Likewise.
3114         * xcoffread.c (read_xcoff_symtab): Likewise.
3115         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3116         "sym" parameter to struct block_symbol, update its uses and pass
3117         its block to calls to read_var_value.
3118         (convert_symbol_sym): Update the calls to convert_one_symbol.
3119         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3120         call to read_var_value.
3121         * dwarf2loc.c (block_op_get_frame_base): New.
3122         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3123         get_frame_base method.
3124         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3125         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3126         instead of the selected frame in order to evaluate the
3127         expression.
3128         (dwarf2_evaluate_property): Add a frame argument.  Update call
3129         to dwarf2_locexpr_baton_eval to provide a frame in available and
3130         to handle the absence of address stack.
3131         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3132         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3133         declaration.
3134         (read_func_scope): Record any available static link description.
3135         Update call to finish_block.
3136         (read_lexical_block_scope): Update call to finish_block.
3137         * findvar.c (follow_static_link): New.
3138         (get_hosting_frame): New.
3139         (default_read_var_value): Add a var_block argument.  Use
3140         get_hosting_frame to handle non-local references.
3141         (read_var_value): Add a var_block argument and pass it to the
3142         LA_READ_VAR_VALUE method.
3143         * gdbtypes.c (resolve_dynamic_range): Update calls to
3144         dwarf2_evaluate_property.
3145         (resolve_dynamic_type_internal): Likewise.
3146         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3147         read_var_value, passing it the block coming from symbol lookup.
3148         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3149         read_var_value (TODO).
3150         * infcmd.c (finish_command_continuation): Update call to
3151         read_var_value, passing it the block coming from symbol lookup.
3152         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3153         * language.h (struct language_defn): Add a var_block argument to
3154         the LA_READ_VAR_VALUE method.
3155         * objfiles.c (struct static_link_htab_entry): New.
3156         (static_link_htab_entry_hash): New.
3157         (static_link_htab_entry_eq): New.
3158         (objfile_register_static_link): New.
3159         (objfile_lookup_static_link): New.
3160         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3161         * objfiles.h: Include hashtab.h.
3162         (struct objfile): Add a static_links field.
3163         (objfile_register_static_link): New.
3164         (objfile_lookup_static_link): New.
3165         * printcmd.c (print_variable_and_value): Update call to
3166         read_var_value.
3167         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3168         * python/py-frame.c (frapy_read_var): Update call to
3169         read_var_value, passing it the block coming from symbol lookup.
3170         * python/py-framefilter.c (extract_sym): Add a sym_block
3171         parameter and set the pointed value to NULL (TODO).
3172         (enumerate_args): Update call to extract_sym.
3173         (enumerate_locals): Update calls to extract_sym and to
3174         read_var_value.
3175         * python/py-symbol.c (sympy_value): Update call to
3176         read_var_value (TODO).
3177         * stack.c (read_frame_local): Update call to read_var_value.
3178         (read_frame_arg): Likewise.
3179         (return_command): Likewise.
3180         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3181         method.
3182         (struct symbol): Add a block field.
3183         (SYMBOL_BLOCK): New accessor.
3184         * valops.c (value_of_variable): Remove frame/block handling and
3185         pass the block argument to read_var_value, which does this job
3186         now.
3187         (value_struct_elt_for_reference): Update calls to
3188         read_var_value.
3189         (value_of_this): Pass the block found to read_var_value.
3190         * value.h (read_var_value): Add a var_block argument.
3191         (default_read_var_value): Likewise.
3192
3193 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3194
3195         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3196         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3197         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3198
3199 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3200
3201         * Makefile.in (aarch64-liunx.o): New rule.
3202         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3203         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3204         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3205         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3206         extern.
3207         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3208         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3209         * nat/aarch64-linux.c: New file.
3210         * nat/aarch64-linux.h: New file.
3211
3212 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3213
3214         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3215         lwp_arch_private_info and ptid_of_lwp.
3216
3217 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3218
3219         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3220         Move it to nat/aarch64-linux-hw-point.c.
3221         (debug_reg_change_callback): Likewise.
3222         (aarch64_notify_debug_reg_change): :Likewise.
3223         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3224         (aarch64_dr_update_callback_param): New.
3225         (debug_reg_change_callback): New function.
3226         (aarch64_notify_debug_reg_change): Likewise.
3227         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3228         Remove the declaration.
3229
3230 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3231
3232         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3233         Call current_lwp_ptid.
3234
3235 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3236
3237         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3238         debug_printf.
3239
3240 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3241
3242         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3243         ptid_get_pid rather than ptid_get_lwp.
3244
3245 2015-08-24  Pedro Alves  <palves@redhat.com>
3246
3247         * NEWS (New commands): Mention set/show remote
3248         multiprocess-extensions-packet.
3249         * remote.c (remote_query_supported): Only tell the server to use
3250         the multiprocess extensions if the user hasn't force-disabled them
3251         with "set remote multiprocess-extensions-packet off".
3252
3253 2015-08-24  Pedro Alves  <palves@redhat.com>
3254
3255         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3256         1029a8112290f6eee9d7878a391c49db42c999bd.
3257         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3258         Regenerate.
3259         * gnulib/import/Makefile.am: Update.
3260         * gnulib/import/Makefile.in: Update.
3261         * gnulib/import/alloca.in.h: Update.
3262         * gnulib/import/basename-lgpl.c: Update.
3263         * gnulib/import/canonicalize-lgpl.c: Update.
3264         * gnulib/import/config.charset: Update.
3265         * gnulib/import/dirent.in.h: Update.
3266         * gnulib/import/dirfd.c: Update.
3267         * gnulib/import/dirname-lgpl.c: Update.
3268         * gnulib/import/dirname.h: Update.
3269         * gnulib/import/dosname.h: Update.
3270         * gnulib/import/errno.in.h: Update.
3271         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3272         * gnulib/import/extra/snippet/c++defs.h: Update.
3273         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3274         * gnulib/import/extra/update-copyright: Update.
3275         * gnulib/import/float+.h: Update.
3276         * gnulib/import/float.c: Update.
3277         * gnulib/import/float.in.h: Update.
3278         * gnulib/import/fnmatch.c: Update.
3279         * gnulib/import/fnmatch.in.h: Update.
3280         * gnulib/import/fnmatch_loop.c: Update.
3281         * gnulib/import/fpucw.h: Update.
3282         * gnulib/import/frexp.c: Update.
3283         * gnulib/import/frexpl.c: Update.
3284         * gnulib/import/gettimeofday.c: Update.
3285         * gnulib/import/inttypes.in.h: Update.
3286         * gnulib/import/isnan.c: Update.
3287         * gnulib/import/isnand-nolibm.h: Update.
3288         * gnulib/import/isnand.c: Update.
3289         * gnulib/import/isnanl-nolibm.h: Update.
3290         * gnulib/import/isnanl.c: Update.
3291         * gnulib/import/itold.c: Update.
3292         * gnulib/import/localcharset.c: Update.
3293         * gnulib/import/localcharset.h: Update.
3294         * gnulib/import/lstat.c: Update.
3295         * gnulib/import/m4/00gnulib.m4: Update.
3296         * gnulib/import/m4/absolute-header.m4: Update.
3297         * gnulib/import/m4/alloca.m4: Update.
3298         * gnulib/import/m4/canonicalize.m4: Update.
3299         * gnulib/import/m4/codeset.m4: Update.
3300         * gnulib/import/m4/configmake.m4: Update.
3301         * gnulib/import/m4/dirent_h.m4: Update.
3302         * gnulib/import/m4/dirfd.m4: Update.
3303         * gnulib/import/m4/dirname.m4: Update.
3304         * gnulib/import/m4/double-slash-root.m4: Update.
3305         * gnulib/import/m4/eealloc.m4: Update.
3306         * gnulib/import/m4/errno_h.m4: Update.
3307         * gnulib/import/m4/exponentd.m4: Update.
3308         * gnulib/import/m4/exponentl.m4: Update.
3309         * gnulib/import/m4/extensions.m4: Update.
3310         * gnulib/import/m4/extern-inline.m4: Update.
3311         * gnulib/import/m4/fcntl-o.m4: Update.
3312         * gnulib/import/m4/float_h.m4: Update.
3313         * gnulib/import/m4/fnmatch.m4: Update.
3314         * gnulib/import/m4/fpieee.m4: Update.
3315         * gnulib/import/m4/frexp.m4: Update.
3316         * gnulib/import/m4/frexpl.m4: Update.
3317         * gnulib/import/m4/gettimeofday.m4: Update.
3318         * gnulib/import/m4/glibc21.m4: Update.
3319         * gnulib/import/m4/gnulib-cache.m4: Update.
3320         * gnulib/import/m4/gnulib-common.m4: Update.
3321         * gnulib/import/m4/gnulib-comp.m4: Update.
3322         * gnulib/import/m4/gnulib-tool.m4: Update.
3323         * gnulib/import/m4/include_next.m4: Update.
3324         * gnulib/import/m4/inttypes-pri.m4: Update.
3325         * gnulib/import/m4/inttypes.m4: Update.
3326         * gnulib/import/m4/isnand.m4: Update.
3327         * gnulib/import/m4/isnanl.m4: Update.
3328         * gnulib/import/m4/largefile.m4: Update.
3329         * gnulib/import/m4/localcharset.m4: Update.
3330         * gnulib/import/m4/locale-fr.m4: Update.
3331         * gnulib/import/m4/locale-ja.m4: Update.
3332         * gnulib/import/m4/locale-zh.m4: Update.
3333         * gnulib/import/m4/longlong.m4: Update.
3334         * gnulib/import/m4/lstat.m4: Update.
3335         * gnulib/import/m4/malloc.m4: Update.
3336         * gnulib/import/m4/malloca.m4: Update.
3337         * gnulib/import/m4/math_h.m4: Update.
3338         * gnulib/import/m4/mbrtowc.m4: Update.
3339         * gnulib/import/m4/mbsinit.m4: Update.
3340         * gnulib/import/m4/mbsrtowcs.m4: Update.
3341         * gnulib/import/m4/mbstate_t.m4: Update.
3342         * gnulib/import/m4/memchr.m4: Update.
3343         * gnulib/import/m4/memmem.m4: Update.
3344         * gnulib/import/m4/mmap-anon.m4: Update.
3345         * gnulib/import/m4/multiarch.m4: Update.
3346         * gnulib/import/m4/nocrash.m4: Update.
3347         * gnulib/import/m4/off_t.m4: Update.
3348         * gnulib/import/m4/pathmax.m4: Update.
3349         * gnulib/import/m4/readlink.m4: Update.
3350         * gnulib/import/m4/rename.m4: Update.
3351         * gnulib/import/m4/rmdir.m4: Update.
3352         * gnulib/import/m4/ssize_t.m4: Update.
3353         * gnulib/import/m4/stat.m4: Update.
3354         * gnulib/import/m4/stdbool.m4: Update.
3355         * gnulib/import/m4/stddef_h.m4: Update.
3356         * gnulib/import/m4/stdint.m4: Update.
3357         * gnulib/import/m4/stdio_h.m4: Update.
3358         * gnulib/import/m4/stdlib_h.m4: Update.
3359         * gnulib/import/m4/string_h.m4: Update.
3360         * gnulib/import/m4/strstr.m4: Update.
3361         * gnulib/import/m4/strtok_r.m4: Update.
3362         * gnulib/import/m4/sys_socket_h.m4: Update.
3363         * gnulib/import/m4/sys_stat_h.m4: Update.
3364         * gnulib/import/m4/sys_time_h.m4: Update.
3365         * gnulib/import/m4/sys_types_h.m4: Update.
3366         * gnulib/import/m4/time_h.m4: Update.
3367         * gnulib/import/m4/unistd_h.m4: Update.
3368         * gnulib/import/m4/warn-on-use.m4: Update.
3369         * gnulib/import/m4/wchar_h.m4: Update.
3370         * gnulib/import/m4/wchar_t.m4: Update.
3371         * gnulib/import/m4/wctype_h.m4: Update.
3372         * gnulib/import/m4/wint_t.m4: Update.
3373         * gnulib/import/malloc.c: Update.
3374         * gnulib/import/malloca.c: Update.
3375         * gnulib/import/malloca.h: Update.
3376         * gnulib/import/math.in.h: Update.
3377         * gnulib/import/mbrtowc.c: Update.
3378         * gnulib/import/mbsinit.c: Update.
3379         * gnulib/import/mbsrtowcs-impl.h: Update.
3380         * gnulib/import/mbsrtowcs-state.c: Update.
3381         * gnulib/import/mbsrtowcs.c: Update.
3382         * gnulib/import/memchr.c: Update.
3383         * gnulib/import/memmem.c: Update.
3384         * gnulib/import/pathmax.h: Update.
3385         * gnulib/import/readlink.c: Update.
3386         * gnulib/import/ref-add.sin: Update.
3387         * gnulib/import/ref-del.sin: Update.
3388         * gnulib/import/rename.c: Update.
3389         * gnulib/import/rmdir.c: Update.
3390         * gnulib/import/same-inode.h: Update.
3391         * gnulib/import/stat.c: Update.
3392         * gnulib/import/stdbool.in.h: Update.
3393         * gnulib/import/stddef.in.h: Update.
3394         * gnulib/import/stdint.in.h: Update.
3395         * gnulib/import/stdio.c: Update.
3396         * gnulib/import/stdio.in.h: Update.
3397         * gnulib/import/stdlib.in.h: Update.
3398         * gnulib/import/str-two-way.h: Update.
3399         * gnulib/import/streq.h: Update.
3400         * gnulib/import/string.in.h: Update.
3401         * gnulib/import/stripslash.c: Update.
3402         * gnulib/import/strnlen1.c: Update.
3403         * gnulib/import/strnlen1.h: Update.
3404         * gnulib/import/strstr.c: Update.
3405         * gnulib/import/strtok_r.c: Update.
3406         * gnulib/import/sys_stat.in.h: Update.
3407         * gnulib/import/sys_time.in.h: Update.
3408         * gnulib/import/sys_types.in.h: Update.
3409         * gnulib/import/time.in.h: Update.
3410         * gnulib/import/unistd.in.h: Update.
3411         * gnulib/import/verify.h: Update.
3412         * gnulib/import/wchar.in.h: Update.
3413         * gnulib/import/wctype.in.h: Update.
3414         * gnulib/import/gettimeofday.c: New file.
3415         * gnulib/import/m4/absolute-header.m4: New file.
3416         * gnulib/import/m4/gettimeofday.m4: New file.
3417         * gnulib/import/m4/sys_socket_h.m4: New file.
3418         * gnulib/import/m4/sys_time_h.m4: New file.
3419         * gnulib/import/stdio.c: Delete file.
3420         * gnulib/import/sys_time.in.h: New file.
3421
3422 2015-08-24  Pedro Alves  <palves@redhat.com>
3423
3424         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3425         * common/gdb_sys_time.h: New file.
3426         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3427         * gdb_select.h: Likewise.
3428         * gdb_usleep.c: Likewise.
3429         * maint.c: Likewise.
3430         * mi/mi-main.c: Likewise.
3431         * mi/mi-parse.h: Likewise.
3432         * remote-fileio.c: Likewise.
3433         * remote-m32r-sdi.c: Likewise.
3434         * remote.c: Likewise.
3435         * ser-base.c: Likewise.
3436         * ser-pipe.c: Likewise.
3437         * ser-tcp.c: Likewise.
3438         * ser-unix.c: Likewise.
3439         * symfile.c: Likewise.
3440         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3441         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3442         * utils.c: Likewise.
3443
3444 2015-08-24  Pedro Alves  <palves@redhat.com>
3445
3446         * NEWS: Mention removed support for the various ROM monitors.
3447         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3448         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3449         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3450         gdb_target_obs.
3451         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3452         gdb_target_obs.
3453         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3454         dsrec.o from gdb_target_obs.
3455         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3456         from gdb_target_obs.
3457         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3458         gdb_target_obs.
3459         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3460         dink32-rom.o from gdb_target_obs.
3461         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3462         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3463         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3464         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3465
3466 2015-08-21  Pedro Alves  <palves@redhat.com>
3467
3468         * frame.c (null_frame_id): Explicitly zero-initialize.
3469
3470 2015-08-21  Tom Tromey  <tromey@redhat.com>
3471
3472         * dwarf2read.c (struct dwarf2_section_info): Rename field
3473         'asection' to 'section'.
3474         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3475         (dwarf2_locate_sections, dwarf2_locate_sections)
3476         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3477         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3478         (dwarf2_locate_v2_dwp_sections): Adjust.
3479
3480 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3481
3482         * top.h (gdb_in_secondary_prompt_p): Declare.
3483         * top.c (gdb_secondary_prompt_depth): Define.
3484         (gdb_in_secondary_prompt_p): Define.
3485         (gdb_readline_wrapper_cleanup): Decrement
3486         gdb_secondary_prompt_depth.
3487         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3488         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3489         are in a secondary prompt.
3490
3491 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3492
3493         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3494         emit the newline.
3495
3496 2015-08-21  Gary Benson  <gbenson@redhat.com>
3497
3498         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3499
3500 2015-08-21  Gary Benson  <gbenson@redhat.com>
3501
3502         * target.h (struct target_ops) <to_fileio_open>: New argument
3503         warn_if_slow.  Update comment.  All implementations updated.
3504         (target_fileio_open_warn_if_slow): New declaration.
3505         * target.c (target_fileio_open): Renamed as...
3506         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3507         Pass warn_if_slow to implementation.  Update debug printing.
3508         (target_fileio_open): New function.
3509         (target_fileio_open_warn_if_slow): Likewise.
3510         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3511         target_fileio_open_warn_if_slow.
3512
3513 2015-08-21  Gary Benson  <gbenson@redhat.com>
3514
3515         * nat/linux-namespaces.c (linux_mntns_access_fs):
3516         Do not overwrite old_chain.
3517
3518 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3519
3520         * arch/xtensa.h: New file.
3521         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3522         (ps_get_thread_area): New function.
3523         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3524         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3525         * xtensa-tdep.c (osabi.h): New #include.
3526         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3527         xtensa-specific hooks.
3528         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3529         member and move the structure to arch/xtensa.h.
3530
3531 2015-08-21  Pedro Alves  <palves@redhat.com>
3532
3533         * remote.c (struct readahead_cache): New.
3534         (struct remote_state) <readahead_cache>: New field.
3535         (remote_open_1): Invalidate the cache.
3536         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3537         functions.
3538         (remote_hostio_pwrite): Invalidate the readahead cache.
3539         (remote_hostio_pread): Rename to ...
3540         (remote_hostio_pread_vFile): ... this.
3541         (remote_hostio_pread_from_cache): New function.
3542         (remote_hostio_pread): Reimplement.
3543         (remote_hostio_close): Invalidate the readahead cache.
3544
3545 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3546
3547         PR build/18843
3548         * procfs.c: Include "filestuff.h".
3549
3550 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3551
3552         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3553         curch.
3554         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3555         cur_line or curch, instead call wmove().
3556         (init_win_info) [CMD_WIN]: Likewise.
3557         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3558         instead call getcury().
3559         (tui_redisplay_readline): Don't set cur_line or curch.
3560         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3561         getcury().
3562         (tui_cont_sig): Remove call to wmove.
3563         (tui_getc): Don't read cur_line or curch, instead call getcury()
3564         or getyx().  Don't set curch.
3565         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3566         set cur_line or curch.  Always move cursor to (0,0).
3567
3568 2015-08-20  Pedro Alves  <palves@redhat.com>
3569
3570         * infrun.c (print_target_wait_results): Make extern.
3571         * infrun.h (print_target_wait_results): Declare.
3572         * remote.c (set_stop_requested_callback): Delete.
3573         (process_initial_stop_replies): New function.
3574         (remote_start_remote): Use it.
3575         (stop_reply_queue_length): New function.
3576
3577 2015-08-20  Pedro Alves  <palves@redhat.com>
3578
3579         * dwarf2read.c (process_full_comp_unit): To tell whether
3580         start_subfile managed to deduce a language, test for
3581         language_unknown instead of language_c.
3582
3583 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3584
3585         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3586         matches attributes.
3587
3588 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3589
3590         * dwarf2read.c (dwarf2_string_attr): New function.
3591         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3592         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3593         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3594         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3595         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3596
3597 2015-08-18  Doug Evans  <dje@google.com>
3598             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3599
3600         PR mi/18833
3601         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3602         if MI-like.
3603         * mi/mi-out.c: #include "vec.h".
3604         (ui_filep): New type.
3605         (DEV_VEC_P (ui_filep)): New type.
3606         (struct ui_out_data) <buffer, original_buffer>: Delete.
3607         (struct ui_out_data) <streams>: New member.
3608         (mi_ui_out_impl): Add data_destroy field.
3609         (mi_field_string, mi_field_fmt): Update.
3610         (mi_flush, mi_redirect, field_separator): Update.
3611         (mi_open, mi_close): Update.
3612         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3613         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3614         (mi_out_new): Call mi_out_data_ctor.
3615
3616 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3617
3618         * remote.c (strprefix): New.
3619         (remote_parse_stop_reply): Use strprefix instead of strncmp
3620         to ensure exact match of keyword.
3621
3622 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3623
3624         * gdb_bfd.c (debug_bfd_cache): New variable.
3625         (show_bfd_cache_debug): New function.
3626         (gdb_bfd_open): Add debug logging.
3627         (gdb_bfd_ref): Likewise.
3628         (gdb_bfd_unref): Likewise.
3629         (_initialize_gdb_bfd): Add new set/show command.
3630         * NEWS: Mention new command.
3631
3632 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3633
3634         * gdb_bfd.c (bfd_sharing): New variable.
3635         (show_bfd_sharing): New function.
3636         (gdb_bfd_open): Check bfd_sharing variable.
3637         (_initialize_gdb_bfd): Add new set/show command.
3638         * NEWS: Mention new command.
3639
3640 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3641
3642         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3643         field.
3644         (struct gdb_bfd_cache_search): Likewise.
3645         (eq_bfd): Compare the size, inode, and device id fields.
3646         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3647         (gdb_bfd_ref): Likewise.
3648         (gdb_bfd_unref): Likewise.
3649
3650 2015-08-18  Pedro Alves  <palves@redhat.com>
3651
3652         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3653         target implements to_always_non_stop_p, call it.
3654         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3655         (x86_linux_create_target): Install it as to_always_non_stop_p
3656         method.
3657
3658 2015-08-17  Doug Evans  <dje@google.com>
3659
3660         * ui-out.c (default_ui_out_impl): Add comment.
3661
3662 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
3663
3664         * d-exp.y (type_aggregate_p): New function.
3665         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3666         (classify_inner_name): Likewise.
3667         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3668
3669 2015-08-15  Doug Evans  <xdje42@gmail.com>
3670
3671         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
3672         updated.
3673         (add_psymbol_to_list): Ditto.
3674
3675 2015-08-15  Doug Evans  <xdje42@gmail.com>
3676
3677         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
3678         updated.  Call end_psymtab_common.
3679         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3680         end_psymtab_common.
3681         (build_type_psymtabs_reader): Ditto.
3682         * psympriv.h (sort_pst_symbols): Delete.
3683         (end_psymtab_common): Declare.
3684         * psymtab.c (sort_pst_symbols): Make static.
3685         (end_psymtab_common): New function.
3686         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3687
3688 2015-08-15  Doug Evans  <xdje42@gmail.com>
3689
3690         * defs.h (LANGUAGE_BITS): Define.
3691         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3692         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3693         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3694         (minimal_symbol_type): Add nr_minsym_types.
3695         (MINSYM_TYPE_BITS): Define.
3696         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3697         (domain_enum_tag): Add NR_DOMAINS.
3698         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3699         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3700
3701 2015-08-15  Doug Evans  <xdje42@gmail.com>
3702
3703         * objfiles.h: Whitespace cleanup.
3704         * psympriv.h: Whitespace cleanup.
3705         * psymtab.c: Whitespace/coding convention cleanup.
3706
3707 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
3708
3709         * inferior.c (detach_inferior_command): Don't call
3710         any_thread_of_process when pid is 0.
3711         (kill_inferior_command): Likewise.
3712
3713 2015-08-14  Doug Evans  <xdje42@gmail.com>
3714
3715         PR gdb/11833
3716         * NEWS: Document new /s modifier for the disassemble command.
3717         * cli/cli-cmds.c (disassemble_command): Add support for /s.
3718         (_initialize_cli_cmds): Update online docs of disassemble command.
3719         * disasm.c: #include "source.h".
3720         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3721         All uses updated.
3722         (dis_line_entry): New struct.
3723         (hash_dis_line_entry, eq_dis_line_entry): New functions.
3724         (allocate_dis_line_table): New functions.
3725         (maybe_add_dis_line_entry, line_has_code_p): New functions.
3726         (dump_insns): New arg end_pc.  All callers updated.
3727         (do_mixed_source_and_assembly_deprecated): Renamed from
3728         do_mixed_source_and_assembly.  All callers updated.
3729         (do_mixed_source_and_assembly): New function.
3730         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3731         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3732         DISASSEMBLY_SOURCE.  All uses updated.
3733         (DISASSEMBLY_SOURCE): New macro.
3734         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3735
3736 2015-08-14  Keith Seitz  <keiths@redhat.com>
3737
3738         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3739         `typename' to `type_name' to avoid C++ reserved word.
3740
3741 2015-08-14  Keith Seitz  <keiths@redhat.com>
3742
3743         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3744         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3745         silence ARI errors.
3746
3747 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3748
3749         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3750         xstrprintf instead of malloc and sprintf.
3751         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3752         (lex_one_token): Likewise.
3753
3754 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3755
3756         * solib-svr4.c (read_program_header): Add base_addr argument to
3757         report the runtime address of the segment.
3758         (find_program_interpreter): Update read_program_header call to pass
3759         a NULL pointer for the new argument.
3760         (scan_dyntag): Add ptr_addr argument to report the runtime address
3761         of the tag payload.
3762         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3763         read_program_header to get the base address of the dynamic segment.
3764         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3765         read_program_header.
3766         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3767
3768 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3769
3770         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3771
3772 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3773
3774         * d-exp.y (%union): Add voidval.
3775         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3776         name in the lexing stage.
3777         (PostfixExpression): Move symbol completion handling in grammar here
3778         from PrimaryExpression.
3779         (PrimaryExpression): Move routines to handle resolving identifier
3780         tokens in the grammar here from push_expression_name.
3781         (IdentifierExp): Remove the handling of alternating '.' and identifier
3782         tokens.
3783         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3784         (BasicType): Remove C-style typename rules.
3785         (d_type_from_name, d_module_from_name, push_variable)
3786         (push_fieldnames, push_type_name, push_module_name)
3787         (push_expression_name): Remove.
3788         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
3789         (token_and_value): New type.
3790         (token_fifo, popping, name_obstack): New globals.
3791         (classify_name): New function.
3792         (classify_inner_name): Likewise.
3793         (yylex): Likewise.
3794         (d_parse): Initialize token_fifo, popping and name_obstack.
3795
3796 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3797
3798         * Makefile.in (SFILES): Add d-namespace.c.
3799         (COMMON_OBS): Add d-namespace.o.
3800         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3801         la_lookup_symbol_nonlocal callback function pointer.
3802         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3803         (d_lookup_nested_symbol): New declaration.
3804         * d-namespace.c: New file.
3805
3806 2015-08-13  Pedro Alves  <palves@redhat.com>
3807
3808         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3809         cleanup after the decref cleanup, not before.
3810
3811 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
3812
3813         * ada-lang.c: Include namespace.h
3814         (aux_add_nonlocal_symbols): Fix a function name in comment.
3815         (ada_add_block_renamings): New.
3816         (add_nonlocal_symbols): Add global renamings handling.
3817         (ada_lookup_symbol_list_worker): Move the symbol lookup part
3818         to...
3819         (ada_add_all_symbols): ... this new function.
3820         (ada_add_block_symbols): Try to match the input name against the
3821         "using directives list", perform a recursive symbol lookup on
3822         the matched declarations.
3823         * block.h (struct block): Move the_namespace to top-level as
3824         namespace_info. Remove the language_specific field.
3825         (BLOCK_NAMESPACE): Update access to the namespace_info field.
3826         * buildsym.h (using_directives): Rename into...
3827         (local_using_directives): ... this.
3828         (global_using_directives): New.
3829         (struct context_stack): Rename the using_directives field into
3830         local_using_directives.
3831         * buildsym.c (finish_block_internal): Deal with the proper
3832         using directives repository (local or global).
3833         (prepare_for_building): Reset local_using_directives. Assert
3834         that there is no pending global using directive.
3835         (reset_symtab_globals): Reset global_using_directives and
3836         local_using_directives.
3837         (end_symtab_get_static_block): Don't ignore symtabs that have
3838         only using directives.
3839         (push_context): Update references to local_using_directives.
3840         (buildsym_init): Do not reset using_directives.
3841         * cp-support.c: Include namespace.h.
3842         * cp-support.h (struct using_direct): Move to namespace.h.
3843         (cp_add_using_directives): Move to namespace.h.
3844         * cp-namespace.c: Include namespace.h
3845         (cp_add_using_directive): Move to namespace.c, rename it to
3846         add_using_directive, add a "using_directives" argument and use
3847         it as the pending using directives repository.  All callers
3848         updated.
3849         * dwarf2read.c (using_directives): New.
3850         (read_import_statement): Call using_directives.
3851         (read_func_scope): Update references to local_using_directives.
3852         (read_lexical_block_scope): Likewise.
3853         (read_namespace): Update the heading comment, call
3854         using_directives.
3855         * namespace.h: New file.
3856         * namespace.c: New file.
3857         * Makefile.in (SFILES): Add namespace.c.
3858         (COMMON_OBS): Add namespace.o
3859
3860 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
3861
3862         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3863         compute RETADDR.
3864
3865 2015-08-12  Keith Seitz  <keiths@redhat.com>
3866
3867         * break-catch-throw.c (re_set_exception_catchpoint) Rename
3868         reserved C++ keyword "explicit" to "explicit_loc".
3869         * breakpoint.c (create_overlay_event_breakpoint)
3870         (create_longjmp_master_breakpoint)
3871         (create_std_terminate_master_breakpoint)
3872         (create_exception_master_breakpoint, update_static_tracepoint):
3873         Rename reserved C++ keyword "explicit" to "explicit_loc".
3874         * completer.c (collect_explicit_location_matches)
3875         (explicit_location_completer): Rename reserved C++ keyword
3876         "explicit" to "explicit_loc".
3877         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3878         (canonicalize_linespec, create_sals_line_offset)
3879         (convert_linespec_to_sals, convert_explicit_location_to_sals)
3880         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3881         "explicit" to "explicit_loc".
3882         * location.c (struct event_location) <explicit>: Rename to
3883         "explicit_loc".
3884         (initialize_explicit_location, new_explicit_location)
3885         (explicit_location_to_string_internal, explicit_location_to_linespec):
3886         Rename reserved C++ keyword "explicit" to "explicit_loc".
3887         * location.h (explicit_location_to_string)
3888         (explicit_location_to_linespec, initialize_explicit_location)
3889         (new_explicit_location): Rename reserved C++ keyword "explicit"
3890         to "explicit_loc".
3891         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3892         keyword "explicit" to "explicit_loc".
3893
3894 2015-08-12  Keith Seitz  <keiths@redhat.com>
3895
3896         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3897         and only call decode_line_1 when it is non-NULL.
3898
3899 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
3900
3901         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3902         location address is not meaningful.
3903         (breakpoint_address_is_meaningful): Update comment.
3904
3905 2015-08-11  Keith Seitz  <keiths@redhat.com>
3906
3907         * NEWS: Mention explicit locations.
3908         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3909         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3910         (_initialize_breakpoint): Update documentation for
3911         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3912
3913 2015-08-11  Keith Seitz  <keiths@redhat.com>
3914
3915         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3916         explicit locations, options "--source", "--function",
3917         "--label", and "--line".
3918
3919 2015-08-11  Keith Seitz  <keiths@redhat.com>
3920
3921         * completer.c: Include location.h.
3922         (enum match_type): New enum.
3923         (location_completer): Rename to ...
3924         (linespec_completer): ... this.
3925         (collect_explicit_location_matches, backup_text_ptr)
3926         (explicit_location_completer): New functions.
3927         (location_completer): "New" function; handle linespec
3928         and explicit location completions.
3929         (complete_line_internal): Remove all location completer-specific
3930         handling.
3931         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3932         (find_toplevel_char): Export.
3933         (linespec_parse_line_offset): Export.
3934         Issue error if STRING is not numerical.
3935         (gdb_get_linespec_parser_quote_characters): New function.
3936         * linespec.h (linespec_parse_line_offset): Declare.
3937         (get_gdb_linespec_parser_quote_characters): Declare.
3938         (is_ada_operator): Declare.
3939         (find_toplevel_char): Declare.
3940         (linespec_lexer_lex_keyword): Declare.
3941         * location.c (explicit_to_event_location): New function.
3942         (explicit_location_lex_one): New function.
3943         (string_to_explicit_location): New function.
3944         (string_to_event_location): Handle explicit locations.
3945         * location.h (explicit_to_event_location): Declare.
3946         (string_to_explicit_location): Declare.
3947
3948 2015-08-11  Keith Seitz  <keiths@redhat.com>
3949
3950         * break-catch-throw.c (re_set_exception_catchpoint): Convert
3951         linespec into explicit location.
3952         * breakpoint.c (create_overlay_breakpoint)
3953         (create_longjmp_master_breakpoint)
3954         (create_std_terminate_master_breakpoint)
3955         (create_exception_master_breakpoint): Convert linespec into explicit
3956         location.
3957         (update_static_tracepoint): Convert linespec into explicit location.
3958         * linespec.c (enum offset_relative_sign, struct line_offset): Move
3959         location.h.
3960         (struct linespec) <expression, expr_pc, source_filename>
3961         <function_name, label_name, line_offset>: Replace with ...
3962         <explicit>: ... this.
3963         <is_linespec>: New member.
3964         (PARSER_EXPLICIT): New accessor macro.
3965         (undefined_label_error): New function.
3966         (source_file_not_found_error): New function.
3967         (linespec_parse_basic): The parser result is now an explicit location.
3968         Use PARSER_EXPLICIT to access it.
3969         Use undefined_label_error.
3970         (canonicalize_linespec): Convert canonical linespec into explicit
3971         location.
3972         Move string representation of location to explicit_location_to_linespec
3973         and use it and explicit_location_to_string to save string
3974         representations of the canonical location.
3975         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3976         explicit location.  Update all references.
3977         (convert_explicit_location_to_sals): New function.
3978         (parse_linespec): Use PARSER_EXPLICIT to access the parser
3979         result's explicit location.
3980         (linespec_state_constructor): Initialize is_linespec.
3981         Use PARSER_EXPLICIT.
3982         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3983         result.
3984         (event_location_to_sals): For linespec locations, set is_linespec.
3985         Handle explicit locations.
3986         (decode_objc): 'ls' contains an explicit location now. Update all
3987         references.
3988         (symtabs_from_filename): Use source_file_not_found_error.
3989         * location.c (struct event_location.u) <explicit>: New member.
3990         (initialize_explicit_location): New function.
3991         (initialize_event_location): Initialize explicit locations.
3992         (new_explicit_location, get_explicit_location)
3993         (get_explicit_location_const): New functions.
3994         (explicit_to_string_internal): New function; most of contents moved
3995         from canonicalize_linespec.
3996         (explicit_location_to_string): New function.
3997         (explicit_location_to_linespec): New function.
3998         (copy_event_location, delete_event_location)
3999         (event_location_to_string_const, event_location_empty_p): Handle
4000         explicit locations.
4001         * location.h (enum offset_relative_sign, struct line_offset): Move
4002         here from linespec.h.
4003         (enum event_location_type): Add EXPLICIT_LOCATION.
4004         (struct explicit_location): New structure.
4005         (explicit_location_to_string): Declare.
4006         (explicit_location_to_linespec): Declare.
4007         (new_explicit_location, get_explicit_locationp
4008         (get_explicit_location_const, initialize_explicit_location): Declare.
4009
4010 2015-08-11  Keith Seitz  <keiths@redhat.com>
4011
4012         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4013         linespec for stap probe to probe location.
4014         * breakpoint.c (create_longjmp_master_breakpoint)
4015         (create_exception_master_breakpoint): Likewise.
4016         (break_command_1): Remove local variable `arg_cp'.
4017         Check location type to set appropriate breakpoint ops methods.
4018         (trace_command): Likewise.
4019         * linespec.c (event_location_to_sals): Assert on probe locations.
4020         * location.c (EL_PROBE): Add macro definition.
4021         (new_probe_location, get_probe_location): New functions.
4022         (copy_event_location, delete_event_location, event_location_to_string)
4023         (string_to_event_location, event_location_empty_p): Handle probe
4024         locations.
4025         * location.h (enum event_location_type): Add PROBE_LOCATION.
4026         (new_probe_location, get_probe_location): Declare.
4027         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4028         Convert linespec into probe location.
4029
4030 2015-08-11  Keith Seitz  <keiths@redhat.com>
4031
4032         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4033         Convert linespec to address location.
4034         * linespec.c (canonicalize_linespec): Do not handle address
4035         locations here.
4036         (convert_address_location_to_sals): New function; contents moved
4037         from ...
4038         (convert_linespc_to_sals): ... here.
4039         (parse_linespec): Remove address locations from linespec grammar.
4040         Remove handling of address locations.
4041         (linespec_lex_to_end): Remove handling of address linespecs.
4042         (event_location_to_sals): Handle ADDRESS_LOCATION.
4043         (linespec_expression_to_pc): Export.
4044         * linespec.h (linespec_expression_to_pc): Add declaration.
4045         * location.c (struct event_location.u) <address>: New member.
4046         (new_address_location, get_address_location): New functions.
4047         (copy_event_location, delete_event_location, event_location_to_string)
4048         (string_to_event_location, event_location_empty_p): Handle address
4049         locations.
4050         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4051         (new_address_location, get_address_location): Declare.
4052         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4053         to address location.
4054         * spu-tdep.c (spu_catch_start): Likewise.
4055
4056 2015-08-11  Keith Seitz  <keiths@redhat.com>
4057
4058         * ax-gdb.c: Include location.h.
4059         (agent_command_1) Use linespec location instead of address
4060         string.
4061         * break-catch-throw.c: Include location.h.
4062         (re_set_exception_catchpoint): Use linespec locations instead
4063         of address strings.
4064         * breakpoint.c: Include location.h.
4065         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4066         (create_std_terminate_master_breakpoint)
4067         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4068         Use linespec location instead of address string.
4069         (print_breakpoint_location):  Use locations and
4070         event_location_to_string.
4071         Print extra_string for pending locations for non-MI streams.
4072         (print_one_breakpoint_location): Use locations and
4073         event_location_to_string.
4074         (init_raw_breakpoint_without_location): Initialize b->location.
4075         (create_thread_event_breakpoint): Use linespec location instead of
4076         address string.
4077         (init_breakpoint_sal): Likewise.
4078         Only save extra_string if it is non-NULL and not the empty string.
4079         Use event_location_to_string instead of `addr_string'.
4080         Constify `p' and `endp'.
4081         Use skip_spaces_const/skip_space_const instead of non-const versions.
4082         Copy the location into the breakpoint.
4083         If LOCATION is NULL, save the breakpoint address as a linespec location
4084         instead of an address string.
4085         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4086         event_location. All uses updated.
4087         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4088         (parse_breakpoint_sals): Use locations instead of address strings.
4089         Remove check for empty linespec with conditional.
4090         Refactor.
4091         (decode_static_tracepoint_spec): Make argument const and update
4092         function.
4093         (create_breakpoint): Change `arg' to a struct event_location and
4094         rename.
4095         Remove `copy_arg' and `addr_start'.
4096         If EXTRA_STRING is empty, set it to NULL.
4097         Don't populate `canonical' for pending breakpoints.
4098         Pass `extra_string' to find_condition_and_thread.
4099         Clear `extra_string' if `rest' was NULL.
4100         Do not error with "garbage after location" if setting a dprintf
4101         breakpoint.
4102         Copy the location into the breakpoint instead of an address string.
4103         (break_command_1): Use string_to_event_location and pass this to
4104         create_breakpoint instead of an address string.
4105         Check against `arg_cp' for a probe linespec.
4106         (dprintf_command): Use string_to_event_location and pass this to
4107         create_breakpoint instead of an address string.
4108         Throw an exception if no format string was specified.
4109         (print_recreate_ranged_breakpoint): Use event_location_to_string
4110         instead of address strings.
4111         (break_range_command, until_break_command)
4112         (init_ada_exception_breakpoint): Use locations instead
4113         of address strings.
4114         (say_where): Print out extra_string for pending locations.
4115         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4116         the breakpoint.
4117         (base_breakpoint_create_sals_from_location): Use struct event_location
4118         instead of address string.
4119         Remove `addr_start' and `copy_arg' parameters.
4120         (base_breakpoint_decode_location): Use struct event_location instead of
4121         address string.
4122         (bkpt_re_set): Use locations instead of address strings.
4123         Use event_location_empty_p to check for unset location.
4124         (bkpt_print_recreate): Use event_location_to_string instead of
4125         an address string.
4126         Print out extra_string for pending locations.
4127         (bkpt_create_sals_from_location, bkpt_decode_location)
4128         (bkpt_probe_create_sals_from_location): Use struct event_location
4129         instead of address string.
4130         (bkpt_probe_decode_location): Use struct event_location instead of
4131         address string.
4132         (tracepoint_print_recreate): Use event_location_to_string to
4133         recreate the tracepoint.
4134         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4135         (tracepoint_probe_create_sals_from_location)
4136         (tracepoint_probe_decode_location): Use struct event_location
4137         instead of address string.
4138         (dprintf_print_recreate): Use event_location_to_string to recreate
4139         the dprintf.
4140         (dprintf_re_set): Remove check for valid/missing format string.
4141         (strace_marker_create_sals_from_location)
4142         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4143         (update_static_tracepoint): Use struct event_location instead of
4144         address string.
4145         (location_to_sals): Likewise.
4146         Pass `extra_string' to find_condition_and_thread.
4147         For newly resolved pending breakpoint locations, clear the location's
4148         string representation.
4149         Assert that the breakpoint's condition string is NULL when
4150         condition_not_parsed.
4151         (breakpoint_re_set_default, create_sals_from_location_default)
4152         (decode_location_default, trace_command, ftrace_command)
4153         (strace_command, create_tracepoint_from_upload): Use locations
4154         instead of address strings.
4155         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4156         Use struct event_location instead of address string.
4157         Update all uses.
4158         <decode_location>: Likewise.
4159         (struct breakpoint) <addr_string>: Change to struct event_location
4160         and rename `location'.
4161         <addr_string_range_end>: Change to struct event_location and rename
4162         `location_range_end'.
4163         (create_breakpoint): Use struct event_location instead of address
4164         string.
4165         * cli/cli-cmds.c: Include location.h.
4166         (edit_command, list_command): Use locations instead of address strings.
4167         * elfread.c: Include location.h.
4168         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4169         * guile/scm-breakpoint.c: Include location.h.
4170         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4171         (gdbscm_register_breakpoint): Use locations instead of address
4172         strings.
4173         * linespec.c: Include location.h.
4174         (struct ls_parser) <stream>: Change to const char *.
4175         (PARSER_STREAM): Update.
4176         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4177         keywords must be followed by whitespace.
4178         (canonicalize_linespec): Save a linespec location into `canonical'.
4179         Save a canonical linespec into `canonical'.
4180         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4181         All uses updated.
4182         Update function description.
4183         (linespec_parser_new): Initialize `parser'.
4184         Update initialization of  parsing stream.
4185         (event_location_to_sals): New function.
4186         (decode_line_full): Change `argptr' to a struct event_location and
4187         rename it `location'.
4188         Use locations instead of address strings.
4189         Call event_location_to_sals instead of parse_linespec.
4190         (decode_line_1): Likewise.
4191         (decode_line_with_current_source, decode_line_with_last_displayed)
4192         Use locations instead of address strings.
4193         (decode_objc): Likewise.
4194         Change `argptr' to const char * and rename `arg'.
4195         (destroy_linespec_result): Delete the linespec result's location
4196         instead of freeing the address string.
4197         * linespec.h (struct linespec_result) <addr_string>: Change to
4198         struct event_location and rename to ...
4199         <location>: ... this.
4200         (decode_line_1, decode_line_full): Change `argptr' to struct
4201         event_location.  All callers updated.
4202         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4203         (mi_cmd_break_insert_1): Use locations instead of address strings.
4204         Throw an error if there was "garbage" at the end of the specified
4205         linespec.
4206         * probe.c: Include location.h.
4207         (parse_probes): Change `argptr' to struct event_location.
4208         Use event locations instead of address strings.
4209         * probe.h (parse_probes): Change `argptr' to struct event_location.
4210         * python/py-breakpoint.c: Include location.h.
4211         (bppy_get_location): Constify local variable `str'.
4212         Use event_location_to_string.
4213         (bppy_init): Use locations instead of address strings.
4214         * python/py-finishbreakpoint.c: Include location.h.
4215         (bpfinishpy_init): Remove local variable `addr_str'.
4216         Use locations instead of address strings.
4217         * python/python.c: Include location.h.
4218         (gdbpy_decode_line): Use locations instead of address strings.
4219         * remote.c: Include location.h.
4220         (remote_download_tracepoint): Use locations instead of address
4221         strings.
4222         * spu-tdep.c: Include location.h.
4223         (spu_catch_start): Remove local variable `buf'.
4224         Use locations instead of address strings.
4225         * tracepoint.c: Include location.h.
4226         (scope_info): Use locations instead of address strings.
4227         (encode_source_string): Constify parameter `src'.
4228         * tracepoint.h (encode_source_string): Likewise.
4229
4230 2015-08-11  Keith Seitz  <keiths@redhat.com>
4231
4232         * Makefile.in (SFILES): Add location.c.
4233         (HFILES_NO_SRCDIR): Add location.h.
4234         (COMMON_OBS): Add location.o.
4235         * linespec.c (linespec_lex_to_end): New function.
4236         * linespec.h (linespec_lex_to_end): Declare.
4237         * location.c: New file.
4238         * location.h: New file.
4239
4240 2015-08-11  Keith Seitz  <keiths@redhat.com>
4241
4242         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4243         Renamed to create_sals_from_location.
4244         <decode_linespec>: Renamed to decode_location.
4245         Update all callers.
4246         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4247         (create_sals_from_location_default): ... this.
4248         (addr_string_to_sals): Renamed to ...
4249         (location_to_sals): ... this.
4250         (decode_linespec_default): Renamed to ...
4251         (decode_location_default): ... this.
4252         (base_breakpoint_create_sals_from_address): Renamed to ...
4253         (base_breakpoint_create_sals_from_location): ... this.
4254         (bkpt_create_sals_from_address): Renamed to ...
4255         (bkpt_create_sals_from_location): ... this.
4256         (bkpt_decode_linespec): Renamed to ...
4257         (bkpt_decode_location): ... this.
4258         (bkpt_probe_create_sals_from_address): Renamed to ...
4259         (bkpt_probe_create_sals_from_location): ... this.
4260         (tracepoint_create_sals_from_address): Renamed to ...
4261         (tracepoint_create_sals_from_location): ... this.
4262         (tracepoint_decode_linespec): Renamed to ...
4263         (tracepoint_decode_location): ... this.
4264         (tracepoint_probe_create_sals_from_address): Renamed to ...
4265         (tracepoint_probe_create_sals_from_location): ... this.
4266         (tracepoint_probe_decode_linespec): Renamed to ...
4267         (tracepoint_probe_decode_location): ... this.
4268         (strace_marker_create_sals_from_address): Renamed to ...
4269         (strace_marker_create_sals_from_location): ... this.
4270         (decode_linespec_default): Renamed to ...
4271         (decode_location_default): ... this.
4272
4273 2015-08-10  Doug Evans  <dje@google.com>
4274             Keith Seitz  <keiths@redhat.com>
4275
4276         PR gdb/17960
4277         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4278         make_file_symbol_completion_list and made static.
4279         (make_file_symbol_completion_list): New function.
4280
4281 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4282
4283         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4284         trailing new-line at end of warning message.
4285         (proceed): Add i18n marker to error messages.
4286
4287 2015-08-07  Pedro Alves  <palves@redhat.com>
4288
4289         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4290
4291 2015-08-07  Pedro Alves  <palves@redhat.com>
4292
4293         * s390-linux-tdep.c (is_non_branch_ril)
4294         (s390_displaced_step_copy_insn): New functions.
4295         (s390_displaced_step_fixup): Update comment.
4296         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4297         gdbarch_displaced_step_copy_insn hook.
4298
4299 2015-08-07  Pedro Alves  <palves@redhat.com>
4300
4301         * infrun.c (displaced_step_prepare_throw): Return -1 if
4302         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4303         comment.
4304         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4305         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4306         in file.
4307         (ppc_displaced_step_copy_insn): New function.
4308         (ppc_displaced_step_fixup): Update comment.
4309         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4310         gdbarch_displaced_step_copy_insn hook.
4311         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4312         NULL return.
4313         * gdbarch.h: Regenerate.
4314
4315 2015-08-07  Pedro Alves  <palves@redhat.com>
4316
4317         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4318         field.
4319         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4320         Return false if dispaced stepping failed before.
4321         (resume): Pass the current inferior to
4322         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4323         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4324         displaced_stepping_failed flag, and fall back to an in-line
4325         step-over.
4326
4327 2015-08-07  Pedro Alves  <palves@redhat.com>
4328
4329         * darwin-nat.c (darwin_stop): Rename to ...
4330         (darwin_interrupt): ... this.
4331         (_initialize_darwin_inferior): Adjust.
4332         * gnu-nat.c (gnu_stop): Delete.
4333         (gnu_target): Don't install gnu_stop.
4334         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4335         (inf_ptrace_interrupt): ... this.
4336         (inf_ptrace_target): Adjust.
4337         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4338         target_stop.
4339         * linux-nat (linux_nat_stop): Rename to ...
4340         (linux_nat_interrupt): ... this.
4341         (linux_nat_stop): Reimplement.
4342         (linux_nat_add_target): Install linux_nat_interrupt.
4343         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4344         (nto_handle_sigint_twice): ... this.
4345         (nto_interrupt): Rename to ...
4346         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4347         target_stop.
4348         (procfs_wait): Adjust.
4349         (procfs_stop): Rename to ...
4350         (procfs_interrupt): ... this.
4351         (init_procfs_targets): Adjust.
4352         * procfs.c (procfs_stop): Rename to ...
4353         (procfs_interrupt): ... this.
4354         (procfs_target): Adjust.
4355         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4356         (m32r_interrupt): ... this.
4357         (init_m32r_ops): Adjust.
4358         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4359         (gdbsim_interrupt_inferior): ... this.
4360         (gdbsim_stop): Rename to ...
4361         (gdbsim_interrupt): ... this.
4362         (gdbsim_cntrl_c): Adjust.
4363         (init_gdbsim_ops): Adjust.
4364         * remote.c (sync_remote_interrupt): Adjust comments.
4365         (remote_stop_as): Rename to ...
4366         (remote_interrupt_as): ... this.
4367         (remote_stop): Adjust comment.
4368         (remote_interrupt): New function.
4369         (init_remote_ops): Install remote_interrupt.
4370         * target.c (target_interrupt): New function.
4371         * target.h (struct target_ops) <to_interrupt>: New field.
4372         (target_interrupt): New declaration.
4373         * windows-nat.c (windows_stop): Rename to ...
4374         (windows_interrupt): ... this.
4375         * target-delegates.c: Regenerate.
4376
4377 2015-08-07  Pedro Alves  <palves@redhat.com>
4378
4379         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4380         threads" as alternative to "switching back to stepped thread".
4381
4382 2015-08-07  Pedro Alves  <palves@redhat.com>
4383
4384         * NEWS: Mention "maint set/show target-non-stop".
4385         * breakpoint.c (update_global_location_list): Check
4386         target_is_non_stop_p instead of non_stop.
4387         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4388         * infrun.c (show_can_use_displaced_stepping)
4389         (can_use_displaced_stepping_p, start_step_over_inferior):
4390         Likewise.
4391         (internal_resume_ptid): New function.
4392         (resume): Use it.
4393         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4394         all-stop mode but the target is always in non-stop mode, start all
4395         the other threads that are implicitly resumed too.
4396         (for_each_just_stopped_thread, fetch_inferior_event)
4397         (adjust_pc_after_break, stop_all_threads): Check
4398         target_is_non_stop_p instead of non_stop.
4399         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4400         with the target always in non-stop mode.
4401         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4402         instead of non_stop.
4403         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4404         instead of non_stop.
4405         (keep_going_stepped_thread): Use internal_resume_ptid.
4406         (stop_waiting): If in all-stop mode, and the target is in non-stop
4407         mode, stop all threads.
4408         (keep_going_pass): Likewise, when starting a new in-line step-over
4409         sequence.
4410         * linux-nat.c (get_pending_status, select_event_lwp)
4411         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4412         target_is_non_stop_p instead of non_stop.
4413         (linux_nat_always_non_stop_p): New function.
4414         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4415         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4416         * target-delegates.c: Regenerate.
4417         * target.c (target_is_non_stop_p): New function.
4418         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4419         (maint_set_target_non_stop_command)
4420         (maint_show_target_non_stop_command): New functions.
4421         (_initilize_target): Install "maint set/show target-non-stop"
4422         commands.
4423         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4424         (target_non_stop_enabled): New declaration.
4425         (target_is_non_stop_p): New declaration.
4426
4427 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4428
4429         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4430         has a pending status, return true.
4431         * gdbthread.h: Include target/waitstatus.h.
4432         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4433         stop_pc>: New fields.
4434         (struct thread_info) <resumed>: New field.
4435         (set_resumed): Declare.
4436         * infrun.c: Include "event-loop.h".
4437         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4438         (infrun_async): New function.
4439         (clear_step_over_info): Add debug output.
4440         (displaced_step_in_progress_any_inferior): New function.
4441         (displaced_step_fixup): New returns int.
4442         (start_step_over): Handle in-line step-overs too.  Assert the
4443         thread is marked resumed.
4444         (resume_cleanups): Clear the thread's resumed flag.
4445         (resume): Set the thread's resumed flag.  Return early if the
4446         thread has a pending status.  Allow stepping a breakpoint with no
4447         signal.
4448         (proceed): Adjust to check 'resumed' instead of 'executing'.
4449         (clear_proceed_status_thread): If the thread has a pending status,
4450         and that status is a finished step, discard the pending status.
4451         (clear_proceed_status): Don't clear step_over_info here.
4452         (random_pending_event_thread, do_target_wait): New functions.
4453         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4454         do_target_wait.
4455         (wait_one): New function.
4456         (THREAD_STOPPED_BY): New macro.
4457         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4458         (thread_stopped_by_hw_breakpoint): New functions.
4459         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4460         functions.
4461         (handle_inferior_event): Also call set_resumed(false) on all
4462         threads implicitly stopped by the event.
4463         (restart_threads, resumed_thread_with_pending_status): New
4464         functions.
4465         (finish_step_over): If we were doing an in-line step-over before,
4466         and no longer are after trying to start a new step-over, restart
4467         all threads.  If we have multiple threads with pending events,
4468         save the current event and go through the event loop again.
4469         (handle_signal_stop): Return early if finish_step_over returns
4470         false.
4471         <random signal>: If we get a signal while stepping over a
4472         breakpoint in-line in non-stop mode, restart all threads.  Clear
4473         step_over_info before delivering the signal.
4474         (keep_going_stepped_thread): Use internal_error instead of
4475         gdb_assert.  Mark the thread as resumed.
4476         (keep_going_pass_signal): Assert the thread isn't already resumed.
4477         If some other thread is doing an in-line step-over, defer the
4478         resume.  If we just started a new in-line step-over, stop all
4479         threads.  Don't clear step_over_info.
4480         (infrun_async_inferior_event_handler): New function.
4481         (_initialize_infrun): Create async event handler with
4482         infrun_async_inferior_event_handler as callback.
4483         (infrun_async): New declaration.
4484         * target.c (target_async): New function.
4485         * target.h (target_async): Declare macro and readd as function
4486         declaration.
4487         * target/waitstatus.h (enum target_stop_reason)
4488         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4489         * thread.c (new_thread): Clear the new waitstatus field.
4490         (set_resumed): New function.
4491
4492 2015-08-07  Pedro Alves  <palves@redhat.com>
4493
4494         * infrun.c (keep_going_stepped_thread): New function, factored out
4495         from ...
4496         (switch_back_to_stepped_thread): ... here.
4497
4498 2015-08-07  Pedro Alves  <palves@redhat.com>
4499
4500         * infrun.c (currently_stepping): Extend intro comment.
4501         * target.h (target_resume): Extend intro comment.
4502
4503 2015-08-07  Pedro Alves  <palves@redhat.com>
4504
4505         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4506         of inferior_ptid.  If the stepped thread vanished, return 0
4507         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4508         the current stop_pc in log message.  Clear trap_expected if the
4509         thread advanced.  Don't pass currently_stepping to
4510         do_target_resume.
4511
4512 2015-08-07  Pedro Alves  <palves@redhat.com>
4513
4514         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4515         * infrun.c (struct execution_control_state): Move higher up in the
4516         file.
4517         (reset_ecs): New function.
4518         (start_step_over): Now returns int.  Rewrite to use
4519         keep_going_pass_signal instead of manually starting a displaced step.
4520         (resume): Don't call set_running here.  If displaced stepping
4521         can't start now, clear trap_expected.
4522         (find_thread_needs_step_over): Delete function.
4523         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4524         If the current thread needs a step over, push it in the step-over
4525         chain.  Don't set insert breakpoints nor call resume directly
4526         here.  Instead rewrite to use start_step_over and
4527         keep_going_pass_signal.
4528         (finish_step_over): New function.
4529         (handle_signal_stop): Call finish_step_over instead of
4530         start_step_over.
4531         (switch_back_to_stepped_thread): If the event thread needs another
4532         step-over do that first.  Use start_step_over.
4533         (keep_going_pass_signal): New function, factored out from ...
4534         (keep_going): ... here.
4535         (_initialize_infrun): Comment moved here.
4536         * thread.c (set_running_thread): New function.
4537         (set_running, finish_thread_state): Use set_running_thread.
4538
4539 2015-08-07  Pedro Alves  <palves@redhat.com>
4540
4541         * gdbthread.h (struct thread_info) <step_over_prev,
4542         step_over_next>: New fields.
4543         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4544         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4545         declarations.
4546         * infrun.c (struct displaced_step_request): Delete.
4547         (struct displaced_step_inferior_state) <step_request_queue>:
4548         Delete field.
4549         (displaced_step_prepare): Assert that trap_expected is set.  Use
4550         thread_step_over_chain_enqueue.  Split starting a new displaced
4551         step to ...
4552         (start_step_over): ... this new function.
4553         (resume): Assert the thread isn't waiting for a step over already.
4554         (proceed): Assert the thread isn't waiting for a step over
4555         already.
4556         (infrun_thread_stop_requested): Adjust to remove threads from the
4557         embedded step-over chain.
4558         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4559         displaced_step_fixup.
4560         (handle_signal_stop): Call start_step_over after
4561         displaced_step_fixup.
4562         * infrun.h (step_over_queue_head): New declaration.
4563         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4564         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4565         (thread_step_over_chain_enqueue)
4566         (thread_step_over_chain_remove): New functions.
4567         (delete_thread_1): Remove thread from the step-over chain.
4568
4569 2015-08-07  Pedro Alves  <palves@redhat.com>
4570
4571         * infrun.c (thread_still_needs_step_over): Rename to ...
4572         (thread_still_needs_step_over_bp): ... this.
4573         (enum step_over_what): New.
4574         (thread_still_needs_step_over): Reimplement.
4575
4576 2015-08-07  Pedro Alves  <palves@redhat.com>
4577
4578         * remote.c (remote_wait_as): If not waiting for a stop reply,
4579         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4580         requested, don't block waiting forever.
4581
4582 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4583
4584         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4585         waitstatus pointers instead of an ecs.  Adjust.
4586         (handle_inferior_event): Adjust caller.
4587
4588 2015-08-07  Pedro Alves  <palves@redhat.com>
4589
4590         * infrun.c (handle_inferior_event): If we get
4591         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4592         mode, mark all threads of the exiting process as not-executing.
4593         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4594         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4595         exiting process, if inferior_ptid still points at a process.
4596         * thread.c (struct current_thread_cleanup) <next>: New field.
4597         (current_thread_cleanup_chain): New global.
4598         (restore_current_thread_ptid_changed): New function.
4599         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4600         current_thread_cleanup_chain list.
4601         (make_cleanup_restore_current_thread): Add the cleanup data to the
4602         current_thread_cleanup_chain list.
4603         (_initialize_thread): Install restore_current_thread_ptid_changed
4604         as thread_ptid_changed observer.
4605
4606 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4607
4608         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4609         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4610         smaller than expected.
4611
4612 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4613
4614         * stack.c (get_frame_language): Moved ...
4615         * frame.c (get_frame_language): ... to here.
4616         * language.h (get_frame_language): Declaration moved to frame.h.
4617         * frame.h: Add language.h include, for language enum.
4618         (get_frame_language): Declaration moved from language.h.
4619         * language.c: Add frame.h include.
4620         * top.c: Add frame.h include.
4621         * symtab.h (struct obj_section): Declare.
4622         (struct cmd_list_element): Declare.
4623
4624 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4625
4626         * language.c (show_language_command): Find selected frame before
4627         asking for the language of that frame.
4628         (set_language_command): Likewise.
4629         * language.h (get_frame_language): Add frame parameter.
4630         * stack.c (get_frame_language): Add frame parameter, assert
4631         parameter is not NULL, update comment and reindent.
4632         * top.c (check_frame_language_change): Pass the selected frame
4633         into get_frame_language.
4634
4635 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4636
4637         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4638         (pt_btrace_insn_flags): New.
4639         (ftrace_add_pt): Call pt_btrace_insn_flags.
4640         * btrace.h (btrace_insn_flag): New.
4641         (btrace_insn) <flags>: New.
4642         * record-btrace.c (btrace_insn_history): Print insn prefix.
4643         * NEWS: Announce it.
4644
4645 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4646
4647         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4648         * configure: Regenerate.
4649
4650 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4651
4652         * Makefile.in (LIBICONV): Define.
4653         (CLIBS): Add LIBICONV.
4654         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4655         * configure: Regenerate.
4656
4657 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4658             Pedro Alves  <palves@redhat.com>
4659
4660         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4661         (arm_set_abi): Likewise.
4662         * ax-general.c (ax_print): Likewise.
4663         * c-exp.y (exp : string_exp): Likewise.
4664         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4665         (do_compile_dwarf_expr_to_c): Likewise.
4666         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4667         Likewise.
4668         * dwarf2expr.c (execute_stack_op): Likewise.
4669         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4670         (disassemble_dwarf_expression): Likewise.
4671         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4672         (read_array_order): Likewise.
4673         (abbrev_table_read_table): Likewise.
4674         (read_attribute_value): Likewise.
4675         (skip_unknown_opcode): Likewise.
4676         (dwarf_decode_macro_bytes): Likewise.
4677         (dwarf_decode_macros): Likewise.
4678         * eval.c (value_f90_subarray): Likewise.
4679         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4680         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4681         * infrun.c (handle_command): Likewise.
4682         * memory-map.c (memory_map_start_memory): Likewise.
4683         * osabi.c (set_osabi): Likewise.
4684         * parse.c (operator_length_standard): Likewise.
4685         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4686         single return point.
4687         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4688         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4689         (gdbpy_lookup_global_symbol): Likewise.
4690         * record-full.c (record_full_restore): Likewise.
4691         * regcache.c (regcache_register_status): Likewise.
4692         (regcache_raw_read): Likewise.
4693         (regcache_cooked_read): Likewise.
4694         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4695         * symtab.c (initialize_ordinary_address_classes): Likewise.
4696         * target-debug.h (target_debug_print_signals): Likewise.
4697         * utils.c (do_restore_current_language): Likewise.
4698
4699 2015-08-06  Clem Dickey  <clemd@acm.org>
4700
4701         PR python/17136
4702         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4703
4704 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4705
4706         * complaints.c (enum complaint_series): Add newlines and remove
4707         out of date comment.
4708         (struct complaints) <series>: Change type to enum
4709         complaint_series and remove out of date comment.
4710         (symfile_complaint_hook): Use equivalent enum value
4711         ISOLATED_MESSAGE instead of 0.
4712
4713 2015-08-06  Pedro Alves  <palves@redhat.com>
4714
4715         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4716         returned > 0.
4717
4718 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
4719
4720         * common/agent.c (symbol_list) <required>: Remove.
4721
4722 2015-08-06  Pedro Alves  <palves@redhat.com>
4723
4724         * target/waitstatus.h (enum target_stop_reason)
4725         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4726
4727 2015-08-05  Pedro Alves  <palves@redhat.com>
4728             Joel Brobecker  <brobecker@adacore.com>
4729
4730         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4731         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4732         case where BS->STOP is not set.
4733
4734 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
4735
4736         * nat/gdb_thread_db.h: Add copyright header.
4737         Protect against multiple inclusion.
4738
4739 2015-08-05  Yao Qi  <yao.qi@linaro.org>
4740
4741         * aarch64-linux-nat.c (get_thread_id): Remove.
4742         (debug_reg_change_callback): Call ptid_get_lwp instead of
4743         get_thread_id.
4744         (fetch_gregs_from_thread): Likewise.
4745         (store_gregs_to_thread): Likewise.
4746         (fetch_fpregs_from_thread): Likewise.
4747         (store_fpregs_to_thread): Likewise.
4748         (aarch64_linux_get_debug_reg_capacity): Likewise.
4749         * arm-linux-nat.c (get_thread_id): Remove.
4750         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4751         * xtensa-linux-nat.c (get_thread_id): Remove.
4752         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4753         * arm-linux-nat.c (get_thread_id): Remove.
4754         (GET_THREAD_ID): Remove.
4755         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4756         (store_fpregs, fetch_regs, store_regs): Likewise.
4757         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4758         (fetch_vfp_regs, store_vfp_regs): Likewise.
4759         (arm_linux_read_description): Likewise.
4760         (arm_linux_get_hwbp_cap): Likewise.
4761         * xtensa-linux-nat.c (get_thread_id): Remove.
4762         (GET_THREAD_ID): Remove.
4763         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4764         GET_THREAD_ID.
4765
4766 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
4767
4768         * python/py-linetable.c: Fix case of Linetable to LineTable
4769         in docstrings and code comments.
4770         * python/py-symtab.c: Same.
4771
4772 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4773
4774         * infcmd.c (signal_command): Call do_cleanups for args_chain.
4775
4776 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4777
4778         PR gdb/18767
4779         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4780         use.
4781
4782 2015-08-04  Pedro Alves  <palves@redhat.com>
4783
4784         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4785         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4786         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4787         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4788         (td_thr_validate_ftype, td_thr_get_info_ftype)
4789         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4790         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4791         New typedefs.
4792         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4793         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4794         local macros and use them instead of verbose_dlsym and dlsym
4795         calls.
4796
4797 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
4798
4799         * nios2-tdep.h: Include opcode/nios2.h here.
4800         (NIOS2_CDX_OPCODE_SIZE): New.
4801         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4802         * nios2-tdep.c: Don't include opcode/nios2.h here.
4803         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4804         4-byte read fails.
4805         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4806         (nios2_match_addi, nios2_match_orhi): Likewise.
4807         (nios2_match_stw, nios2_match_ldw): Likewise.
4808         (nios2_match_rdctl): Likewise.
4809         (nios2_match_stwm, nios2_match_ldwm): New.
4810         (nios2_match_branch): Add cases for R2 encodings.
4811         (nios2_match_jmpi, nios2_match_calli): Likewise.
4812         (nios2_match_jmpr, nios2_match_callr): Likewise.
4813         (nios2_match_break, nios2_match_trap): Likewise.
4814         (nios2_in_epilogue_p): Add R2 support.
4815         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
4816         prologues.
4817         (nios2_breakpoint_from_pc): Handle R2 instructions.
4818         (nios2_get_next_pc): Likewise.  Adjust call to
4819         tdep->syscall_next_pc.
4820         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4821         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
4822         instruction field macros instead of literal hex values.
4823         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4824         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4825         Use size field from OP instead of assuming all instructions
4826         are the same size.
4827         (nios2_linux_init_abi): Register appropriate unwinder for mach.
4828
4829 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
4830
4831         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4832         variable warning with some compilers.
4833
4834 2015-08-03  Yao Qi  <yao.qi@linaro.org>
4835
4836         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4837         in comment.  Replace "rw" with "type".
4838         (arm_linux_remove_watchpoint): Change type of "rw" to
4839         "enum target_hw_bp_type".
4840
4841 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
4842
4843         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4844         lookup_symbol.
4845         * ft32-tdep.c (ft32_skip_prologue): Likewise.
4846         * moxie-tdep.c (moxie_skip_prologue): Likewise.
4847         * mt-tdep.c (mt_skip_prologue): Likewise.
4848         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4849
4850 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4851
4852         * ada-exp.y (write_object_renaming): Replace struct
4853         ada_symbol_info with struct block_symbol.  Update field
4854         references accordingly.
4855         (block_lookup, select_possible_type_sym): Likewise.
4856         (find_primitive_type): Likewise.  Also update call to
4857         ada_lookup_symbol to extract the symbol itself.
4858         (write_var_or_type, write_name_assoc): Likewise.
4859         * ada-lang.h (struct ada_symbol_info): Remove.
4860         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4861         struct block_symbol.
4862         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4863         (ada_lookup_symbol): Return struct block_symbol instead of a
4864         mere symbol.
4865         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4866         with struct block_symbol.
4867         (resolve_subexp, ada_resolve_function, sort_choices,
4868         user_select_syms, is_nonfunction, add_defn_to_vec,
4869         num_defns_collected, defns_collected,
4870         symbols_are_identical_enums, remove_extra_symbols,
4871         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4872         ada_lookup_symbol_list, ada_iterate_over_symbols,
4873         ada_lookup_encoded_symbol, get_var_value): Likewise.
4874         (ada_lookup_symbol): Return a block_symbol instead of a mere
4875         symbol.  Replace struct ada_symbol_info with struct
4876         block_symbol.
4877         (ada_lookup_symbol_nonlocal): Likewise.
4878         (standard_lookup): Make block passing explicit through
4879         lookup_symbol_in_language.
4880         * ada-tasks.c (get_tcb_types_info): Update the calls to
4881         lookup_symbol_in_language to extract the mere symbol out of the
4882         returned value.
4883         (ada_tasks_inferior_data_sniffer): Likewise.
4884         * ax-gdb.c (gen_static_field): Likewise for the call to
4885         lookup_symbol.
4886         (gen_maybe_namespace_elt): Deal with struct block_symbol from
4887         lookup functions.
4888         (gen_expr): Likewise.
4889         * c-exp.y: Likewise.  Remove uses of block_found.
4890         (lex_one_token, classify_inner_name, c_print_token): Likewise.
4891         (classify_name): Likewise.  Rename the "sym" local variable to
4892         "bsym".
4893         * c-valprint.c (print_unpacked_pointer): Likewise.
4894         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4895         "sym" parameter from struct symbol * to struct block_symbol.
4896         Use it to remove uses of block_found.  Deal with struct
4897         block_symbol from lookup functions.
4898         (gcc_convert_symbol): Likewise.  Update the call to
4899         convert_symbol_sym.
4900         * compile/compile-object-load.c (compile_object_load): Deal with
4901         struct block_symbol from lookup functions.
4902         * cp-namespace.c (cp_lookup_nested_symbol_1,
4903         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4904         cp_search_static_and_baseclasses,
4905         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4906         cp_lookup_symbol_imports_or_template,
4907         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4908         lookup_namespace_scope, cp_lookup_nonlocal,
4909         find_symbol_in_baseclass): Return struct block_symbol instead of
4910         mere symbols and deal with struct block_symbol from lookup
4911         functions.
4912         * cp-support.c (inspect_type, replace_typedefs,
4913         cp_lookup_rtti_type): Deal with struct block_symbol from
4914         lookup functions.
4915         * cp-support.h (cp_lookup_symbol_nonlocal,
4916         cp_lookup_symbol_from_namespace,
4917         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4918         Return struct block_symbol instead of mere symbols.
4919         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4920         push_module_name):
4921         Deal with struct block_symbol from lookup functions.  Remove
4922         uses of block_found.
4923         * eval.c (evaluate_subexp_standard): Update call to
4924         cp_lookup_symbol_namespace.
4925         * f-exp.y: Deal with struct block_symbol from lookup functions.
4926         Remove uses of block_found.
4927         (yylex): Likewise.
4928         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4929         lookup_enum, lookup_template_type, check_typedef): Deal with
4930         struct block_symbol from lookup functions.
4931         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4932         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4933         (gdbscm_lookup_global_symbol): Likewise.
4934         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4935         * go-exp.y: Likewise.  Remove uses of block_found.
4936         (package_name_p, classify_packaged_name, classify_name):
4937         Likewise.
4938         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4939         * jv-exp.y (push_variable): Likewise.
4940         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4941         * language.c (language_bool_type): Likewise.
4942         * language.h (struct language_defn): Update
4943         la_lookup_symbol_nonlocal to return a struct block_symbol rather
4944         than a mere symbol.
4945         * linespec.c (find_label_symbols): Deal with struct block_symbol
4946         from lookup functions.
4947         * m2-exp.y: Likewise.  Remove uses of block_found.
4948         (yylex): Likewise.
4949         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4950         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4951         * p-exp.y: Likewise.  Remove uses of block_found.
4952         (yylex): Likewise.
4953         * p-valprint.c (pascal_val_print): Likewise.
4954         * parse.c (write_dollar_variable): Likewise.  Remove uses of
4955         block_found.
4956         * parser-defs.h (struct symtoken): Turn the SYM field into a
4957         struct block_symbol.
4958         * printcmd.c (address_info): Deal with struct block_symbol from
4959         lookup functions.
4960         * python/py-frame.c (frapy_read_var): Likewise.
4961         * python/py-symbol.c (gdbpy_lookup_symbol,
4962         gdbpy_lookup_global_symbol): Likewise.
4963         * skip.c (skip_function_command): Likewise.
4964         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4965         block_symbol instead of a mere symbol.
4966         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4967         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4968         * solib.c (solib_global_lookup): Likewise.
4969         * solist.h (solib_global_lookup): Likewise.
4970         (struct target_so_ops): Update lookup_lib_global_symbol to
4971         return a struct block_symbol rather than a mere symbol.
4972         * source.c (select_source_symtab): Deal with struct block_symbol
4973         from lookup functions.
4974         * stack.c (print_frame_args, iterate_over_block_arg_vars):
4975         Likewise.
4976         * symfile.c (set_initial_language): Likewise.
4977         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4978         block_symbol.
4979         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4980         (struct symbol_cache_slot): Turn the FOUND field into a struct
4981         block_symbol.
4982         (block_found): Remove.
4983         (eq_symbol_entry): Update to deal with struct block_symbol in
4984         cache slots.
4985         (symbol_cache_lookup): Return a struct block_symbol rather than
4986         a mere symbol.
4987         (symbol_cache_mark_found): Add a BLOCK parameter to fill
4988         appropriately the cache slots.  Update callers.
4989         (symbol_cache_dump): Update cache slots handling to the type
4990         change.
4991         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4992         lookup_symbol_aux, lookup_local_symbol,
4993         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4994         lookup_symbol_in_objfile_symtabs,
4995         lookup_symbol_in_objfile_from_linkage_name,
4996         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4997         lookup_symbol_in_static_block, lookup_static_symbol,
4998         lookup_global_symbol):
4999         Return a struct block_symbol rather than a mere symbol.  Deal
5000         with struct block_symbol from other lookup functions.  Remove
5001         uses of block_found.
5002         (lookup_symbol_in_block): Remove uses of block_found.
5003         (struct global_sym_lookup_data): Turn the RESULT field into a
5004         struct block_symbol.
5005         (lookup_symbol_global_iterator_cb): Update references to the
5006         RESULT field.
5007         (search_symbols): Deal with struct block_symbol from lookup
5008         functions.
5009         * symtab.h (struct block_symbol): New structure.
5010         (block_found): Remove.
5011         (lookup_symbol_in_language, lookup_symbol,
5012         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5013         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5014         lookup_global_symbol_from_objfile): Return a struct block_symbol
5015         rather than just a mere symbol.  Update comments to remove
5016         mentions of block_found.
5017         * valops.c (find_function_in_inferior,
5018         value_struct_elt_for_reference, value_maybe_namespace_elt,
5019         value_of_this):  Deal with struct block_symbol from lookup
5020         functions.
5021         * value.c (value_static_field, value_fn_field): Likewise.
5022
5023 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5024
5025         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5026         instead of integer.
5027
5028 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5029             Pedro Alves  <palves@redhat.com>
5030
5031         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5032         type or value instead of integer.
5033         (aarch64_linux_insert_watchpoint): Likewise.
5034         (aarch64_linux_remove_watchpoint): Likewise.
5035         * ada-lang.c (ada_op_print_tab): Likewise.
5036         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5037         (amd64_linux_syscall_record_common): Likewise.
5038         * arch-utils.c (target_byte_order_user): Likewise.
5039         (default_byte_order): Likewise.
5040         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5041         (arm_linux_get_hwbp_type): Likewise.
5042         (arm_linux_hw_watchpoint_initialize): Likewise.
5043         (arm_linux_insert_watchpoint): Likewise.
5044         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5045         (arm_linux_syscall_record): Likewise.
5046         * breakpoint.c (update_watchpoint): Likewise.
5047         (breakpoint_here_p): Likewise.
5048         (bpstat_print): Likewise.
5049         (enable_breakpoint_disp): Likewise.
5050         * c-lang.c (c_op_print_tab): Likewise.
5051         * cli/cli-decode.c (add_info_alias): Likewise.
5052         * d-lang.c (d_op_print_tab): Likewise.
5053         * eval.c (evaluate_subexp_standard): Likewise.
5054         * f-exp.y (dot_ops): Likewise.
5055         (f77_keywords): Likewise.
5056         * f-lang.c (f_op_print_tab): Likewise.
5057         * go-lang.c (go_op_print_tab): Likewise.
5058         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5059         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5060         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5061         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5062         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5063         (struct scm_from_stringn_data): Likewise.
5064         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5065         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5066         (ia64_linux_remove_watchpoint): Likewise.
5067         (ia64_linux_can_use_hw_breakpoint): Likewise.
5068         * infrun.c (print_stop_event): Likewise.
5069         * jv-lang.c (java_op_print_tab): Likewise.
5070         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5071         * linux-nat.h (struct lwp_info): Likewise.
5072         * linux-thread-db.c (enable_thread_event): Likewise.
5073         * m2-lang.c (m2_op_print_tab): Likewise.
5074         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5075         (mi_cmd_stack_list_variables): Likewise.
5076         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5077         * mi/mi-out.c (mi_table_begin): Likewise.
5078         (mi_table_header): Likewise.
5079         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5080         (mips_linux_insert_watchpoint): Likewise.
5081         (mips_linux_remove_watchpoint): Likewise.
5082         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5083         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5084         (mips_linux_watch_type_to_irw): Likewise.
5085         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5086         (procfs_insert_hw_watchpoint): Likewise.
5087         (procfs_remove_hw_watchpoint): Likewise.
5088         (procfs_hw_watchpoint): Likewise.
5089         (procfs_can_use_hw_breakpoint): Likewise.
5090         (procfs_remove_hw_watchpoint): Likewise.
5091         (procfs_insert_hw_watchpoint): Likewise.
5092         * p-lang.c (pascal_op_print_tab): Likewise.
5093         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5094         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5095         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5096         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5097         (procfs_insert_watchpoint): Likewise.
5098         (procfs_remove_watchpoint): Likewise.
5099         * psymtab.c (recursively_search_psymtabs): Likewise.
5100         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5101         (m32r_insert_watchpoint): Likewise.
5102         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5103         (mips_insert_watchpoint): Likewise.
5104         (mips_remove_watchpoint): Likewise.
5105         * remote.c (watchpoint_to_Z_packet): Likewise.
5106         (remote_insert_watchpoint): Likewise.
5107         (remote_remove_watchpoint): Likewise.
5108         (remote_check_watch_resources): Likewise.
5109         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5110         (s390_remove_watchpoint): Likewise.
5111         (s390_can_use_hw_breakpoint): Likewise.
5112         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5113         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5114         * target.h (struct target_ops): Likewise.
5115         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5116         * ui-out.c (struct ui_out_hdr): Likewise.
5117         (append_header_to_list): Likewise.
5118         (get_next_header): Likewise.
5119         (verify_field): Likewise.
5120         (ui_out_begin): Likewise.
5121         (ui_out_field_int): Likewise.
5122         (ui_out_field_fmt_int): Likewise.
5123         (ui_out_field_skip): Likewise.
5124         (ui_out_field_string): Likewise.
5125         (ui_out_field_fmt): Likewise.
5126         * varobj.c (new_variable): Likewise.
5127         * x86-nat.c (x86_insert_watchpoint): Likewise.
5128         (x86_remove_watchpoint): Likewise.
5129         (x86_can_use_hw_breakpoint): Likewise.
5130         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5131         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5132         previously anonymous enumeration type..
5133         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5134         value.
5135         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5136         (target_debug_print_enum_bptype): New.
5137         * target-delegates.c: Regenerate.
5138
5139 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5140
5141         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5142         already says and disallow non-stack memory writes in the prologue.
5143
5144 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5145
5146         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5147         reflect how current GCC emits stack overflow checks.  Match
5148         both trap and break instructions for backward compatbility.
5149         Disallow other trap and break instructions in the prologue.
5150
5151 2015-07-30  Pedro Alves  <palves@redhat.com>
5152
5153         PR threads/18600
5154         * linux-nat.c (wait_lwp): Report to the core when thread group
5155         leader exits.
5156
5157 2015-07-30  Pedro Alves  <palves@redhat.com>
5158             Simon Marchi  <simon.marchi@ericsson.com>
5159
5160         PR threads/18600
5161         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5162         mark the new thread as resumed.  Remove STOPPING parameter.
5163         (wait_lwp): Adjust call to linux_handle_extended_wait.
5164         (linux_nat_filter_event): Adjust call to
5165         linux_handle_extended_wait.
5166         (resume_stopped_resumed_lwps): Add debug output.
5167
5168 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5169
5170         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5171         isize argument.
5172         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5173         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5174         gdbarch_fast_tracepoint_valid_at.
5175         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5176         * gdbarch.h: Regenerate.
5177         * gdbarch.c: Regenerate.
5178         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5179         argument.  Do not set it.
5180         * remote.c (remote_download_tracepoint): Adjust call to
5181         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5182         the instruction length.
5183
5184 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5185
5186         * arm-tdep.h (enum gdb_regnum): Move it to ...
5187         * arch/arm.h: ... here.  New file.
5188         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5189
5190 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5191
5192         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5193         Change its type to int *.
5194         (decode_br): Rename link argument to is_blr.  Change its type to
5195         int *.
5196         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5197         int *.
5198         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5199         int *.  Set is_tbnz to either 1 or 0.
5200         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5201         new variables is_cbnz and is_tbnz.  Adjust call to
5202         aarch64_decode_cb and aarch64_decode_tb.
5203
5204 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5205
5206         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5207         parameter.
5208         (mips_linux_new_thread): Likewise.
5209         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5210
5211 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5212
5213         * top.c: Include "tui/tui.h".
5214         (undo_terminal_modifications_before_exit): New static function.
5215         (quit_force): Use it.
5216
5217 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5218
5219         * target.c (terminal_state): Initialize to terminal_is_ours.
5220
5221 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5222
5223         PR record/18691
5224         * dcache.c (dcache_read_memory_partial): Call
5225         raw_memory_xfer_partial.
5226         * target.c (raw_memory_xfer_partial): Make it non-static.
5227         * target.h (raw_memory_xfer_partial): Declare.
5228
5229 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5230
5231         * c-valprint.c (c_val_print_array): Consider addressable memory
5232         unit size.
5233         (c_val_print_ptr): Likewise.
5234         (c_val_print_int): Likewise.
5235         * findvar.c (read_frame_register_value): Likewise.
5236         * valarith.c (find_size_for_pointer_math): Likewise.
5237         (value_ptrdiff): Likewise.
5238         (value_subscripted_rvalue): Likewise.
5239         * valops.c (read_value_memory): Likewise (and rename variables).
5240         (value_assign): Likewise.
5241         (value_repeat): Likewise.
5242         (value_array): Likewise.
5243         (value_slice): Likewise.
5244         * valprint.c (generic_val_print_ptr): Likewise.
5245         (generic_val_print_enum): Likewise.
5246         (generic_val_print_bool): Likewise.
5247         (generic_val_print_int): Likewise.
5248         (generic_val_print_char): Likewise.
5249         (generic_val_print_float): Likewise.
5250         (generic_val_print_decfloat): Likewise.
5251         (generic_val_print_complex): Likewise.
5252         (val_print_scalar_formatted): Likewise.
5253         (val_print_array_elements): Likewise.
5254         * value.c (set_value_parent): Likewise.
5255         (value_contents_copy_raw): Likewise.
5256         (set_internalvar_component): Likewise.
5257         (value_primitive_field): Likewise.
5258         (value_fetch_lazy): Likewise.
5259         * value.h (read_value_memory): Update comment.
5260
5261 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5262
5263         * value.c (get_value_arch): New function.
5264         * value.h (get_value_arch): New declaration.
5265
5266 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5267
5268         * value.c (struct value): Update comments.
5269
5270 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5271
5272         * gdbtypes.c (type_length_units): New function.
5273         * gdbtypes.h (type_length_units): New declaration.
5274         (struct type) <length>: Update comment.
5275
5276 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5277
5278         * valprint.c (generic_val_print): Factor out complex
5279         printing code to ...
5280         (generic_val_print_complex): ... this new function.
5281
5282 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5283
5284         * valprint.c (generic_val_print): Factor out decfloat
5285         printing code to ...
5286         (generic_val_print_decfloat): ... this new function.
5287
5288 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5289
5290         * valprint.c (generic_val_print): Factor out float
5291         printing code to ...
5292         (generic_val_print_float): ... this new function.
5293
5294 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5295
5296         * valprint.c (generic_val_print): Factor out char
5297         printing code to ...
5298         (generic_val_print_char): ... this new function.
5299
5300 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5301
5302         * valprint.c (generic_val_print): Factor out integer
5303         printing code to ...
5304         (generic_val_print_int): ... this new function.
5305
5306 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5307
5308         * valprint.c (generic_val_print): Factor out bool
5309         printing code to ...
5310         (generic_val_print_bool): ... this new function.
5311
5312 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5313
5314         * valprint.c (generic_val_print): Factor out function/method
5315         printing code to ...
5316         (generic_val_print_func): ... this new function.
5317
5318 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5319
5320         * valprint.c (generic_val_print): Factor out flags
5321         printing code to ...
5322         (generic_val_print_flags): ... this new function.
5323
5324 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5325
5326         * valprint.c (generic_val_print): Factor out enum
5327         printing code to ...
5328         (generic_val_print_enum): ... this new function.
5329
5330 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5331
5332         * valprint.c (generic_val_print): Factor out reference
5333         printing code to ...
5334         (generic_val_print_ref): ... this new function.
5335
5336 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5337
5338         * valprint.c (generic_val_print): Factor out memberptr
5339         printing code to ...
5340         (generic_val_print_memberptr): ... this new function.
5341
5342 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5343
5344         * valprint.c (generic_val_print): Factor out pointer
5345         printing code to ...
5346         (generic_val_print_ptr): ... this new function.
5347
5348 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5349
5350         * valprint.c (generic_val_print): Factor out array
5351         printing code to ...
5352         (generic_val_print_array): ... this new function.
5353
5354 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5355
5356         * valprint.c (generic_val_print): Factor out
5357         print_unpacked_pointer code to ...
5358         (print_unpacked_pointer): ... this new function.
5359
5360 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5361
5362         * event-top.c (handle_sigterm): Don't inspect
5363         target_can_async_p.  Always set the quit flag and always mark
5364         the async signal handler.
5365
5366 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5367
5368         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5369
5370 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5371
5372         * remote.c (read_ptid): Return null_ptid when no thread id
5373         is found.
5374         (remote_current_thread): Add log warning for malformed
5375         qC reply.
5376         (remote_start_remote): Add log warning when current thread
5377         not found.
5378
5379 2015-07-24  Pedro Alves  <palves@redhat.com>
5380
5381         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5382         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5383         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5384
5385 2015-07-24  Pedro Alves  <palves@redhat.com>
5386
5387         PR gdb/18717
5388         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5389         is resumed, and extend the debug log.
5390
5391 2015-07-24  Pedro Alves  <palves@redhat.com>
5392
5393         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5394
5395 2015-07-24  Pedro Alves  <palves@redhat.com>
5396
5397         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5398         sys/ptrace.h.
5399         * alpha-linux-nat.c: Likewise.
5400         * amd64-linux-nat.c: Likewise.
5401         * arm-linux-nat.c: Likewise.
5402         * hppa-linux-nat.c: Likewise.
5403         * i386-linux-nat.c: Likewise.
5404         * ia64-linux-nat.c: Likewise.
5405         * linux-fork.c: Likewise.
5406         * linux-nat.c: Likewise.
5407         * m32r-linux-nat.c: Likewise.
5408         * m68klinux-nat.c: Likewise.
5409         * mips-linux-nat.c: Likewise.
5410         * nat/linux-btrace.c: Likewise.
5411         * nat/linux-ptrace.c: Likewise.
5412         * nat/linux-ptrace.h
5413         * nat/mips-linux-watch.c: Likewise.
5414         * nat/x86-linux-dregs.c: Likewise.
5415         * ppc-linux-nat.c: Likewise.
5416         * s390-linux-nat.c: Likewise.
5417         * spu-linux-nat.c: Likewise.
5418         * tilegx-linux-nat.c: Likewise.
5419         * x86-linux-nat.c: Likewise.
5420         * xtensa-linux-nat.c: Likewise.
5421
5422 2015-07-24  Pedro Alves  <palves@redhat.com>
5423
5424         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5425         __ptrace_request as first parameter type instead of int.
5426         (PTRACE_TYPE_ARG1): Define.
5427         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5428         that casts first argument to PTRACE_TYPE_ARG1.
5429         * config.in: Regenerate.
5430         * configure: Regenerate.
5431
5432 2015-07-24  Pedro Alves  <palves@redhat.com>
5433
5434         * gdb_ptrace.h: Move ...
5435         * nat/gdb_ptrace.h: ... here.
5436         * inf-ptrace.c: Adjust.
5437
5438 2015-07-24  Pedro Alves  <palves@redhat.com>
5439
5440         * acinclude.m4: Include ptrace.m4.
5441         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5442         * ptrace.m4: ... to this new file.
5443
5444 2015-07-23  Doug Evans  <dje@google.com>
5445
5446         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5447         (load_cu): Handle dummy CUs.
5448         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5449         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5450
5451 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5452
5453         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5454         documentation to say that it returns a list rather than
5455         a FrozenSet.
5456         (linetable_object_methods): Update the docstring of the
5457         "source_line" entry.
5458
5459 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5460
5461         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5462         type to the recursive call instead of the original (maybe
5463         TYPE_CODE_TYPEDEF) type.
5464
5465 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5466
5467         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5468         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5469         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5470
5471 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5472
5473         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5474         Move it to nat/aarch64-linux-hw-point.c.
5475         (aarch64_linux_child_post_startup_inferior): Update.
5476         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5477         New function.
5478         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5479         Declare it.
5480
5481 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5482
5483         * common/btrace-common.c (btrace_data_append): Change case label.
5484
5485 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5486
5487         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5488         Re-indent the code.
5489         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5490         "unsigned long long".
5491
5492 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5493
5494         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5495         to be set for SEC_ALLOC sections too.
5496
5497 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5498
5499         * Makefile.in (HFILES_NO_SRCDIR): Add
5500         nat/aarch64-linux-hw-point.h.
5501         (aarch64-linux-hw-point.o): New rule.
5502         * nat/aarch64-linux-hw-point.h: New file.
5503         * nat/aarch64-linux-hw-point.c: New file.
5504         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5505         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5506         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5507         (AARCH64_HWP_ALIGNMENT): Likewise.
5508         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5509         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5510         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5511         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5512         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5513         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5514         (struct aarch64_debug_reg_state): Likewise.
5515         (struct arch_lwp_info): Likewise.
5516         (aarch64_linux_set_debug_regs): Likewise.
5517         (aarch64_notify_debug_reg_change): Remove static.
5518         (aarch64_align_watchpoint): Likewise.
5519         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5520         (aarch64_watchpoint_length): Likewise.
5521         (aarch64_point_encode_ctrl_reg): Likewise
5522         (aarch64_point_is_aligned): Likewise.
5523         (aarch64_dr_state_insert_one_point): Likewise.
5524         (aarch64_dr_state_remove_one_point): Likewise.
5525         (aarch64_handle_breakpoint): Likewise.
5526         (aarch64_handle_aligned_watchpoint): Likewise.
5527         (aarch64_handle_unaligned_watchpoint): Likewise.
5528         (aarch64_handle_watchpoint): Likewise.
5529         * config/aarch64/linux.mh (NAT_FILE): Add
5530         aarch64-linux-hw-point.o.
5531
5532 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5533
5534         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5535         state and don't call aarch64_get_debug_reg_state.  All callers
5536         update.
5537         (aarch64_linux_insert_hw_breakpoint): Call
5538         aarch64_get_debug_reg_state earlier.
5539         (aarch64_linux_remove_hw_breakpoint): Likewise.
5540         (aarch64_handle_aligned_watchpoint): Add argument state and
5541         don't call aarch64_get_debug_reg_state.  All callers update.
5542         (aarch64_handle_unaligned_watchpoint): Likewise.
5543         (aarch64_handle_watchpoint): Add argument state.
5544         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5545         earlier.
5546         (aarch64_linux_remove_watchpoint): Likewise.
5547
5548 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5549
5550         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5551         debug_printf.
5552         (aarch64_handle_unaligned_watchpoint): Likewise.
5553
5554 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5555
5556         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5557         argument type's type to 'enum target_hw_bp_type'.
5558         (aarch64_dr_state_remove_one_point): Likewise.
5559         (aarch64_handle_breakpoint): Likewise.
5560         (aarch64_linux_insert_hw_breakpoint): Likewise.
5561         (aarch64_linux_remove_hw_breakpoint): Likewise.
5562         (aarch64_handle_aligned_watchpoint): Likewise.
5563
5564 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5565
5566         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5567         ptid_get_pid instead of get_thread_id.
5568
5569 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5570
5571         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5572         (add_current_inferior_and_thread): Don't initialise ptid.
5573
5574 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5575
5576         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5577         unavailable if invalid.
5578
5579 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5580
5581         Revert the previous 6 commits:
5582         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5583         Move gdb_regex* to common/
5584         Prepare linux_find_memory_regions_full & co. for move
5585         Move linux_find_memory_regions_full & co.
5586         gdbserver build-id attribute generator
5587         Validate symbol file using build-id
5588
5589 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5590             Jan Kratochvil  <jan.kratochvil@redhat.com>
5591
5592         Validate symbol file using build-id.
5593         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5594         and 'show validate-build-id'.  Add build-id attribute.
5595         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5596         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5597         * solib-frv.c (_initialize_frv_solib): Ditto.
5598         * solib-spu.c (set_spu_solib_ops): Ditto.
5599         * solib-svr4.c: Include rsp-low.h.
5600         (NOTE_GNU_BUILD_ID_NAME): New define.
5601         (svr4_validate): New function.
5602         (svr4_copy_library_list): Duplicate field build_id.
5603         (library_list_start_library): Parse 'build-id' attribute.
5604         (svr4_library_attributes): Add 'build-id' attribute.
5605         (_initialize_svr4_solib): Assign validate value.
5606         * solib-target.c (solib.h): Include.
5607         (_initialize_solib_target): Assign validate value.
5608         * solib.c (validate_build_id, show_validate_build_id): New.
5609         (solib_map_sections): Use ops->validate.
5610         (clear_so): Free build_id.
5611         (default_solib_validate): New function.
5612         (_initialize_solib): Add "validate-build-id".
5613         * solib.h (default_solib_validate): New declaration.
5614         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5615         (target_so_ops): New field 'validate'.
5616
5617 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5618             Jan Kratochvil  <jan.kratochvil@redhat.com>
5619
5620         gdbserver build-id attribute generator.
5621         * features/library-list-svr4.dtd (library-list-svr4): New
5622         'build-id' attribute.
5623
5624 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5625             Jan Kratochvil  <jan.kratochvil@redhat.com>
5626
5627         Move linux_find_memory_regions_full & co.
5628         * linux-tdep.c (nat/linux-maps.h): Include.
5629         (gdb_regex.h): Remove the include.
5630         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5631         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5632         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5633         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5634         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5635         and target/target.h.
5636         (struct smaps_vmflags, read_mapping, decode_vmflags)
5637         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5638         (linux_find_memory_regions_full): Move from linux-tdep.c.
5639         * nat/linux-maps.h (read_mapping): New declaration.
5640         (linux_find_memory_region_ftype, enum filterflags): Moved from
5641         linux-tdep.c.
5642         (linux_find_memory_regions_full): New declaration.
5643         * target.c (target/target-utils.h): Include.
5644         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5645         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5646         definitions to target/target-utils.c.
5647         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5648         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5649         from target.c.
5650         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5651         (read_alloc): New declaration.
5652         (read_stralloc_func_ftype): New typedef.
5653         (read_stralloc): New declaration.
5654         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5655
5656 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5657             Jan Kratochvil  <jan.kratochvil@redhat.com>
5658
5659         Prepare linux_find_memory_regions_full & co. for move.
5660         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5661         (linux_find_memory_regions_full): Change signature and prepare
5662         for moving to linux-maps.
5663         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5664         (linux_find_memory_regions_thunk): New.
5665         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5666         (linux_find_memory_regions_gdb): New.
5667         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5668         (linux_make_mappings_corefile_notes): Use
5669         linux_find_memory_regions_gdb.
5670         * target.c (read_alloc_pread_ftype): New typedef.
5671         (target_fileio_read_alloc_1_pread): New function.
5672         (read_alloc): Refactor from target_fileio_read_alloc_1.
5673         (read_stralloc_func_ftype): New typedef.
5674         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5675         (read_stralloc): Refactored from target_fileio_read_stralloc.
5676         (target_fileio_read_stralloc): New implementation, use read_stralloc.
5677
5678 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5679
5680         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5681         common/gdb_regex.h.
5682         (COMMON_OBS): Add gdb_regex.o.
5683         (gdb_regex.o): New.
5684         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5685         --without-included-regex and USE_INCLUDED_REGEX.
5686         * common/gdb_regex.c: New file from utils.c functions.
5687         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5688         file wrapping define name.
5689         * configure: Rebuilt.
5690         * configure.ac (gdb_use_included_regex, --without-included-regex)
5691         (USE_INCLUDED_REGEX): Move them to common/common.m4.
5692         * gdb_regex.h: Move it to common/gdb_regex.h.
5693         * utils.c: Remove include gdb_regex.h.
5694         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5695         (compile_rx_or_error): Move them to common/gdb_regex.c.
5696
5697 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5698             Jan Kratochvil  <jan.kratochvil@redhat.com>
5699
5700         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5701         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5702         common/target-utils.h.
5703         (COMMON_OBS): Add target-utils.o.
5704         (linux-maps.o, target-utils.o): New.
5705         * target/target-utils.c: New file.
5706         * target/target-utils.h: New file.
5707         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5708         * config/i386/linux64.mh (NATDEPFILES): Ditto.
5709         * nat/linux-maps.c: New file.
5710         * nat/linux-maps.h: New file.
5711
5712 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
5713             Pedro Alves <palves@redhat.com>
5714
5715         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5716         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5717         (perf_event_read_bts): Change the type of SIZE and READ.
5718         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5719         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
5720         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
5721         mmap page.
5722         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
5723         buffer size to UINT_MAX.
5724         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5725         DATA_TAIL.
5726         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5727         <last_head>: Change type.
5728         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5729         * common/btrace-common.c (btrace_data_append): Change the type of
5730         SIZE.
5731         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
5732         check.
5733
5734 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
5735
5736         * gdbtypes.h (CHECK_TYPEDEF): Remove.
5737         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5738         with check_typedef.
5739         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5740         (ada_array_length): Likewise.
5741         (find_parallel_type_by_descriptive_type): Likewise.
5742         (ada_check_typedef): Likewise.
5743         * arm-tdep.c (arm_return_in_memory): Likewise.
5744         * ax-gdb.c (gen_trace_static_fields): Likewise.
5745         (gen_struct_ref_recursive): Likewise.
5746         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5747         (variable: block COLONCOLON name): Likewise.
5748         (qualified_name: TYPENAME COLONCOLON name): Likewise.
5749         * c-lang.c (classify_type): Likewise.
5750         * c-typeprint.c (c_print_type): Likewise.
5751         (c_print_typedef): Likewise.
5752         (c_type_print_base): Likewise.
5753         * c-valprint.c (c_val_print): Likewise.
5754         * compile/compile-c-types.c (convert_type): Likewise.
5755         * compile/compile-object-load.c (get_out_value_type): Likewise.
5756         * completer.c (add_struct_fields): Likewise.
5757         (expression_completer): Likewise.
5758         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5759         (cp_lookup_nested_symbol_1): Likewise.
5760         (cp_lookup_nested_symbol): Likewise.
5761         * cp-valprint.c (cp_print_value_fields): Likewise.
5762         (cp_print_static_field): Likewise.
5763         * d-valprint.c (d_val_print): Likewise.
5764         * eval.c (evaluate_subexp_standard): Likewise.
5765         (evaluate_subexp_for_sizeof): Likewise.
5766         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5767         * f-typeprint.c (f_type_print_base): Likewise.
5768         * f-valprint.c (f_val_print): Likewise.
5769         * gdbtypes.c (get_discrete_bounds): Likewise.
5770         (create_array_type_with_stride): Likewise.
5771         (type_name_no_tag_or_error): Likewise.
5772         (lookup_struct_elt_type): Likewise.
5773         (get_unsigned_type_max): Likewise.
5774         (internal_type_vptr_fieldno): Likewise.
5775         (set_type_vptr_fieldno): Likewise.
5776         (internal_type_vptr_basetype): Likewise.
5777         (set_type_vptr_basetype): Likewise.
5778         (get_vptr_fieldno): Likewise.
5779         (is_integral_type): Likewise.
5780         (is_scalar_type): Likewise.
5781         (is_scalar_type_recursive): Likewise.
5782         (distance_to_ancestor): Likewise.
5783         (is_unique_ancestor_worker): Likewise.
5784         (check_types_equal): Likewise.
5785         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5786
5787 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5788
5789         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5790         also test for language_d.
5791         (dwarf2_compute_name): Likewise.
5792         (read_func_scope): Likewise.
5793         (read_structure_type): Likewise.
5794         (new_symbol_full): Likewise.
5795         (determine_prefix): Likewise.
5796         (read_import_statement): Use dot as the separator for language_d.
5797         (typename_concat): Likewise, but don't prefix the D main function.
5798
5799 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
5800
5801         * nat/linux-namespaces.c (setns): Rename from this ...
5802         (do_setns): ... to this.  Support calling setns if it exists.
5803         (mnsh_handle_setns): Call do_setns.
5804
5805 2015-07-13  Yao Qi  <yao.qi@linaro.org>
5806
5807         * exec.c (exec_file_attach): Add period at the end of error
5808         message.
5809
5810 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
5811
5812         * tui/tui-win.c (window_name_completer): New function.
5813         (focus_completer): Call window_name_completer.  All old content
5814         moved into window_name_completer.
5815         (winheight_completer): New function.
5816         (_initialize_tui_win): Rename variable.  Add completer to
5817         winheight command.  Update doc string on winheight.
5818
5819 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
5820
5821         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5822         all nios2 mach variants.
5823
5824 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
5825
5826         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5827         of target_read_memory.
5828
5829 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5830
5831         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5832         string copy.
5833         (parse_scrolling_args): Likewise.
5834
5835 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5836
5837         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5838         names in this function.
5839
5840 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5841
5842         * tui/tui-data.h (SRC_NAME): Convert to lower case.
5843         (CMD_NAME): Likewise.
5844         (DATA_NAME): Likewise.
5845         (DISASSEM_NAME): Likewise.
5846         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5847         (tui_set_win_height): Likewise.
5848         (parse_scrolling_args): Likewise.
5849
5850 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
5851
5852         * record-btrace.c (record_btrace_goto_begin)
5853         (record_btrace_goto_end, record_btrace_goto): Move call to
5854         print_stack_frame ...
5855         (record_btrace_set_replay): ... here.  Set stop_pc.
5856         * record-full.c (record_full_goto_entry): Set stop_pc.
5857
5858 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5859
5860         * NEWS: Mention support for tracepoints on aarch64-linux.
5861
5862 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5863
5864         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5865         function.  Return 1.
5866         (the_low_target): Install it.
5867
5868 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5869
5870         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5871         * gdb.trace/collection.exp: Likewise.
5872         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5873         * gdb.trace/mi-trace-unavailable.exp: Likewise.
5874         * gdb.trace/report.exp: Likewise.
5875         * gdb.trace/trace-break.exp: Likewise.
5876         * gdb.trace/unavailable.exp: Likewise.
5877         * gdb.trace/while-dyn.exp: Likewise.
5878
5879 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5880
5881         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5882         (aarch64_gen_return_address): New function.
5883         (aarch64_gdbarch_init): Hook it.
5884
5885 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5886
5887         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5888         swallow NOT_AVAILABLE_ERROR.
5889         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5890         available_p is not set.
5891         (aarch64_stub_frame_unwind_stop_reason): New function.
5892         (aarch64_stub_unwind): Install it.
5893
5894 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5895
5896         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5897         field.
5898         (aarch64_make_prologue_cache_1): New function, factored out from
5899         aarch64_make_prologue_cache.  Do not allocate cache.  Set
5900         available_p.
5901         (aarch64_make_prologue_cache): Reimplement wrapping
5902         aarch64_make_prologue_cache_1, and swallowing
5903         NOT_AVAILABLE_ERROR.
5904         (aarch64_prologue_frame_unwind_stop_reason): New function.
5905         Return UNWIND_UNAVAILABLE if available_p is not set.
5906         (aarch64_prologue_unwind): Install it.
5907         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5908         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
5909         frame_id_build_unavailable_stack if available_p is not set.
5910
5911 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5912
5913         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5914         fields.
5915         (aarch64_scan_prologue): Set prev_pc.
5916         (aarch64_make_prologue_cache): Set func.
5917         (aarch64_make_stub_cache): Set prev_pc.
5918         (aarch64_prologue_this_id): Remove local variables id, pc and
5919         func.  Read prev_pc and func from cache.
5920         (aarch64_stub_this_id): Read prev_pc from cache.
5921
5922 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5923
5924         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
5925         argument this_cache.  Remove unused local variables reg and
5926         unwound_fp.  Return early if this_cache is already set.  Set
5927         this_cache.
5928         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5929
5930 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5931
5932         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5933         New argument this_cache.  Return early if this_cache is already
5934         set.  Set this_cache.
5935         (aarch64_prologue_this_id): Update call to
5936         aarch64_make_prologue_cache.
5937         (aarch64_prologue_prev_register): Likewise.
5938         (aarch64_normal_frame_base): Likewise.
5939
5940 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5941
5942         * c-valprint.c (c_val_print): Factor out memberptr printing code
5943         from c_val_print to ...
5944         (c_val_print_memberptr): ... this new function.
5945
5946 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5947
5948         * c-valprint.c (c_val_print): Factor out int printing code to ...
5949         (c_val_print_int): ... this new function.
5950
5951 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5952
5953         * c-valprint.c (c_val_print): Factor out struct and union
5954         printing code to ...
5955         (c_val_print_struct): ... this new function ...
5956         (c_val_print_union): ... and this new function.
5957
5958 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5959
5960         * c-valprint.c (c_val_print): Factor out pointer printing code
5961         to ...
5962         (c_val_print_ptr): ... this new function.
5963
5964 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5965
5966         * c-valprint.c (c_valprint): Factor our array printing code from
5967         c_val_print to ...
5968         (c_val_print_array): ... this new function.
5969
5970 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5971
5972         * c-valprint.c (c_val_print): Factor out pointer printing code
5973         to ...
5974         (print_unpacked_pointer): ... this new function.
5975
5976 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5977
5978         * c-valprint.c (c_val_print): Remove an assignment to i and move
5979         its declaration.
5980
5981 2015-07-09  Yao Qi  <yao.qi@linaro.org>
5982
5983         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5984         argument ptid.  Update comments.  Caller update.
5985
5986 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
5987
5988         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5989         mnt packets.
5990
5991 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
5992
5993         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5994
5995 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
5996
5997         * progspace.c (delete_program_space): Add missing spaces.
5998
5999 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6000
6001         * inferior.c (delete_inferior_1): Rename to ...
6002         (delete_inferior): ..., remove 'silent' parameter, delete
6003         program space when unused and remove call to prune_program_spaces.
6004         Remove the old, unused, delete_inferior.
6005         (delete_inferior_silent): Remove.
6006         (prune_inferiors): Change call from delete_inferior_1 to
6007         delete_inferior and remove 'silent' parameter. Remove call to
6008         prune_program_spaces.
6009         (remove_inferior_command): Idem.
6010         * inferior.h (delete_inferior_1): Rename to...
6011         (delete_inferior): ..., remove 'silent' parameter and remove the
6012         original delete_inferior.
6013         (delete_inferior_silent): Remove.
6014         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6015         delete_inferior_1 to delete_inferior and remove 'silent'
6016         parameter.
6017         * progspace.c (prune_program_spaces): Remove.
6018         (pspace_empty_p): Rename to...
6019         (program_space_empty_p): ... and make non-static.
6020         (delete_program_space): New.
6021         * progspace.h (prune_program_spaces): Remove declaration.
6022         (program_space_empty_p): New declaration.
6023         (delete_program_space): New declaration.
6024         * monitor.c (monitor_close): Replace call to
6025         delete_thread_silent and delete_inferior_silent with
6026         discard_all_inferiors.
6027
6028 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6029
6030         * defs.h (deprecated_register_changed_hook): Remove prototype.
6031         * interps.c (clear_iterpreter_hooks): Remove reference to
6032         deprecated_register_changed_hook.
6033         * top.c (deprecated_register_changed_hook): Remove prototype.
6034         * valops.c (value_assign): Remove reference to
6035         deprecated_register_changed_hook.
6036         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6037         Add comment documenting the function.
6038         (tui_register_changed_observer): Define.
6039         (tui_install_hooks): Remove reference to
6040         deprecated_register_changed_hook.  Set
6041         tui_register_changed_observer.
6042         (tui_remove_hooks): Remove reference to
6043         deprecated_register_changed_hook.  Unset
6044         tui_register_changed_observer.
6045
6046 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6047
6048         PR compile/18484
6049         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6050
6051 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6052
6053         PR exp/18617
6054         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6055
6056 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6057
6058         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6059
6060 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6061
6062         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6063         Use safe_strerror() instead of strerror().
6064
6065 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6066
6067         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6068         * features/arm-with-m-fpa-layout.c: Regenerated.
6069         * features/arm-with-m-vfp-d16.xml: Likewise.
6070         * features/arm-with-m-vfp-d16.c: Regenerated.
6071         * features/arm-with-m.xml: Likewise.
6072         * features/arm-with-m.c: Regenerated.
6073         * features/arm-with-neon.xml: Likewise.
6074         * features/arm-with-neon.c: Regenerated.
6075         * features/arm-with-vfpv2.xml: Likewise.
6076         * features/arm-with-vfpv2.c: Regenerated.
6077         * features/arm-with-vfpv3.xml: Likewise.
6078         * features/arm-with-vfpv3.c: Regenerated.
6079
6080 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6081
6082         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6083         arm-linux-nat.c.
6084         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6085         elf/external.h.
6086         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6087         if target is 32-bit.
6088         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6089         if target is 32-bit.
6090         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6091         if target is 32-bit.
6092         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6093         if target is 32-bit.
6094         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6095         (aarch64_linux_read_description): Return the right target
6096         description.
6097         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6098         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6099         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6100         arm-linux-tdep.o.
6101
6102 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6103
6104         * aarch32-linux-nat.c: New file.
6105         * aarch32-linux-nat.h: New file.
6106         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6107         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6108         aarch32_gp_regcache_supply.
6109         (store_regs): Move code to aarch32-linux-nat.c.  Call
6110         aarch32_gp_regcache_collect.
6111         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6112         aarch32_vfp_regcache_supply.
6113         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6114         aarch32_vfp_regcache_collect.
6115         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6116
6117 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6118
6119         * arm-linux-nat.c (store_fpregister): Remove.
6120         (store_register): Likewise.
6121         (fetch_fpregister): Likewise.
6122         (fetch_register): Likewise.
6123         (arm_linux_store_inferior_registers): Call store_regs and
6124         store_fpregs instead.
6125         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6126         fetch_regs instead.
6127
6128 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6129
6130         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6131         and focus commands.
6132
6133 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6134
6135         * NEWS: Create a new section for the next release branch.
6136         Rename the section of the current branch, now that it has
6137         been cut.
6138
6139 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6140
6141         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6142         * version.in: Bump version to 7.10.50.DATE-cvs.
6143
6144 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6145
6146         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6147         breakpoints in a special way.
6148         (remove_breakpoint): Likewise.
6149         (mark_breakpoints_out): Likewise.
6150
6151 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6152
6153         * doc/gdb.texinfo (TUI): Add comma after @xref.
6154
6155 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6156
6157         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6158         instead of casting the structure type.
6159
6160 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6161
6162         * valops.c (search_struct_field): Remove OFFSET parameter.
6163         (value_cast_structs): Adjust calls to search_struct_field.
6164         (value_struct_elt): Same.
6165         (find_overload_match): Same.
6166
6167 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6168
6169         * value.c (value_fetch_lazy): Update comment, change return
6170         value to void.
6171         * value.h (value_fetch_lazy): Change return value to void.
6172
6173 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6174
6175         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6176         (tui_win_name): Make parameter and result const.
6177         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6178
6179 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6180
6181         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6182         use printf_unfiltered.
6183         (set_mpx_cmd): Add missing trailing space to command string
6184         literal.
6185         (_initialize_i386_tdep): Give the "mpx" prefix command its
6186         correct name.
6187
6188 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6189
6190         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6191         (enum rx_frame_type): New.
6192         (struct rx_prologue): Add new field `frame_type'.
6193         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6194         parameter in the prologue struct.  Add code for recording
6195         locations of PC and PSW for fast interrupt and exception frames.
6196         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6197         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6198         (rx_frame_type): New function.
6199         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6200         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6201         `this_cache'.
6202         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6203         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6204         RX_FRAME_TYPE_FAST_INTERRUPT.
6205         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6206         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6207         (rx_frame_unwind): Use rx_frame_sniffer instead of
6208         default_frame_sniffer.
6209         (rx_frame_unwind): New unwinder.
6210         (rx_gdbarch_init): Register new unwinder.
6211
6212 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6213
6214         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6215         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6216         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6217         and RX_FPSW_REGNUM.
6218         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6219
6220 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6221
6222         Fix GCC false warning.
6223         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6224
6225 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6226
6227         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6228         typo in the debugging message.
6229
6230 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6231
6232         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6233         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6234         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6235         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6236         (btrace_maint_clear): New.
6237         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6238         (pt_print_packet, btrace_maint_decode_pt)
6239         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6240         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6241         (maint_btrace_packet_history_cmd)
6242         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6243         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6244         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6245         (maint_info_btrace_cmd, _initialize_btrace): New.
6246         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6247         (btrace_maint_packet_history, btrace_maint_info): New.
6248         (btrace_thread_info) <maint>: New.
6249         * NEWS: Announce it.
6250
6251 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6252
6253         * btrace.c (btrace_fetch): Append the new trace data.
6254         (btrace_clear): Clear the stored trace data.
6255         * btrace.h (btrace_thread_info) <data>: New.
6256         * common/btrace-common.h (btrace_data_clear)
6257         (btrace_data_append): New.
6258         * common/btrace-common.c (btrace_data_clear)
6259         (btrace_data_append): New.
6260
6261 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6262
6263         * nat/linux-btrace.c (linux_enable_bts): Check for
6264         PERF_ATTR_SIZE_VER5.
6265         Check for data_offset and data_size fields.  Use them.
6266
6267 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6268
6269         * NEWS: Announce new commands "record btrace pt" and "record pt".
6270         Announce new options "set|show record btrace pt buffer-size".
6271         * btrace.c: Include "rsp-low.h".
6272         Include "inttypes.h".
6273         (btrace_add_pc): Add forward declaration.
6274         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6275         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6276         (btrace_compute_ftrace_pt): New.
6277         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6278         (check_xml_btrace_version): Update version check.
6279         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6280         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6281         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6282         (btrace_pt_children): New.
6283         (btrace_children): Add support for "pt".
6284         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6285         (btrace_conf_children): Add support for "pt".
6286         * btrace.h: Include "intel-pt.h".
6287         (btrace_pt_error): New.
6288         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6289         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6290         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6291         (struct btrace_config_pt): New.
6292         (struct btrace_config)<pt>: New.
6293         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6294         (struct btrace_data)<pt>: New.
6295         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6296         (pt): New.
6297         * features/btrace.dtd (btrace)<pt>: New.
6298         (pt, pt-config, cpu): New.
6299         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6300         (perf_event_pt_event_type, kernel_supports_pt)
6301         (linux_supports_pt): New.
6302         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6303         (linux_enable_bts): Free tinfo on error.
6304         (linux_enable_pt): New.
6305         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6306         (linux_disable_pt): New.
6307         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6308         (linux_fill_btrace_pt_config, linux_read_pt): New.
6309         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6310         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6311         (struct btrace_target_info)<pt>: New.
6312         * record-btrace.c (set_record_btrace_pt_cmdlist)
6313         (show_record_btrace_pt_cmdlist): New.
6314         (record_btrace_print_pt_conf): New.
6315         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6316         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6317         (cmd_record_btrace_pt_start): New.
6318         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6319         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6320         (_initialize_record_btrace): Add new commands.
6321         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6322         (remote_protocol_features): Add "Qbtrace:pt".
6323         Add "Qbtrace-conf:pt:size".
6324         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6325         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6326         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6327         (_initialize_remote): Add new commands.
6328
6329 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6330
6331         * configure.ac: check for libipt
6332         * configure: Regenerate.
6333         * config.in: Regenerate.
6334         * Makefile.in (LIBIPT): New.
6335         (CLIBS): Add $LIBIPT.
6336         * NEWS: document new configure options
6337
6338 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6339
6340         * compile/compile-object-load.c (compile_object_load): Replace debug
6341         message "lookup undefined ELF symbol" by 3 more specific messages.
6342
6343 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6344
6345         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6346         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6347         (rl78_gdbarch_init): Initialize rl78_psw_type.
6348
6349 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6350
6351         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6352         Update commentary.  Always refresh the registers when frame
6353         information has changed.
6354         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6355         Change return type to int.  Return 1 if frame information has
6356         changed, 0 otherwise.
6357         (tui_before_prompt): Update commentary.
6358         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6359         int.
6360
6361 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6362
6363         PR tui/13378
6364         * frame.c (select_frame): Remove reference to
6365         deprecated_selected_frame_level_changed_hook.
6366         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6367         declaration.
6368         * stack.c (deprecated_selected_frame_level_changed_hook):
6369         Likewise.
6370         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6371         Rename to ...
6372         (tui_refresh_frame_and_register_information): ... this.  Bail
6373         out if there is no stack.  Don't update register information
6374         unless registers_too_p is true.
6375         (tui_print_frame_info_listing_hook): Rename to ...
6376         (tui_dummy_print_frame_info_listing_hook): ... this.
6377         (tui_before_prompt): New function.
6378         (tui_normal_stop): New function.
6379         (tui_before_prompt_observer): New observer.
6380         (tui_normal_stop_observer): New observer.
6381         (tui_install_hooks): Set
6382         deprecated_print_frame_info_listing_hook to
6383         tui_dummy_print_frame_info_listing_hook.  Register
6384         tui_before_prompt_observer to call tui_before_prompt and
6385         tui_normal_stop_observer to call tui_normal_stop.  Remove
6386         reference to deprecated_selected_frame_level_changed_hook.
6387         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6388         and tui_normal_stop_observer.  Remove reference to
6389         deprecated_selected_frame_level_changed_hook.
6390
6391 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6392
6393         PR tui/13378
6394         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6395         return an int instead of void.  Return whether the locator
6396         window has changed.
6397         (tui_show_frame_info): If the locator info has not changed, then
6398         bail out early to avoid refreshing the windows.
6399
6400 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6401
6402         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6403         LOCATOR_WIN to tui_alloc_content.
6404
6405 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6406
6407         PR tdep/18605
6408         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6409         instructions.
6410
6411 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6412
6413         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6414         (rx_dwarf_reg_to_regnum): New function.
6415         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6416         unwinding.
6417
6418 2015-06-29  Pedro Alves  <palves@redhat.com>
6419
6420         PR threads/18127
6421         * infcall.c (run_inferior_call): On infcall success, if the thread
6422         was marked stopped before, reset it back to stopped.
6423         * infrun.c (resume): Don't suppress the set_running calls when
6424         doing an infcall.
6425         (normal_stop): Only discard the finish_thread_state cleanup if the
6426         infcall succeeded.
6427
6428 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6429
6430         * MAINTAINERS (Write After Approval): Update my email address.
6431
6432 2015-06-26  Keith Seitz  <keiths@redhat.com>
6433             Doug Evans  <dje@google.com>
6434
6435         PR 16253
6436         * block.c (block_lookup_symbol): For non-function blocks,
6437         continue to search for a symbol with an exact domain match
6438         Otherwise, return any previously found "best domain" symbol.
6439         (block_lookup_symbol_primary): Likewise.
6440
6441 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6442
6443         * NEWS: Mention the new option "history remove-duplicates".
6444         * top.c (history_remove_duplicates): New static variable.
6445         (show_history_remove_duplicates): New static function.
6446         (gdb_add_history): Conditionally remove duplicate history
6447         entries.
6448         (init_main): Add "history remove-duplicates" option.
6449
6450 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6451
6452         * tui/tui-win.c (focus_completer): New static function.
6453         (_initialize_tui_win): Set the completion function of the
6454         "focus" command to focus_completer.
6455
6456 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6457
6458         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6459         and language_asm..
6460         * symtab.c (find_function_start_sal): Likewise.
6461
6462 2015-06-25  Gary Benson  <gbenson@redhat.com>
6463
6464         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6465         it is the empty string after trailing slashes have been stripped.
6466
6467 2015-06-25  Gary Benson  <gbenson@redhat.com>
6468
6469         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6470         * infrun.c (follow_exec): Likewise.
6471         * remote.c (remote_filesystem_is_local): Likewise.
6472         * solib.c (solib_find_1): Likewise.
6473
6474 2015-06-24  Keith Seitz  <keiths@redhat.com>
6475
6476         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6477         return value from lrealpath.
6478
6479 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6480
6481         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6482
6483 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6484
6485         * remote-sim.c: Include gdb_bfd.h.
6486         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6487         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6488
6489 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6490
6491         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6492         set_gdbarch_get_siginfo_type.
6493         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6494         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6495         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6496         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6497         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6498         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6499         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6500         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6501         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6502         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6503
6504 2015-06-24  Gary Benson  <gbenson@redhat.com>
6505
6506         * common/buffer.c (stdint.h): Do not include.
6507         * common/print-utils.c (stdint.h): Likewise.
6508         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6509         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6510         * ft32-tdep.c (gdb_assert.h): Likewise.
6511         * guile/scm-utils.c (stdint.h): Likewise.
6512         * i386-linux-tdep.c (stdint.h): Likewise.
6513         * i386-tdep.c (stdint.h): Likewise.
6514         * nat/linux-btrace.c (stdint.h): Likewise.
6515         * nat/linux-btrace.h (stdint.h): Likewise.
6516         * nat/linux-ptrace.c (stdint.h): Likewise.
6517         * nat/mips-linux-watch.h (stdint.h): Likewise.
6518         * ppc-linux-nat.c (stdint.h): Likewise.
6519         * python/python-internal.h (stdint.h): Likewise.
6520         * stub-termcap.c (stdlib.h): Likewise.
6521         * target/target.h (stdint.h): Likewise.
6522         * xtensa-linux-nat.c (stdint.h): Likewise.
6523
6524 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6525
6526         * top.c (init_history): Look at errno after calling strtol to
6527         properly map large GDBHISTSIZE values to infinity.
6528
6529 2015-06-23  Doug Evans  <dje@google.com>
6530
6531         * inferior.h (struct inferior_suspend_state): Delete, unused.
6532         All references deleted.
6533
6534 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6535
6536         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6537         (microblaze_push_dummy_call): Likewise.
6538         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6539         and set_gdbarch_push_dummy_call.
6540
6541 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6542
6543         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6544         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6545         (amd64_linux_store_inferior_registers): Likewise.
6546         * arm-linux-nat.c (fetch_fpregister): Likewise.
6547         (fetch_fpregs, store_fpregister): Likewise.
6548         (store_fpregister, store_fpregs): Likewise.
6549         (fetch_register, fetch_regs): Likewise.
6550         (store_register, store_regs): Likewise.
6551         (fetch_vfp_regs, store_vfp_regs): Likewise.
6552         (arm_linux_read_description): Check have_ptrace_getregset is
6553         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6554         or TRIBOOL_FALSE.
6555         * i386-linux-nat.c (fetch_xstateregs): Check
6556         have_ptrace_getregset is not TRIBOOL_TRUE.
6557         (store_xstateregs): Likewise.
6558         * linux-nat.c (have_ptrace_getregset): Change its type to
6559         enum tribool.
6560         * linux-nat.h (tribool): New enum.
6561         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6562         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6563
6564 2015-06-19  Doug Evans  <dje@google.com>
6565
6566         * NEWS: Mention Sun's version of stabs is no longer supported.
6567         * elfread.c (free_elfinfo): Delete.  All uses updated.
6568         (elfstab_offset_sections): Delete.  All uses updated.
6569         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6570         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6571         All uses updated.
6572         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6573         All callers updated.
6574
6575 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6576
6577         * common/rsp-low.c (needs_escaping): New.
6578         (remote_escape_output): Add unit_size parameter. Refactor to
6579         support multi-byte addressable units.  Rename parameters.
6580         * common/rsp-low.h (remote_escape_output): Add unit_size
6581         parameter and rename others. Update doc.
6582         * remote.c (align_for_efficient_write): New.
6583         (remote_write_bytes_aux): Add unit_size parameter and use it.
6584         Rename some variables.  Update doc.
6585         (remote_xfer_partial): Get unit size and use it.
6586         (remote_read_bytes_1): Add unit_size parameter and use it.
6587         Rename some variables. Update doc.
6588         (remote_write_bytes): Same.
6589         (remote_xfer_live_readonly_partial): Same.
6590         (remote_read_bytes): Same.
6591         (remote_flash_write): Update call to remote_write_bytes_aux.
6592         (remote_write_qxfer): Update call to remote_escape_output.
6593         (remote_search_memory): Same.
6594         (remote_hostio_pwrite): Same.
6595
6596 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6597
6598         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6599         locations as inserted.
6600         Update and expand comment about permanent locations.
6601         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6602         Move comment to add_location_to_breakpoint.
6603         (update_global_location_list): Don't error out if a permanent
6604         breakpoint is not marked inserted.
6605         Don't error out if a non-permanent breakpoint location is inserted on
6606         top of a permanent breakpoint.
6607
6608 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6609
6610         * breakpoint.c (make_breakpoint_permanent): Remove unused
6611         function.
6612         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6613
6614 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6615
6616         PR gdb/16999
6617         * NEWS: Mention new GDBHISTSIZE behavior.
6618         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6619         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6620
6621 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6622
6623         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6624         * top.c (init_history): Read from GDBHISTSIZE instead of
6625         HISTSIZE.
6626         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6627
6628 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6629
6630         * top.c (gdb_safe_append_history): Do not call
6631         history_truncate_file if the history is not stifled.
6632
6633 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6634
6635         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6636         * syscalls/s390x-linux.xml: Likewise.
6637
6638 2015-06-16  Michael Eager  <eager@eagercon.com>
6639
6640         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6641
6642 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6643
6644         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6645         target_terminal_ours_for_output() before calling
6646         tui_show_frame_info(), and restore the original terminal
6647         settings afterwards.
6648
6649 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6650
6651         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6652
6653 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6654
6655         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6656         memory unit size.
6657         (mi_cmd_data_write_memory_bytes): Same.
6658
6659 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6660
6661         * corefile.c (write_memory): Update doc.
6662         * gdbcore.h (write_memory): Same.
6663
6664 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6665
6666         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6667         (dump_mapping_p): Use it for parameter filterflags.
6668         (linux_find_memory_regions_full): Use it for variable filterflags.
6669
6670 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6671             Jan Kratochvil  <jan.kratochvil@redhat.com>
6672
6673         Merge multiple hex conversions.
6674         * monitor.c: Include rsp-low.h.
6675         (fromhex): Remove definition.
6676
6677 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6678             Jan Kratochvil  <jan.kratochvil@redhat.com>
6679
6680         Move utility functions to common/.
6681         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6682         Move defs to common/common-utils.c.
6683         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6684         (skip_to_space_const): Move decls to common/common-utils.h.
6685         * common/common-defs.h: Move include of common-types.h before
6686         common-utils.h.
6687         * common/common-utils.c: Include host-defs.h and ctype.h.
6688         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6689         from utils.c.
6690         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6691         cli/cli-utils.c.
6692         * common/common-utils.h (strtoulst): Move decl from utils.h.
6693         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6694         Move from cli/cli-utils.h.
6695         * common/host-defs.h: Include limits.h.
6696         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6697         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6698         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6699         common/common-utils.h.
6700         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6701         (strtoulst): Move to common/common-utils.c.
6702         * utils.h (strtoulst): Moved decl to common/common-utils.h.
6703
6704 2015-06-15  Yao Qi  <yao.qi@linaro.org>
6705
6706         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6707
6708 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
6709
6710         * build-id.c: Don't include elf-bfd.h.
6711         (build_id_bfd_get): Use bfd_build_id.
6712         (build_id_verify): Ditto.
6713         * build-id.h: Ditto.
6714         (find_separate_debug_file_by_buildid): Ditto.
6715         * python/py-objfile.c: Don't include elf-bfd.h.
6716         (objfpy_get_build_id) Use bfd_build_id.
6717         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6718         * coffread.c: Include build-id.h.
6719         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6720
6721 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6722
6723         * windows-nat.c (do_windows_fetch_inferior_registers)
6724         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6725         conditional with __CYGWIN__.
6726
6727 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6728
6729         * completer.c: Add arch-utils.h include.
6730         (enum reg_completer_targets): New enum.
6731         (reg_or_group_completer_1): New function containing old
6732         reg_or_group_completer, add and use new parameter to control what
6733         is completed on.  Use get_current_arch rather than architecture of
6734         currently selected frame.
6735         (reg_or_group_completer): Call new reg_or_group_completer_1.
6736         (reggroup_completer): Call new reg_or_group_completer_1.
6737         * completer.h (reggroup_completer): Add declaration.
6738         * tui/tui-regs.c: Add 'completer.h' include.
6739         (tui_reg_next_command): Renamed to...
6740         (tui_reg_next): ...this.  Adjust parameters and return rather than
6741         display new group.
6742         (tui_reg_prev_command): Renamed to...
6743         (tui_reg_prev): ...this.  Adjust parameters and return rather than
6744         display new group.
6745         (tui_reg_float_command): Delete.
6746         (tui_reg_general_command): Delete.
6747         (tui_reg_system_command): Delete.
6748         (tui_reg_command): Rewrite to perform switching of register group.
6749         Add header comment.
6750         (tuireglist): Remove.
6751         (tui_reggroup_completer): New function.
6752         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6753         creation of 'tui reg' command.
6754         * NEWS: Add comment about 'tui reg' changes.
6755
6756 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6757
6758         * target.c (target_read): Consider addressable unit size when
6759         reading from a memory object.
6760         (read_memory_robust): Same.
6761         (read_whatever_is_readable): Same.
6762         (target_write_with_progress): Consider addressable unit size
6763         when writing to a memory object.
6764         * target.h (target_read): Update documentation.
6765         (target_write): Add documentation.
6766
6767 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6768
6769         * arch-utils.h (default_addressable_memory_unit_size): New.
6770         * arch-utils.c (default_addressable_memory_unit_size): New.
6771         * gdbarch.sh (addressable_memory_unit_size): New.
6772         * gdbarch.h: Re-generate.
6773         * gdbarch.c: Re-generate.
6774
6775 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6776
6777         * target.c (target_read): Rename variables and use
6778         TARGET_XFER_E_IO.
6779         (target_read_with_progress): Same.
6780         (read_memory_robust): Constify parameters and rename
6781         variables.
6782         (read_whatever_is_readable): Constify parameters,
6783         rename variables, adjust formatting.
6784         * target.h (read_memory_robust): Constify parameters.
6785
6786 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6787
6788         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6789         synthetic (non-AltiVec) vector types.
6790         (ppc64_sysv_abi_return_value): Likewise.
6791
6792 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6793
6794         PR breakpoints/16465
6795         * breakpoint.c (create_breakpoint): Save extra_string for
6796         pending breakpoints.
6797
6798 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6799
6800         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6801         and bt_mask to CORE_ADDR.
6802
6803 2015-06-11  Gary Benson <gbenson@redhat.com>
6804
6805         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6806         (mnsh_recv_message): Likewise.
6807
6808 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6809
6810         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6811         long long int and plongest instead of %ll.
6812
6813 2015-06-11  Gary Benson <gbenson@redhat.com>
6814
6815         * nat/linux-namespaces.c (gdb_wait.h): New include.
6816         (sys/wait.h): Do not include.
6817
6818 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
6819
6820         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6821         end_sequence is true.
6822
6823 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6824
6825         Code cleanup.
6826         * solib-target.c (library_list_start_list): Use explicit NULL
6827         comparison.
6828
6829 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6830
6831         * solib-target.c (library_list_start_list): Do not dereference
6832         variable version in its initialization.  Make the VERSION check handle
6833         NULL.
6834         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6835
6836 2015-06-10  Gary Benson <gbenson@redhat.com>
6837
6838         * NEWS: Announce support for direct access of executable and
6839         shared library files when attaching to inferiors in containers
6840         on GNU/Linux systems.
6841
6842 2015-06-10  Gary Benson <gbenson@redhat.com>
6843
6844         * remote.c (struct remote_state) <fs_pid>: New field.
6845         (new_remote_state): Initialize the above.
6846         (PACKET_vFile_setfs): New enum value.
6847         (remote_hostio_set_filesystem): New function.
6848         (remote_hostio_open): Call the above.
6849         (remote_hostio_unlink): Likewise.
6850         (remote_hostio_readlink): Likewise.
6851         (_initialize_remote): Register new "set/show remote
6852         hostio-setfs-packet" command.
6853         * NEWS: Announce new vFile:setfs packet.
6854
6855 2015-06-10  Gary Benson <gbenson@redhat.com>
6856
6857         * linux-nat.c (nat/linux-namespaces.h): New include.
6858         (fileio.h): Likewise.
6859         (linux_nat_filesystem_is_local): New function.
6860         (linux_nat_fileio_pid_of): Likewise.
6861         (linux_nat_fileio_open): Likewise.
6862         (linux_nat_fileio_readlink): Likewise.
6863         (linux_nat_fileio_unlink): Likewise.
6864         (linux_nat_add_target): Initialize to_filesystem_is_local,
6865         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6866         (_initialize_linux_nat): New "set/show debug linux-namespaces"
6867         commands.
6868         * NEWS: Mention new "set/show debug linux-namespaces" commands.
6869
6870 2015-06-10  Gary Benson <gbenson@redhat.com>
6871
6872         * target.h (struct inferior): New forward declaration.
6873         (struct target_ops) <to_filesystem_is_local>: Update comment.
6874         (struct target_ops) <to_fileio_open>: New argument inf.
6875         Update comment.  All implementations updated.
6876         (struct target_ops) <to_fileio_unlink>: Likewise.
6877         (struct target_ops) <to_fileio_readlink>: Likewise.
6878         (target_filesystem_is_local): Update comment.
6879         (target_fileio_open): New argument inf.  Update comment.
6880         (target_fileio_unlink): Likewise.
6881         (target_fileio_readlink): Likewise.
6882         (target_fileio_read_alloc): Likewise.
6883         (target_fileio_read_stralloc): Likewise.
6884         * target.c (target_fileio_open): New argument inf.
6885         Pass inf to implementation.  Update debug printing.
6886         (target_fileio_unlink): Likewise.
6887         (target_fileio_readlink): Likewise.
6888         (target_fileio_read_alloc_1): New argument inf. Pass inf
6889         to target_fileio_open.
6890         (target_fileio_read_alloc): New argument inf. Pass inf to
6891         target_fileio_read_alloc_1.
6892         (target_fileio_read_stralloc): Likewise.
6893         * gdb_bfd.c (inferior.h): New include.
6894         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6895         argument with new argument "inferior".  Pass inferior to
6896         target_fileio_open.
6897         (gdb_bfd_open): Supply inferior argument to
6898         gdb_bfd_iovec_fileio_open.
6899         * linux-tdep.c (linux_info_proc): Supply inf argument to
6900         relevant target_fileio calls.
6901         (linux_find_memory_regions_full): Likewise.
6902         (linux_fill_prpsinfo): Likewise.
6903         * remote.c (remote_filesystem_is_local): Supply inf
6904         argument to remote_hostio_open.
6905         (remote_file_put): Likewise.
6906         (remote_file_get): Likewise.
6907         (remote_file_delete): Supply inf argument to
6908         remote_hostio_unlink.
6909
6910 2015-06-10  Gary Benson <gbenson@redhat.com>
6911
6912         * inf-child.c (inf_child_fileio_open): Replace comment.
6913         (inf_child_fileio_pwrite): Likewise.
6914         (inf_child_fileio_pread): Likewise.
6915         (inf_child_fileio_fstat): Insert blank line before comment.
6916         (inf_child_fileio_close): Replace comment.
6917         (inf_child_fileio_unlink): Likewise.
6918         (inf_child_fileio_readlink): Likewise.
6919         * remote.c (remote_hostio_open): Likewise.
6920         (remote_hostio_pread): Likewise.
6921         (remote_hostio_pwrite): Likewise.
6922         (remote_hostio_close): Likewise.
6923         (remote_hostio_unlink): Likewise.
6924         (remote_hostio_readlink): Likewise.
6925         (remote_hostio_fstat): Likewise.
6926         (remote_filesystem_is_local): Likewise.
6927         * target.c (target_fileio_open): Likewise.
6928         (target_fileio_pwrite): Likewise.
6929         (target_fileio_pread): Likewise.
6930         (target_fileio_fstat): Insert blank line before comment.
6931         (target_fileio_close): Replace comment.
6932         (target_fileio_unlink): Likewise.
6933         (target_fileio_readlink): Likewise.
6934         (target_fileio_read_alloc): Likewise.
6935         (target_fileio_read_stralloc): Likewise.
6936
6937 2015-06-10  Gary Benson <gbenson@redhat.com>
6938
6939         * linux-thread-db.c (nat/linux-namespaces.h): New include.
6940         (check_pid_namespace_match): Use linux_ns_same rather than
6941         linux_proc_pid_get_ns to spot PID namespace mismatches.
6942         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6943         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6944
6945 2015-06-10  Gary Benson <gbenson@redhat.com>
6946
6947         * configure.ac (AC_CHECK_FUNCS): Add setns.
6948         * config.in: Regenerate.
6949         * configure: Likewise.
6950         * nat/linux-namespaces.h: New file.
6951         * nat/linux-namespaces.c: Likewise.
6952         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6953         (linux-namespaces.o): New rule.
6954         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6955         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6956         * config/arm/linux.mh (NATDEPFILES): Likewise.
6957         * config/i386/linux.mh (NATDEPFILES): Likewise.
6958         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6959         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6960         * config/m32r/linux.mh (NATDEPFILES): Likewise.
6961         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6962         * config/mips/linux.mh (NATDEPFILES): Likewise.
6963         * config/pa/linux.mh (NATDEPFILES): Likewise.
6964         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6965         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6966         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6967         * config/s390/linux.mh (NATDEPFILES): Likewise.
6968         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6969         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6970         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6971         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6972
6973 2015-06-10  Gary Benson <gbenson@redhat.com>
6974
6975         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6976         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6977         (make_cleanup_close): Likewise.
6978         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6979         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6980         (make_cleanup_close): Likewise.
6981
6982 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6983
6984         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6985         from SuspendThread().
6986
6987 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6988
6989         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6990         from OutputDebugString.
6991
6992 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6993                         Mircea Gherzan  <mircea.gherzan@intel.com>
6994
6995         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6996         MPX_BT_MASK_32): New macros.
6997         (i386_mpx_set_bounds): New function that implements
6998         the command "set-mpx-bound".
6999         (i386_mpx_enabled): Helper function to test MPX availability.
7000         (i386_mpx_bd_base): Helper function to calculate the base directory
7001         address.
7002         (i386_mpx_get_bt_entry): Helper function to access a bound
7003         table entry.
7004         (i386_mpx_print_bounds): Effectively display bound information.
7005         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7006         "show mpx".
7007         (_initialize_i386_tdep):
7008         Add "bound" to the commands "show mpx" and "set mpx" commands.
7009         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7010         and "show mpx" commands.
7011         * NEWS: List new commands for MPX support.
7012
7013 2015-06-09  Gary Benson <gbenson@redhat.com>
7014
7015         * common/fileio.h (fileio_to_host_mode): New declaration.
7016         * common/fileio.c (fileio_to_host_mode): New Function.
7017         * inf-child.c (inf_child_fileio_open): Process mode argument
7018         with fileio_to_host_mode.
7019
7020 2015-06-09  Gary Benson <gbenson@redhat.com>
7021
7022         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7023         conditional.
7024
7025 2015-06-05  Gary Benson <gbenson@redhat.com>
7026
7027         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7028         * remote.c (remote_filesystem_is_local): ...here.
7029
7030 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7031
7032         * gdbarch.c: Regenerate it.
7033
7034 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7035
7036         * arch-utils.c (default_infcall_munmap): New.
7037         * arch-utils.h (default_infcall_munmap): New declaration.
7038         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7039         (munmap_list_free, munmap_listp_free_cleanup): New.
7040         (struct setup_sections_data): Add field munmap_list_headp.
7041         (setup_sections): Call munmap_list_add.
7042         (compile_object_load): New variable munmap_list_head, initialize
7043         setup_sections_data.munmap_list_headp, return munmap_list_head.
7044         * compile/compile-object-load.h (struct munmap_list): New declaration.
7045         (struct compile_module): Add field munmap_list_head.
7046         (munmap_list_free): New declaration.
7047         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7048         munmap_list_head.
7049         (do_module_cleanup): Call munmap_list_free.
7050         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7051         * gdbarch.c: Regenerate.
7052         * gdbarch.h: Regenerate.
7053         * gdbarch.sh (infcall_munmap): New.
7054         * linux-tdep.c (linux_infcall_munmap): New.
7055         (linux_init_abi): Install it.
7056
7057 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7058
7059         PR gdb/15564
7060         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7061
7062 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7063
7064         * i386-linux-nat.c: Include linux-nat.h.
7065
7066 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7067             Jan Kratochvil  <jan.kratochvil@redhat.com>
7068
7069         PR symtab/18392
7070         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7071         assertion.
7072         * dwarf2loc.c (chain_candidate): Likewise.
7073
7074 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7075
7076         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7077         (store_vfp_regs): Use PTRACE_SETREGSET.
7078
7079 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7080
7081         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7082         (fetch_fpregs): Likewise.
7083         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7084         (store_fpregs): Likewise.
7085
7086 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7087
7088         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7089         (fetch_regs): Likewise.
7090         (store_regs): Use PTRACE_SETREGSET.
7091         (store_register): Likewise.
7092
7093 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7094
7095         * arm-linux-nat.c (arm_linux_read_description): Check whether
7096         kernel supports PTRACE_GETREGSET.
7097
7098 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7099
7100         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7101         * linux-nat.c: ... here.
7102         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7103         to ...
7104         * linux-nat.h: ... here.
7105
7106 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7107
7108         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7109         * i386-linux-nat.c: Likewise.
7110         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7111         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7112         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7113         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7114         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7115
7116 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7117
7118         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7119         compatible to what read_child and write_child return.  This
7120         unbreaks that DJGPP build of GDB which was broken since v7.7.
7121
7122 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7123
7124         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7125
7126 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7127
7128         PR gdb/18464
7129         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7130         rather than internal_error for an unrecognized value.
7131
7132 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7133
7134         * xtensa-tdep.c (xtensa_pseudo_register_read)
7135         (xtensa_pseudo_register_write): Don't alias last pseudo register
7136         to a1.
7137
7138 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7139
7140         * infrun.c (follow_fork_inferior): Ensure the use of
7141         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7142         messages.
7143
7144 2015-05-28  Doug Evans  <dje@google.com>
7145
7146         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7147
7148 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7149
7150         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7151         (arm_linux_fetch_inferior_registers): Use
7152         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7153         (arm_linux_store_inferior_registers): Likewise.
7154         (arm_linux_read_description): Don't set
7155         arm_linux_has_wmmx_registers.
7156         * arm-tdep.c (arm_gdbarch_init): Set
7157         tdep->have_wmmx_registers according target descriptions.
7158         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7159         field.
7160
7161 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7162
7163         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7164         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7165         instead of arm_linux_vfp_register_count.
7166         (store_vfp_regs): Likewise.
7167         (arm_linux_fetch_inferior_registers): Likewise.
7168         (arm_linux_store_inferior_registers): Likewise.
7169         (arm_linux_read_description): Don't set
7170         arm_linux_vfp_register_count.
7171         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7172         Adjust.
7173         * arm-tdep.c (arm_gdbarch_init): Add assert on
7174         vfp_register_count.
7175         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7176         field to vfp_register_count.  All users updated.
7177
7178 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7179
7180         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7181         ELFOSABI_GNU binaries.
7182
7183 2015-05-27  Doug Evans  <dje@google.com>
7184
7185         * dwarf2read.c (lnp_state_machine): New typedef.
7186         (lnp_reader_state): New typedef.
7187         (dwarf_record_line_1): Renamed from dwarf_record_line.
7188         All callers updated.
7189         (dwarf_record_line): New function.
7190         (init_lnp_state_machine): New function.
7191         (check_line_address): Replace p_record_line parameter with state.
7192         All callers updated.
7193         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7194         Update to record state in lnp_state_machine.
7195
7196 2015-05-27  Doug Evans  <dje@google.com>
7197
7198         * dwarf2read.c (record_line_ftype): New typedef.
7199         (check_line_address): New function.
7200         (dwarf_decode_lines_1): Call it.
7201
7202 2015-05-27  Doug Evans  <dje@google.com>
7203
7204         * NEWS: Mention "set debug dwarf-line".
7205         * dwarf2read.c (dwarf_line_debug): New static global.
7206         (add_include_dir): Add debug dwarf-line support.
7207         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7208         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7209
7210 2015-05-27  Doug Evans  <dje@google.com>
7211
7212         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7213         All callers updated.
7214         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7215         * cp-support.h (cp_lookup_nested_symbol): Update.
7216
7217 2015-05-27  Doug Evans  <dje@google.com>
7218
7219         PR symtab/18258
7220         * block.c (block_find_symbol): New function.
7221         (block_find_non_opaque_type): Ditto.
7222         (block_find_non_opaque_type_preferred): Ditto.
7223         * block.h (block_symbol_matcher_ftype): New typedef.
7224         (block_find_symbol): Declare.
7225         (block_find_non_opaque_type): Ditto.
7226         (block_find_non_opaque_type_preferred): Ditto.
7227         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7228         * psymtab.c (psym_lookup_symbol): Ditto.
7229         * symtab.c (basic_lookup_transparent_type_1): New function.
7230         (basic_lookup_transparent_type): Call it.
7231
7232 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7233
7234         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7235         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7236
7237 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7238
7239         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7240         before operator &&.
7241         (aarch64_record_load_store): Likewise.
7242
7243 2015-05-26  Doug Evans  <dje@google.com>
7244
7245         PR c++/18141, c++/18417.
7246         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7247         a typedef.
7248
7249 2015-05-26  Doug Evans  <dje@google.com>
7250
7251         * NEWS: Add entries for command renamings.
7252         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7253         All uses updated.
7254         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7255         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7256         All uses updated.
7257         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7258         All callers updated.  Fix spelling of DWARF in help text.
7259         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7260         All uses updated.
7261         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7262         All uses updated.
7263         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7264         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7265         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7266         All uses updated.
7267         (show_dwarf_always_disassemble): Renamed from
7268         show_dwarf2_always_disassemble.  All callers updated.
7269         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7270         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7271         "set/show dwarf max-cache-age".  Rename
7272         "set/show dwarf2 always-disassemble" to
7273         "set/show dwarf always-disassemble".  Rename
7274         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7275         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7276
7277 2015-05-26  Doug Evans  <dje@google.com>
7278
7279         PR python/18438
7280         * python/py-lazy-string.c (stpy_convert_to_value): Use
7281         gdbpy_gdb_memory_error not PyExc_MemoryError.
7282         (gdbpy_create_lazy_string_object): Ditto.
7283
7284 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7285
7286         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7287
7288 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7289
7290         * tui/tui-regs.c (tui_reg_prev_command): New function.
7291         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7292         * reggroups.c (reggroup_prev): New function.
7293         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7294
7295 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7296             Yao Qi  <yao.qi@linaro.org>
7297
7298         * aarch64-linux-tdep.c: Include linux-record.h and
7299         record-full.h.
7300         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7301         (aarch64_syscall): New enum.
7302         (aarch64_canonicalize_syscall): New function.
7303         (aarch64_all_but_pc_registers_record): New function.
7304         (aarch64_linux_syscall_record): New function.
7305         (aarch64_linux_init_abi): Install AArch64 process record
7306         handler.  Update to handle syscall recording.
7307         * aarch64-tdep.c: Include record.h and record-full.h.
7308         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7309         (struct aarch64_mem_r): Define.
7310         (aarch64_record_result): New enum.
7311         (struct insn_decode_record): Define.
7312         (insn_decode_record): New typedef.
7313         (aarch64_record_data_proc_reg): New function.
7314         (aarch64_record_data_proc_imm): New function.
7315         (aarch64_record_branch_except_sys): New function.
7316         (aarch64_record_load_store): New function.
7317         (aarch64_record_data_proc_simd_fp): New function.
7318         (aarch64_record_asimd_load_store): New function.
7319         (aarch64_record_decode_insn_handler): New function.
7320         (deallocate_reg_mem): New function.
7321         (aarch64_process_record): New function.
7322         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7323         New field.
7324         (aarch64_process_record): New extern declaration.
7325         * configure.tgt: Add linux-record.o to gdb_target_obs.
7326         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7327
7328 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7329
7330         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7331         targets.
7332
7333 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7334
7335         * amd64-tdep.c: Replace in_function_epilogue_p with
7336         stack_frame_destroyed_p throughout.
7337         * arch-utils.c: Ditto.
7338         * arch-utils.h: Ditto.
7339         * arm-tdep.c: Ditto.
7340         * breakpoint.c: Ditto.
7341         * gdbarch.sh: Ditto.
7342         * hppa-tdep.c: Ditto.
7343         * i386-tdep.c: Ditto.
7344         * mips-tdep.c: Ditto.
7345         * nios2-tdep.c: Ditto.
7346         * rs6000-tdep.c: Ditto.
7347         * s390-linux-tdep.c: Ditto.
7348         * score-tdep.c: Ditto.
7349         * sh-tdep.c: Ditto.
7350         * sparc-tdep.c: Ditto.
7351         * sparc-tdep.h: Ditto.
7352         * sparc64-tdep.c: Ditto.
7353         * spu-tdep.c: Ditto.
7354         * tic6x-tdep.c: Ditto.
7355         * tilegx-tdep.c: Ditto.
7356         * xstormy16-tdep.c: Ditto.
7357         * gdbarch.c, gdbarch.h: Re-generated.
7358
7359 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7360
7361         * NEWS: Mention 'tui enable' and 'tui disable'.
7362         * tui/tui.c (tui_enable_command): New function.
7363         (tui_disable_command): New function.
7364         (_initialize_tui): New function.
7365
7366 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7367
7368         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7369
7370 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7371
7372         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7373         buf_ptr is freed.
7374
7375 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7376
7377         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7378         into ...
7379         (tui_set_layout_for_display_command): ...here, before calling
7380         tui_set_layout.  Only set the layout if gdb has not already
7381         entered the TUI_FAILURE state.
7382
7383 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7384
7385         * tui/tui-layout.c (layout_completer): New function.
7386         (_initialize_tui_layout): Set completer on layout command.
7387
7388 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7389
7390         * tui/tui-layout.c (tui_set_layout): Remove
7391         tui_register_display_type parameter.  Remove all checking of this
7392         parameter, and reindent function.  Update header comment.
7393         (tui_set_layout_for_display_command): Rename to...
7394         (tui_set_layout_by_name): ...this, and don't check for different
7395         register class types, don't pass a tui_register_display_type to
7396         tui_set_layout.  Update header comment.
7397         (layout_names): Remove register set specific names.
7398         * tui/tui-layout.h (tui_set_layout): Remove
7399         tui_register_display_type parameter.
7400         * tui/tui.c (tui_rl_change_windows): Don't pass a
7401         tui_register_display_type to tui_set_layout.
7402         (tui_rl_delete_other_windows): Likewise.
7403         (tui_enable): Likewise.
7404         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7405         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7406         (TUI_GENERAL_REGS_NAME): Remove.
7407         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7408         (TUI_SPECIAL_REGS_NAME): Remove.
7409         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7410         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7411         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7412         (enum tui_register_display_type): Remove.
7413         (struct tui_layout_def): Remove regs_display_type and
7414         float_regs_display_type fields.
7415         (struct tui_data_info): Remove regs_display_type field.
7416         (tui_layout_command): Use new name for
7417         tui_set_layout_for_display_command.
7418         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7419         (tui_clear_win_detail): Don't initialise removed fields of
7420         win_info.
7421         * tui/tui-regs.c (tui_show_registers): Use new name for
7422         tui_set_layout_for_display_command.
7423         * tui/tui.h (tui_set_layout_for_display_command): Rename
7424         declaration to...
7425         (tui_set_layout_by_name): ...this.
7426         * printcmd.c (display_command): Remove tui related layout call,
7427         and reindent.
7428
7429 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7430
7431         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7432         (handle_inferior_event): New function.
7433
7434 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7435
7436         * ada-lang.c (to_fixed_array_type): Rename local variable
7437         typename into type_name.
7438
7439 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7440
7441         Fix ASAN crash for gdb.compile/compile.exp.
7442         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7443
7444 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7445
7446         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7447         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7448         * compile/compile-object-load.c (setup_sections, compile_object_load):
7449         Likewise.
7450         * compile/compile.c (compile_to_object): Likewise.
7451
7452 2015-05-16  Doug Evans  <xdje42@gmail.com>
7453
7454         * NEWS: Mention support for unbuffered Guile memory ports.
7455         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7456         (ioscm_lseek_address): Improve overflow calculation.
7457         (gdbscm_memory_port_fill_input): Add assert.
7458         (gdbscm_memory_port_write): Handle unbuffered ports.
7459         Handle large writes identical to Guile's fport_write.
7460         (gdbscm_memory_port_seek): Fix seeking past end check.
7461         (gdbscm_memory_port_close): Handle closing unbuffered port.
7462         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7463         (ioscm_init_memory_port): Handle unbuffered ports.
7464         (ioscm_reinit_memory_port): Ditto.
7465         (ioscm_init_memory_port): Update size calculation.
7466         (gdbscm_open_memory): Support zero sized ports.
7467
7468 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7469
7470         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7471         variable compiler warnings.
7472
7473 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7474
7475         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7476
7477 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7478             Phil Muldoon  <pmuldoon@redhat.com>
7479
7480         * NEWS (Changes since GDB 7.9): Add compile print.
7481         * compile/compile-c-support.c (add_code_header, add_code_footer)
7482         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7483         COMPILE_I_PRINT_VALUE_SCOPE.
7484         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7485         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7486         New.
7487         * compile/compile-object-load.c: Include block.h.
7488         (get_out_value_type): New function.
7489         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7490         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7491         OUT_VALUE_TYPE.
7492         * compile/compile-object-load.h (struct compile_module): Add fields
7493         out_value_addr and out_value_type.
7494         * compile/compile-object-run.c: Include valprint.h and compile.h.
7495         (struct do_module_cleanup): Add fields out_value_addr and
7496         out_value_type.
7497         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7498         COMPILE_I_PRINT_VALUE_SCOPE.
7499         (compile_object_run): Propagate out_value_addr and out_value_type.
7500         Pass OUT_VALUE_ADDR.
7501         * compile/compile.c: Include valprint.h.
7502         (compile_print_value, compile_print_command): New functions.
7503         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7504         (_initialize_compile): Update compile code help text.  Install
7505         compile_print_command.
7506         * compile/compile.h (compile_print_value): New prototype.
7507         * defs.h (enum compile_i_scope_types): Add
7508         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7509
7510 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7511
7512         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7513         Rely on its parameter count.
7514         (compile_object_load): Replace lookup_minimal_symbol_text by
7515         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7516         return value.
7517         * compile/compile-object-load.h (struct compile_module): Replace
7518         func_addr by func_sym.
7519         * compile/compile-object-run.c: Include block.h.
7520         (compile_object_run): Reset module variable after it is freed.  Use
7521         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7522
7523 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7524
7525         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7526         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7527         (c_compute_program): Call generate_register_struct after typedefs.
7528         * compile/compile-loc2c.c (push, pushf_register_address)
7529         (pushf_register): Cast to GCC_UINTPTR.
7530         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7531         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7532         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7533         * compile/compile.c (_initialize_compile): Enable warnings for
7534         COMPILE_ARGS.
7535
7536 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7537
7538         * cli/cli-script.c (execute_control_command): Update
7539         eval_compile_command caller.
7540         * compile/compile-object-load.c (compile_object_load): Add parameters
7541         scope and scope_data.  Set them.
7542         * compile/compile-object-load.h (struct compile_module): Add fields
7543         scope and scope_data.
7544         (compile_object_load): Add parameters scope and scope_data.
7545         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7546         scope and scope_data.
7547         (compile_object_run): Propagate the fields scope and scope_data.
7548         * compile/compile.c (compile_file_command, compile_code_command):
7549         Update eval_compile_command callers.
7550         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7551         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7552         * defs.h (struct command_line): Add field scope_data.
7553
7554 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7555
7556         * printcmd.c (struct format_data): Move it to valprint.h.
7557         (print_command_parse_format, print_value): New functions from ...
7558         (print_command_1): ... here.  Call them.
7559         * valprint.h (struct format_data): Move it here from printcmd.c.
7560         (print_command_parse_format, print_value): New declarations.
7561
7562 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7563
7564         * compile/compile-object-load.c (compile_object_load): Add
7565         COMPILE_DEBUG message.
7566
7567 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7568
7569         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7570         index to get element instead of enum value.
7571         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7572         of index to compute length, but enum values to compute bounds.
7573         (ada_array_length): Use enum position of index instead of enum value.
7574         (pos_atr): Move position computation to...
7575         (ada_evaluate_subexp): Use enum values to compute bounds.
7576         * gdbtypes.c (discrete_position): ...this new function.
7577         * gdbtypes.h (discrete_position): New function declaration.
7578         * valprint.c (val_print_array_elements): Call discrete_position
7579         to handle array indexed by non-contiguous enumeration types.
7580
7581 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7582
7583         * ada-lang.c (find_parallel_type_by_descriptive_type):
7584         Go through typedefs during lookup.
7585         (to_fixed_array_type): Add support for non-bit packed arrays
7586         as variable-length fields.
7587
7588 2015-05-15  Pedro Alves  <palves@redhat.com>
7589             Simon Marchi  <simon.marchi@ericsson.com>
7590
7591         * event-loop.c (gdb_notifier) <next_file_handler,
7592         next_poll_fds_index>: New fields.
7593         (get_next_file_handler_to_handle_and_advance): New function.
7594         (delete_file_handler): If deleting the next file handler to
7595         handle, advance to the next file handler.
7596         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7597         handlers in round-robin fashion.
7598
7599 2015-05-15  Pedro Alves  <palves@redhat.com>
7600
7601         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7602         'private' to 'priv'.
7603
7604 2015-05-15  Pedro Alves  <palves@redhat.com>
7605
7606         * nat/linux-nat.h: Include "target/waitstatus.h".
7607
7608 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7609
7610         * python/py-unwind.c (struct reg_info): Move out of ...
7611         (struct cached_frame_info): ... this scope.
7612         (pending_frame_object_type, unwind_info_object_type): Make extern.
7613
7614 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7615
7616         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7617         accumSize is never negative.
7618
7619 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7620
7621         * tui/tui-command.c: Remove include of <ctype.h>.
7622         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7623
7624 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7625
7626         * dwarf2read.c (die_needs_namespace): Return 1 for
7627         DW_TAG_inlined_subroutine.
7628
7629 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7630
7631         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7632         (regcache_cpy_no_passthrough): Make it static, add function comment.
7633         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7634         (regcache_cpy_no_passthrough): Remove declaration.
7635
7636 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7637
7638         * gdbthread.h (struct thread_control_state): Update comment for
7639         proceed_to_finish.
7640         * infcall.c (run_inferior_call): Update comment about
7641         proceed_to_finish.
7642         * infcmd.c (get_return_value): Update comment about stop_registers.
7643         (finish_forward): Update comment about proceed_to_finish.
7644         * infrun.c (stop_registers): Remove.
7645         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7646         * infrun.h (stop_registers): Remove.
7647
7648 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7649
7650         * infcall.c (struct dummy_frame_context_saver)
7651         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7652         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7653         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7654         New.
7655         (call_function_by_hand_dummy): Move discard_cleanups of
7656         inf_status_cleanup before dummy_frame_push.  Call
7657         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7658         Use dummy_frame_context_saver_get_regs instead of stop_registers.
7659         * infcall.h (struct dummy_frame_context_saver)
7660         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7661         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7662         New declarations.
7663         * infcmd.c: Include infcall.h.
7664         (get_return_value): Add parameter ctx_saver, use it instead of
7665         stop_registers.
7666         (print_return_value): Add parameter ctx_saver, pass it.
7667         (struct finish_command_continuation_args): Add field ctx_saver.
7668         (finish_command_continuation): Update print_return_value caller.
7669         (finish_command_continuation_free_arg): Free also ctx_saver.
7670         (finish_forward): Call dummy_frame_context_saver_setup.
7671         * inferior.h (struct dummy_frame_context_saver): New declaration.
7672         (get_return_value): Add parameter ctx_saver.
7673         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7674         get_return_value caller.
7675
7676 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7677
7678         * dummy-frame.c (struct dummy_frame_dtor_list): New.
7679         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7680         (remove_dummy_frame): Process dtor_list.
7681         (pop_dummy_frame): Process dtor_list.
7682         (register_dummy_frame_dtor): Maintain dtor_list.
7683         (find_dummy_frame_dtor): Handle dtor_list.
7684         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7685         Update comments.
7686
7687 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7688
7689         * compile/compile-object-run.c (do_module_cleanup): Add parameter
7690         registers_valid.
7691         (compile_object_run): Update do_module_cleanup caller.
7692         * dummy-frame.c: Include infcall.h.
7693         (struct dummy_frame): Update dtor comment.
7694         (remove_dummy_frame): Call dtor.
7695         (pop_dummy_frame): Update dtor caller.
7696         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7697         registers_valid.
7698
7699 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7700
7701         GDB 7.9.1 released.
7702
7703 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7704
7705         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
7706         Xmethods now being able to specify a result type to that new
7707         sectioin.
7708
7709 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7710
7711         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7712         first before resizing the window.
7713         * tui/tui.c (tui_enable): Likewise.
7714
7715 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7716
7717         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7718         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7719         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7720         dummy_dtor parameter.
7721         * infcall.h: Include dummy-frame.h.
7722         (call_function_by_hand_dummy_dtor_ftype): Remove.
7723         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7724         parameter.
7725
7726 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7727
7728         PR gdb/17820
7729         * top.c (history_size_setshow_var): Change type to signed.
7730         Initialize to -2.  Update documentation.
7731         (set_readline_history_size): Define.
7732         (set_history_size_command): Use it.  Remove logic for handling
7733         out-of-range sizes.
7734         (init_history): Use set_readline_history_size().  Test for a
7735         value of -2 instead of 0 when determining whether to set a
7736         default history size.
7737         (init_main): Decode the argument of the "size" command as a
7738         zuinteger_unlimited.
7739
7740 2015-05-12  Doug Evans  <dje@google.com>
7741
7742         * dwarf2read.c (struct file_entry): Tweak comments.
7743         (get_debug_line_section): Tweak comments.
7744
7745 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7746
7747         * NEWS: Announce fork support in the RSP and support
7748         for fork debugging in extended mode.
7749
7750 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7751
7752         * remote.c (remote_insert_fork_catchpoint): New function.
7753         (remote_remove_fork_catchpoint): New function.
7754         (remote_insert_vfork_catchpoint): New function.
7755         (remote_remove_vfork_catchpoint): New function.
7756         (pending_fork_parent_callback): New function.
7757         (remove_new_fork_child): New function.
7758         (remote_update_thread_list): Call remote_notif_get_pending_events
7759         and remove_new_fork_child.
7760         (extended_remote_kill): Kill fork child when killing the
7761         parent before follow_fork completes.
7762         (init_extended_remote_ops): Initialize target vector with
7763         new fork catchpoint functions.
7764
7765 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7766
7767         * remote.c (remove_vfork_event_p): New function.
7768         (remote_follow_fork): Add vfork event type to event checking.
7769         (remote_parse_stop_reply): New stop reasons "vfork" and
7770         "vforkdone" for RSP 'T' Stop Reply Packet.
7771
7772 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7773
7774         * linux-nat.c (linux_nat_ptrace_options): New function.
7775         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7776         Call linux_nat_ptrace_options and use different argument to
7777         linux_enable_event_reporting.
7778         (_initialize_linux_nat): Delete call to
7779         linux_ptrace_set_additional_flags.
7780         * nat/linux-ptrace.c (current_ptrace_options): Rename to
7781         supported_ptrace_options.
7782         (additional_flags): Delete variable.
7783         (linux_check_ptrace_features): Use supported_ptrace_options.
7784         (linux_test_for_tracesysgood, linux_test_for_tracefork):
7785         Likewise, and remove additional_flags check.
7786         (linux_enable_event_reporting): Change 'attached' argument to
7787         'options'.  Use supported_ptrace_options.
7788         (ptrace_supports_feature): Change comment.  Use
7789         supported_ptrace_options.
7790         (linux_ptrace_set_additional_flags): Delete function.
7791         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7792         Delete function prototype.
7793         * remote.c (remote_fork_event_p): New function.
7794         (remote_detach_pid): New function.
7795         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7796         if doing detach-on-fork.
7797         (remote_follow_fork): New function.
7798         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7799         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7800         (init_extended_remote_ops): Initialize to_follow_fork.
7801
7802 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7803
7804         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7805         from static to extern.
7806         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7807         * remote.c (anonymous enum): <PACKET_fork_event_feature,
7808         * PACKET_vfork_event_feature>: New enumeration constants.
7809         (remote_protocol_features): Add table entries for new packets.
7810         (remote_query_supported): Add new feature queries to qSupported
7811         packet.
7812
7813 2015-05-12  Gary Benson <gbenson@redhat.com>
7814
7815         * remote.c (remote_add_inferior): Call exec_file_locate_attach
7816         for fake PIDs as well as real ones.
7817         (remote_pid_to_exec_file): Send empty annex if PID is fake.
7818
7819 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
7820
7821         * NEWS (Python Scripting): Mention the new gdb.Value methods.
7822         * python/py-value.c (valpy_reference_value): New function.
7823         (valpy_const_value): Likewise.
7824         (value_object_methods): Add new methods.
7825         * value.c (make_cv_value): New function.
7826         * value.h (make_cv_value): Declare.
7827
7828 2015-05-08  Yao Qi  <yao@codesourcery.com>
7829             Sandra Loosemore  <sandra@codesourcery.com>
7830
7831         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7832         to 'lh->include_dirs' before accessing to it.
7833         (psymtab_include_file_name): Likewise.
7834         (dwarf_decode_lines_1): Likewise.
7835         (dwarf_decode_lines): Likewise.
7836         (file_file_name): Likewise.
7837
7838 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7839
7840         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7841         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7842         (nios2_linux_rt_sigreturn_init): Adjust base address of
7843         register save area.
7844
7845 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7846
7847         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7848         "trap 31" as the breakpoint instruction on all targets.
7849
7850 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7851
7852         * infcmd.c (print_return_value): Remove unused declaration.
7853
7854 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7855
7856         * dwarf2read.c (attr_to_dynamic_prop)
7857         <DW_AT_data_member_location>: Use read_type_die isntead of
7858         get_die_type.
7859
7860 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7861
7862         * ada-lang.c (ada_convert_actual): Add handling of formals
7863         passed inside an aligner type.
7864
7865 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7866
7867         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7868
7869 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
7870
7871         PR python/18291
7872         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7873         Print xmethod matcher status.
7874
7875 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7876
7877         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7878         register in the regcache when treating the PSWM register, and vice
7879         versa.
7880
7881 2015-05-07  Gary Benson <gbenson@redhat.com>
7882
7883         * linux-thread-db.c (struct thread_db_info)
7884         <td_ta_map_id2thr_p>: Remove field.
7885         (try_thread_db_load_1): Remove initialization for the above.
7886
7887 2015-05-07  Gary Benson <gbenson@redhat.com>
7888
7889         * linux-thread-db.c (struct thread_db_info)
7890         <td_thr_validate_p>: Remove field.
7891         (try_thread_db_load_1): Remove initialization for the above.
7892
7893 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7894
7895         * compile/compile-object-load.c (compile_object_load): Support
7896         mst_text_gnu_ifunc.
7897
7898 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7899
7900         * compile/compile.c (compile_to_object): Make the cmd_string parameter
7901         const.  Use new variables for the const compatibility.
7902         (eval_compile_command): Make the cmd_string parameter const.
7903         * compile/compile.h (eval_compile_command): Make the cmd_string
7904         parameter const.
7905
7906 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7907
7908         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
7909         comment.
7910         * top.c (deprecated_init_ui_hook): Delete.
7911         (gdb_init): Remove handling of deprecated_init_ui_hook.
7912         * interps.c (clear_interpreter_hooks): Remove handling of
7913         deprecated_init_ui_hook.
7914         * main.c (captured_main): Update comment.
7915
7916 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7917
7918         * solib.c (_initialize_solib): Add "info dll" alias creation.
7919         * windows-nat.c (set_windows_aliases): Delete.
7920         (_initialize_windows_nat): Remove deprecated_init_ui_hook
7921         assignment.
7922         * NEWS: Add news entry about "info dll" now being available
7923         on all platforms.
7924
7925 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7926
7927         * ada-lang.c (value_assign_to_component): Reformat and improve
7928         documentation. Remove all trailing spaces.
7929
7930 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7931
7932         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7933         Stop counting inlined frames as soon as an out-of-line function
7934         is found.
7935
7936 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
7937
7938         * dwarf2read.c (inherit_abstract_dies): Skip
7939         DW_TAG_GNU_call_site dies while inheriting children of an
7940         abstract DIE into a scope.
7941         (read_lexical_block_scope): Inherit abstract DIE's for
7942         lexical scopes.
7943
7944 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7945
7946         * ada-valprint.c (val_print_packed_array_elements): Delete
7947         variable "len".  Add a type-length check when comparing two
7948         consecutive elements of the array.  Use the element's actual
7949         length in call to value_contents_eq.
7950         * ada-lang.c (ada_value_primitive_packed_val): Always return
7951         a value whose type has been resolved.
7952
7953 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7954
7955         * ada-lang.c (ada_value_primitive_packed_val): Recompute
7956         BIT_SIZE and LEN if the size of the resolved type is smaller
7957         than BIT_SIZE * HOST_CHAR_BIT.
7958
7959 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7960
7961         * ada-lang.c (ada_value_primitive_packed_val): Use a more
7962         correct address in call to value_at.  Adjust call to
7963         value_address accordingly.
7964
7965 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7966
7967         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7968         to print it.
7969
7970 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7971
7972         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7973         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7974         pinfo->valaddr.
7975         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7976         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7977         (resolve_dynamic_type_internal): Set pinfo.valaddr.
7978         Add handling of addr_stack->valaddr.
7979         (resolve_dynamic_type): Add "valaddr" parameter.
7980         Set pinfo.valaddr field.
7981         * ada-lang.c (ada_discrete_type_high_bound): Update call to
7982         resolve_dynamic_type.
7983         (ada_discrete_type_low_bound): Likewise.
7984         * findvar.c (default_read_var_value): Likewise.
7985         * value.c (value_from_contents_and_address): Likewise.
7986
7987 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7988
7989         * gdbtypes.c (resolve_dynamic_array): Use
7990         create_array_type_with_stride instead of create_array_type.
7991
7992 2015-04-30  DJ Delorie  <dj@redhat.com>
7993
7994         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7995         rl78_decode_opcode
7996
7997 2015-04-29  Doug Evans  <dje@google.com>
7998
7999         PR python/18285
8000         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8001         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8002         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8003         * extension-priv.h (struct extension_language_ops)
8004         <get_xmethod_result_type>: New member.
8005         * extension.c (get_xmethod_result_type): New function.
8006         * extension.h (get_xmethod_result_type): Declare.
8007         * python/py-xmethods.c (get_result_type_method_name): New static
8008         global.
8009         (py_get_result_type_method_name): Ditto.
8010         (gdbpy_get_xmethod_result_type): New function.
8011         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8012         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8013         * python/python.c (python_extension_ops): Add
8014         gdbpy_get_xmethod_result_type.
8015         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8016         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8017         xmethods.
8018         (value_x_unop): Ditto.
8019         * value.c (result_type_of_xmethod): New function.
8020         * value.h (result_type_of_xmethod): Declare.
8021
8022 2015-04-29  Gary Benson <gbenson@redhat.com>
8023
8024         * solib.c (solib_find_1): Allow fd argument to be NULL.
8025         (exec_file_find): Update comment.
8026         (solib_find): Likewise.
8027         * exec.c (exec_file_locate_attach): Use NULL as fd
8028         argument to exec_file_find to avoid having to close
8029         the opened file.
8030         * infrun.c (follow_exec): Likewise.
8031
8032 2015-04-28  Doug Evans  <dje@google.com>
8033
8034         PR python/18299
8035         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8036         name or __name__ attributes.  Handle gdb module as first argument.
8037
8038 2015-04-28  Doug Evans  <dje@google.com>
8039
8040         PR python/18089
8041         * python/py-prettyprint.c (print_children): Verify result of children
8042         iterator.  Provide better error message.
8043         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8044         * python/python.c (gdbpy_print_python_errors_p): New function.
8045
8046 2015-04-28  Doug Evans  <dje@google.com>
8047
8048         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8049
8050 2015-04-28  Sasha Smundak  <asmundak@google.com>
8051
8052         * NEWS: Mention gdb.Type.optimized_out method.
8053         * python/py-type.c (typy_optimized_out):  New function.
8054
8055 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8056
8057         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8058
8059 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8060
8061         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8062         (initialize_utils): Move call of init_page_info() to ...
8063         * top.c (gdb_init): ... here.
8064
8065 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8066
8067         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8068         (tui_sigwinch_handler): Still update our idea of
8069         the terminal's width and height even when TUI is not active.
8070
8071 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8072
8073         * utils.h (set_screen_width_and_height): Declare.
8074         * utils.c (set_screen_width_and_height): Define.
8075         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8076
8077 2015-04-28  Gary Benson <gbenson@redhat.com>
8078
8079         * infrun.c (solist.h): New include.
8080         (follow_exec): Use exec_file_find to prefix execd_pathname
8081         with gdb_sysroot.
8082
8083 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8084
8085         * tui/tui-source.c (tui_set_source_content): Avoid calling
8086         strcpy() when offset is 0.
8087
8088 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8089
8090         PR gdb/18155
8091         * tui/tui-data.c (tui_free_window): Don't free the locator
8092         window when passed an SRC_WIN or a DISASSEM_WIN.
8093
8094 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8095
8096         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8097         (tui_win_content): Move declaration.
8098         (struct tui_gen_win_info): Give 'content' field the
8099         type tui_win_content.
8100         * tui/tui-data.c (init_content_element): Remove redundant and
8101         erroneous casts.
8102         (tui_add_content_elements): Remove erroneous cast.
8103         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8104         casts.
8105         (tui_get_begin_asm_address): Likewise.
8106         * tui/tui-regs.c (tui_show_registers): Likewise.
8107         (tui_show_register_group): Likewise.
8108         (tui_display_registers_from): Likewise.
8109         (tui_check_register_values): Likewise.
8110         * tui/tui-source.c (tui_set_source_content): Likewise.
8111         (tui_set_source_content_nil): Likewise.
8112         (tui_source_is_displayed): Likewise.
8113         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8114         (tui_set_locator_fullname): Likewise.
8115         (tui_set_locator_info): Likewise.
8116         (tui_show_frame_info): Likewise.
8117         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8118         (tui_show_source_line): Likewise.
8119         (tui_horizontal_source_scroll): Likewise.
8120         (tui_update_breakpoint_info): Likewise.
8121         (tui_set_exec_info_content): Likewise.
8122         (tui_show_exec_info_content): Likewise.
8123         (tui_alloc_source_buffer): Likewise.
8124         (tui_line_is_displayed): Likewise.
8125         (tui_addr_is_displayed): Likewise.
8126
8127 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8128
8129         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8130         event if PL_FLAG_EXEC is set.
8131         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8132         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8133         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8134         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8135         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8136
8137 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8138
8139         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8140         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8141         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8142         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8143         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8144         [PT_LWPINFO] (fbsd_wait): New function.
8145         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8146         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8147         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8148         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8149         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8150         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8151         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8152         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8153         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8154         "fbsd_wait".
8155         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8156         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8157         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8158         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8159         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8160         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8161         Set "to_post_attach" to "fbsd_post_attach".
8162
8163 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8164
8165         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8166         (fbsd_find_memory_regions): Mark static.
8167         (fbsd_nat_add_target): New function.
8168         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8169         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8170         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8171         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8172         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8173         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8174
8175 2015-04-27  Gary Benson <gbenson@redhat.com>
8176
8177         * objfiles.c (allocate_objfile): Do not attempt to expand name
8178         if name is a "target:" filename.
8179         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8180         to load auto-load scripts for objfiles with "target:" filenames.
8181
8182 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8183
8184         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8185         (enum s390_vector_abi_kind): New enum.
8186         (struct gdbarch_tdep)<vector_abi>: New field.
8187         (s390_effective_inner_type): Add parameter min_size.  Stop
8188         unwrapping if the inner type is smaller than min_size.
8189         (s390_function_arg_float): Adjust call to
8190         s390_effective_inner_type.
8191         (s390_function_arg_vector): New function.
8192         (s390_function_arg_integer): Adjust comment.
8193         (struct s390_arg_state)<vr>: New field.
8194         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8195         arguments according to vector ABI when appropriate.
8196         (s390_push_dummy_call): Initialize the argument state's field
8197         'vr'.  Adjust calls to s390_handle_arg.
8198         (s390_register_return_value): Handle vector return values.
8199         (s390_return_value): Apply the "register" return value convention
8200         to a vector when appropriate.
8201         (s390_gdbarch_init): Initialize tdep->vector_abi.
8202         * NEWS: Announce S390 vector ABI support.
8203
8204 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8205
8206         * s390-linux-tdep.c (s390_return_value_convention): Remove
8207         function.  Inline its logic...
8208         (s390_return_value): ...here.  Instead, move the handling of the
8209         "register" return value convention...
8210         (s390_register_return_value): ...here.  New function.
8211
8212 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8213
8214         * s390-linux-tdep.c
8215         (is_float_singleton): Remove function.  Move the "singleton" part
8216         of the logic...
8217         (s390_effective_inner_type): ...here.  New function.
8218         (is_float_like): Remove function.  Inline its logic...
8219         (s390_function_arg_float): ...here.
8220         (is_pointer_like, is_integer_like, is_struct_like): Remove
8221         functions.  Inline their logic...
8222         (s390_function_arg_integer): ...here.
8223         (s390_function_arg_pass_by_reference): Remove function.
8224         (extend_simple_arg): Remove function.
8225         (alignment_of): Remove function.
8226         (struct s390_arg_state): New structure.
8227         (s390_handle_arg): New function.
8228         (s390_push_dummy_call): Move parameter placement logic to the new
8229         function s390_handle_arg.  Call it for calculating the stack area
8230         sizes first, and again for actually writing the parameters.
8231
8232 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8233
8234         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8235           false if the argument is zero.
8236
8237 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8238
8239         * ada-lang.c (template_to_static_fixed_type): Return input type
8240         when it is already fixed.  Cache the input type itself when not
8241         creating a static fixed copy.  Make it explicit that we never
8242         molestate the input type.
8243         * gdbtypes.c (resolve_dynamic_struct): Reset the
8244         TYPE_TARGET_TYPE field for resolved copies.
8245
8246 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8247
8248         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8249         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8250         (template_to_static_fixed_type): Call ada_check_typedef only
8251         when necessary.
8252
8253 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8254
8255         * cli/cli-dump.c (srec_dump_command): Add internationalization
8256         mark ups.
8257         (ihex_dump_command): Likewise.
8258         (tekhex_dump_command): Likewise.
8259         (binary_dump_command): Likewise.
8260         (binary_append_command): Likewise.
8261
8262 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8263
8264         * cli/cli-dump.c (verilog_cmdlist): New variable.
8265         (dump_verilog_memory): New function.
8266         (dump_verilog_value): New function.
8267         (verilog_dump_command): New function.
8268         (_initialize_cli_dump): Add new commands to support verilog dump
8269         format.
8270         * NEWS: Add entry for "dump verilog".
8271
8272 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8273
8274         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8275         descriptive type when there is none.
8276
8277 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8278
8279         * tui/tui-win.c (tui_async_resize_screen): Call
8280         rl_resize_terminal().
8281
8282 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8283
8284         * windows-nat.c (handle_output_debug_string): Don't change
8285         current_event.dwThreadId.
8286         (get_windows_debug_event): Use thread_id, rather than relying on
8287         current_event.dwThreadId being changed.
8288
8289 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8290
8291         * windows-nat.c (windows_continue): Report an error if
8292         ContinueDebugEvent() fails.
8293
8294 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8295
8296         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8297
8298 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8299
8300         * windows-nat.c (get_windows_debug_event): Replace retval with
8301         thread_id throughout.  Update stale comment.
8302
8303 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8304
8305         * windows-nat.c (get_windows_debug_event): Don't use ternary
8306         conditional operator.
8307
8308 2015-04-21  Pierre Muller  <muller@sourceware.org>
8309
8310         PR pascal/17815
8311         p-exp.y (yylex): Reorganize code to return the matched pattern
8312         for a field of this.
8313
8314 2015-04-21  Gary Benson <gbenson@redhat.com>
8315
8316         * common/fileio.h (fileio_to_host_openflags): New declaration.
8317         * common/fileio.c (fcntl.h): New include.
8318         (fileio_to_host_openflags): New function, factored out from...
8319         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8320         Single use updated.
8321
8322 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8323
8324         * rl78-tdep.c (RL78_SP_ADDR): Define.
8325         (opc_reg_to_gdb_regnum): New static function.
8326         (rl78_analyze_prologue): Recognize instructions forming slightly
8327         more interesting prologues.
8328
8329 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8330
8331         Revert:
8332         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8333         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8334         TYPE_CODE_REF types so that they are not considered as dynamic
8335         depending on the referenced type.
8336         (resolve_dynamic_type_internal): Likewise.
8337
8338 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8339
8340         Revert:
8341         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8342         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8343         "top_level" parameter.
8344         (resolve_dynamic_type_internal): Remove the unused "top_level"
8345         parameter.  Update call to is_dynamic_type_internal.
8346         (is_dynamic_type): Update call to is_dynamic_type_internal.
8347         (resolve_dynamic_range): Update call to
8348         resolve_dynamic_type_internal.
8349         (resolve_dynamic_union): Likewise.
8350         (resolve_dynamic_struct): Likewise.
8351         (resolve_dynamic_type): Likewise.
8352
8353 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8354
8355         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8356         xmalloc.
8357
8358 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8359
8360         * reply_mig_hack.awk: Robustify parsing.
8361
8362         * reply_mig_hack.awk: Don't bother to declare an intermediate
8363         function pointer variable.
8364
8365 2015-04-17  Doug Evans  <dje@google.com>
8366
8367         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8368         to "exec_displacement" to avoid confusion with inner use of the name.
8369
8370 2015-04-17  Pedro Alves  <palves@redhat.com>
8371
8372         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8373         if HW point of TYPE isn't supported.
8374
8375 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8376             Pedro Alves  <palves@redhat.com>
8377
8378         * target.h (target_can_use_hardware_watchpoint): Update comments.
8379         Remove trailing ";".
8380
8381 2015-04-17  Gary Benson <gbenson@redhat.com>
8382
8383         * remote.c (remote_add_inferior): New argument try_open_exec.
8384         If nonzero, attempt to open the inferior's executable file as
8385         the main executable if no main executable is open already.
8386         All callers updated.
8387         * NEWS: Mention that GDB now supports automatic location and
8388         retrieval of executable + files from remote targets.
8389
8390 2015-04-17  Gary Benson <gbenson@redhat.com>
8391
8392         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8393         * remote.c (PACKET_qXfer_exec_file): Likewise.
8394         (remote_protocol_features): Register the
8395         "qXfer:exec-file:read" feature.
8396         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8397         (remote_pid_to_exec_file): New function.
8398         (init_remote_ops): Initialize to_pid_to_exec_file.
8399         (_initialize_remote): Register new "set/show remote
8400         pid-to-exec-file-packet" command.
8401         * NEWS: Announce new qXfer:exec-file:read packet.
8402
8403 2015-04-17  Gary Benson <gbenson@redhat.com>
8404
8405         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8406         New declaration.
8407         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8408         New function, factored out from...
8409         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8410
8411 2015-04-17  Gary Benson <gbenson@redhat.com>
8412
8413         * exec.c (solist.h): New include.
8414         (exec_file_locate_attach): Prefix absolute executable
8415         paths with gdb_sysroot if set.
8416         * NEWS: Mention that executable paths may be prepended
8417         with sysroot.
8418
8419 2015-04-17  Gary Benson <gbenson@redhat.com>
8420
8421         * solist.h (exec_file_find): New declaration.
8422         * solib.c (solib_find_1): New function, factored out from...
8423         (solib_find): ...here.
8424         (exec_file_find): New function.
8425
8426 2015-04-17  Gary Benson <gbenson@redhat.com>
8427
8428         * gdbcore.h (exec_file_locate_attach): New declaration.
8429         * exec.c (exec_file_locate_attach): New function, factored
8430         out from...
8431         * infcmd.c (attach_command_post_wait): ...here.
8432
8433 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8434
8435         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8436
8437 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8438
8439         * infrun.c (maybe_software_singlestep): Declare.
8440         (displaced_step_fixup): Call maybe_software_singlestep.
8441
8442 2015-04-15  Doug Evans  <dje@google.com>
8443
8444         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8445
8446 2015-04-15  Doug Evans  <dje@google.com>
8447
8448         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8449
8450 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8451
8452         * python/lib/gdb/command/unwinders.py: Add parentheses.
8453
8454 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8455
8456         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8457
8458 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8459
8460         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8461
8462 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8463
8464         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8465         dsc->insn_size instead of 4.
8466
8467 2015-04-14  Gary Benson <gbenson@redhat.com>
8468
8469         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8470         * minidebug.c (lzma_stat): Likewise.
8471         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8472         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8473
8474 2015-04-13  Stan Shebs  <stanshebs@google.com>
8475
8476         * MAINTAINERS: Update my email address.
8477
8478 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8479
8480         * amd64-tdep.c (amd64_target_description): New function.
8481         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8482         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8483         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8484         x86 extended save area.
8485         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8486         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8487         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8488         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8489         "amd64fbsd_read_description".
8490         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8491         (amd64fbsd_supply_xstateregset): New function.
8492         (amd64fbsd_collect_xstateregset): New function.
8493         Add "amd64fbsd_xstateregset".
8494         (amd64fbsd_iterate_over_regset_sections): New function.
8495         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8496         "I386_FBSD_XSAVE_XCR0_OFFSET".
8497         Add "iterate_over_regset_sections" gdbarch method.
8498         Add "core_read_description" gdbarch method.
8499         * i386-tdep.c (i386_target_description): New function.
8500         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8501         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8502         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8503         x86 extended save area.
8504         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8505         * i386bsd-nat.h: Export i386bsd_xsave_len.
8506         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8507         (_initialize_i386fbsd_nat): Set "to_read_description" to
8508         "i386fbsd_read_description".
8509         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8510         (i386fbsd_core_read_description): New function.
8511         (i386fbsd_supply_xstateregset): New function.
8512         (i386fbsd_collect_xstateregset): New function.
8513         Add "i386fbsd_xstateregset".
8514         (i386fbsd_iterate_over_regset_sections): New function.
8515         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8516         "I386_FBSD_XSAVE_XCR0_OFFSET".
8517         Add "iterate_over_regset_sections" gdbarch method.
8518         Add "core_read_description" gdbarch method.
8519         * i386fbsd-tdep.h: New file.
8520
8521 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8522
8523         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8524         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8525         conditional.
8526         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8527         and lb.
8528         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8529         va.
8530         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8531         conditional.
8532         * defs.h (xdb_commands): Remove declaration.
8533         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8534         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8535         * infcmd.c (run_no_args_command, go_command): Remove.
8536         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8537         * infrun.c (xdb_handle_command): Remove.
8538         (_initialize_infrun): Remove xdb_commands for lz and z.
8539         * main.c (xdb_commands): Remove variable.
8540         (captured_main): Remove "xdb" from long_options.
8541         (print_gdb_help): Remove --xdb from help.
8542         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8543         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8544         * stack.c (backtrace_full_command, args_plus_locals_info)
8545         (current_frame_command): Remove.
8546         (_initialize_stack): Remove xdb_commands for t, T and l.
8547         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8548         * thread.c (_initialize_thread): Remove xdb_commands condition.
8549         * tui/tui-layout.c (tui_toggle_layout_command)
8550         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8551         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8552         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8553         (tui_scroll_regs_backward_command): Remove.
8554         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8555         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8556         (_initialize_tui_win): Remove xdb_commands for U and w.
8557         * utils.c (pagination_on_command, pagination_off_command): Remove.
8558         (initialize_utils): Remove xdb_commands for am and sm.
8559
8560 2015-04-10  Pedro Alves  <palves@redhat.com>
8561
8562         * infrun.c (displaced_step_fixup): Switch to the event ptid
8563         earlier.  If the thread stopped for a watchpoint and the
8564         target/arch has non-continuable watchpoints, cancel the displaced
8565         step.
8566         (resume): Don't start a displaced step if in-line step-over info
8567         is valid.
8568
8569 2015-04-10  Pedro Alves  <palves@redhat.com>
8570
8571         * infrun.c (displaced_step_in_progress): New function.
8572         (do_target_resume): Advise target to report all signals if
8573         displaced stepping.
8574
8575 2015-04-10  Pedro Alves  <palves@redhat.com>
8576
8577         PR gdb/18216
8578         * infrun.c (process_event_stop_test): Don't assume a step-resume
8579         is set if tp->stepped_breakpoint is true.
8580
8581 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8582
8583         * arm-tdep.c (install_alu_reg): Update comment.
8584         (thumb_copy_alu_reg): Remove local variable rn.  Update
8585         debugging message.  Use r2 instead of r1 in the modified
8586         instruction.
8587
8588 2015-04-10  Pedro Alves  <palves@redhat.com>
8589
8590         PR gdb/13858
8591         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8592         linux_displaced_step_location as gdbarch_displaced_step_location
8593         hook.
8594         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8595         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8596         * linux-tdep.c (linux_displaced_step_location): New function,
8597         based on ppc_linux_displaced_step_location.
8598         * linux-tdep.h (linux_displaced_step_location): New declaration.
8599         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8600         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8601         Delete.
8602         (ppc_linux_init_abi): Install linux_displaced_step_location as
8603         gdbarch_displaced_step_location hook, even without Cell/B.E..
8604         (_initialize_ppc_linux_tdep): Don't install
8605         ppc_linux_inferior_created as inferior_created observer.
8606         * s390-linux-tdep.c (s390_gdbarch_init): Install
8607         linux_displaced_step_location as gdbarch_displaced_step_location
8608         hook.
8609
8610 2015-04-09  Gary Benson <gbenson@redhat.com>
8611
8612         * common/common-remote-fileio.h: Rename to...
8613         * common/fileio.h: ...this.  Update all references.
8614         (remote_fileio_to_fio_error): Rename to...
8615         (host_to_fileio_error): ...this.
8616         (remote_fileio_to_be): Rename to...
8617         (host_to_bigendian): ...this.  Update all callers.
8618         (remote_fileio_to_fio_uint): Rename to...
8619         (host_to_fileio_uint): ...this.  Update all callers.
8620         (remote_fileio_to_fio_time): Rename to...
8621         (host_to_fileio_time): ...this.  Update all callers.
8622         (remote_fileio_to_fio_stat): Rename to...
8623         (host_to_fileio_stat): ...this.
8624         Update all references.
8625         * common/common-remote-fileio.c: Rename to...
8626         * common/fileio.c: ...this.  Update all references.
8627         (remote_fileio_to_fio_error): Rename to...
8628         (host_to_fileio_error): ...this.  Update all callers.
8629         (remote_fileio_mode_to_target): Rename to...
8630         (fileio_mode_pack): ...this.  Update all callers.
8631         (remote_fileio_to_fio_mode): Rename to...
8632         (host_to_fileio_mode): ...this.  Update all callers.
8633         (remote_fileio_to_fio_ulong): Rename to...
8634         (host_to_fileio_ulong): ...this.  Update all callers.
8635         (remote_fileio_to_fio_stat): Rename to...
8636         (host_to_fileio_stat): ...this.  Update all callers.
8637
8638 2015-04-09  Andy Wingo  <wingo@igalia.com>
8639
8640         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8641         (frame_functions): Bind gdbscm_frame_read_register to
8642         frame-read-register.
8643         * guile/lib/gdb.scm (frame-read-register): Export.
8644
8645 2015-04-09  Gary Benson <gbenson@redhat.com>
8646
8647         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8648         New declaration.
8649         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8650         New function, factored out the named functions below.
8651         * inf-child.c (gdb/fileio.h): Remove include.
8652         (common-remote-fileio.h): New include.
8653         (inf_child_errno_to_fileio_error): Remove function.  Update
8654         all callers to use remote_fileio_to_fio_error.
8655         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8656
8657 2015-04-09  Andy Wingo  <wingo@igalia.com>
8658
8659         * MAINTAINERS (Write After Approval): Add Andy Wingo.
8660
8661 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8662
8663         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8664         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8665         * configure: Regenerated.
8666
8667 2015-04-09  Pedro Alves  <palves@redhat.com>
8668
8669         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8670         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8671         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8672         * gnulib/import/Makefile.am: Update.
8673         * gnulib/import/Makefile.in: Update.
8674         * gnulib/import/m4/gnulib-cache.m4: Update.
8675         * gnulib/import/m4/gnulib-comp.m4: Update.
8676         * gnulib/import/m4/strtok_r.m4: New file.
8677         * gnulib/import/strtok_r.c: New file.
8678
8679 2015-04-09  Pedro Alves  <palves@redhat.com>
8680
8681         * gnulib/update-gnulib.sh (aclocal version check): Filter out
8682         "called too early to check prototype".
8683
8684 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
8685
8686         PR python/16699
8687         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8688         use a caching mechanism.  Adjust comments and code to reflect
8689         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8690         (cmdpy_completer_handle_brkchars): Adjust call to
8691         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
8692         (cmdpy_completer): Likewise.
8693
8694 2015-04-08  Yao Qi  <yao.qi@linaro.org>
8695
8696         * spu-tdep.c (spu_gdbarch_init): Don't call
8697         set_gdbarch_cannot_step_breakpoint.
8698
8699 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
8700
8701         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8702
8703 2015-04-07  Pedro Alves  <palves@redhat.com>
8704
8705         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8706         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8707         (delete_exited_threads): New declaration.
8708         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8709         * linux-nat.c (linux_nat_update_thread_list): New function.
8710         (linux_nat_add_target): Install it.
8711         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8712         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8713         (delete_exited_threads): New function.
8714
8715 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
8716
8717         * infrun.c (resume) <displaced stepping debug output>: Get the
8718         leader thread's regcache, not resume_ptid's.
8719
8720 2015-04-06  Doug Evans  <xdje42@gmail.com>
8721
8722         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8723         VAR_DOMAIN.
8724         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8725         Include symbol domain in debugging output.
8726
8727 2015-04-06  Pedro Alves  <palves@redhat.com>
8728             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8729
8730         * configure.ac: Remove the mingw32-specific stub-termcap.o
8731         fallback, and instead fallback to the stub termcap on all hosts.
8732         * configure: Regenerate.
8733         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8734         symbols.
8735
8736 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8737
8738         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8739         "top_level" parameter.
8740         (resolve_dynamic_type_internal): Remove the unused "top_level"
8741         parameter.  Update call to is_dynamic_type_internal.
8742         (is_dynamic_type): Update call to is_dynamic_type_internal.
8743         (resolve_dynamic_range): Update call to
8744         resolve_dynamic_type_internal.
8745         (resolve_dynamic_union): Likewise.
8746         (resolve_dynamic_struct): Likewise.
8747         (resolve_dynamic_type): Likewise.
8748
8749 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8750
8751         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8752         TYPE_CODE_REF types so that they are not considered as dynamic
8753         depending on the referenced type.
8754         (resolve_dynamic_type_internal): Likewise.
8755
8756 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8757
8758         * Makefile.in (top_srcdir): New.
8759         * configure: Regenerated.
8760
8761 2015-04-02  Gary Benson <gbenson@redhat.com>
8762
8763         * NEWS: Announce the new default sysroot of "target:".
8764
8765 2015-04-02  Gary Benson <gbenson@redhat.com>
8766
8767         * main.c (captured_main): Set gdb_sysroot to "target:"
8768         if not otherwise set.
8769
8770 2015-04-02  Gary Benson <gbenson@redhat.com>
8771
8772         * exec.c (exec_file_attach): Support "target:" filenames.
8773
8774 2015-04-02  Gary Benson <gbenson@redhat.com>
8775
8776         * solib.c (solib_find): Strip "target:" prefix from sysroot
8777         if accessing local files.
8778
8779 2015-04-02  Gary Benson <gbenson@redhat.com>
8780
8781         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8782         checks and error messages.
8783
8784 2015-04-02  Gary Benson <gbenson@redhat.com>
8785
8786         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8787         (remote_filename_p): Remove declaration.
8788         (remote_bfd_open): Likewise.
8789         * remote.c (remote_bfd_iovec_open): Remove function.
8790         (remote_bfd_iovec_close): Likewise.
8791         (remote_bfd_iovec_pread): Likewise.
8792         (remote_bfd_iovec_stat): Likewise.
8793         (remote_filename_p): Likewise.
8794         (remote_bfd_open): Likewise.
8795         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8796         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8797         (gdb_bfd_open_maybe_remote): Remove function.
8798         (symfile_bfd_open):  Replace remote filename check with
8799         target filename check.
8800         (reread_symbols): Use gdb_bfd_open.
8801         * build-id.c (gdbcore.h): New include.
8802         (build_id_to_debug_bfd): Use gdb_bfd_open.
8803         * infcmd.c (attach_command_post_wait): Remove remote filename
8804         check.
8805         * solib.c (solib_find): Replace remote-specific handling with
8806         target-specific handling.  Update comments where necessary.
8807         (solib_bfd_open): Replace remote-specific handling with
8808         target-specific handling.
8809         (gdb_sysroot_changed): New function.
8810         (_initialize_solib): Call the above when gdb_sysroot changes.
8811         * windows-tdep.c (gdbcore.h): New include.
8812         (windows_xfer_shared_library): Use gdb_bfd_open.
8813
8814 2015-04-02  Gary Benson <gbenson@redhat.com>
8815
8816         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8817         (is_target_filename): New declaration.
8818         (gdb_bfd_has_target_filename): Likewise.
8819         (gdb_bfd_open): Update documentation comment.
8820         * gdb_bfd.c (target.h): New include.
8821         (gdb/fileio.h): Likewise.
8822         (is_target_filename): New function.
8823         (gdb_bfd_has_target_filename): Likewise.
8824         (fileio_errno_to_host): Likewise.
8825         (gdb_bfd_iovec_fileio_open): Likewise.
8826         (gdb_bfd_iovec_fileio_pread): Likewise.
8827         (gdb_bfd_iovec_fileio_close): Likewise.
8828         (gdb_bfd_iovec_fileio_fstat): Likewise.
8829         (gdb_bfd_open): Use target fileio to access paths prefixed
8830         with "target:" where necessary.
8831
8832 2015-04-02  Gary Benson <gbenson@redhat.com>
8833
8834         * target.h (struct target_ops) <to_filesystem_is_local>:
8835         New field.
8836         (target_filesystem_is_local): New macro.
8837         * target-delegates.c: Regenerate.
8838         * remote.c (remote_filesystem_is_local): New function.
8839         (init_remote_ops): Initialize to_filesystem_is_local.
8840
8841 2015-04-02  Gary Benson <gbenson@redhat.com>
8842
8843         * target.h (struct target_ops) <to_fileio_fstat>: New field.
8844         (target_fileio_fstat): New declaration.
8845         * target.c (target_fileio_fstat): New function.
8846         * inf-child.c (inf_child_fileio_fstat): Likewise.
8847         (inf_child_target): Initialize to_fileio_fstat.
8848         * remote.c (init_remote_ops): Likewise.
8849
8850 2015-04-01  Sasha Smundak  <asmundak@google.com>
8851
8852         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8853         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8854         (py-unwind.o): New recipe.
8855         * NEWS: mention Python frame unwinding.
8856         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8857         gdb/unwinder.py and gdb/command/unwinder.py
8858         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8859         list.
8860         (execute_unwinders): New function.
8861         * python/lib/gdb/command/unwinders.py: New file.
8862         * python/lib/gdb/unwinder.py: New file.
8863         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8864         (objfpy_dealloc): Decrement frame_unwinders reference count.
8865         (objfpy_initialize): Create frame_unwinders list.
8866         (objfpy_get_frame_unwinders): New function.
8867         (objfpy_set_frame_unwinders): Ditto.
8868         (objfile_getset): Add frame_unwinders attribute to Objfile.
8869         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8870         (pspy_dealloc): Decrement frame_unwinders reference count.
8871         (pspy_initialize): Create frame_unwinders list.
8872         (pspy_get_frame_unwinders): New function.
8873         (pspy_set_frame_unwinders): Ditto.
8874         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8875         * python/py-unwind.c: New file.
8876         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8877         (objpy_get_frame_unwinders): New prototype.
8878         (gdbpy_initialize_unwind): New prototype.
8879         * python/python.c (gdbpy_apply_type_printers): Call
8880         gdbpy_initialize_unwind.
8881
8882 2015-04-01  Pedro Alves  <palves@redhat.com>
8883
8884         * infrun.c (resume): Check currently_stepping after clearing
8885         stepped_breakpoint, not before.
8886
8887 2015-04-01  Pedro Alves  <palves@redhat.com>
8888
8889         * infrun.c (print_target_wait_results): Print all the ptid
8890         elements.
8891
8892 2015-04-01  Pedro Alves  <palves@redhat.com>
8893
8894         * infrun.c (keep_going): Also discard cleanups if inserting
8895         breakpoints fails.
8896
8897 2015-04-01  Pedro Alves  <palves@redhat.com>
8898
8899         * infrun.c (wait_for_inferior): Install the
8900         finish_thread_state_cleanup cleanup across the whole function, not
8901         just around handle_inferior_event.
8902
8903 2015-04-01  Pedro Alves  <palves@redhat.com>
8904
8905         * infrun.c (resume) <step past permanent breakpoint>: Use
8906         do_target_resume.
8907
8908 2015-04-01  Pedro Alves  <palves@redhat.com>
8909
8910         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8911
8912 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
8913
8914         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8915
8916 2015-04-01  Pedro Alves  <palves@redhat.com>
8917
8918         * linux-thread-db.c (record_thread): Readd the thread to gdb's
8919         list if it was marked exited.
8920
8921 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
8922
8923         * configure: Regenerated.
8924
8925 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8926             Jan Kratochvil  <jan.kratochvil@redhat.com>
8927             Oleg Nesterov  <oleg@redhat.com>
8928
8929         PR corefiles/16092
8930         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8931         New enum identifying the various options of the coredump_filter
8932         file.
8933         (struct smaps_vmflags): New struct.
8934         (use_coredump_filter): New variable.
8935         (decode_vmflags): New function.
8936         (mapping_is_anonymous_p): Likewise.
8937         (dump_mapping_p): Likewise.
8938         (linux_find_memory_regions_full): New variables
8939         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8940         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
8941         parsing of its information.  Implement memory mapping filtering
8942         based on its contents.
8943         (show_use_coredump_filter): New function.
8944         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8945         * NEWS: Mention the possibility of using the
8946         '/proc/PID/coredump_filter' file when generating a corefile.
8947         Mention new command 'set use-coredump-filter'.
8948
8949 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8950
8951         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8952         read_memory_unsigned_integer.
8953
8954 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8955
8956         * Makefile.in (ZLIB): New.
8957         (ZLIBINC): Likewise.
8958         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8959         (CLIBS): Add $(ZLIB).
8960         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8961         Add -lz to LIBS.
8962         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8963         * top.c (print_gdb_configuration): Remove --with-zlib and
8964         --without-zlib.
8965         * config.in: Regenerated.
8966         * configure: Likewise.
8967
8968 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8969
8970         * NEWS: Mention info os cpus support.
8971         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8972         (struct osdata_type): Add cpus entry, reorder the entries in
8973         alphabetical order.
8974
8975 2015-03-31  Matthias Klose  <doko@ubuntu.com>
8976
8977         * compile/compile.c (compile_to_object): Allow triplets with or
8978         without vendor set.
8979
8980 2015-03-30  Doug Evans  <dje@google.com>
8981
8982         PR c++/18141
8983         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8984         klass in VAR_DOMAIN.
8985
8986 2015-03-30  Gary Benson <gbenson@redhat.com>
8987
8988         * remote.c (remote_mourn_1): Remove function.  Update all callers
8989         to use remote_mourn.
8990         (extended_remote_mourn_1): Remove function.  Update all callers
8991         to use extended_remote_mourn.
8992         (extended_remote_attach_1): Remove function.  Update all callers
8993         to use extended_remote_attach.
8994
8995 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
8996
8997         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8998         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8999         (ALLDEPFILES): Add ft32-tdep.c.
9000         * configure.tgt: Add FT32 entry.
9001         * ft32-tdep.c: New file, FT32 target-dependent code.
9002         * ft32-tdep.h: New file, FT32 target-dependent code.
9003
9004 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9005
9006         Revert:
9007         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9008         Code cleanup.
9009         * printcmd.c (print_command_1): Move expr variable scope.
9010
9011 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9012
9013         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9014
9015 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9016
9017         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9018         sections.
9019
9020 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9021
9022         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9023         exception raised while parsing the probe arguments.
9024         Force parsing to be done using the C language parser.
9025         * expression.h (parse_expression_with_language): Declare.
9026         * parse.c (parse_expression_with_language): New function.
9027
9028 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9029
9030         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9031
9032 2015-03-26  Andy Wingo  <wingo@igalia.com>
9033
9034         PR symtab/18148
9035         * dwarf2read.c (struct partial_die_info): Add has_const_value
9036         member.
9037         (add_partial_symbol): Don't punt on symbols that have const_value
9038         attributes.
9039         (read_partial_die): Detect DW_AT_const_value.
9040
9041 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9042
9043         Code cleanup.
9044         * printcmd.c (print_command_1): Move expr variable scope.
9045
9046 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9047
9048         Code cleanup.
9049         * printcmd.c (validate_format): Make the parameter cmdname const.
9050
9051 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9052
9053         * remote.c (_initialize_remote): Update comment.
9054
9055 2015-03-26  Pedro Alves  <palves@redhat.com>
9056             Jon TURNEY  <jon.turney@dronecode.org.uk>
9057
9058         * coffread.c (coff_symfile_read): When constructing the name of an
9059         import stub symbol from import symbol for amd64, only skip the
9060         char after _imp_ if the target is underscored (like i386) and the
9061         char is indeed the target's leading char.
9062
9063 2015-03-25  Pedro Alves  <palves@redhat.com>
9064
9065         * target.h <to_async>: Replace 'callback' and 'context' parameters
9066         with boolean 'enable' parameter.
9067         (target_async): Replace CALLBACK and CONTEXT parameters with
9068         boolean ENABLE parameter.
9069         * inf-loop.c (inferior_event_handler): Adjust.
9070         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9071         (linux_nat_resume): Adjust.
9072         (async_client_callback, async_client_context): Delete.
9073         (handle_target_event): Call inferior_event_handler directly.
9074         (linux_nat_async): Replace 'callback' and 'context' parameters
9075         with boolean 'enable' parameter.  Adjust.  Remove references to
9076         async_client_callback and async_client_context.
9077         (linux_nat_close): Adjust.
9078         * record-btrace.c (record_btrace_async): Replace 'callback' and
9079         'context' parameters with boolean 'enable' parameter.  Adjust.
9080         (record_btrace_resume): Adjust.
9081         * record-full.c (record_full_async): Replace 'callback' and
9082         'context' parameters with boolean 'enable' parameter.  Adjust.
9083         (record_full_resume, record_full_core_resume): Adjust.
9084         * remote.c (struct remote_state) <async_client_callback,
9085         async_client_context>: Delete fields.
9086         (remote_start_remote, extended_remote_attach_1, remote_resume)
9087         (extended_remote_create_inferior): Adjust.
9088         (remote_async_serial_handler): Call inferior_event_handler
9089         directly.
9090         (remote_async): Replace 'callback' and 'context' parameters with
9091         boolean 'enable' parameter.  Adjust.
9092         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9093         Adjust.
9094         * target-delegates.c: Regenerate.
9095
9096 2015-03-25  Gary Benson <gbenson@redhat.com>
9097             Pedro Alves  <palves@redhat.com>
9098
9099         * target.c (fileio_ft_t): New typedef, define object vector.
9100         (fileio_fhandles): New static variable.
9101         (is_closed_fileio_fh): New macro.
9102         (lowest_closed_fd): New static variable.
9103         (acquire_fileio_fd): New function.
9104         (release_fileio_fd): Likewise.
9105         (fileio_fd_to_fh): New macro.
9106         (target_fileio_open): Wrap the file descriptor on success.
9107         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9108         (target_fileio_pread): Likewise.
9109         (target_fileio_close): Likewise.
9110
9111 2015-03-24  Pedro Alves  <palves@redhat.com>
9112
9113         * thread.c (thread_apply_all_command): Take exited threads into
9114         account.
9115
9116 2015-03-24  Pedro Alves  <palves@redhat.com>
9117
9118         * infrun.c (resume, proceed): Mention
9119         switch_back_to_stepped_thread, not switch_back_to_stepping.
9120
9121 2015-03-24  Pedro Alves  <palves@redhat.com>
9122
9123         * infrun.c (user_visible_resume_ptid): Rewrite going from
9124         most-locked to unlocked instead of the opposite.  Move comment ...
9125         * infrun.h (user_visible_resume_ptid): ... here.
9126
9127 2015-03-24  Pedro Alves  <palves@redhat.com>
9128
9129         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9130         to resume the event lwp.  Use the lwp's ptid instead of the passed
9131         in (maybe wildcard) ptid.
9132         (stop_wait_callback): Tweak debug log output.
9133         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9134         TRAP_TRACE.
9135         (linux_nat_filter_event): In debug output, distinguish a
9136         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9137         before trying to resume the lwp.
9138
9139 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9140
9141         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9142         pointer indirection.
9143         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9144         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9145
9146 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9147
9148         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9149         Renames DYN_ATTR_DATA_LOCATION.
9150         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9151         DYN_ATTR_DATA_LOCATION.
9152         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9153         instead of DYN_ATTR_DATA_LOCATION.
9154
9155 2015-03-24  Pedro Alves  <palves@redhat.com>
9156
9157         * breakpoint.c (until_break_command): Adjust call to proceed.
9158         * gdbthread.h (struct thread_control_state) <stepping_command>:
9159         New field.
9160         * infcall.c (run_inferior_call): Adjust call to proceed.
9161         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9162         Adjust calls to proceed.
9163         (set_step_frame): Set the current thread's step_start_function
9164         here.
9165         (step_once): Adjust calls to proceed.
9166         (jump_command, signal_command, until_next_command)
9167         (finish_backward, finish_forward, proceed_after_attach_callback)
9168         (attach_command_post_wait): Adjust calls to proceed.
9169         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9170         (do_target_resume): New function, factored out from ...
9171         (resume): ... here.  Remove 'step' parameter.  Instead, check
9172         currently_stepping to determine whether the thread should be
9173         single-stepped.
9174         (proceed): Remove 'step' parameter and don't set the thread's
9175         step_start_function here.  Adjust call to 'resume'.
9176         (handle_inferior_event): Adjust calls to 'resume'.
9177         (switch_back_to_stepped_thread): Use do_target_resume instead of
9178         'resume'.
9179         (keep_going): Adjust calls to 'resume'.
9180         * infrun.h (proceed): Remove 'step' parameter.
9181         (resume): Likewise.
9182         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9183         'resume'.
9184         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9185
9186 2015-03-24  Pedro Alves  <palves@redhat.com>
9187
9188         * gdbthread.h (struct thread_control_state) <stepping_command>:
9189         New field.
9190         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9191         the thread's stepping_command field.
9192         * infrun.c (resume): Check the thread's stepping_command flag to
9193         determine which threads should be resumed.  Rename 'entry_step'
9194         local to user_step.
9195         (clear_proceed_status_thread): Clear 'stepping_command'.
9196         (schedlock_applies): Change parameter type to struct thread_info
9197         pointer.  Adjust.
9198         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9199         (switch_back_to_stepped_thread): Adjust calls to
9200         'schedlock_applies'.
9201         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9202
9203 2015-03-24  Pedro Alves  <palves@redhat.com>
9204
9205         * infrun.c (step_start_function): Delete and ...
9206         * gdbthread.h (struct thread_control_state) <step_start_function>:
9207         ... now a field here.
9208         * infrun.c (clear_proceed_status_thread): Clear the thread's
9209         step_start_function.
9210         (proceed, process_event_stop_test, print_stop_event): Adjust.
9211
9212 2015-03-24  Pedro Alves  <palves@redhat.com>
9213
9214         * infrun.c (proceed): No longer handle negative step.
9215
9216 2015-03-24  Gary Benson  <gbenson@redhat.com>
9217
9218         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9219         (x86_linux_prepare_to_resume): Likewise.
9220         * x86-linux-nat.c (x86_linux_new_thread):
9221         Moved to nat/x86-linux.c.
9222         (x86_linux_prepare_to_resume): Likewise.
9223         * nat/x86-linux.c (x86_linux_new_thread): New function.
9224         (x86_linux_prepare_to_resume): Likewise.
9225
9226 2015-03-24  Gary Benson  <gbenson@redhat.com>
9227
9228         * nat/x86-linux-dregs.h: New file.
9229         * nat/x86-linux-dregs.c: Likewise.
9230         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9231         (x86-linux-dregs.o): New rule.
9232         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9233         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9234         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9235         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9236         (x86_linux_dr_get): Likewise.
9237         (x86_linux_dr_set): Likewise.
9238         (x86_linux_dr_get_addr): Likewise.
9239         (x86_linux_dr_get_control): Likewise.
9240         (x86_linux_dr_get_status): Likewise.
9241         (update_debug_registers_callback): Likewise.
9242         (x86_linux_dr_set_control): Likewise.
9243         (x86_linux_dr_set_addr): Likewise.
9244         (x86_linux_update_debug_registers): Likewise.
9245
9246 2015-03-24  Gary Benson  <gbenson@redhat.com>
9247
9248         * x86-linux-nat.c (x86_linux_update_debug_registers):
9249         New function, factored out from...
9250         (x86_linux_prepare_to_resume): ...this.
9251
9252 2015-03-24  Gary Benson  <gbenson@redhat.com>
9253
9254         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9255         (x86_linux_dr_set): Likewise.
9256         (x86_linux_dr_get_addr): Likewise.
9257         (x86_linux_dr_get_control): Likewise.
9258         (x86_linux_dr_get_status): Likewise.
9259         (update_debug_registers_callback): Likewise.
9260         (x86_linux_dr_set_control): Likewise.
9261         (x86_linux_dr_set_addr): Likewise.
9262         (x86_linux_prepare_to_resume): Likewise.
9263         (x86_linux_new_thread): Likewise.
9264
9265 2015-03-24  Gary Benson  <gbenson@redhat.com>
9266
9267         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9268         (x86_linux_new_thread): Rename argument.
9269
9270 2015-03-24  Gary Benson  <gbenson@redhat.com>
9271
9272         * nat/x86-linux.h: New file.
9273         * nat/x86-linux.c: Likewise.
9274         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9275         (x86-linux.o): New rule.
9276         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9277         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9278         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9279         (lwp_set_arch_private_info): New declaration.
9280         (lwp_arch_private_info): Likewise.
9281         * linux-nat.c (lwp_set_arch_private_info): New function.
9282         (lwp_arch_private_info): Likewise.
9283         * x86-linux-nat.c: Include nat/x86-linux.h.
9284         (arch_lwp_info): Removed structure.
9285         (update_debug_registers_callback):
9286         Use lwp_set_debug_registers_changed.
9287         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9288         and lwp_set_debug_registers_changed.
9289         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9290
9291 2015-03-24  Gary Benson  <gbenson@redhat.com>
9292
9293         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9294         (lwp_is_stopped): Likewise.
9295         (lwp_stop_reason): Likewise.
9296         * linux-nat.c (ptid_of_lwp): New function.
9297         (lwp_is_stopped): Likewise.
9298         (lwp_is_stopped_by_watchpoint): Likewise.
9299         * x86-linux-nat.c (update_debug_registers_callback):
9300         Use lwp_is_stopped.
9301         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9302         lwp_stop_reason.
9303
9304 2015-03-24  Gary Benson  <gbenson@redhat.com>
9305
9306         * linux-nat.h (linux_stop_lwp): Move declaration to...
9307         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9308
9309 2015-03-24  Gary Benson  <gbenson@redhat.com>
9310
9311         * linux-nat.h: Include nat/linux-nat.h.
9312         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9313         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9314         (iterate_over_lwps_ftype): New typedef.
9315         (iterate_over_lwps): New declaration.
9316         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9317         iterate_over_lwps_ftype.  Update callback return value check.
9318
9319 2015-03-24  Gary Benson  <gbenson@redhat.com>
9320
9321         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9322         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9323
9324 2015-03-24  Gary Benson  <gbenson@redhat.com>
9325
9326         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9327         * linux-nat.c (current_lwp_ptid): New function.
9328         * x86-linux-nat.c: Include nat/linux-nat.h.
9329         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9330         (x86_linux_dr_get_control): Likewise.
9331         (x86_linux_dr_get_status): Likewise.
9332         (x86_linux_dr_set_control): Likewise.
9333         (x86_linux_dr_set_addr): Likewise.
9334
9335 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9336
9337         PR breakpoints/16466
9338         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9339
9340 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9341
9342         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9343         * ser-unix.c (hardwire_setparity): Likewise.
9344
9345 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9346
9347         * NEWS: Mention set/show serial parity command.
9348         * monitor.c (monitor_open): Call serial_setparity.
9349         * remote.c (remote_open_1): Likewise.
9350         * ser-base.c (ser_base_serparity): New function.
9351         * ser-base.h (ser_base_setparity): Add  declaration.
9352         * ser-go32.c (dos_ops): Set "setparity" field.
9353         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9354         state.Parity.
9355         (ser_windows_setparity): New function.
9356         (hardwire_ops): Add ser_windows_setparity.
9357         (tty_ops): Add NULL for setparity field.
9358         (pipe_ops): Add ser_base_setparity.
9359         (tcp_ops): Likewise.
9360         * ser-pipe.c (pipe_ops): Likewise.
9361         * ser-tcp.c (tcp_ops): Likewise.
9362         * ser-unix.c (hardwire_setparity): Add declaration.
9363         (hardwire_raw): Don't reset PARENB flag.
9364         (hardwire_setparity): New function.
9365         (hardwire_ops): Add hardwire_setparity.
9366         * serial.c (serial_setparity): New function.
9367         (serial_parity): New global.
9368         (parity_none, parity_odd, parity_even, parity_enums, parity):
9369         New static globals.
9370         (set_parity): New function.
9371         (_initialize_serial): Add set/show serial parity commands.
9372         * serial.h (GDBPARITY_NONE): Define.
9373         (GDBPARITY_ODD): Define.
9374         (GDBPARITY_EVEN): Define.
9375         (serial_setparity) Add declaration.
9376         (struct serial_ops): Add setparity field.
9377         * target.h (serial_parity): Add declaration.
9378
9379 2015-03-23  Keith Seitz  <keiths@redhat.com>
9380
9381         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9382
9383 2015-03-23  Keith Seitz  <keiths@redhat.com>
9384
9385         * breakpoint.c (parse_breakpoint_sals): Use
9386         linespec_lexer_lex_keyword to ascertain if the user specified
9387         a NULL location.
9388         * linespec.c [IF_KEYWORD_INDEX]: Define.
9389         (linespec_lexer_lex_keyword): Export.
9390         (struct ls_parser) <keyword_ok>: Remove.
9391         A keyword is only a keyword if not followed by another keyword.
9392         (linespec_lexer_lex_one): Remove keyword_ok handling.
9393         Add comment explaining why the parsing stream is not advanced
9394         when a keyword is seen.
9395         (parse_linespec): Remove parser->keyword_ok.
9396         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9397
9398 2015-03-23  Keith Seitz  <keiths@redhat.com>
9399
9400         PR gdb/18021
9401         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9402         if we find a static method with DW_AT_vtable_elem_location.
9403
9404 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9405
9406         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9407         before the second loop, to avoid undefined behavior.  Reported by
9408         Anton Blanchard <anton@samba.org>.
9409
9410 2015-03-20  Keven Boell  <keven.boell@intel.com>
9411
9412         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9413         data_location usage to linked list.
9414         (resolve_dynamic_type_internal): Adapt data_location to
9415         linked list.
9416         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9417         (copy_type_recursive, copy_type): Add copy of linked list.
9418         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9419         (struct dynamic_prop_list): New struct.
9420         * dwarf2read.c (set_die_type): Set data_location data.
9421
9422 2015-03-20  Pedro Alves  <palves@redhat.com>
9423
9424         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9425         inner block and make it const.
9426         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9427
9428 2015-03-20  Pedro Alves  <palves@redhat.com>
9429
9430         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9431         * breakpoint.h (set_breakpoint_condition): Update declaration.
9432
9433 2015-03-20  Pedro Alves  <palves@redhat.com>
9434
9435         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9436
9437 2015-03-20  Pedro Alves  <palves@redhat.com>
9438
9439         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9440
9441 2015-03-20  Pedro Alves  <palves@redhat.com>
9442
9443         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9444
9445 2015-03-20  Pedro Alves  <palves@redhat.com>
9446
9447         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9448         (nto_init_solib_absolute_prefix): Likewise.
9449
9450 2015-03-20  Pedro Alves  <palves@redhat.com>
9451
9452         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9453         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9454
9455 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9456
9457         * config/djgpp/README: Remove gdb.hp.
9458
9459 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9460
9461         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9462         set_gdbarch_cannot_step_breakpoint.
9463
9464 2015-03-19  Pedro Alves  <palves@redhat.com>
9465
9466         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9467         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9468         instead call perror_with_name.
9469         (check_ptrace_stopped_lwp_gone): New function.
9470         (linux_resume_one_lwp): Reimplement as wrapper around
9471         linux_resume_one_lwp_throw that swallows errors if the LWP is
9472         gone.
9473         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9474         swallows errors if the LWP is gone.  Use
9475         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9476
9477 2015-03-19  Pedro Alves  <palves@redhat.com>
9478
9479         * linux-nat.c (status_callback): Return early if the LWP has no
9480         status pending.
9481
9482 2015-03-19  Pedro Alves  <palves@redhat.com>
9483
9484         * linux-nat.c (select_event_lwp_callback): Update comment to no
9485         longer mention SIGTRAP.
9486
9487 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9488
9489         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9490         redirection code to ...
9491         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9492         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9493
9494 2015-03-18  Gary Benson <gbenson@redhat.com>
9495
9496         (remote_protocol_features): Remove the "vFile:fstat" feature.
9497         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9498
9499 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9500
9501         PR tdep/18107
9502         * aarch64-linux-tdep.c: Include xml-syscall.h
9503         (aarch64_linux_get_syscall_number): New function.
9504         (aarch64_linux_init_abi): Call
9505         set_gdbarch_get_syscall_number.
9506         * syscalls/aarch64-linux.xml: New file.
9507
9508 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9509
9510         * ser-base.h (ser_base_setstopbits): Change second argument name
9511         from "rate" to "num".
9512
9513 2015-03-17  Gary Benson <gbenson@redhat.com>
9514             Luke Allardyce <lukeallardyce@gmail.com>
9515
9516         PR gdb/18131
9517         * common/common-remote-fileio.h (sys/stat.h): New include.
9518         (stuct stat): Remove forward declaration.
9519
9520 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9521
9522         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9523         before writing core register notes.
9524
9525 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9526             Pedro Alves  <palves@redhat.com>
9527
9528         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9529         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9530         (tgoto): Wrap with extern "C".
9531
9532 2015-03-16  Pedro Alves  <palves@redhat.com>
9533             Yuanhui Zhang  <asmwarrior@gmail.com>
9534
9535         * stub-termcap.c (tputs): Change prototype.
9536
9537 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9538             Pedro Alves  <palves@redhat.com>
9539
9540         * windows-nat.c (struct thread_info_struct): Rename to ...
9541         (struct windows_thread_info_struct): ... this.
9542         (thread_info): Rename to ...
9543         (windows_thread_info): ... this.
9544         All users updated.
9545
9546 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9547             Pedro Alves  <palves@redhat.com>
9548
9549         * NEWS: New Removed targets and native configurations.
9550
9551 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9552
9553         Remove HPUX.
9554         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9555         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9556         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9557         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9558         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9559         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9560         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9561         hppa-hpux-tdep.c.
9562         * config/ia64/hpux.mh: Remove file.
9563         * config/pa/hpux.mh: Remove file.
9564         * configure: Rebuilt.
9565         * configure.ac (dlgetmodinfo, somread.o): Remove.
9566         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9567         (ia64-*-hpux*): Remove its float format exception.
9568         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9569         * hppa-hpux-nat.c: Remove file.
9570         * hppa-hpux-tdep.c: Remove file.
9571         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9572         Move them here from hppa-tdep.h
9573         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9574         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9575         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9576         Move them to hppa-tdep.c.
9577         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9578         declarations.
9579         * ia64-hpux-nat.c: Remove file.
9580         * ia64-hpux-tdep.c: Remove file.
9581         * ia64-hpux-tdep.h: Remove file.
9582         * inf-ttrace.c: Remove file.
9583         * inf-ttrace.h: Remove file.
9584         * solib-ia64-hpux.c: Remove file.
9585         * solib-ia64-hpux.h: Remove file.
9586         * solib-pa64.c: Remove file.
9587         * solib-pa64.h: Remove file.
9588         * solib-som.c: Remove file.
9589         * solib-som.h: Remove file.
9590         * somread.c: Remove file.
9591
9592 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9593
9594         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9595         * config.in: Regenerate.
9596         * configure: Regenerate.
9597         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9598         define.
9599         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9600         enumerate memory regions if present.
9601
9602 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9603
9604         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9605         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9606         expressions.
9607         (i386fbsd_sigtramp_p): Likewise.
9608
9609 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9610
9611         * MAINTAINERS (Write After Approval): Add John Baldwin.
9612
9613 2015-03-12  Gary Benson <gbenson@redhat.com>
9614
9615         * solib.c (_initialize_solib): Make "set/show sysroot" use
9616         add_setshow_optional_filename_cmd so it can be restored to
9617         empty after being set.
9618
9619 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9620
9621         * Makefile.in (SFILES): New source break-catch-syscall.c.
9622         (COMMON_OBS): New object break-catch-syscall.o.
9623         * break-catch-syscall.c: New file.
9624         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9625         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9626         (struct syscall_catchpoint): Likewise.
9627         (dtor_catch_syscall): Likewise.
9628         (catch_syscall_inferior_data): Likewise.
9629         (struct catch_syscall_inferior_data): Likewise.
9630         (get_catch_syscall_inferior_data): Likewise.
9631         (catch_syscall_inferior_data_cleanup): Likewise.
9632         (insert_catch_syscall): Likewise.
9633         (remove_catch_syscall): Likewise.
9634         (breakpoint_hit_catch_syscall): Likewise.
9635         (print_it_catch_syscall): Likewise.
9636         (print_one_catch_syscall): Likewise.
9637         (print_mention_catch_syscall): Likewise.
9638         (print_recreate_catch_syscall): Likewise.
9639         (catch_syscall_breakpoint_ops): Likewise.
9640         (syscall_catchpoint_p): Likewise.
9641         (create_syscall_event_catchpoint): Likewise.
9642         (catch_syscall_split_args): Likewise.
9643         (catch_syscall_command_1): Likewise.
9644         (is_syscall_catchpoint_enabled): Likewise.
9645         (catch_syscall_enabled): Likewise.
9646         (catching_syscall_number): Likewise.
9647         (catch_syscall_completer): Likewise.
9648         (clear_syscall_counts): Likewise.
9649         (initialize_breakpoint_ops): Move initialization of syscall
9650         catchpoints to break-catch-syscall.c.
9651         (_initialize_breakpoint): Move code related to syscall catchpoints
9652         to break-catch-syscall.c.
9653
9654 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9655
9656         * breakpoint.c (breakpoint_find_if): New function.
9657         * breakpoint.h (breakpoint_find_if): New prototype.
9658
9659 2015-03-11  Gary Benson <gbenson@redhat.com>
9660
9661         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9662         * remote-fileio.c (remote_fileio_to_host_uint): New function.
9663         (remote_fileio_to_host_ulong): Likewise.
9664         (remote_fileio_to_host_mode): Likewise.
9665         (remote_fileio_to_host_time): Likewise.
9666         (remote_fileio_to_host_stat): Likewise.
9667         * remote.c (PACKET_vFile_fstat): New enum value.
9668         (remote_protocol_features): Register the "vFile:fstat" feature.
9669         (remote_hostio_fstat): New function.
9670         (remote_bfd_iovec_stat): Use the above.
9671         (_initialize_remote): Register new "set/show remote
9672         hostio-fstat-packet" command.
9673         * symfile.c (separate_debug_file_exists): Update comment.
9674         * NEWS: Announce new vFile:fstat packet.
9675
9676 2015-03-11  Gary Benson <gbenson@redhat.com>
9677
9678         * common/common-remote-fileio.h: New file.
9679         * common/common-remote-fileio.c: Likewise.
9680         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9681         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9682         (COMMON_OBS): Add common-remote-fileio.o.
9683         (common-remote-fileio.o): New rule.
9684         * remote-fileio.h (common-remote-fileio.h): New include.
9685         * remote-fileio.c (gdb/fileio.h): Do not include.
9686         (remote_fileio_to_be): Moved to common-remote-fileio.h.
9687         (remote_fileio_to_fio_uint): Likewise.
9688         (remote_fileio_to_fio_time): Likewise.
9689         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9690         (remote_fileio_to_fio_mode): Likewise.
9691         (remote_fileio_to_fio_ulong): Likewise.
9692         (remote_fileio_to_fio_stat): Likewise.
9693
9694 2015-03-11  Andy Wingo  <wingo@igalia.com>
9695
9696         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9697         we were checking the cached type, not the cached dynamic type.
9698
9699 2015-03-11  Andy Wingo  <wingo@igalia.com>
9700
9701         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9702         other strings, as these are on the GC'd heap, and will be
9703         collected along with the smob.
9704
9705 2015-03-11  Andy Wingo  <wingo@igalia.com>
9706
9707         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9708         (objfile_functions): Bind gdbscm_objfile_progspace to
9709         objfile-progspace.
9710         * guile/lib/gdb.scm: Add objfile-progspace to exports.
9711
9712 2015-03-11  Andy Wingo  <wingo@igalia.com>
9713
9714         * guile/guile.c (_initialize_guile): Disable automatic
9715         finalization, if Guile offers us that possibility.
9716         * guile/guile.c (call_initialize_gdb_module):
9717         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9718         finalizers in appropriate places.
9719         * configure.ac (AC_TRY_LIBGUILE): Add a check for
9720         scm_set_automatic_finalization_enabled.
9721         * configure: Regenerated.
9722
9723 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9724
9725         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9726         SAL, if possible.
9727
9728 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9729
9730         * s390-linux-nat.c (struct arch_lwp_info): New.
9731         (s390_fix_watch_points): Rename to...
9732         (s390_prepare_to_resume): ...this.  Skip the PER info update
9733         unless the watch points have changed.
9734         (s390_refresh_per_info, s390_new_thread): New functions.
9735         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9736         s390_fix_watch_points.
9737         (s390_remove_watchpoint): Likewise.
9738         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9739         Register s390_prepare_to_resume.
9740
9741 2015-03-09  Pedro Alves  <palves@redhat.com>
9742
9743         Revert:
9744         2015-03-07  Pedro Alves  <palves@redhat.com>
9745         * common/gdb_socket.h: New file.
9746         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9747         sys/socket.h.
9748         (net_open): Use union gdb_sockaddr_u.
9749
9750 2015-03-07  Pedro Alves  <palves@redhat.com>
9751
9752         * configure.ac (build_warnings): Move -Wmissing-prototypes
9753         -Wdeclaration-after-statement -Wmissing-parameter-type
9754         -Wold-style-declaration -Wold-style-definition to the C-specific
9755         set.
9756         * configure: Regenerate.
9757
9758 2015-03-07  Pedro Alves  <palves@redhat.com>
9759
9760         * common/gdb_socket.h: New file.
9761         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9762         sys/socket.h.
9763         (net_open): Use union gdb_sockaddr_u.
9764
9765 2015-03-07  Pedro Alves  <palves@redhat.com>
9766
9767         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9768         (exceptions_state_mc_action_iter)
9769         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9770         Don't define.
9771         [__cplusplus] (try_scope_depth): New global.
9772         [__cplusplus] (exception_try_scope_entry)
9773         (exception_try_scope_exit, gdb_exception_sliced_copy)
9774         (exception_rethrow): New functions.
9775         (throw_exception): In C++ mode, throw
9776         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9777         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9778         (throw_it): In C++ mode, use try_scope_depth.
9779         * common/common-exceptions.h [!__cplusplus]
9780         (exceptions_state_mc_action_iter)
9781         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9782         Don't declare.
9783         [__cplusplus] (exception_try_scope_entry)
9784         (exception_try_scope_exit, exception_rethrow): Declare.
9785         [__cplusplus] (struct exception_try_scope): New struct.
9786         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9787         C++ exceptions.
9788         (struct gdb_exception_RETURN_MASK_ALL)
9789         (struct gdb_exception_RETURN_MASK_ERROR)
9790         (struct gdb_exception_RETURN_MASK_QUIT): New types.
9791
9792 2015-03-07  Pedro Alves  <palves@redhat.com>
9793
9794         * main.c (handle_command_errors): Remove volatile qualifier from
9795         parameter.
9796
9797 2015-03-07  Pedro Alves  <palves@redhat.com>
9798
9799         * breakpoint.c (save_breakpoints): Adjust to avoid code between
9800         TRY and CATCH.
9801         * gdbtypes.c (safe_parse_type): Remove empty line.
9802         (types_deeply_equal):
9803         * guile/scm-frame.c (gdbscm_frame_name):
9804         * linux-thread-db.c (find_new_threads_once):
9805         * python/py-breakpoint.c (bppy_get_commands):
9806         * record-btrace.c (record_btrace_insert_breakpoint)
9807         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9808         (record_btrace_start_replaying): Adjust to avoid code between TRY
9809         and CATCH.
9810
9811 2015-03-07  Pedro Alves  <palves@redhat.com>
9812
9813         * common/common-exceptions.c (struct catcher) <exception>: No
9814         longer a pointer to volatile exception.  Now an exception value.
9815         <mask>: Delete field.
9816         (exceptions_state_mc_init): Remove all parameters.  Adjust.
9817         (exceptions_state_mc): No longer pop the catcher here.
9818         (exceptions_state_mc_catch): New function.
9819         (throw_exception): Adjust.
9820         * common/common-exceptions.h (exceptions_state_mc_init): Remove
9821         all parameters.
9822         (exceptions_state_mc_catch): Declare.
9823         (TRY_CATCH): Rename to ...
9824         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
9825         (CATCH, END_CATCH): New.
9826         All callers adjusted.
9827
9828 2015-03-07  Tom Tromey  <tromey@redhat.com>
9829
9830         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9831
9832 2015-03-07  Pedro Alves  <palves@redhat.com>
9833
9834         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9835         (amd64_epilogue_frame_cache): Normal exception handling code.
9836         * break-catch-throw.c (check_status_exception_catchpoint)
9837         (re_set_exception_catchpoint): Ditto.
9838         * cli/cli-interp.c (safe_execute_command):
9839         * cli/cli-script.c (script_from_file): Ditto.
9840         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9841         Ditto.
9842         * compile/compile-object-run.c (compile_object_run): Ditto.
9843         * cp-abi.c (baseclass_offset): Ditto.
9844         * cp-valprint.c (cp_print_value): Ditto.
9845         * exceptions.c (catch_exceptions_with_msg):
9846         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9847         * frame.c (get_frame_address_in_block_if_available): Ditto.
9848         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9849         (i386_sigtramp_frame_cache): Ditto.
9850         * infcmd.c (post_create_inferior): Ditto.
9851         * linespec.c (parse_linespec, find_linespec_symbols):
9852         * p-valprint.c (pascal_object_print_value): Ditto.
9853         * parse.c (parse_expression_for_completion): Ditto.
9854         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9855         * remote.c (remote_get_noisy_reply): Ditto.
9856         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9857         * solib-svr4.c (solib_svr4_r_map): Ditto.
9858
9859 2015-03-06  Gary Benson  <gbenson@redhat.com>
9860
9861         * common/common-utils.h (startswith): New inline function.
9862         All places where this logic was used updated to use the above.
9863
9864 2015-03-05  Pedro Alves  <palves@redhat.com>
9865
9866         PR gdb/18002
9867         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9868         after reading the breakpoint's shadow memory.
9869
9870 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
9871
9872         * hppabsd-nat.c: Remove file.
9873         * hppaobsd-nat.c: New file.
9874         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
9875         hppaobsd-nat.c.
9876         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9877         hppaobsd-nat.o.
9878
9879 2015-03-04  Pedro Alves  <palves@redhat.com>
9880
9881         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9882         (target_decr_pc_after_break): Delete declaration.
9883         * target.c (default_target_decr_pc_after_break)
9884         (target_decr_pc_after_break): Delete.
9885         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9886         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9887         * linux-thread-db.c (check_event): Likewise.
9888         * infrun.c (adjust_pc_after_break): Likewise.
9889         * darwin-nat.c (cancel_breakpoint): Likewise.
9890         * aix-thread.c (aix_thread_wait): Likewise.
9891         * target-delegates.c: Regenerate.
9892
9893 2015-03-04  Pedro Alves  <palves@redhat.com>
9894
9895         * linux-nat.c (save_sigtrap): Check for breakpoints before
9896         checking watchpoints.
9897         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9898         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9899         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9900         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9901         (linux_nat_stopped_by_sw_breakpoint)
9902         (linux_nat_supports_stopped_by_sw_breakpoint)
9903         (linux_nat_stopped_by_hw_breakpoint)
9904         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9905         (linux_nat_wait_1): Don't re-increment the PC if relying on
9906         SIGTRAP's siginfo->si_code.
9907         (linux_nat_add_target): Install new target methods.
9908         * linux-thread-db.c (check_event): Don't account for breakpoint PC
9909         offset if the target already adjusted the PC.
9910         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9911         (GDB_ARCH_TRAP_BRKPT): New.
9912         (TRAP_HWBKPT): Define if not already defined.
9913
9914 2015-03-04  Pedro Alves  <palves@redhat.com>
9915
9916         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9917         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9918         Delete field.
9919         <stop_reason>: New field.
9920         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9921         (packet_set_cmd_state): New function.
9922         (remote_protocol_features): Register the "swbreak" and "hwbreak"
9923         features.
9924         (remote_query_supported): If not disabled with the corresponding
9925         "set remote foo-packet" command, report support for the swbreak
9926         and hwbreak features.
9927         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9928         field.
9929         <stop_reason>: New field.
9930         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9931         (remote_wait_as): Adjust.
9932         (remote_stopped_by_sw_breakpoint)
9933         (remote_supports_stopped_by_sw_breakpoint)
9934         (remote_stopped_by_hw_breakpoint)
9935         (remote_supports_stopped_by_hw_breakpoint): New functions.
9936         (remote_stopped_by_watchpoint): New function.
9937         (init_remote_ops): Install them.
9938         (_initialize_remote): Register new "set/show remote
9939         swbreak-feature-packet" and "set/show remote
9940         swbreak-feature-packet" commands.
9941
9942 2015-03-04  Pedro Alves  <palves@redhat.com>
9943
9944         * btrace.h: Include target/waitstatus.h.
9945         (struct btrace_thread_info) <stop_reason>: New field.
9946         * record-btrace.c (record_btrace_step_thread): Use
9947         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9948         (record_btrace_decr_pc_after_break): Delete.
9949         (record_btrace_stopped_by_sw_breakpoint)
9950         (record_btrace_supports_stopped_by_sw_breakpoint)
9951         (record_btrace_stopped_by_hw_breakpoint)
9952         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9953         (init_record_btrace_ops): Install them.
9954         * record-full.c (record_full_hw_watchpoint): Delete and replace
9955         with ...
9956         (record_full_stop_reason): ... this throughout.
9957         (record_full_exec_insn): Adjust.
9958         (record_full_wait_1): Adjust.  No longer re-increment the PC.
9959         (record_full_wait_1): Adjust.  Use
9960         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9961         (record_full_stopped_by_watchpoint): Adjust.
9962         (record_full_stopped_by_sw_breakpoint)
9963         (record_full_supports_stopped_by_sw_breakpoint)
9964         (record_full_supports_stopped_by_sw_breakpoint)
9965         (record_full_stopped_by_hw_breakpoint)
9966         (record_full_supports_stopped_by_hw_breakpoint): New functions.
9967         (init_record_full_ops, init_record_full_core_ops): Install them.
9968         * record.c (record_check_stopped_by_breakpoint): New function.
9969         * record.h: Include target/waitstatus.h.
9970         (record_check_stopped_by_breakpoint): New declaration.
9971
9972 2015-03-04  Pedro Alves  <palves@redhat.com>
9973
9974         enum lwp_stop_reason -> enum target_stop_reason
9975         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9976         (linux_nat_stopped_by_watchpoint, status_callback)
9977         (linux_nat_wait_1): Adjust.
9978         * linux-nat.h (enum lwp_stop_reason): Delete.
9979         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9980         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9981         * target/waitstatus.h (enum target_stop_reason): New.
9982
9983 2015-03-04  Pedro Alves  <palves@redhat.com>
9984
9985         * breakpoint.c (need_moribund_for_location_type): New function.
9986         (bpstat_stop_status): Don't skipping checking moribund locations
9987         of breakpoint types which the target tell caused a stop.
9988         (program_breakpoint_here_p): New function, factored out from ...
9989         (bp_loc_is_permanent): ... this.
9990         (update_global_location_list): Don't create a moribund location if
9991         the target supports reporting stops of the type of the removed
9992         breakpoint.
9993         * breakpoint.h (program_breakpoint_here_p): New declaration.
9994         * infrun.c (adjust_pc_after_break): Return early if the target has
9995         already adjusted the PC.  Add comments.
9996         (handle_signal_stop): If nothing explains a signal, and the target
9997         tells us the stop was caused by a software breakpoint, check if
9998         there's a breakpoint instruction in the memory.  If so, adjust the
9999         PC before presenting the stop to the user.  Otherwise, ignore the
10000         trap.  If nothing explains a signal, and the target tells us the
10001         stop was caused by a hardware breakpoint, ignore the trap.
10002         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10003         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10004         to_supports_stopped_by_hw_breakpoint>: New fields.
10005         (target_stopped_by_sw_breakpoint)
10006         (target_supports_stopped_by_sw_breakpoint)
10007         (target_stopped_by_hw_breakpoint)
10008         (target_supports_stopped_by_hw_breakpoint): Define.
10009         * target-delegates.c: Regenerate.
10010
10011 2015-03-04  Pedro Alves  <palves@redhat.com>
10012
10013         * infrun.c (follow_fork_inferior): Use the whole of the
10014         inferior_ptid and pending_follow.related_pid ptids instead of
10015         building ptids from the process components.  Adjust verbose output
10016         to use target_pid_to_str.
10017         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10018         inferior_ptid and pending_follow.related_pid ptids instead of
10019         building ptids from the process components.
10020
10021 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10022
10023         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10024         (inf_ptrace_insert_fork_catchpoint): New function.
10025         (inf_ptrace_remove_fork_catchpoint): New function.
10026         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10027
10028 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10029
10030         * s390-linux-tdep.c (s390_register_name): Return empty string
10031         instead of NULL for registers that shouldn't be visible.
10032
10033 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10034
10035         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10036         XML file for 64-bit targets.
10037
10038 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10039
10040         * target.h (find_default_create_inferior): Remove declaration.
10041         (find_default_attach): Likewise.
10042
10043 2015-03-03  Pedro Alves  <palves@redhat.com>
10044
10045         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10046         Use ptid_get_pid to get the overall process id when resuming all
10047         threads.
10048
10049 2015-03-03  Pedro Alves  <palves@redhat.com>
10050
10051         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10052         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10053         * inf-ptrace.c (get_ptrace_pid): New function.
10054         (inf_ptrace_resume): Use it.
10055         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10056         to the lower layer.
10057
10058 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10059
10060         * nat/linux-btrace.c: Include sys/utsname.h.
10061         (linux_determine_kernel_ptr_bits): New.
10062         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10063         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10064         ptr_bits.
10065
10066 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10067
10068         * btrace.c (ftrace_update_function): Treat return as tailcall for
10069         "_dl_runtime_resolve".
10070
10071 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10072
10073         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10074         * btrace.c (ftrace_debug): Do not print the line range.
10075         (ftrace_skip_file, ftrace_update_lines): Remove.
10076         (ftrace_new_function): Remove lbegin and lend initialization.
10077         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10078         * record-btrace.c (btrace_compute_src_line_range): New.
10079         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10080
10081 2015-03-02  Pedro Alves  <palves@redhat.com>
10082
10083         * infrun.c (follow_exec): Delete all threads of the process except
10084         the event thread.  Extended comments.
10085
10086 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10087
10088         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10089
10090 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10091
10092         * utils.h: Remove <stdbool.h> #include.
10093         (producer_is_gcc): Change return type to "int".
10094         * utils.c (producer_is_gcc): Change return type to int.
10095         Return 1 instead of true, and 0 instead of false.
10096         Adjust function documentation accordingly.
10097
10098 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10099
10100         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10101         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10102         present.
10103         (s390_linux_store_inferior_registers): Likewise.
10104         (s390_get_hwcap): Remove function.  Embed its logic...
10105         (s390_read_description): ...here.  Yield a target description with
10106         vector registers if applicable.
10107         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10108         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10109         "features/s390x-tevx-linux64.c".
10110         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10111         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10112         for "GNU/Linux-specific registers".
10113         (s390_dwarf_reg_r0l): New enum value.
10114         (s390_dwarf_reg_to_regnum): Support vector registers.
10115         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10116         of GPR lower halves.
10117         (regnum_is_vxr_full): New function.
10118         (s390_register_name): New function.
10119         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10120         f0-f15 and v0l-v15l.
10121         (s390_pseudo_register_type): Likewise.
10122         (s390_pseudo_register_read): Likewise.
10123         (s390_pseudo_register_write): Likewise.
10124         (s390_value_from_register): Account for the fact that values are
10125         placed left-justified in vector registers.
10126         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10127         the vector reggroup and omit them from the general reggroup.
10128         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10129         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10130         (s390_iterate_over_regset_sections): Add iterations for the two
10131         new vector regsets.
10132         (s390_core_read_description): Yield a target description with
10133         vector registers if applicable.
10134         (s390_gdbarch_init): Handle target descriptions with vector
10135         registers.  Add "register_name" gdbarch method.
10136         (_initialize_s390_tdep): Call new tdesc initialization functions.
10137         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10138         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10139         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10140         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10141         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10142         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10143         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10144         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10145         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10146         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10147         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10148         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10149         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10150         (S390_NUM_REGS): Adjust value.
10151         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10152         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10153         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10154         * NEWS: Announce S/390 vector register support.
10155
10156 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10157
10158         * features/s390-tevx-linux64.xml: New file.
10159         * features/s390-vx-linux64.xml: New file.
10160         * features/s390-vx.xml: New file.
10161         * features/s390x-tevx-linux64.xml: New file.
10162         * features/s390x-vx-linux64.xml: New file.
10163         * features/Makefile (WHICH): Add s390-vx-linux64,
10164         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10165         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10166         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10167         macros.
10168         * features/s390-tevx-linux64.c: New generated file.
10169         * features/s390-vx-linux64.c: Likewise.
10170         * features/s390x-tevx-linux64.c: Likewise.
10171         * features/s390x-vx-linux64.c: Likewise.
10172         * regformats/s390-tevx-linux64.dat: Likewise.
10173         * regformats/s390-vx-linux64.dat: Likewise.
10174         * regformats/s390x-tevx-linux64.dat: Likewise.
10175         * regformats/s390x-vx-linux64.dat: Likewise.
10176
10177 2015-02-28  Doug Evans  <xdje42@gmail.com>
10178
10179         * symtab.h (struct symtab) <next>: Fix comment.
10180
10181 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10182
10183         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10184         python_GdbMethods.
10185
10186 2015-02-27  Pedro Alves  <palves@redhat.com>
10187
10188         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10189
10190 2015-02-27  Pedro Alves  <palves@redhat.com>
10191
10192         * common/common-exceptions.h (exception_none): Declare.
10193         * common/common-exceptions.c (exception_none): Moved from
10194         exceptions.c.
10195         (exceptions_state_mc_init): Use exception_none.
10196         * exceptions.c (exception_none): Move to
10197         common/common-exceptions.c.
10198         * exceptions.h (exception_none): Move to
10199         common/common-exceptions.h.
10200
10201 2015-02-27  Pedro Alves  <palves@redhat.com>
10202
10203         * main.c (catch_command_errors, catch_command_errors_const):
10204         Remove 'mask' argument.  Adjust.
10205         (captured_main): Adjust callers.
10206
10207 2015-02-27  Pedro Alves  <palves@redhat.com>
10208
10209         * python/python-internal.h: Include "extension-priv.h".
10210
10211 2015-02-27  Pedro Alves  <palves@redhat.com>
10212
10213         * breakpoint.h (enum print_stop_action): Move further up in the
10214         file.
10215
10216 2015-02-27  Pedro Alves  <palves@redhat.com>
10217
10218         * gdbarch.sh: Include regcache.h.
10219         * gdbarch.h: Regenerate.
10220
10221 2015-02-27  Pedro Alves  <palves@redhat.com>
10222
10223         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10224         Remove duplicate const.
10225         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10226         duplicate const.
10227
10228 2015-02-27  Pedro Alves  <palves@redhat.com>
10229
10230         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10231         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10232         * features/feature_to_c.sh: Tag the generated xml_builtin array
10233         with extern const in C++ mode.
10234
10235 2015-02-27  Tom Tromey  <tromey@redhat.com>
10236
10237         * minidebug.c (struct lzma_stream): Rename to ...
10238         (struct gdb_lzma_stream): ... this.
10239         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10240
10241 2015-02-27  Pedro Alves  <palves@redhat.com>
10242
10243         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10244         function.
10245         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10246         (mi_cmd_stack_list_variables): Use it.
10247
10248 2015-02-27  Pedro Alves  <palves@redhat.com>
10249
10250         * x86-linux-nat.c (u_debugreg_offset): New function.
10251         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10252
10253 2015-02-27  Pedro Alves  <palves@redhat.com>
10254
10255         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10256         declaration.
10257         Include break-common.h.
10258
10259 2015-02-27  Tom Tromey  <tromey@redhat.com>
10260             Pedro Alves <palves@redhat.com>
10261
10262         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10263         local used to iterate over enums.
10264         * completer.c (signal_completer): Likewise.
10265         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10266         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10267         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10268         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10269         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10270         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10271         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10272
10273 2015-02-27  Pedro Alves  <palves@redhat.com>
10274
10275         * target.h: Include "infrun.h".
10276
10277 2015-02-27  Pedro Alves  <palves@redhat.com>
10278
10279         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10280
10281 2015-02-27  Pedro Alves  <palves@redhat.com>
10282
10283         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10284         (IPA_SYM): Use it.
10285         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10286
10287 2015-02-27  Pedro Alves  <palves@redhat.com>
10288
10289         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10290         cli_mld_erase_entire_line, and make it extern "C".
10291         * common/common-defs.h (EXTERN_C): New.
10292         * completer.c (_rl_completion_prefix_display_length)
10293         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10294         out of gdb_display_match_list_1.
10295         (_rl_qsort_string_compare): Move declaration out of
10296         gdb_display_match_list_1, and make it extern "C".
10297         * defs.h (re_comp): Use EXTERN_C.
10298         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10299         and make it extern "C".
10300         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10301         and make it extern "C".
10302         (main): Move declaration out of maintenance_set_profile_cmd.
10303         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10304         EXTERN_C.
10305
10306 2015-02-27  Pedro Alves  <palves@redhat.com>
10307
10308         * python/python.c (GdbMethods): Rename to ...
10309         (python_GdbMethods): ... this and make extern.
10310         (GdbModuleDef): Rename to ...
10311         (python_GdbModuleDef): ... this and make extern.
10312
10313 2015-02-27  Pedro Alves  <palves@redhat.com>
10314
10315         * record-btrace.c (set_record_btrace_cmdlist)
10316         (show_record_btrace_cmdlist): Remove redefinitions.
10317
10318 2015-02-27  Tom Tromey  <tromey@redhat.com>
10319             Pedro Alves  <palves@redhat.com>
10320
10321         * dwarf2-frame.c (enum cfa_how_kind, struct
10322         dwarf2_frame_state_reg_info): Move out of struct
10323         dwarf2_frame_state.
10324         * dwarf2read.c (struct tu_stats): Move out of struct
10325         dwarf2_per_objfile.
10326         (struct file_entry): Move out of struct line_header.
10327         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10328         typedef_field_list): Move out of struct field_info.
10329         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10330         Move out of struct dynamic_prop.
10331         (union type_owner, union field_location, struct field, struct
10332         range_bounds, union type_specific): Move out of struct main_type.
10333         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10334         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10335         (struct call_site_target, union call_site_parameter_u, struct
10336         call_site_parameter): Move out of struct call_site.
10337         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10338         m32c_prologue.
10339         (enum srcdest_kind): Move out of struct srcdest.
10340         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10341         * prologue-value.h (enum prologue_value_kind): Move out of struct
10342         prologue_value.
10343         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10344         gdbarch_tdep.
10345         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10346         out of struct field_info.
10347         * symfile.h (struct other_sections): Move out of struct
10348         section_addr_info.
10349         * symtab.c (struct symbol_cache_slot): Move out struct
10350         block_symbol_cache.
10351         * target-descriptions.c (enum tdesc_type_kind): Move out of
10352         typedef struct tdesc_type.
10353         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10354         struct tui_line_or_address.
10355         * value.c (enum internalvar_kind, union internalvar_data): Move
10356         out of struct internalvar.
10357         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10358         gdbarch_tdep.
10359
10360 2015-02-27  Tom Tromey  <tromey@redhat.com>
10361             Pedro Alves  <palves@redhat.com>
10362
10363         Rename symbols whose names are reserved C++ keywords throughout.
10364
10365 2015-02-27  Pedro Alves  <palves@redhat.com>
10366
10367         * Makefile.in (COMPILER): New, get it from autoconf.
10368         (COMPILE.pre, CC_LD): Use COMPILER.
10369         (CXX): Get from autoconf instead.
10370         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10371         * acinclude.m4: Include build-with-cxx.m4.
10372         * build-with-cxx.m4: New file.
10373         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10374         Disable -Werror by default if building in C++ mode.
10375         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10376         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10377         Run supported-warning-flags tests with the C++ compiler.
10378         Save/restore CXXFLAGS too.
10379         * configure: Regenerate.
10380
10381 2015-02-27  Pedro Alves  <palves@redhat.com>
10382
10383         * libiberty.m4: New file.
10384         * acinclude.m4: Include libiberty.m4.
10385         * configure.ac: Call libiberty_INIT.
10386         * config.in, configure: Regenerate.
10387
10388 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10389
10390         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10391         31-bit targets, but 64-bit targets as well.
10392         (s390_gnu_triplet_regexp): New function.
10393         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10394         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10395         method.
10396
10397 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10398
10399         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10400         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10401         from CONTEXT_DEBUGGER.
10402
10403 2015-02-26  Doug Evans  <dje@google.com>
10404
10405         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10406         CHECK_TYPEDEF.
10407         (set_type_vptr_fieldno): Ditto.
10408         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10409         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10410
10411 2015-02-26  Pedro Alves  <palves@redhat.com>
10412
10413         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10414         * complaints.c (vcomplaint): Pass argument FMT directly to
10415         printf-like functions instead of complaint->fmt.
10416         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10417         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10418         * compile/compile-loc2c.c (pushf, unary, binary): Add
10419         ATTRIBUTE_PRINTF.
10420         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10421         to pushf.
10422         (BINARY): Pass string literal as format string to 'binary'.
10423         * compile/compile-object-load.c (link_callbacks_einfo): Add
10424         ATTRIBUTE_PRINTF.
10425         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10426
10427 2015-02-26  Pedro Alves  <palves@redhat.com>
10428
10429         * windows-termcap.c: Rename to ...
10430         * stub-termcap.c: ... this.  Adjust header line.
10431         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10432         windows-termcap.c.
10433         * configure: Regenerate.
10434         * configure.ac: Refer to stub-termcap.o instead of
10435         windows-termcap.o.
10436         * gdb_curses.h: Mention stub-termcap.c instead of
10437         windows-termcap.c.
10438
10439 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10440
10441         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10442         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10443
10444 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10445
10446         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10447
10448 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10449
10450         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10451         bfd_canonicalize_symtab.
10452
10453 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10454
10455         * amd64fbsd-nat.c: Include sys/user.h.
10456         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10457         instead of KERN_PS_STRINGS to locate the signal trampoline.
10458         * i386fbsd-nat.c: Include sys/user.h.
10459         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10460         instead of KERN_PS_STRINGS to locate the signal trampoline.
10461         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10462         (amd64fbsd_sigtramp_p): New.
10463         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10464         longer set default values.
10465         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10466         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10467         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10468         (i386fbsd_freebsd4_sigtramp_start)
10469         (i386fbsd_freebsd4_sigtramp_middle)
10470         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10471         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10472         (i386fbsd_sigtramp_p): New.
10473         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10474         longer set default values.
10475         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10476
10477 2015-02-25  John Baldwin  <jhb@freebsd.org>
10478
10479         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10480         get_frame_register instead of frame_unwind_register_unsigned.
10481
10482 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10483
10484         PR build/18033
10485         * compile/compile-c-support.c (c_compute_program): Change // comment.
10486         * compile/compile-object-load.c (setup_sections): Change // comment.
10487
10488 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10489
10490         PR build/18033:
10491         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10492
10493 2015-02-23  Pedro Alves  <palves@redhat.com>
10494
10495         * remote.c (skip_to_semicolon): New function.
10496         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10497         special case the stop reasons that look like hex numbers
10498         upfront.  Instead handle real register numbers after matching
10499         all the known stop reasons.
10500
10501 2015-02-21  Doug Evans  <dje@google.com>
10502
10503         PR c++/17976, symtab/17821
10504         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10505         is_in_anonymous.  All callers updated.
10506         (find_symbol_in_baseclass): Ditto.
10507         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10508         for symbols in an anonymous namespace.
10509         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10510         DW_AT_name directly.
10511         (dwarf2_name): Convert missing namespace name to
10512         CP_ANONYMOUS_NAMESPACE_STR.
10513
10514 2015-02-20  Pedro Alves  <palves@redhat.com>
10515
10516         * linux-nat.c (linux_handle_extended_wait): Call
10517         thread_db_notice_clone whenever a new clone LWP is detected.
10518         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10519         functions.
10520         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10521         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10522         (linux_unstop_all_lwps): Declare.
10523         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10524         (thread_get_info_callback): Delete.
10525         (thread_from_lwp): Use td_thr_get_info and record_thread.
10526         (thread_db_attach_lwp): Delete.
10527         (thread_db_notice_clone): New function.
10528         (try_thread_db_load_1): If /proc is mounted and shows the
10529         process'es task list, walk over all LWPs and call thread_from_lwp
10530         instead of relying on td_ta_thr_iter.
10531         (attach_thread): Don't call check_thread_signals here.  Split the
10532         tail part of the function (which adds the thread to the core GDB
10533         thread list) to ...
10534         (record_thread): ... this function.  Call check_thread_signals
10535         here.
10536         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10537         call thread_from_lwp.
10538         (thread_db_update_thread_list): Rename to ...
10539         (thread_db_update_thread_list_org): ... this.
10540         (thread_db_update_thread_list): New function.
10541         (thread_db_find_thread_from_tid): Delete.
10542         (thread_db_get_ada_task_ptid): Simplify.
10543         * nat/linux-procfs.c: Include <sys/stat.h>.
10544         (linux_proc_task_list_dir_exists): New function.
10545         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10546
10547 2015-02-20  Pedro Alves  <palves@redhat.com>
10548
10549         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10550         main LWP.  Handle the case of waitpid returning 0 if we're already
10551         attached to the LWP.  Don't set the LWP's last_resume_kind to
10552         resume_stop if we already knew about the LWP.
10553         (linux_nat_filter_event): Add debug logs.
10554
10555 2015-02-20  Pedro Alves  <palves@redhat.com>
10556
10557         * target.h (forward_target_decr_pc_after_break): Delete
10558         declaration.
10559
10560 2015-02-20  Pedro Alves  <palves@redhat.com>
10561
10562         PR threads/18006
10563         * linux-thread-db.c (thread_get_info_callback): Return early if
10564         the thread's lwp id is -1.
10565
10566 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10567
10568         GDB 7.9 released.
10569
10570 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10571
10572         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10573         (dtrace_get_probes) Change type of variable 'dof'.
10574
10575 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10576
10577         PR breakpoints/16812
10578         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10579         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10580         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10581
10582 2015-02-19  David Taylor  <dtaylor@emc.com>
10583
10584         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10585
10586 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10587
10588         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10589         function.
10590         (tui_putc): Don't call tui_handle_resize_during_io.
10591         (tui_getc): Likewise.
10592         (tui_mld_getc): Likewise.
10593         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10594         (tui_sigwinch_token): New static variable.
10595         (tui_initialize_win): Adjust documentation.  Set
10596         tui_sigwinch_token.
10597         (tui_async_resize_screen): New asynchronous callback.
10598         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10599         invoke tui_async_resize_screen.
10600
10601 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10602
10603         * configure: Regenerated.
10604         * configure.ac: Use GDB_AC_TRANSFORM.
10605         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10606         * acinclude.m4: sinclude transform.m4.
10607         * transform.m4: New file.
10608         (GDB_AC_TRANSFORM): New macro.
10609
10610 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10611
10612         * NEWS: Announce the support for DTrace SDT probes.
10613
10614 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10615
10616         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10617         (amd64_dtrace_parse_probe_argument): New function.
10618         (amd64_dtrace_probe_is_enabled): Likewise.
10619         (amd64_dtrace_enable_probe): Likewise.
10620         (amd64_dtrace_disable_probe): Likewise.
10621         (amd64_linux_init_abi): Register the
10622         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10623         `gdbarch_dtrace_disable_probe' and
10624         `gdbarch_dtrace_probe_is_enabled' hooks.
10625         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10626         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10627         (amd64_dtrace_enable_probe_sequence): Likewise.
10628         (amd64_dtrace_disable_probe_sequence): Likewise.
10629
10630 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10631
10632         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10633         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10634         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10635         handle ELF files.
10636         * Makefile.in (SFILES): dtrace-probe.c added.
10637         * configure: Regenerate.
10638         * dtrace-probe.c: New file.
10639         (SHT_SUNW_dof): New constant.
10640         (dtrace_probe_type): New enum.
10641         (dtrace_probe_arg): New struct.
10642         (dtrace_probe_arg_s): New typedef.
10643         (struct dtrace_probe_enabler): New struct.
10644         (dtrace_probe_enabler_s): New typedef.
10645         (dtrace_probe): New struct.
10646         (dtrace_probe_is_linespec): New function.
10647         (dtrace_dof_sect_type): New enum.
10648         (dtrace_dof_dofh_ident): Likewise.
10649         (dtrace_dof_encoding): Likewise.
10650         (DTRACE_DOF_ENCODE_LSB): Likewise.
10651         (DTRACE_DOF_ENCODE_MSB): Likewise.
10652         (dtrace_dof_hdr): New struct.
10653         (dtrace_dof_sect): Likewise.
10654         (dtrace_dof_provider): Likewise.
10655         (dtrace_dof_probe): Likewise.
10656         (DOF_UINT): New macro.
10657         (DTRACE_DOF_PTR): Likewise.
10658         (DTRACE_DOF_SECT): Likewise.
10659         (dtrace_process_dof_probe): New function.
10660         (dtrace_process_dof): Likewise.
10661         (dtrace_build_arg_exprs): Likewise.
10662         (dtrace_get_arg): Likewise.
10663         (dtrace_get_probes): Likewise.
10664         (dtrace_get_probe_argument_count): Likewise.
10665         (dtrace_can_evaluate_probe_arguments): Likewise.
10666         (dtrace_evaluate_probe_argument): Likewise.
10667         (dtrace_compile_to_ax): Likewise.
10668         (dtrace_probe_destroy): Likewise.
10669         (dtrace_gen_info_probes_table_header): Likewise.
10670         (dtrace_gen_info_probes_table_values): Likewise.
10671         (dtrace_probe_is_enabled): Likewise.
10672         (dtrace_probe_ops): New variable.
10673         (info_probes_dtrace_command): New function.
10674         (_initialize_dtrace_probe): Likewise.
10675         (dtrace_type_name): Likewise.
10676
10677 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10678
10679         * gdbarch.sh (dtrace_parse_probe_argument): New.
10680         (dtrace_probe_is_enabled): Likewise.
10681         (dtrace_enable_probe): Likewise.
10682         (dtrace_disable_probe): Likewise.
10683         * gdbarch.c: Regenerate.
10684         * gdbarch.h: Regenerate.
10685
10686 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10687
10688         * stap-probe.c (stap_probe_ops): Add NULLs in the static
10689         stap_probe_ops for `enable_probe' and `disable_probe'.
10690         * probe.c (enable_probes_command): New function.
10691         (disable_probes_command): Likewise.
10692         (_initialize_probe): Define the cli commands `enable probe' and
10693         `disable probe'.
10694         (parse_probe_linespec): New function.
10695         (info_probes_for_ops): Use parse_probe_linespec.
10696         * probe.h (probe_ops): New hooks `enable_probe' and
10697         `disable_probe'.
10698
10699 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10700
10701         * probe.c (compute_probe_arg): Moved from stap-probe.c
10702         (compile_probe_arg): Likewise.
10703         (probe_funcs): Likewise.
10704         * stap-probe.c (compute_probe_arg): Moved to probe.c.
10705         (compile_probe_arg): Likewise.
10706         (probe_funcs): Likewise.
10707
10708 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10709
10710         * probe.c (print_ui_out_not_applicables): New function.
10711         (exists_probe_with_pops): Likewise.
10712         (info_probes_for_ops): Do not include column headers for probe
10713         types for which no probe has been actually found on any object.
10714         Also invoke `print_ui_out_not_applicables' in order to match the
10715         column rows with the header when probes of several types are
10716         listed.
10717         Print the "Type" column.
10718         * probe.h (probe_ops): Added a new probe operation `type_name'.
10719         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10720         (stap_type_name): New function.
10721
10722 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
10723
10724         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10725         (key_is_command_char): Delete.
10726
10727 2015-02-17  Pedro Alves  <palves@redhat.com>
10728
10729         * tui/tui.c (tui_enable): Resize windows before anything
10730         might show a window.
10731
10732 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10733
10734         PR gdb/17984
10735         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10736         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10737         call.
10738         * aarch64-tdep.h (tdesc_aarch64): Declare.
10739
10740 2015-02-12  Mark Wielaard  <mjw@redhat.com>
10741
10742         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10743
10744 2015-02-13  Doug Evans  <dje@google.com>
10745
10746         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10747         anonymous_namespace to is_in_anonymous for consistency with the rest
10748         of the file.
10749         (cp_lookup_bare_symbol): Fix typo in comment.
10750         (cp_search_static_and_baseclasses): Ditto.
10751         (search_symbol_list): Use vertical space in comment better.
10752         (reset_directive_searched): Ditto. Fix typo.
10753         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10754
10755 2015-02-13  Yao Qi  <yao.qi@arm.com>
10756
10757         * MAINTAINERS: Update my email address.
10758
10759 2015-02-12  Doug Evans  <dje@google.com>
10760
10761         * symtab.c (completion_list_add_name): Fix memory leak.
10762
10763 2015-02-12  Doug Evans  <dje@google.com>
10764
10765         * completer.c (complete_line): Remove incorrect comment.
10766
10767 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10768
10769         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10770         (py_print_frame): Use RETURN_MASK_ERROR.
10771
10772 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10773
10774         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10775         function comment.  Wrap all function that can throw in cleanups.
10776         (gdbpy_apply_frame_filter): Wrap all function that can throw in
10777         cleanups.
10778
10779 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10780
10781         * python/py-framefilter.c (py_print_frame): Substitute goto error.
10782         Remove the error label.
10783
10784 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10785
10786         * python/py-framefilter.c (py_print_frame): Put conditional code paths
10787         with goto first, indent the former else codepath left.  Put variable
10788         'elided' to a new inner block.
10789
10790 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10791
10792         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10793
10794 2015-02-11  Pedro Alves  <palves@redhat.com>
10795
10796         * xcoffread.c (within_function): Delete.
10797
10798 2015-02-11  Tom Tromey  <tromey@redhat.com>
10799             Pedro Alves <palves@redhat.com>
10800
10801         * breakpoint.c (base_breakpoint_ops): Delete.
10802         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10803         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10804         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10805         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10806         * python/py-arch.c (arch_object_type): Make extern.
10807         * python/py-block.c (block_syms_iterator_object_type): Make extern.
10808         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10809         * python/py-cmd.c (cmdpy_object_type): Make extern.
10810         * python/py-continueevent.c (continue_event_object_type)
10811         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10812         parameter.  Update all callers.
10813         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10814         * python/py-exitedevent.c (exited_event_object_type): Make extern.
10815         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10816         * python/py-function.c (fnpy_object_type): Make extern.
10817         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10818         * python/py-infevents.c (call_pre_event_object_type)
10819         (inferior_call_post_event_object_type).
10820         (memory_changed_event_object_type): Make extern.
10821         * python/py-infthread.c (thread_object_type): Make extern.
10822         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10823         * python/py-linetable.c (linetable_entry_object_type)
10824         (linetable_object_type, ltpy_iterator_object_type): Make extern.
10825         * python/py-newobjfileevent.c (new_objfile_event_object_type)
10826         (clear_objfiles_event_object_type): Make extern.
10827         * python/py-objfile.c (objfile_object_type): Make extern.
10828         * python/py-param.c (parmpy_object_type): Make extern.
10829         * python/py-progspace.c (pspace_object_type): Make extern.
10830         * python/py-signalevent.c (signal_event_object_type): Make extern.
10831         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10832         * python/py-type.c (type_object_type, field_object_type)
10833         (type_iterator_object_type): Make extern.
10834         * python/python.c (python_extension_script_ops)
10835         (python_extension_ops): Make extern.
10836         * stap-probe.c (stap_probe_ops): Make extern.
10837
10838 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
10839
10840         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10841         because the event thread is not the current thread.
10842
10843 2015-02-11  Doug Evans  <xdje42@gmail.com>
10844
10845         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10846         been initialized yet, return NULL.
10847
10848 2015-02-11  Doug Evans  <dje@google.com>
10849
10850         * symfile.h (new_symfile_objfile): Delete.
10851         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10852         All callers updated.
10853
10854 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10855
10856         * tui/tui-io.c (tui_handle_resize_during_io): Call
10857         tui_update_gdb_sizes() after resizing the screen.
10858         * tui/tui.c (tui_enable): Resize the terminal before
10859         calling tui_update_gdb_sizes().
10860
10861 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10862
10863         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10864         line before printing a newline.
10865
10866 2015-02-11  Mark Wielaard  <mjw@redhat.com>
10867
10868         * utils.c (producer_is_gcc): Return true or false.
10869
10870 2015-02-10  Mark Wielaard  <mjw@redhat.com>
10871
10872         * utils.h (producer_is_gcc): Change return type to bool. Add major
10873         argument.
10874         * utils.c (producer_is_gcc): Likewise.
10875         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10876         * dwarf2read.c (check_producer): Likewise.
10877
10878 2015-02-10  Pedro Alves  <palves@redhat.com>
10879
10880         * infrun.c (displaced_step_fixup): Switch to the event thread
10881         before calling gdbarch_displaced_step_fixup.
10882
10883 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
10884
10885         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10886
10887 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
10888
10889         * ada-varobj.c (ada_name_of_child): Constify parent.
10890         (ada_path_expr_of_child): Same.
10891         (ada_value_of_child): Same.
10892         (ada_type_of_child): Same.
10893         * c-varobj.c (c_is_path_expr_parent): Same.
10894         (c_describe_child): Same.
10895         (c_name_of_child): Same.
10896         (c_value_of_child): Same.
10897         (c_type_of_child): Same.
10898         (cplus_number_of_children): Same.
10899         (cplus_describe_child): Constify var.
10900         (cplus_name_of_child): Constify parent.
10901         (cplus_value_of_child): Same.
10902         (cplus_type_of_child): Same.
10903         * jv-varobj.c (java_name_of_child): Same.
10904         (java_value_of_child): Same.
10905         (java_type_of_child): Same.
10906         * varobj.c (value_of_child): Same.
10907         (varobj_default_is_path_expr_parent): Constify var, parent and return
10908         value.
10909         (varobj_get_path_expr): Constify var, modify path_expr through
10910         mutable_var.
10911         (install_new_value): Constify parent.
10912         (value_of_child): Constify parent.
10913         * varobj.h (struct varobj): Constify parent.
10914         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10915         type_of_child.
10916         (varobj_get_path_expr): Constify var.
10917         (varobj_get_path_expr_parent): Constify var and return value.
10918
10919 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
10920
10921         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10922         (arm_prologue_this_id): Move PC and SP limit checks to
10923         arm_prologue_unwind_stop_reason.
10924         (arm_prologue_unwind) <stop_reason> : Set to
10925         arm_prologue_unwind_stop_reason.
10926
10927 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10928
10929         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10930         DW_LANG_Fortran08 as language_fortran.
10931
10932 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
10933
10934         PR remote/17946
10935         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10936         of pointer against char.
10937
10938 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10939
10940         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10941         (c_type_print_modifier): Likewise.
10942         * dwarf2read.c (read_tag_atomic_type): New function.
10943         (read_type_die_1): Handle DW_TAG_atomic_type.
10944         * gdbtypes.c (make_atomic_type): New function.
10945         (recursive_dump_type): Handle TYPE_ATOMIC.
10946         * gdbtypes.h (enum type_flag_values): Renumber.
10947         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10948         (TYPE_ATOMIC): New macro.
10949         (make_atomic_type): Declare.
10950
10951 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10952
10953         * btrace.c (ftrace_find_call): Skip gaps.
10954         (ftrace_new_function): Initialize level.
10955         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10956         (ftrace_new_switch): Update
10957         level computation.
10958         (ftrace_new_gap): New.
10959         (ftrace_update_function): Create new function after gap.
10960         (btrace_compute_ftrace_bts): Create gap on error.
10961         (btrace_stitch_bts): Update parameters.  Clear trace if it
10962         becomes empty.
10963         (btrace_stitch_trace): Update parameters.  Update callers.
10964         (btrace_clear): Reset the number of gaps.
10965         (btrace_insn_get): Return NULL if the iterator points to a gap.
10966         (btrace_insn_number): Return zero if the iterator points to a gap.
10967         (btrace_insn_end): Allow gaps at the end.
10968         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10969         (btrace_find_insn_by_number): Assert that the found iterator does
10970         not point to a gap.
10971         (btrace_call_next, btrace_call_prev): Assert that the last function
10972         is not a gap.
10973         * btrace.h (btrace_bts_error): New.
10974         (btrace_function): Update comment.
10975         (btrace_function) <insn, insn_offset, number>: Update comment.
10976         (btrace_function) <errcode>: New.
10977         (btrace_thread_info) <ngaps>: New.
10978         (btrace_thread_info) <replay>: Update comment.
10979         (btrace_insn_get): Update comment.
10980         * record-btrace.c (btrace_ui_out_decode_error): New.
10981         (record_btrace_info): Print number of gaps.
10982         (btrace_insn_history, btrace_call_history): Call
10983         btrace_ui_out_decode_error for gaps.
10984         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10985
10986 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10987
10988         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10989         * nat/linux-btrace.c: (btrace_this_cpu): New.
10990         (cpu_supports_bts): Call btrace_this_cpu.
10991         (intel_supports_bts): Add cpu parameter.
10992
10993 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10994
10995         * btrace.h (btrace_insn_class): New.
10996         (btrace_insn) <size, iclass>: New.
10997         * btrace.c (ftrace_find_call): Update parameters.  Update users.
10998         Use instruction classification.
10999         (ftrace_new_return): Update parameters.  Update users.
11000         (ftrace_update_function): Update parameters.  Update users.  Use
11001         instruction classification.
11002         (ftrace_update_insns): Update parameters.  Update users.
11003         (ftrace_classify_insn): New.
11004         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11005         TRY_CATCH around call to gdb_insn_length.
11006
11007 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11008
11009         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11010         Update parameters.  Update users.
11011
11012 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11013
11014         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11015         (btrace_conf_bts_attributes): New.
11016         (btrace_conf_children): Add attributes.
11017         * common/btrace-common.h (btrace_config_bts): New.
11018         (btrace_config)<bts>: New.
11019         (btrace_config): Update comment.
11020         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11021         Use config.
11022         * features/btrace-conf.dtd: Increment version.  Add size
11023         attribute to bts element.
11024         * record-btrace.c (set_record_btrace_bts_cmdlist,
11025         show_record_btrace_bts_cmdlist): New.
11026         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11027         record_btrace_print_conf, cmd_set_record_btrace_bts,
11028         cmd_show_record_btrace_bts): New.
11029         (record_btrace_info): Call record_btrace_print_conf.
11030         (_initialize_record_btrace): Add commands.
11031         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11032         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11033         (btrace_sync_conf): Synchronize bts size.
11034         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11035         * NEWS: Announce new commands and new packets.
11036
11037 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11038
11039         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11040         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11041         (x86_linux_btrace_conf): New.
11042         (x86_linux_create_target): Initialize to_btrace_conf.
11043         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11044         Check format.  Split into this and ...
11045         (linux_enable_bts): ... this.
11046         (linux_btrace_conf): New.
11047         (perf_event_skip_record): Renamed into ...
11048         (perf_event_skip_bts_record): ... this.  Updated users.
11049         (linux_disable_btrace): Split into this and ...
11050         (linux_disable_bts): ... this.
11051         (linux_read_btrace): Check format.
11052         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11053         (linux_btrace_conf): New.
11054         (btrace_target_info)<ptid>: Moved.
11055         (btrace_target_info)<conf>: New.
11056         (btrace_target_info): Split into this and ...
11057         (btrace_tinfo_bts): ... this.  Updated users.
11058         * btrace.c (btrace_enable): Update parameters.
11059         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11060         (btrace_conf_children, btrace_conf_attributes)
11061         (btrace_conf_elements): New.
11062         * btrace.h (btrace_enable): Update parameters.
11063         (btrace_conf, parse_xml_btrace_conf): New.
11064         * common/btrace-common.h (btrace_config): New.
11065         * feature/btrace-conf.dtd: New.
11066         * record-btrace.c (record_btrace_conf): New.
11067         (record_btrace_cmdlist): New.
11068         (record_btrace_enable_warn, record_btrace_open): Pass
11069         &record_btrace_conf.
11070         (record_btrace_info): Print recording format.
11071         (cmd_record_btrace_bts_start): New.
11072         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11073         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11074         Add "record bts" alias command.
11075         * remote.c (remote_state)<btrace_config>: New.
11076         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11077         (remote_protocol_features): Add qXfer:btrace-conf:read.
11078         (remote_open_1): Call remote_btrace_reset.
11079         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11080         (btrace_target_info)<conf>: New.
11081         (btrace_sync_conf, btrace_read_config): New.
11082         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11083         btrace_read_conf.
11084         (remote_btrace_conf): New.
11085         (init_remote_ops): Initialize to_btrace_conf.
11086         (_initialize_remote): Add qXfer:btrace-conf packet.
11087         * target.c (target_enable_btrace): Update parameters.
11088         (target_btrace_conf): New.
11089         * target.h (target_enable_btrace): Update parameters.
11090         (target_btrace_conf): New.
11091         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11092         (target_ops)<to_enable_btrace>: Update parameters and comment.
11093         (target_ops)<to_btrace_conf>: New.
11094         * target-delegates: Regenerate.
11095         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11096         (target_debug_print_const_struct_btrace_target_info_p): New.
11097         * NEWS: Announce new command and new packet.
11098
11099 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11100
11101         * nat/linux-btrace.h (perf_event_buffer): New.
11102         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11103         <bts>: ... this.
11104         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11105         (perf_event_buffer_size, perf_event_buffer_begin)
11106         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11107         Updated users.
11108         (perf_event_new_data): New.
11109
11110 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11111
11112         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11113         * record-btrace.c (record_btrace_open): Remove call to
11114         target_supports_btrace.
11115         * remote.c (remote_supports_btrace): Update parameters.
11116         * target.c (target_supports_btrace): Update parameters.
11117         * target.h (to_supports_btrace, target_supports_btrace): Update
11118         parameters.
11119         * target-delegates.c: Regenerate.
11120         * target-debug.h (target_debug_print_enum_btrace_format): New.
11121         * nat/linux-btrace.c
11122         (kernel_supports_btrace): Rename into ...
11123         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11124         (intel_supports_btrace): Rename into ...
11125         (intel_supports_bts): ... this.  Update users.
11126         (cpu_supports_btrace): Rename into ...
11127         (cpu_supports_bts): ... this.  Update users.
11128         (linux_supports_btrace): Update parameters.  Split into this and ...
11129         (linux_supports_bts): ... this.
11130         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11131
11132 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11133
11134         * Makefile.in (SFILES): Add common/btrace-common.c.
11135         (COMMON_OBS): Add common/btrace-common.o.
11136         (btrace-common.o): Add build rules.
11137         * btrace.c (parse_xml_btrace): Update parameters.
11138         (parse_xml_btrace_block): Set format field.
11139         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11140         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11141         (btrace_compute_ftrace): Split into this and...
11142         (btrace_compute_ftrace_bts): ...this.
11143         (btrace_stitch_trace): Split into this and...
11144         (btrace_stitch_bts): ...this.
11145         * btrace.h (parse_xml_btrace): Update parameters.
11146         (make_cleanup_btrace_data): New.
11147         * common/btrace-common.c: New.
11148         * common/btrace-common.h: Include common-defs.h.
11149         (btrace_block_s): Update comment.
11150         (btrace_format): New.
11151         (btrace_format_string): New.
11152         (btrace_data_bts): New.
11153         (btrace_data): New.
11154         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11155         * remote.c (remote_read_btrace): Update parameters.
11156         * target.c (target_read_btrace): Update parameters.
11157         * target.h (target_read_btrace): Update parameters.
11158         (target_ops)<to_read_btrace>: Update parameters.
11159         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11160         * target-delegates.c: Regenerate.
11161         * target-debug (target_debug_print_struct_btrace_data_p): New.
11162         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11163         (linux_read_bts): ...this.
11164         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11165
11166 2015-02-06  Doug Evans  <dje@google.com>
11167
11168         * remote-m32r-sdi.c: Include symfile.h.
11169
11170 2015-02-06  Doug Evans  <dje@google.com>
11171
11172         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11173         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11174         to here.
11175
11176 2015-02-06  Pedro Alves  <palves@redhat.com>
11177
11178         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11179
11180 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11181
11182         PR gdb/15678
11183         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11184         (enable_count_command): Check args for NULL value.
11185
11186 2015-02-05  Doug Evans  <xdje42@gmail.com>
11187
11188         * guile/scm-frame.c: Fix spelling errors in a comment.
11189
11190 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11191
11192         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11193         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11194         return type.
11195
11196 2015-02-04  Pedro Alves  <palves@redhat.com>
11197
11198         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11199         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11200         returns true.
11201         (resume_stopped_resumed_lwps): Don't check whether the thread is
11202         marked as executing.
11203         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11204
11205 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11206
11207         * regset.h (struct regset): Add flags field.
11208         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11209         * corelow.c (get_core_register_section): Add warning if the size
11210         exceeds the requested size and the regset does not have the
11211         REGSET_VARIABLE_SIZE flag set.
11212         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11213         flag.
11214         * armbsd-tdep.c (armbsd_gregset): Likewise.
11215         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11216         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11217         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11218         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11219
11220 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11221
11222         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11223         For ".reg-xstate", explicitly specify the requested section size
11224         via X86_XSTATE_SIZE instead of just 0 on input and
11225         X86_XSTATE_MAX_SIZE on output.
11226         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11227         Likewise.
11228
11229 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11230
11231         PR corefiles/17808:
11232         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11233         function type, particularly its SIZE parameter.
11234         * gdbarch.h: Regenerate.
11235         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11236         actual against required size using ">=" instead of "==".
11237         (amd64_collect_fpregset): Likewise.
11238         * i386-tdep.c (i386_supply_gregset): Likewise.
11239         (i386_collect_gregset): Likewise.
11240         (i386_supply_fpregset): Likewise.
11241         (i386_collect_fpregset): Likewise.
11242         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11243         (mips_fill_gregset_wrapper): Likewise.
11244         (mips_supply_fpregset_wrapper): Likewise.
11245         (mips_fill_fpregset_wrapper): Likewise.
11246         (mips64_supply_gregset_wrapper): Likewise.
11247         (mips64_fill_gregset_wrapper): Likewise.
11248         (mips64_supply_fpregset_wrapper): Likewise.
11249         (mips64_fill_fpregset_wrapper): Likewise.
11250         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11251         (am33_supply_fpregset_method): Likewise.
11252         (am33_collect_gregset_method): Likewise.
11253         (am33_collect_fpregset_method): Likewise.
11254
11255 2015-02-04  Doug Evans  <dje@google.com>
11256             Pedro Alves  <palves@redhat.com>
11257             Eli Zaretskii  <eliz@gnu.org>
11258
11259         PR tui/17810
11260         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11261         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11262         * tui/tui-file.c: #include tui/tui-command.h.
11263         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11264         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11265         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11266
11267 2015-02-04  Pedro Alves  <palves@redhat.com>
11268
11269         Fix build breakage.
11270         * event-loop.c (gdb_do_one_event): Add default switch case.
11271
11272 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11273
11274         Filter out inferior gcc option -fpreprocessed.
11275         * compile/compile.c (filter_args): New function.
11276         (get_args): Use it.
11277
11278 2015-02-03  Pedro Alves  <palves@redhat.com>
11279
11280         * event-loop.c: Don't declare nor define a queue type for
11281         gdb_event_p.
11282         (event_queue): Delete.
11283         (create_event, create_file_event, gdb_event_xfree)
11284         (initialize_event_loop, process_event): Delete.
11285         (gdb_do_one_event): Return as soon as one event is handled.
11286         (handle_file_event): Change prototype.  Used the passed in
11287         file_handler pointer and ready_mask instead of looping over all
11288         file handlers.
11289         (gdb_wait_for_event): Update the poll/select timeouts before
11290         blocking.  Run event handlers directly instead of queueing events.
11291         Return as soon as one event is handled.
11292         (struct async_event_handler_data): Delete.
11293         (invoke_async_event_handler): Delete.
11294         (check_async_event_handlers): Change return type to int.  Run
11295         event handlers directly instead of queueing events.  Return as
11296         soon as one event is handled.
11297         (handle_timer_event): Delete.
11298         (update_wait_timeout): New function, factored out from
11299         poll_timers.
11300         (poll_timers): Reimplement.
11301         * event-loop.h (initialize_event_loop): Delete declaration.
11302         * top.c (gdb_init): Don't call initialize_event_loop.
11303
11304 2015-02-03  Pedro Alves  <palves@redhat.com>
11305
11306         * event-loop.c (clear_async_event_handler): New function.
11307         * event-loop.h (clear_async_event_handler): New declaration.
11308         * record-btrace.c (record_btrace_async): New function.
11309         (init_record_btrace_ops): Install record_btrace_async.
11310         * record-full.c (record_full_async): New function.
11311         (record_full_resume): Don't mark the async event source here.
11312         (init_record_full_ops): Install record_full_async.
11313         (record_full_core_resume): Don't mark the async event source here.
11314         (init_record_full_core_ops): Install record_full_async.
11315         * remote.c (remote_async): Mark and clear the async stop reply
11316         queue event-loop token as appropriate.
11317
11318 2015-02-03  Pedro Alves  <palves@redhat.com>
11319
11320         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11321         target_is_async_p instead of target_can_async.
11322         (linux_nat_wait): Use target_is_async_p instead of
11323         target_can_async.  Don't enable async here.
11324         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11325         target_is_async_p instead of target_can_async.
11326
11327 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11328
11329         * varobj.h (lang_varobj_ops): Mention which return values need
11330         to be freed.
11331
11332 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11333
11334         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11335
11336 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11337
11338         PR gdb/17856:
11339         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11340         results found in the cache.
11341
11342 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11343
11344         PR gdb/17854:
11345         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11346         when allocating a new one.
11347
11348 2015-02-01  Tom Tromey  <tom@tromey.com>
11349
11350         * MAINTAINERS: Remove myself.
11351
11352 2015-01-31  Doug Evans  <xdje42@gmail.com>
11353
11354         * dwarf2read.c (process_structure_scope): Update setting of
11355         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11356         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11357         (set_type_vptr_fieldno): New function.
11358         (internal_type_vptr_basetype): New function.
11359         (set_type_vptr_basetype): New function.
11360         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11361         TYPE_VPTR_BASETYPE.
11362         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11363         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11364         (print_cplus_stuff): ... moved here.
11365         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11366         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11367         moved to ...
11368         (struct cplus_struct_type): ... here.  All uses updated.
11369         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11370         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11371         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11372         * stabsread.c (read_tilde_fields): Update setting of
11373         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11374
11375 2015-01-31  Doug Evans  <xdje42@gmail.com>
11376
11377         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11378         to self_p.
11379         (cp_print_class_member): Rename local domain to self_type.
11380         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11381         domain_type to self_type.
11382         (set_die_type) <need_gnat_info>: Handle
11383         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11384         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11385         TYPE_SPECIFIC_SELF_TYPE.
11386         * gdbtypes.c (internal_type_self_type): New function.
11387         (set_type_self_type): New function.
11388         (smash_to_memberptr_type): Rename parameter domain to self_type.
11389         Update setting of TYPE_SELF_TYPE.
11390         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11391         (smash_to_method_type): Rename parameter domain to self_type.
11392         Update setting of TYPE_SELF_TYPE.
11393         (check_stub_method): Call smash_to_method_type.
11394         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11395         (copy_type_recursive): Ditto.
11396         * gdbtypes.h (enum type_specific_kind): New value
11397         TYPE_SPECIFIC_SELF_TYPE.
11398         (struct main_type) <type_specific>: New member self_type.
11399         (struct cplus_struct_type) <fn_field.type>: Update comment.
11400         (TYPE_SELF_TYPE): Rewrite.
11401         (internal_type_self_type, set_type_self_type): Declare.
11402         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11403         self_type.
11404         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11405         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11406         TYPE_TARGET_TYPE.
11407         * stabsread.c (read_member_functions): Mark methods with
11408         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11409         TYPE_SELF_TYPE.
11410
11411 2015-01-31  Doug Evans  <xdje42@gmail.com>
11412
11413         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11414         All uses updated.
11415
11416 2015-01-31  Doug Evans  <xdje42@gmail.com>
11417
11418         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11419         or unions.  Return zero if union.
11420         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11421         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11422         gnuv3_get_vtable.
11423         (compute_vtable_size): Assert only passed structs.
11424         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11425
11426 2015-01-31  Doug Evans  <xdje42@gmail.com>
11427
11428         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11429         kinds.
11430
11431 2015-01-31  Gary Benson <gbenson@redhat.com>
11432             Doug Evans  <dje@google.com>
11433
11434         PR cli/9007
11435         PR cli/11920
11436         PR cli/15548
11437         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11438         reached.
11439         * common/common-exceptions.h (enum errors)
11440         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11441         * completer.h (get_max_completions_reached_message): New declaration.
11442         (max_completions): Likewise.
11443         (completion_tracker_t): New typedef.
11444         (new_completion_tracker): New declaration.
11445         (make_cleanup_free_completion_tracker): Likewise.
11446         (maybe_add_completion_enum): New enum.
11447         (maybe_add_completion): New declaration.
11448         (throw_max_completions_reached_error): Likewise.
11449         * completer.c (max_completions): New global variable.
11450         (new_completion_tracker): New function.
11451         (free_completion_tracker): Likewise.
11452         (make_cleanup_free_completion_tracker): Likewise.
11453         (maybe_add_completions): Likewise.
11454         (throw_max_completions_reached_error): Likewise.
11455         (complete_line): Remove duplicates and limit result to max_completions
11456         entries.
11457         (get_max_completions_reached_message): New function.
11458         (gdb_display_match_list): Handle max_completions.
11459         (_initialize_completer): New declaration and function.
11460         * symtab.c: Include completer.h.
11461         (completion_tracker): New static variable.
11462         (completion_list_add_name): Call maybe_add_completion.
11463         (default_make_symbol_completion_list_break_on_1): Renamed from
11464         default_make_symbol_completion_list_break_on.  Maintain
11465         completion_tracker across calls to completion_list_add_name.
11466         (default_make_symbol_completion_list_break_on): New function.
11467         * top.c (init_main): Set rl_completion_display_matches_hook.
11468         * tui/tui-io.c: Include completer.h.
11469         (tui_old_rl_display_matches_hook): New static global.
11470         (tui_rl_display_match_list): Notify user if max-completions reached.
11471         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11472         * NEWS (New Options): Mention set/show max-completions.
11473
11474 2015-01-31  Gary Benson  <gbenson@redhat.com>
11475
11476         * symtab.c (struct add_name_data) <code>: New field.
11477         Updated comments.
11478         (add_symtab_completions): New function.
11479         (symtab_expansion_callback): Likewise.
11480         (default_make_symbol_completion_list_break_on): Set datum.code.
11481         Move minimal symbol scan before calling expand_symtabs_matching.
11482         Scan known primary symtabs for externs and statics before calling
11483         expand_symtabs_matching.  Pass symtab_expansion_callback as
11484         expansion_notify argument to expand_symtabs_matching.  Do not scan
11485         primary symtabs for externs and statics after calling
11486         expand_symtabs_matching.
11487
11488 2015-01-31  Gary Benson  <gbenson@redhat.com>
11489
11490         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11491         (struct quick_symbol_functions) <expand_symtabs_matching>:
11492         New argument expansion_notify.  All uses updated.
11493         (expand_symtabs_matching): New argument expansion_notify.
11494         All uses updated.
11495         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11496         Also print expansion notify.
11497         * symtab.c (expand_symtabs_matching_via_partial): Call
11498         expansion_notify whenever a partial symbol table is expanded.
11499         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11500         expansion_notify whenever a symbol table is instantiated.
11501
11502 2015-01-31  Doug Evans  <xdje42@gmail.com>
11503
11504         * cli-out.c: #include completer.h, readline/readline.h.
11505         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11506         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11507         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11508         * cli-out.h (cli_display_match_list): Declare.
11509         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11510         (ELLIPSIS_LEN): Ditto.
11511         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11512         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11513         (gdb_fnprint, gdb_print_filename): Ditto.
11514         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11515         (gdb_display_match_list): Ditto.
11516         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11517         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11518         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11519         (match_list_displayer): New struct.
11520         (gdb_display_match_list): Declare.
11521         * top.c (init_main): Set rl_completion_display_matches_hook.
11522         * tui/tui-io.c: #include completer.h.
11523         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11524         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11525         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11526         (tui_mld_getc, tui_mld_read_key): Ditto.
11527         (tui_rl_display_match_list): Rewrite.
11528         (tui_handle_resize_during_io): New arg for_completion.  All callers
11529         updated.
11530
11531 2015-01-31  Doug Evans  <xdje42@gmail.com>
11532
11533         Add symbol lookup cache.
11534         * NEWS: Document new options and commands.
11535         * symtab.c (symbol_cache_key): New static global.
11536         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11537         (SYMBOL_LOOKUP_FAILED): New macro.
11538         (symbol_cache_slot_state): New enum.
11539         (block_symbol_cache): New struct.
11540         (symbol_cache): New struct.
11541         (new_symbol_cache_size, symbol_cache_size): New static globals.
11542         (hash_symbol_entry, eq_symbol_entry): New functions.
11543         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11544         (make_symbol_cache, free_symbol_cache): New functions.
11545         (get_symbol_cache, symbol_cache_cleanup): New function.
11546         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11547         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11548         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11549         (symbol_cache_flush, symbol_cache_dump): New functions.
11550         (maintenance_print_symbol_cache): New function.
11551         (maintenance_flush_symbol_cache): New function.
11552         (symbol_cache_stats): New function.
11553         (maintenance_print_symbol_cache_statistics): New function.
11554         (symtab_new_objfile_observer): New function.
11555         (symtab_free_objfile_observer): New function.
11556         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11557         (_initialize_symtab): Init symbol_cache_key.  New parameter
11558         maint symbol-cache-size.  New maint commands print symbol-cache,
11559         print symbol-cache-statistics, flush-symbol-cache.
11560         Install new_objfile, free_objfile observers.
11561
11562 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11563
11564         PR symtab/17855
11565         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11566         to end.
11567
11568 2015-01-31  Doug Evans  <xdje42@gmail.com>
11569
11570         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11571         * auto-load.c: #include ctype.h.
11572         (struct auto_load_pspace_info): Replace member loaded_scripts with
11573         new members loaded_script_files, loaded_script_texts.
11574         (auto_load_pspace_data_cleanup): Update.
11575         (init_loaded_scripts_info): Update.
11576         (get_auto_load_pspace_data_for_loading): Update.
11577         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11578         updated.
11579         (maybe_add_script_text): New function.
11580         (clear_section_scripts): Update.
11581         (source_script_file, execute_script_contents): New functions.
11582         (source_section_scripts): Add support for
11583         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11584         (print_scripts): New function.
11585         (auto_load_info_scripts): Also print inlined scripts.
11586         (maybe_print_unsupported_script_warning): Renamed from
11587         unsupported_script_warning_print.  All callers updated.
11588         (maybe_print_script_not_found_warning): Renamed from
11589         script_not_found_warning_print.  All callers updated.
11590         * extension-priv.h (struct extension_language_script_ops): New member
11591         objfile_script_executor.
11592         * extension.c (ext_lang_objfile_script_executor): New function.
11593         * extension.h (objfile_script_executor_func): New typedef.
11594         (ext_lang_objfile_script_executor): Declare.
11595         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11596         * guile/guile.c (guile_extension_script_ops): Update.
11597         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11598         * python/python.c (python_extension_script_ops): Update.
11599         (gdbpy_execute_objfile_script): New function.
11600
11601 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11602
11603         * tui/tui-io.c (tui_expand_tabs): New function.
11604         (tui_puts, tui_redisplay_readline): Expand TABs into the
11605         appropriate number of spaces.
11606         * tui/tui-regs.c: Include tui-io.h.
11607         (tui_register_format): Call tui_expand_tabs to expand TABs into
11608         the appropriate number of spaces.
11609         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11610
11611 2015-01-30  Doug Evans  <dje@google.com>
11612
11613         * NEWS: "info source" command now display producer string if present.
11614         * source.c (source_info): Print producer string if present.
11615
11616 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11617
11618         * varobj.c (varobj_delete): Fix comment.
11619
11620 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11621
11622         * varobj.c (create_child): Modify comment.
11623
11624 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11625
11626         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11627         parameter.
11628         (ada_name_of_variable): Same.
11629         (ada_path_expr_of_child): Same.
11630         (ada_value_of_variable): Same.
11631         (ada_value_is_changeable_p): Same.
11632         (ada_value_has_mutated): Same.
11633         * c-varobj.c (varobj_is_anonymous_child): Same.
11634         (c_is_path_expr_parent): Same.
11635         (c_number_of_children): Same.
11636         (c_name_of_variable): Same.
11637         (c_path_expr_of_child): Same.
11638         (get_type): Same.
11639         (c_value_of_variable): Same.
11640         (cplus_number_of_children): Same.
11641         (cplus_name_of_variable): Same.
11642         (cplus_path_expr_of_child): Same.
11643         (cplus_value_of_variable): Same.
11644         * jv-varobj.c (java_number_of_children): Same.
11645         (java_name_of_variable): Same.
11646         (java_path_expr_of_child): Same.
11647         (java_value_of_variable): Same.
11648         * varobj.c (number_of_children): Same.
11649         (name_of_variable): Same.
11650         (is_root_p): Same.
11651         (varobj_ensure_python_env): Same.
11652         (varobj_get_objname): Same.
11653         (varobj_get_expression): Same.
11654         (varobj_get_display_format): Same.
11655         (varobj_get_display_hint): Same.
11656         (varobj_has_more): Same.
11657         (varobj_get_thread_id): Same.
11658         (varobj_get_frozen): Same.
11659         (dynamic_varobj_has_child_method): Same.
11660         (varobj_get_gdb_type): Same.
11661         (is_path_expr_parent): Same.
11662         (varobj_default_is_path_expr_parent): Same.
11663         (varobj_get_language): Same.
11664         (varobj_get_attributes): Same.
11665         (varobj_is_dynamic_p): Same.
11666         (varobj_get_child_range): Same.
11667         (varobj_value_has_mutated): Same.
11668         (varobj_get_value_type): Same.
11669         (number_of_children): Same.
11670         (name_of_variable): Same.
11671         (check_scope): Same.
11672         (varobj_editable_p): Same.
11673         (varobj_value_is_changeable_p): Same.
11674         (varobj_floating_p): Same.
11675         (varobj_default_value_is_changeable_p): Same.
11676
11677 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11678
11679         * varobj.c (varobj_get_path_expr): Set var->path_expr.
11680         * c-varobj.c (c_path_expr_of_child): Set local var instead of
11681         child->path_expr.
11682         (cplus_path_expr_of_child): Same.
11683
11684 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11685
11686         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11687         result.
11688         (mi_cmd_var_info_expression): Same.
11689         * varobj.c (varobj_get_expression): Mention in the comment that
11690         the result must by freed by the caller.
11691
11692 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11693
11694         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11695         varobj_get_type.
11696         (varobj_update_one): Same.
11697         * varobj.c (update_type_if_necessary): Free curr_type_str and
11698         new_type_str.
11699         (varobj_get_type): Specify in comment that the result needs to be
11700         freed by the caller.
11701
11702 2015-01-29  Doug Evans  <dje@google.com>
11703
11704         PR symtab/17890
11705         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11706
11707 2015-01-25  Mark Wielaard  <mjw@redhat.com>
11708
11709         * dwarf2read.c (checkproducer): Call producer_is_gcc.
11710         * utils.c (producer_is_gcc_ge_4): Likewise.
11711         (producer_is_gcc): New function.
11712         * utils.h (producer_is_gcc): New declaration.
11713
11714 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11715
11716         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11717         kind.
11718         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11719         parameter by "addr_stack" parameter.
11720         (resolve_dynamic_range): Replace "addr" parameter by
11721         "stack_addr" parameter.  Update function documentation.
11722         Update code accordingly.
11723         (resolve_dynamic_array, resolve_dynamic_union)
11724         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11725         (resolve_dynamic_type): Update code, following the changes made
11726         to resolve_dynamic_type_internal's interface.
11727         * dwarf2loc.h (struct property_addr_info): New.
11728         (dwarf2_evaluate_property): Replace "address" parameter
11729         by "addr_stack" parameter.  Adjust function documentation.
11730         (struct dwarf2_offset_baton): New.
11731         (struct dwarf2_property_baton): Update documentation of
11732         field "referenced_type" to be more general. New field
11733         "offset_info" in union data field.
11734         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11735         parameter by "addr_stack" parameter.  Adjust code accordingly.
11736         Add support for PROP_ADDR_OFFSET properties.
11737         * dwarf2read.c (attr_to_dynamic_prop): Add support for
11738         DW_AT_data_member_location attributes as well.  Use case
11739         statements instead of if/else condition.
11740
11741 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11742
11743         * ada-varobj.c (ada_varobj_get_array_number_of_children):
11744         Return zero if PARENT_VALUE is NULL and parent_type's
11745         range type is dynamic.
11746
11747 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11748
11749         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11750         nonzero if the type's subtype is dynamic.
11751         (resolve_dynamic_range): Also resolve the range's subtype.
11752
11753 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
11754
11755         Pushed by Joel Brobecker  <brobecker@adacore.com>.
11756         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11757
11758 2015-01-27  Doug Evans  <dje@google.com>
11759
11760         * NEWS: Mention gdb.Objfile.username.
11761         * python/py-objfile.c (objfpy_get_username): New function.
11762         (objfile_getset): Add "username".
11763
11764 2015-01-24  Mark Wielaard  <mjw@redhat.com>
11765
11766         * stack.c (return_command): Markup warning message with _.
11767
11768 2015-01-24  Doug Evans  <xdje42@gmail.com>
11769
11770         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11771
11772 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11773
11774         Fix 100x slowdown regression on DWZ files.
11775         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11776         (struct line_header): Add offset and offset_in_dwz.
11777         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11778         (free_line_header_voidp): New declaration.
11779         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11780         functions.
11781         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11782         (handle_DW_AT_stmt_list): Use line_header_hash.
11783         (free_line_header_voidp): New function.
11784         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11785         (dwarf_decode_lines): New parameter decode_mapping, use it.
11786         (dwarf2_free_objfile): Free line_header_hash.
11787
11788 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
11789
11790         PR gdb/17416
11791         * valops.c (value_rtti_indirect_type): Catch exception thrown by
11792         value_ind.
11793
11794 2015-01-15  Mark Wielaard  <mjw@redhat.com>
11795
11796         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11797         DW_AT_noreturn.
11798         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11799         calling_convention an 8 bit bit field.
11800         (TYPE_NO_RETURN): New macro.
11801         * infcmd.c (finish_command): Query if function does not return
11802         normally.
11803         * stack.c (return_command): Likewise.
11804
11805 2015-01-23  Pedro Alves  <palves@redhat.com>
11806
11807         * linux-nat.c (linux_is_async_p): New macro.
11808         (linux_nat_is_async_p):
11809         (linux_nat_terminal_inferior): Check whether the target can async
11810         instead of whether it is already async.
11811         (linux_nat_terminal_ours): Don't check whether the target is
11812         async.
11813         (linux_async_pipe): Use linux_is_async_p.
11814
11815 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11816
11817         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11818         '-ascending'.
11819         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11820         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11821         Sort tp_array using tp_array_compar.
11822         (_initialize_thread): Extend thread_apply_all_command help.
11823
11824 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11825
11826         * corelow.c (core_open): Call also thread_command.
11827         * gdbthread.h (thread_command): New prototype moved from ...
11828         * thread.c (thread_command): ... here.
11829         (thread_command): Make it global.
11830
11831 2015-01-22  Pedro Alves  <palves@redhat.com>
11832
11833         * configure.ac [*mingw32*]: Check $curses_found instead of
11834         $prefer_curses.
11835         * configure: Regenerate.
11836         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11837         HAVE_NCURSES_NCURSES_H checks.
11838
11839 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11840
11841         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11842         fails with the 1st arg NULL, try again with "unknown".  Don't test
11843         the "cup" capability: it isn't supported by the Windows port of
11844         ncurses, but the Windows console driver is still capable of
11845         supporting TUI.
11846
11847 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11848
11849         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11850
11851 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11852
11853         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11854         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
11855         reason that "make TAGS" is broken.
11856
11857 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
11858
11859         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11860         and check additional store instructions.
11861
11862 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11863
11864         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11865
11866 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11867
11868         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11869         ppc_canonicalize_syscall, ppc_linux_syscall_record,
11870         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11871         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11872         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11873         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11874         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11875         ppc_process_record_op19, ppc_process_record_op31,
11876         ppc_process_record_op59, ppc_process_record_op60,
11877         ppc_process_record_op63): Likewise.
11878
11879 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
11880
11881         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11882         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11883         strerror.
11884
11885 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
11886
11887         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11888         ppc_process_record_op31, ppc_process_record_op59,
11889         ppc_process_record_op60, ppc_process_record_op63,
11890         ppc_process_record): Fix -Wformat warning.
11891         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11892         Remove unused variables.
11893
11894 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
11895
11896         * MAINTAINERS (Write After Approval): Add "Chen Gang".
11897
11898 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
11899
11900         * configure.ac [*mingw32*]: Only add windows-termcap.o to
11901         CONFIG_OBS if not building with a curses library.
11902         * configure: Regenerate.
11903
11904         * windows-termcap.c: Include defs.h.  Make the whole body empty if
11905         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11906         HAVE_NCURSES_NCURSES_H is defined.
11907
11908 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
11909
11910         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11911         from end of line to start of next line.
11912
11913 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11914
11915         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11916         Scan PLT stub backward for reverse debugging.
11917         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11918
11919 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11920             Ulrich Weigand  <uweigand@de.ibm.com>
11921
11922         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11923         gdb_target_obs.
11924         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11925         record.
11926         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11927         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11928         (ppc_linux_init_abi): Set process_record, process_record_signal.
11929         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11930         ppc_linux_record_tdep to gdbarch_tdep.
11931         (ppc_process_record): New declaration.
11932         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11933         ppc_process_record_op19, ppc_process_record_op31,
11934         ppc_process_record_op59, ppc_process_record_op60,
11935         ppc_process_record_op63, ppc_process_record): New functions.
11936
11937 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11938
11939         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11940         rs6000_in_function_epilogue_frame_p and add an argument
11941         for frame_info.
11942         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11943         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11944         New functions.
11945         (rs6000_epilogue_frame_unwind): New.
11946         (rs6000_gdbarch_init): Append epilogue unwinder.
11947
11948 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11949
11950         * nat/linux-personality.c: Replace "#ifndef
11951         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11952         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11953         systems.
11954
11955 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
11956
11957         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11958         functions.
11959         (_initialize_tui_win) <border-kind, border-mode>:
11960         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11961         (tui_set_tab_width_command): Fix the commentary.
11962
11963         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11964
11965         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11966         Doc fix.
11967         (tui_set_tab_width_command): Delete and recreate the source and
11968         the disassembly windows, to show the effect of the changed tab
11969         size immediately.
11970
11971         * tui/tui-data.h (LINE_PREFIX): Make shorter
11972         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11973         "Thread NNNNN.XXXX" thread ID notation on Windows.
11974
11975 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11976
11977         Fix gcc-5 compilation.
11978         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11979
11980 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
11981
11982         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11983         (linux-personality.o): New rule.
11984         * common/common-defs.h: Include <stdint.h>.
11985         * config/aarch64/linux.mh (NATDEPFILES): Include
11986         linux-personality.o.
11987         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11988         * config/arm/linux.mh (NATDEPFILES): Likewise.
11989         * config/i386/linux64.mh (NATDEPFILES): Likewise.
11990         * config/i386/linux.mh (NATDEPFILES): Likewise.
11991         * config/ia64/linux.mh (NATDEPFILES): Likewise.
11992         * config/m32r/linux.mh (NATDEPFILES): Likewise.
11993         * config/m68k/linux.mh (NATDEPFILES): Likewise.
11994         * config/mips/linux.mh (NATDEPFILES): Likewise.
11995         * config/pa/linux.mh (NATDEPFILES): Likewise.
11996         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11997         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11998         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11999         * config/s390/linux.mh (NATDEPFILES): Likewise.
12000         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12001         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12002         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12003         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12004         * defs.h: Remove #include <stdint.h> (moved to
12005         common/common-defs.h).
12006         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12007         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12008         nat/linux-personality.c).
12009         (linux_nat_create_inferior): Remove code to disable address space
12010         randomization (moved to nat/linux-personality.c).  Create cleanup
12011         to disable address space randomization.
12012         * nat/linux-personality.c: New file.
12013         * nat/linux-personality.h: Likewise.
12014
12015 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12016
12017         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12018         common/posix-strerror.c.
12019         (posix-strerror.o): New rule.
12020         (mingw-strerror.o): Likewise.
12021         * common/common-utils.h (safe_strerror): Move prototype to here,
12022         from utils.h.
12023         * common/common.host: New file.
12024         * common/mingw-strerror.c: Likewise.
12025         * common/posix-strerror.c: Likewise.
12026         * configure: Regenerated.
12027         * configure.ac: Source common/common.host.  Add variable
12028         common_host_obs to gdb_host_obs.
12029         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12030         gdb/common/posix-strerror.c when warning about the use of
12031         strerror.
12032         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12033         common/mingw-strerror.c.
12034         * posix-hdep.c (safe_strerror): Remove definition; move it to
12035         common/posix-hdep.c.
12036         * utils.h (safe_strerror): Remove prototype; move to
12037         common/common-utils.h.
12038
12039 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12040
12041         GDB 7.8.2 released.
12042
12043 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12044
12045         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12046         ___XA type if the array has already been fixed.
12047
12048 2015-01-14  Yao Qi  <yao@codesourcery.com>
12049
12050         * Makefile.in (ppc-linux.o): New rule.
12051         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12052         * configure.ac: AC_CHECK_FUNCS(getauxval).
12053         * config.in: Re-generated.
12054         * configure: Re-generated.
12055         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12056         Declare.
12057         * nat/ppc-linux.c: New file.
12058         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12059         Call ppc64_64bit_inferior_p.
12060
12061 2015-01-14  Yao Qi  <yao@codesourcery.com>
12062
12063         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12064         nat/ppc-linux.h.
12065         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12066         (PPC_FEATURE_HAS_DFP): Likewise.
12067         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12068         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12069         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12070         Include "nat/ppc-linux.h".
12071         * nat/ppc-linux.h: New file.
12072         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12073
12074 2015-01-14  Pedro Alves  <palves@redhat.com>
12075
12076         PR gdb/17525
12077         * breakpoint.c: Include "interps.h".
12078         (bpstat_do_actions_1): Also check whether the interpreter is
12079         async.
12080
12081 2015-01-14  Pedro Alves  <palves@redhat.com>
12082
12083         PR cli/17828
12084         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12085         reinstall if the interpreter is sync.
12086
12087 2015-01-13  Doug Evans  <dje@google.com>
12088
12089         * objfiles.c (objfile_filename): New function.
12090         * objfiles.h (objfile_filename): Declare it.
12091         (objfile_name): Add function comment.
12092         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12093         bfd file name (which may be realpath'd), and the original name.
12094
12095 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12096
12097         * NEWS: Create a new section for the next release branch.
12098         Rename the section of the current branch, now that it has
12099         been cut.
12100
12101 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12102
12103         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12104         * version.in: Bump version to 7.9.50.DATE-cvs.
12105
12106 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12107
12108         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12109         Remove trailing new-line in argument of call to warning.
12110
12111 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12112
12113         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12114         new-line in argument of call to "warning".
12115
12116 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12117
12118         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12119         in static block, then try searching for primitive types.
12120
12121 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12122
12123         * top.h (gdb_add_history): Declare.
12124         * top.c (command_count): New variable.
12125         (gdb_add_history): New function.
12126         (gdb_safe_append_history): New static function.
12127         (quit_force): Call it.
12128         (command_line_input): Use gdb_add_history instead of
12129         add_history.
12130         * event-top.c (command_line_handler): Likewise.
12131
12132 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12133
12134         PR gdb/17046
12135         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12136         <setjmp.h> #include.
12137
12138 2015-01-11  Doug Evans  <xdje42@gmail.com>
12139
12140         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12141
12142 2015-01-11  Doug Evans  <xdje42@gmail.com>
12143
12144         PR gdb/15830
12145         * NEWS: The "maint demangle" command is renamed as "demangle".
12146         * demangle.c: #include cli/cli-utils.h, language.h.
12147         (demangle_command): New function.
12148         (_initialize_demangle): Add new command "demangle".
12149         * maint.c (maintenance_demangle): Stub out.
12150         (_initialize_maint_cmds): Update help text for "maint demangle",
12151         and mark as deprecated.
12152
12153 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12154
12155         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12156         inferior_thread is a function.
12157
12158 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12159
12160         * Makefile.in (.y.c): Don't munge yacc's #line
12161         directives.
12162
12163 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12164
12165         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12166         to prompt for input.
12167         * tui/tui-hooks.c (tui_query_hook): Remove.
12168         (tui_install_hooks): Don't set deprecated_query_hook.
12169         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12170         height calculation.  Always update the command window's cur_line.
12171
12172 2015-01-09  Pedro Alves  <palves@redhat.com>
12173
12174         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12175         function.
12176         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12177         declaration.
12178         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12179         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12180         stop_reason.
12181         (check_stopped_by_watchpoint): New function.
12182         (save_sigtrap): Reimplement.
12183         (linux_nat_stopped_by_watchpoint): Adjust.
12184         (linux_nat_lp_status_is_event): Delete.
12185         (stop_wait_callback): Only call save_sigtrap after storing the
12186         pending status.
12187         (status_callback): If the thread had been stopped for a breakpoint
12188         that has since been removed, discard the event and resume the LWP.
12189         (count_events_callback, select_event_lwp_callback): Use
12190         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12191         (cancel_breakpoint): Rename to ...
12192         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12193         stopped for a software breakpoint or hardware breakpoint.
12194         (select_event_lwp): Only give preference to the stepping LWP in
12195         all-stop mode.  Adjust comments.
12196         (stop_and_resume_callback): Remove references to new_pending_p.
12197         (linux_nat_filter_event): Likewise.  Leave exit events of the
12198         leader thread pending here.  Handle signal short circuiting here.
12199         Only call save_sigtrap after storing the pending waitstatus.
12200         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12201         new_pending.  Don't handle leaving events the caller is not
12202         interested in pending here, nor handle signal short-circuiting
12203         here.  Also give equal priority to all LWPs that have had events
12204         in non-stop mode.  If reporting a software breakpoint event,
12205         unadjust the LWP's PC.
12206         * linux-nat.h (enum lwp_stop_reason): New.
12207         (struct lwp_info) <stop_pc>: New field.
12208         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12209         (struct lwp_info) <stop_reason>: New field.
12210         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12211
12212 2015-01-09  Pedro Alves  <palves@redhat.com>
12213
12214         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12215         Set the LWP's 'resumed' flag.
12216
12217 2015-01-09  Pedro Alves  <palves@redhat.com>
12218
12219         * linux-nat.c (linux_resume_one_lwp): New function.
12220         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12221         (linux_nat_resume): Use lwp_status_pending_p and
12222         linux_resume_one_lwp.
12223         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12224         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12225         (status_callback, running_callback): Use lwp_status_pending_p.
12226         (lwp_status_pending_p): New function.
12227         (stop_and_resume_callback): Use lwp_status_pending_p.
12228         (linux_nat_filter_event): Use linux_resume_one_lwp.
12229         (linux_nat_wait_1): Always use status_callback to look for an LWP
12230         with a pending status.  Use linux_resume_one_lwp.
12231         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12232         linux_resume_one_lwp.
12233
12234 2015-01-09  Pedro Alves  <palves@redhat.com>
12235
12236         * breakpoint.c (bp_location_inserted_here_p): New function,
12237         factored out from ...
12238         (breakpoint_inserted_here_p): ... here.  Use
12239         ALL_BP_LOCATIONS_AT_ADDR.
12240         (software_breakpoint_inserted_here_p): Use
12241         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12242
12243 2014-01-09  Pedro Alves  <palves@redhat.com>
12244
12245         Skip enabling event reporting if the kernel supports
12246         PTRACE_EVENT_CLONE.
12247         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12248         (thread_db_use_events): New function.
12249         (try_thread_db_load_1): Check thread_db_use_events before enabling
12250         event reporting.
12251         (update_thread_state): New function.
12252         (attach_thread): Use it.  Check thread_db_use_events before
12253         enabling event reporting.
12254         (thread_db_detach): Check thread_db_use_events before disabling
12255         event reporting.
12256         (find_new_threads_callback): Check thread_db_use_events before
12257         enabling event reporting.  Update the thread's state if not using
12258         libthread_db events.
12259
12260 2015-01-09  Pedro Alves  <palves@redhat.com>
12261
12262         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12263         about to wait for is > 0.
12264         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12265         the kernel thread ID is -1.
12266
12267 2015-01-09  Pedro Alves  <palves@redhat.com>
12268
12269         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12270         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12271         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12272         ptrace option flags.
12273         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12274         field.
12275         * nat/linux-procfs.c: Include <dirent.h>.
12276         (linux_proc_get_int): New parameter "warn".  Handle it.
12277         (linux_proc_get_tgid): Adjust.
12278         (linux_proc_get_tracerpid): Rename to ...
12279         (linux_proc_get_tracerpid_nowarn): ... this.
12280         (linux_proc_pid_get_state): New function, factored out from
12281         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12282         and handle it.
12283         (linux_proc_pid_is_gone): New function.
12284         (linux_proc_pid_is_stopped): Adjust.
12285         (linux_proc_pid_is_zombie_maybe_warn)
12286         (linux_proc_pid_is_zombie_nowarn): New functions.
12287         (linux_proc_pid_is_zombie): Use
12288         linux_proc_pid_is_zombie_maybe_warn.
12289         (linux_proc_attach_tgid_threads): New function.
12290         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12291         (linux_proc_get_tracerpid): Rename to ...
12292         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12293         (linux_proc_pid_is_gone): New declaration.
12294         (linux_proc_pid_is_zombie): Update comment.
12295         (linux_proc_pid_is_zombie_nowarn): New declaration.
12296         (linux_proc_attach_lwp_func): New typedef.
12297         (linux_proc_attach_tgid_threads): New declaration.
12298         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12299         use nowarn functions.
12300         (linux_ptrace_attach_fail_reason_string): Move here from
12301         gdbserver/linux-low.c and rename.
12302         (ptrace_supports_feature): If the current ptrace options are not
12303         known yet, check them now, instead of asserting.
12304         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12305         Declare.
12306
12307 2015-01-09  Pedro Alves  <palves@redhat.com>
12308
12309         * linux-thread-db.c (thread_db_find_new_threads_silently)
12310         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12311         (find_new_threads_once): Print debug output on gdb_stdlog.
12312
12313 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12314             Pedro Alves  <palves@redhat.com>
12315
12316         * compile/compile.c: Include "gdb_wait.h".
12317         (do_rmdir): Check return value, and free 'zap'.
12318
12319 2015-01-08  Pedro Alves  <palves@redhat.com>
12320             Yao Qi  <yao@codesourcery.com>
12321
12322         * dwarf2loc.c (indirect_pieced_value): Don't call
12323         gdb_sign_extend.  Call extract_signed_integer instead.
12324         * utils.c (gdb_sign_extend): Remove.
12325         * utils.h (gdb_sign_extend): Remove declaration.
12326
12327 2015-01-07  Pierre Muller  <muller@sourceware.org>
12328
12329         PR symtab/17811
12330         * stabsread.c (define_symbol): Set language for C++ special symbols.
12331
12332 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12333
12334         * inflow.c (initial_gdb_ttystate): Tweak comment.
12335
12336 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12337
12338         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12339         comment documenting function.
12340
12341 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12342
12343         * terminal.h (set_initial_gdb_ttystate): Declare.
12344         * inflow.c (initial_gdb_ttystate): New static variable.
12345         (set_initial_gdb_ttystate): New setter.
12346         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12347         instead of our current terminal state.
12348         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12349
12350 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12351
12352         * guile/scm-type.c (tyscm_array_1): Add comment.
12353         * python/py-type.c (typy_array_1): Add comment.
12354
12355 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12356
12357         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12358         error if N2 is equal to N1 - 1.
12359
12360 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12361
12362         * python/py-type.c (typy_array_1): Do not raise negative-length
12363         exception if N2 is equal to N1 - 1.
12364
12365 2015-01-03  Doug Evans  <xdje42@gmail.com>
12366
12367         * c-exp.y: Whitespace cleanup.
12368         (classify_inner_name): Remove extra ;.
12369
12370 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12371
12372         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12373         offset signed.
12374
12375 2015-01-02  Doug Evans  <dje@google.com>
12376
12377         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12378
12379 2015-01-02  Doug Evans  <dje@google.com>
12380
12381         * symtab.h (struct symbol): Fix typo in comment.
12382
12383 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12384
12385         Update year range in copyright notice of all files.
12386
12387 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12388
12389         * top.c (print_gdb_version): Update copyright year to 2015.
12390
12391 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12392
12393         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12394
12395 For older changes see ChangeLog-2014.
12396 \f
12397 Local Variables:
12398 mode: change-log
12399 left-margin: 8
12400 fill-column: 74
12401 version-control: never
12402 coding: utf-8
12403 End: