arm-linux-tdep: Add explicit cast for int to gdb_syscall conversion
[external/binutils.git] / gdb / ChangeLog
1 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2
3         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
4         enum gdb_syscall casts.
5
6 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
7
8         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
9         * arm-tdep.c (struct stack_item): Likewise.
10         (push_stack_item): Add gdb_byte* cast.
11         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
12         (push_stack_item): Add gdb_byte* cast.
13         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
14         and add cast.
15         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
16         (push_stack_item): Add gdb_byte* cast.
17         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
18         add cast.
19         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
20         gdb_byte*.
21         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
22         gdb_byte* and remove unnecessary cast.
23         (h8300h_extract_return_value): Likewise.
24         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
25         (h8300h_store_return_value): Likewise.
26         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
27         gdb_byte* and remove unnecessary cast.
28         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
29         and add cast.
30         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
31         gdb_byte* and remove unnecessary cast.
32         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
33         valbuf.
34         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
35         (mep_pseudo_cr64_read): Likewise.
36         (mep_pseudo_csr_write): Likewise.
37         (mep_pseudo_cr32_write): Likewise.
38         (mep_pseudo_cr64_write): Likewise.
39         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
40         gdb_byte* and add cast.
41         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
42         gdb_byte* and remove unnecessary cast.
43         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
44         valbuf.
45         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
46         gdb_byte*.
47         * printcmd.c (void): Likewise.
48         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
49         gdb_byte* and add cast.
50         (infpy_write_memory): Likewise.
51         (infpy_search_memory): Likewise.
52         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
53         and add cast.
54         (regcache_raw_write_unsigned): Likewise.
55         (regcache_cooked_write_signed): Likewise.
56         (regcache_cooked_write_unsigned): Likewise.
57         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
58         gdb_byte*.
59
60 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
61
62         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
63         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
64
65 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
66
67         * stack.c (print_stack_frame):
68         * utils.c (printchar): Fix typos in commentary.
69
70 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
71
72         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
73         (PostfixExpression): Support `expr.sizeof' expressions.
74         (PrimaryExpression): Support `typeof(expr)' expressions.
75
76 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
77
78         * MAINTAINERS: Update my email address.
79
80 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
81
82         * record-btrace.c (record_btrace_resume): Fix void return.
83
84 2015-10-07  Yao Qi  <yao.qi@linaro.org>
85
86         * aarch64-tdep.c: Include opcode/aarch64.h.
87         (submask): Move it above.
88         (bit): Likewise.
89         (bits): Likewise.
90         (aarch64_software_single_step): Call aarch64_decode_insn.
91         Decode instruction by aarch64_inst instead of using
92         aarch64_decode_bcond and decode_masked_match.
93
94 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
95
96         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
97         only when the file is binary.
98
99 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
100
101         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
102         subroutine handling.
103
104 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
105
106         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
107
108 2015-09-30  Doug Evans  <dje@google.com>
109
110         * dwarf2read.c (setup_type_unit_groups): Add comment.
111
112 2015-09-30  Pedro Alves  <palves@redhat.com>
113
114         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
115         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
116         (x86_linux_create_target): Don't install
117         x86_linux_always_non_stop_p.
118
119 2015-09-30  Don Breazeal  <donb@codesourcery.com>
120
121         * remote.c (remote_parse_stop_reply): Call strprefix instead
122         of strncmp.
123
124 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
125
126         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
127         * gdbarch.h: Regenerate.
128         * i386-tdep.c (i386_gdbarch_init): Remove cast to
129         struct gdbarch_tdep_info *.
130         * mips-tdep.c (mips_gdbarch_init): Likewise.
131         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
132         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
133         * spu-multiarch.c (spu_gdbarch): Likewise.
134
135 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
136
137         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
138         record a NULL value.
139
140 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
141
142         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
143         and union arguments the same as pointer arguments when determining
144         size of argument.
145
146 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
147
148         * ft32-tdep.c: #include "opcode/ft32.h".
149         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
150         (ft32_analyze_prologue): Use FT32_* macros.
151
152 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
153
154         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
155         comment.
156
157 2015-09-28  Doug Evans  <dje@google.com>
158
159         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
160
161 2015-09-28  Doug Evans  <dje@google.com>
162
163         * common/filestuff.c (make_cleanup_close): Update comment.
164
165 2015-09-26  Simon Marchi  <simark@nova.polymtl.ca>
166
167         * btrace.c (parse_xml_btrace_block): Fix cast of
168         xml_find_attribute's return value.
169         * memory-map.c (memory_map_start_memory): Likewise.
170         * solib-svr4.c (library_list_start_library): Likewise.
171         * solib-target.c (library_list_start_segment): Likewise.
172         (library_list_start_section): Likewise.
173         * tracepoint.c (traceframe_info_start_memory): Likewise.
174
175 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
176
177         * d-namespace.c (d_lookup_symbol): New arg langdef.
178         All callers updated.  Support looking up symbol as a primitive type.
179         (lookup_module_scope): New arg langdef.  All callers updated.
180         Call d_lookup_symbol directly for simple bare symbols.
181
182 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
183
184         * macrocmd.c (print_macro_callback): Add cast(s).
185         * macrotab.c (macro_bcache_str): Likewise.
186         (new_macro_definition): Likewise.
187         * main.c (captured_main): Likewise.
188         * maint.c (print_bfd_section_info): Likewise.
189         * mdebugread.c (mdebug_build_psymtabs): Likewise.
190         (basic_type): Likewise.
191         * memattr.c (mem_region_cmp): Likewise.
192         * memory-map.c (memory_map_start_memory): Likewise.
193         (memory_map_end_memory): Likewise.
194         (memory_map_start_property): Likewise.
195         (memory_map_end_property): Likewise.
196         (clear_result): Likewise.
197         * memrange.c (compare_mem_ranges): Likewise.
198         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
199         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
200         * mi/mi-console.c (mi_console_file_delete): Likewise.
201         (mi_console_file_fputs): Likewise.
202         (mi_console_raw_packet): Likewise.
203         (mi_console_file_flush): Likewise.
204         (mi_console_set_raw): Likewise.
205         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
206         (mi_new_thread): Likewise.
207         (mi_thread_exit): Likewise.
208         (mi_record_changed): Likewise.
209         (mi_inferior_added): Likewise.
210         (mi_inferior_appeared): Likewise.
211         (mi_inferior_exit): Likewise.
212         (mi_inferior_removed): Likewise.
213         (mi_interp_data): Likewise.
214         (mi_on_normal_stop): Likewise.
215         (mi_traceframe_changed): Likewise.
216         (mi_tsv_created): Likewise.
217         (mi_tsv_deleted): Likewise.
218         (mi_tsv_modified): Likewise.
219         (mi_breakpoint_created): Likewise.
220         (mi_breakpoint_deleted): Likewise.
221         (mi_breakpoint_modified): Likewise.
222         (mi_output_running_pid): Likewise.
223         (mi_inferior_count): Likewise.
224         (mi_solib_loaded): Likewise.
225         (mi_solib_unloaded): Likewise.
226         (mi_command_param_changed): Likewise.
227         (mi_memory_changed): Likewise.
228         (report_initial_inferior): Likewise.
229         (mi_ui_out): Likewise.
230         (mi_set_logging): Likewise.
231         * mi/mi-main.c (collect_cores): Likewise.
232         (print_one_inferior): Likewise.
233         (free_vector_of_ints): Likewise.
234         (free_splay_tree): Likewise.
235         (mi_execute_command): Likewise.
236         * mi/mi-out.c (mi_table_body): Likewise.
237         (mi_table_end): Likewise.
238         (mi_table_header): Likewise.
239         (mi_begin): Likewise.
240         (mi_end): Likewise.
241         (mi_field_int): Likewise.
242         (mi_field_string): Likewise.
243         (mi_field_fmt): Likewise.
244         (mi_flush): Likewise.
245         (mi_redirect): Likewise.
246         (field_separator): Likewise.
247         (mi_open): Likewise.
248         (mi_close): Likewise.
249         (mi_out_buffered): Likewise.
250         (mi_out_rewind): Likewise.
251         (mi_out_put): Likewise.
252         (mi_version): Likewise.
253         (mi_out_data_dtor): Likewise.
254         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
255         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
256         * minidebug.c (lzma_open): Likewise.
257         (lzma_pread): Likewise.
258         (lzma_close): Likewise.
259         (lzma_stat): Likewise.
260         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
261         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
262         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
263         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
264         (mips_micro_frame_cache): Likewise.
265         (mips_insn32_frame_cache): Likewise.
266         (mips_stub_frame_cache): Likewise.
267         (gdb_print_insn_mips): Likewise.
268         (value_of_mips_user_reg): Likewise.
269         (mips_gdbarch_init): Likewise.
270         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
271         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
272         (mipsnbsd_supply_gregset): Likewise.
273         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
274         (am33_collect_gregset_method): Likewise.
275         (am33_collect_fpregset_method): Likewise.
276         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
277         * moxie-tdep.c (moxie_frame_cache): Likewise.
278         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
279         (msp430_analyze_frame_prologue): Likewise.
280         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
281         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
282         (nios2_collect_gregset): Likewise.
283         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
284         (nios2_stub_frame_cache): Likewise.
285         * objc-lang.c (find_methods): Likewise.
286         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
287         (get_objfile_pspace_data): Likewise.
288         (get_objfile_bfd_data): Likewise.
289         (objfile_bfd_data_free): Likewise.
290         (add_to_objfile_sections): Likewise.
291         (do_free_objfile_cleanup): Likewise.
292         (resume_section_map_updates_cleanup): Likewise.
293         * opencl-lang.c (builtin_opencl_type): Likewise.
294         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
295         * osdata.c (osdata_start_osdata): Likewise.
296         (osdata_start_item): Likewise.
297         (osdata_start_column): Likewise.
298         (osdata_end_column): Likewise.
299         (clear_parsing_data): Likewise.
300         (osdata_free_cleanup): Likewise.
301         * parse.c (type_stack_cleanup): Likewise.
302         (exp_uses_objfile_iter): Likewise.
303         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
304         (ppc_linux_collect_gregset): Likewise.
305         (ppu2spu_prev_arch): Likewise.
306         (ppu2spu_this_id): Likewise.
307         (ppu2spu_prev_register): Likewise.
308         (ppu2spu_unwind_register): Likewise.
309         (ppu2spu_sniffer): Likewise.
310         (ppu2spu_dealloc_cache): Likewise.
311         (ppc_linux_init_abi): Likewise.
312         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
313         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
314         * progspace.c (restore_program_space): Likewise.
315         * psymtab.c (find_pc_sect_psymtab): Likewise.
316         (compare_psymbols): Likewise.
317         (psymbol_bcache_full): Likewise.
318         (allocate_psymtab): Likewise.
319         (discard_psymtabs_upto): Likewise.
320         * python/py-block.c (set_block): Likewise.
321         (del_objfile_blocks): Likewise.
322         * python/py-breakpoint.c (build_bp_list): Likewise.
323         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
324         (build_inferior_list): Likewise.
325         (py_free_inferior): Likewise.
326         * python/py-objfile.c (py_free_objfile): Likewise.
327         (objfile_to_objfile_object): Likewise.
328         * python/py-prettyprint.c (py_restore_tstate): Likewise.
329         * python/py-progspace.c (py_free_pspace): Likewise.
330         (pspace_to_pspace_object): Likewise.
331         * python/py-symbol.c (set_symbol): Likewise.
332         (del_objfile_symbols): Likewise.
333         * python/py-symtab.c (set_sal): Likewise.
334         (set_symtab): Likewise.
335         (del_objfile_symtab): Likewise.
336         (del_objfile_sal): Likewise.
337         * python/py-type.c (save_objfile_types): Likewise.
338         (set_type): Likewise.
339         * python/py-unwind.c (pyuw_prev_register): Likewise.
340         (pyuw_on_new_gdbarch): Likewise.
341         * python/py-utils.c (py_decref): Likewise.
342         (py_xdecref): Likewise.
343         (gdb_py_generic_dict): Likewise.
344         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
345         (gdbpy_clone_xmethod_worker_data): Likewise.
346         (gdbpy_get_xmethod_arg_types): Likewise.
347         (gdbpy_get_xmethod_result_type): Likewise.
348         (gdbpy_invoke_xmethod): Likewise.
349         * python/python.c (gdbpy_apply_type_printers): Likewise.
350         (gdbpy_free_type_printers): Likewise.
351         * record-btrace.c (record_btrace_disable_callback): Likewise.
352         (bfcache_hash): Likewise.
353         (bfcache_eq): Likewise.
354         (btrace_get_frame_function): Likewise.
355         (record_btrace_frame_unwind_stop_reason): Likewise.
356         (record_btrace_frame_this_id): Likewise.
357         (record_btrace_frame_prev_register): Likewise.
358         (record_btrace_frame_dealloc_cache): Likewise.
359         * record-full.c (record_full_message_wrapper): Likewise.
360         (record_full_save_cleanups): Likewise.
361         * regcache.c (regcache_descr): Likewise.
362         (do_regcache_xfree): Likewise.
363         (do_regcache_invalidate): Likewise.
364         (do_cooked_read): Likewise.
365         (regcache_transfer_regset): Likewise.
366         * reggroups.c (reggroup_add): Likewise.
367         (reggroup_next): Likewise.
368         (reggroup_prev): Likewise.
369         * remote-fileio.c (do_remote_fileio_request): Likewise.
370         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
371         (do_notif_event_xfree): Likewise.
372         * remote.c (get_remote_arch_state): Likewise.
373         (remote_pspace_data_cleanup): Likewise.
374         (get_remote_exec_file): Likewise.
375         (set_pspace_remote_exec_file): Likewise.
376         (compare_pnums): Likewise.
377         (clear_threads_listing_context): Likewise.
378         (remote_newthread_step): Likewise.
379         (start_thread): Likewise.
380         (end_thread): Likewise.
381         (remove_child_of_pending_fork): Likewise.
382         (remove_stop_reply_for_inferior): Likewise.
383         (remove_stop_reply_of_remote_state): Likewise.
384         (remote_notif_remove_once_on_match): Likewise.
385         (stop_reply_match_ptid_and_ws): Likewise.
386         (kill_child_of_pending_fork): Likewise.
387         (register_remote_g_packet_guess): Likewise.
388         (remote_read_description_p): Likewise.
389         (remote_read_description): Likewise.
390         (free_actions_list_cleanup_wrapper): Likewise.
391         (remote_async_serial_handler): Likewise.
392         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
393         (rl78_analyze_frame_prologue): Likewise.
394         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
395         (ppc_supply_fpregset): Likewise.
396         (ppc_supply_vsxregset): Likewise.
397         (ppc_supply_vrregset): Likewise.
398         (ppc_collect_gregset): Likewise.
399         (ppc_collect_fpregset): Likewise.
400         (ppc_collect_vsxregset): Likewise.
401         (ppc_collect_vrregset): Likewise.
402         (e500_move_ev_register): Likewise.
403         (do_regcache_raw_write): Likewise.
404         (rs6000_frame_cache): Likewise.
405         (rs6000_epilogue_frame_cache): Likewise.
406         (rs6000_gdbarch_init): Likewise.
407         * rx-tdep.c (rx_get_opcode_byte): Likewise.
408         (rx_analyze_frame_prologue): Likewise.
409         (rx_frame_type): Likewise.
410         (rx_frame_sniffer_common): Likewise.
411         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
412         (s390_frame_unwind_cache): Likewise.
413         (s390_stub_frame_unwind_cache): Likewise.
414         (s390_sigtramp_frame_unwind_cache): Likewise.
415         * score-tdep.c (score_make_prologue_cache): Likewise.
416         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
417         (sentinel_frame_prev_arch): Likewise.
418         * ser-base.c (fd_event): Likewise.
419         (push_event): Likewise.
420         (ser_base_write): Likewise.
421         * ser-pipe.c (pipe_close): Likewise.
422         * serial.c (serial_write): Likewise.
423         * sh-tdep.c (sh_frame_cache): Likewise.
424         (sh_stub_this_id): Likewise.
425         * sh64-tdep.c (sh64_frame_cache): Likewise.
426         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
427         (library_list_start_library): Likewise.
428         (library_list_start_list): Likewise.
429         (solib_aix_free_library_list): Likewise.
430         * solib-darwin.c (get_darwin_info): Likewise.
431         * solib-dsbt.c (get_dsbt_info): Likewise.
432         * solib-spu.c (append_ocl_sos): Likewise.
433         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
434         (get_svr4_info): Likewise.
435         (library_list_start_library): Likewise.
436         (svr4_library_list_start_list): Likewise.
437         (hash_probe_and_action): Likewise.
438         (equal_probe_and_action): Likewise.
439         (svr4_update_solib_event_breakpoint): Likewise.
440         (set_solib_svr4_fetch_link_map_offsets): Likewise.
441         (svr4_fetch_link_map_offsets): Likewise.
442         (svr4_have_link_map_offsets): Likewise.
443         * solib-target.c (library_list_start_segment): Likewise.
444         (library_list_start_section): Likewise.
445         (library_list_start_library): Likewise.
446         (library_list_end_library): Likewise.
447         (library_list_start_list): Likewise.
448         (solib_target_free_library_list): Likewise.
449         * solib.c (solib_ops): Likewise.
450         (set_solib_ops): Likewise.
451         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
452         * sparc-tdep.c (sparc_frame_cache): Likewise.
453         (sparc32_frame_cache): Likewise.
454         (sparc32_supply_gregset): Likewise.
455         (sparc32_collect_gregset): Likewise.
456         (sparc32_supply_fpregset): Likewise.
457         (sparc32_collect_fpregset): Likewise.
458         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
459         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
460         (sparc64_collect_gregset): Likewise.
461         (sparc64_supply_fpregset): Likewise.
462         (sparc64_collect_fpregset): Likewise.
463         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
464         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
465         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
466         (sparc64obsd_trapframe_cache): Likewise.
467         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
468         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
469         * spu-multiarch.c (spu_gdbarch): Likewise.
470         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
471         (spu2ppu_prev_arch): Likewise.
472         (spu2ppu_this_id): Likewise.
473         (spu2ppu_prev_register): Likewise.
474         (spu2ppu_dealloc_cache): Likewise.
475         (spu_dis_asm_print_address): Likewise.
476         (gdb_print_insn_spu): Likewise.
477         (spu_get_overlay_table): Likewise.
478         * stabsread.c (rs6000_builtin_type): Likewise.
479         * stack.c (do_print_variable_and_value): Likewise.
480         * stap-probe.c (get_stap_base_address_1): Likewise.
481         * symfile-debug.c (debug_qf_has_symbols): Likewise.
482         (debug_qf_find_last_source_symtab): Likewise.
483         (debug_qf_forget_cached_source_info): Likewise.
484         (debug_qf_map_symtabs_matching_filename): Likewise.
485         (debug_qf_lookup_symbol): Likewise.
486         (debug_qf_print_stats): Likewise.
487         (debug_qf_dump): Likewise.
488         (debug_qf_relocate): Likewise.
489         (debug_qf_expand_symtabs_for_function): Likewise.
490         (debug_qf_expand_all_symtabs): Likewise.
491         (debug_qf_expand_symtabs_with_fullname): Likewise.
492         (debug_qf_map_matching_symbols): Likewise.
493         (debug_qf_expand_symtabs_matching): Likewise.
494         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
495         (debug_qf_map_symbol_filenames): Likewise.
496         (debug_sym_get_probes): Likewise.
497         (debug_sym_new_init): Likewise.
498         (debug_sym_init): Likewise.
499         (debug_sym_read): Likewise.
500         (debug_sym_read_psymbols): Likewise.
501         (debug_sym_finish): Likewise.
502         (debug_sym_offsets): Likewise.
503         (debug_sym_read_linetable): Likewise.
504         (debug_sym_relocate): Likewise.
505         (uninstall_symfile_debug_logging): Likewise.
506         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
507         * symfile.c (place_section): Likewise.
508         (add_section_size_callback): Likewise.
509         (load_progress): Likewise.
510         (load_section_callback): Likewise.
511         (clear_memory_write_data): Likewise.
512         (allocate_symtab): Likewise.
513         * symmisc.c (maintenance_expand_file_matcher): Likewise.
514         * symtab.c (lookup_symtab_callback): Likewise.
515         (hash_demangled_name_entry): Likewise.
516         (eq_demangled_name_entry): Likewise.
517         (get_symbol_cache): Likewise.
518         (symbol_cache_cleanup): Likewise.
519         (set_symbol_cache_size): Likewise.
520         (symbol_cache_flush): Likewise.
521         (maintenance_print_symbol_cache): Likewise.
522         (maintenance_print_symbol_cache_statistics): Likewise.
523         (delete_filename_seen_cache): Likewise.
524         (output_partial_symbol_filename): Likewise.
525         (search_symbols_file_matches): Likewise.
526         (search_symbols_name_matches): Likewise.
527         (do_free_completion_list): Likewise.
528         (maybe_add_partial_symtab_filename): Likewise.
529         (get_main_info): Likewise.
530         (main_info_cleanup): Likewise.
531         * target-dcache.c (target_dcache_cleanup): Likewise.
532         (target_dcache_init_p): Likewise.
533         (target_dcache_invalidate): Likewise.
534         (target_dcache_get): Likewise.
535         (target_dcache_get_or_init): Likewise.
536         * target-descriptions.c (target_find_description): Likewise.
537         (tdesc_find_type): Likewise.
538         (tdesc_data_cleanup): Likewise.
539         (tdesc_find_arch_register): Likewise.
540         (tdesc_register_name): Likewise.
541         (tdesc_register_type): Likewise.
542         (tdesc_register_reggroup_p): Likewise.
543         (set_tdesc_pseudo_register_name): Likewise.
544         (set_tdesc_pseudo_register_type): Likewise.
545         (set_tdesc_pseudo_register_reggroup_p): Likewise.
546         (tdesc_use_registers): Likewise.
547         (free_target_description): Likewise.
548         * target-memory.c (compare_block_starting_address): Likewise.
549         (cleanup_request_data): Likewise.
550         (cleanup_write_requests_vector): Likewise.
551         * target.c (open_target): Likewise.
552         (cleanup_restore_target_terminal): Likewise.
553         (free_memory_read_result_vector): Likewise.
554         * thread.c (disable_thread_stack_temporaries): Likewise.
555         (finish_thread_state_cleanup): Likewise.
556         (do_restore_current_thread_cleanup): Likewise.
557         (restore_current_thread_cleanup_dtor): Likewise.
558         (set_thread_refcount): Likewise.
559         (tp_array_compar): Likewise.
560         (do_captured_thread_select): Likewise.
561         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
562         (tic6x_stub_this_id): Likewise.
563         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
564         * top.c (do_restore_instream_cleanup): Likewise.
565         (gdb_readline_wrapper_cleanup): Likewise.
566         (kill_or_detach): Likewise.
567         (print_inferior_quit_action): Likewise.
568         * tracefile-tfile.c (match_blocktype): Likewise.
569         (build_traceframe_info): Likewise.
570         * tracefile.c (trace_file_writer_xfree): Likewise.
571         * tracepoint.c (memrange_cmp): Likewise.
572         (do_collect_symbol): Likewise.
573         (do_clear_collection_list): Likewise.
574         (do_restore_current_traceframe_cleanup): Likewise.
575         (restore_current_traceframe_cleanup_dtor): Likewise.
576         (free_current_marker): Likewise.
577         (traceframe_info_start_memory): Likewise.
578         (traceframe_info_start_tvar): Likewise.
579         (free_result): Likewise.
580         * tramp-frame.c (tramp_frame_cache): Likewise.
581         * tui/tui-file.c (tui_file_delete): Likewise.
582         (tui_fileopen): Likewise.
583         (tui_sfileopen): Likewise.
584         (tui_file_isatty): Likewise.
585         (tui_file_rewind): Likewise.
586         (tui_file_put): Likewise.
587         (tui_file_fputs): Likewise.
588         (tui_file_get_strbuf): Likewise.
589         (tui_file_adjust_strbuf): Likewise.
590         (tui_file_flush): Likewise.
591         * tui/tui-layout.c (make_command_window): Likewise.
592         (make_data_window): Likewise.
593         (show_source_disasm_command): Likewise.
594         (show_data): Likewise.
595         (make_source_or_disasm_window): Likewise.
596         (show_source_or_disasm_and_command): Likewise.
597         * tui/tui-out.c (tui_field_int): Likewise.
598         (tui_field_string): Likewise.
599         (tui_field_fmt): Likewise.
600         (tui_text): Likewise.
601         * typeprint.c (hash_typedef_field): Likewise.
602         (eq_typedef_field): Likewise.
603         (do_free_typedef_hash): Likewise.
604         (copy_typedef_hash_element): Likewise.
605         (do_free_global_table): Likewise.
606         (find_global_typedef): Likewise.
607         (find_typedef_in_hash): Likewise.
608         * ui-file.c (ui_file_write_for_put): Likewise.
609         (do_ui_file_xstrdup): Likewise.
610         (mem_file_delete): Likewise.
611         (mem_file_rewind): Likewise.
612         (mem_file_put): Likewise.
613         (mem_file_write): Likewise.
614         (stdio_file_delete): Likewise.
615         (stdio_file_flush): Likewise.
616         (stdio_file_read): Likewise.
617         (stdio_file_write): Likewise.
618         (stdio_file_write_async_safe): Likewise.
619         (stdio_file_fputs): Likewise.
620         (stdio_file_isatty): Likewise.
621         (stdio_file_fseek): Likewise.
622         (tee_file_delete): Likewise.
623         (tee_file_flush): Likewise.
624         (tee_file_write): Likewise.
625         (tee_file_fputs): Likewise.
626         (tee_file_isatty): Likewise.
627         * ui-out.c (do_cleanup_table_end): Likewise.
628         (do_cleanup_end): Likewise.
629         * user-regs.c (user_reg_add): Likewise.
630         (user_reg_map_name_to_regnum): Likewise.
631         (usernum_to_user_reg): Likewise.
632         (maintenance_print_user_registers): Likewise.
633         * utils.c (do_bfd_close_cleanup): Likewise.
634         (do_fclose_cleanup): Likewise.
635         (do_obstack_free): Likewise.
636         (do_ui_file_delete): Likewise.
637         (do_ui_out_redirect_pop): Likewise.
638         (do_free_section_addr_info): Likewise.
639         (restore_integer): Likewise.
640         (do_unpush_target): Likewise.
641         (do_htab_delete_cleanup): Likewise.
642         (do_restore_ui_file): Likewise.
643         (do_value_free): Likewise.
644         (do_free_so): Likewise.
645         (free_current_contents): Likewise.
646         (do_regfree_cleanup): Likewise.
647         (core_addr_hash): Likewise.
648         (core_addr_eq): Likewise.
649         (do_free_char_ptr_vec): Likewise.
650         * v850-tdep.c (v850_frame_cache): Likewise.
651         * varobj.c (do_free_variable_cleanup): Likewise.
652         * vax-tdep.c (vax_supply_gregset): Likewise.
653         (vax_frame_cache): Likewise.
654         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
655         * xml-support.c (gdb_xml_body_text): Likewise.
656         (gdb_xml_values_cleanup): Likewise.
657         (gdb_xml_start_element): Likewise.
658         (gdb_xml_start_element_wrapper): Likewise.
659         (gdb_xml_end_element): Likewise.
660         (gdb_xml_end_element_wrapper): Likewise.
661         (gdb_xml_cleanup): Likewise.
662         (gdb_xml_fetch_external_entity): Likewise.
663         (gdb_xml_parse_attr_enum): Likewise.
664         (xinclude_start_include): Likewise.
665         (xinclude_end_include): Likewise.
666         (xml_xinclude_default): Likewise.
667         (xml_xinclude_start_doctype): Likewise.
668         (xml_xinclude_end_doctype): Likewise.
669         (xml_xinclude_cleanup): Likewise.
670         (xml_fetch_content_from_file): Likewise.
671         * xml-syscall.c (free_syscalls_info): Likewise.
672         (syscall_start_syscall): Likewise.
673         * xml-tdesc.c (tdesc_end_arch): Likewise.
674         (tdesc_end_osabi): Likewise.
675         (tdesc_end_compatible): Likewise.
676         (tdesc_start_target): Likewise.
677         (tdesc_start_feature): Likewise.
678         (tdesc_start_reg): Likewise.
679         (tdesc_start_union): Likewise.
680         (tdesc_start_struct): Likewise.
681         (tdesc_start_flags): Likewise.
682         (tdesc_start_field): Likewise.
683         (tdesc_start_vector): Likewise.
684         (fetch_available_features_from_target): Likewise.
685         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
686         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
687         (xtensa_frame_cache): Likewise.
688         (xtensa_frame_prev_register): Likewise.
689         (xtensa_extract_return_value): Likewise.
690
691 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
692
693         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
694         (aarch64_make_stub_cache): Likewise.
695         (value_of_aarch64_user_reg): Likewise.
696         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
697         (get_ada_inferior_data): Likewise.
698         (get_ada_pspace_data): Likewise.
699         (ada_pspace_data_cleanup): Likewise.
700         (ada_complete_symbol_matcher): Likewise.
701         (ada_exc_search_name_matches): Likewise.
702         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
703         (get_ada_tasks_inferior_data): Likewise.
704         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
705         (splay_obstack_alloc): Likewise.
706         (splay_obstack_free): Likewise.
707         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
708         (alpha_linux_collect_gregset): Likewise.
709         (alpha_linux_supply_fpregset): Likewise.
710         (alpha_linux_collect_fpregset): Likewise.
711         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
712         * alpha-tdep.c (alpha_lds): Likewise.
713         (alpha_sts): Likewise.
714         (alpha_sigtramp_frame_unwind_cache): Likewise.
715         (alpha_heuristic_frame_unwind_cache): Likewise.
716         (alpha_supply_int_regs): Likewise.
717         (alpha_fill_int_regs): Likewise.
718         (alpha_supply_fp_regs): Likewise.
719         (alpha_fill_fp_regs): Likewise.
720         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
721         (alphanbsd_aout_supply_gregset): Likewise.
722         (alphanbsd_supply_gregset): Likewise.
723         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
724         (amd64_x32_linux_init_abi): Likewise.
725         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
726         (amd64_collect_native_gregset): Likewise.
727         * amd64-tdep.c (amd64_frame_cache): Likewise.
728         (amd64_sigtramp_frame_cache): Likewise.
729         (amd64_epilogue_frame_cache): Likewise.
730         (amd64_supply_fxsave): Likewise.
731         (amd64_supply_xsave): Likewise.
732         (amd64_collect_fxsave): Likewise.
733         (amd64_collect_xsave): Likewise.
734         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
735         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
736         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
737         (arm_linux_collect_gregset): Likewise.
738         (arm_linux_supply_nwfpe): Likewise.
739         (arm_linux_collect_nwfpe): Likewise.
740         (arm_linux_supply_vfp): Likewise.
741         (arm_linux_collect_vfp): Likewise.
742         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
743         (arm_prologue_unwind_stop_reason): Likewise.
744         (arm_prologue_this_id): Likewise.
745         (arm_prologue_prev_register): Likewise.
746         (arm_exidx_data_free): Likewise.
747         (arm_find_exidx_entry): Likewise.
748         (arm_stub_this_id): Likewise.
749         (arm_m_exception_this_id): Likewise.
750         (arm_m_exception_prev_register): Likewise.
751         (arm_normal_frame_base): Likewise.
752         (gdb_print_insn_arm): Likewise.
753         (arm_objfile_data_free): Likewise.
754         (arm_record_special_symbol): Likewise.
755         (value_of_arm_user_reg): Likewise.
756         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
757         (armbsd_supply_gregset): Likewise.
758         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
759         (get_auto_load_pspace_data): Likewise.
760         (hash_loaded_script_entry): Likewise.
761         (eq_loaded_script_entry): Likewise.
762         (clear_section_scripts): Likewise.
763         (collect_matching_scripts): Likewise.
764         * auxv.c (auxv_inferior_data_cleanup): Likewise.
765         (get_auxv_inferior_data): Likewise.
766         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
767         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
768         * bfd-target.c (target_bfd_xfer_partial): Likewise.
769         (target_bfd_xclose): Likewise.
770         (target_bfd_get_section_table): Likewise.
771         * bfin-tdep.c (bfin_frame_cache): Likewise.
772         * block.c (find_block_in_blockvector): Likewise.
773         (call_site_for_pc): Likewise.
774         (block_find_non_opaque_type_preferred): Likewise.
775         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
776         (signal_catchpoint_remove_location): Likewise.
777         (signal_catchpoint_breakpoint_hit): Likewise.
778         (signal_catchpoint_print_one): Likewise.
779         (signal_catchpoint_print_mention): Likewise.
780         (signal_catchpoint_print_recreate): Likewise.
781         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
782         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
783         (bp_location_compare_addrs): Likewise.
784         (get_first_locp_gte_addr): Likewise.
785         (check_tracepoint_command): Likewise.
786         (do_map_commands_command): Likewise.
787         (get_breakpoint_objfile_data): Likewise.
788         (free_breakpoint_probes): Likewise.
789         (do_captured_breakpoint_query): Likewise.
790         (compare_breakpoints): Likewise.
791         (bp_location_compare): Likewise.
792         (bpstat_remove_breakpoint_callback): Likewise.
793         (do_delete_breakpoint_cleanup): Likewise.
794         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
795         (bsd_uthread_set_collect_uthread): Likewise.
796         (bsd_uthread_activate): Likewise.
797         (bsd_uthread_fetch_registers): Likewise.
798         (bsd_uthread_store_registers): Likewise.
799         * btrace.c (check_xml_btrace_version): Likewise.
800         (parse_xml_btrace_block): Likewise.
801         (parse_xml_btrace_pt_config_cpu): Likewise.
802         (parse_xml_btrace_pt_raw): Likewise.
803         (parse_xml_btrace_pt): Likewise.
804         (parse_xml_btrace_conf_bts): Likewise.
805         (parse_xml_btrace_conf_pt): Likewise.
806         (do_btrace_data_cleanup): Likewise.
807         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
808         * charset.c (cleanup_iconv): Likewise.
809         (do_cleanup_iterator): Likewise.
810         * cli-out.c (cli_uiout_dtor): Likewise.
811         (cli_table_begin): Likewise.
812         (cli_table_body): Likewise.
813         (cli_table_end): Likewise.
814         (cli_table_header): Likewise.
815         (cli_begin): Likewise.
816         (cli_end): Likewise.
817         (cli_field_int): Likewise.
818         (cli_field_skip): Likewise.
819         (cli_field_string): Likewise.
820         (cli_field_fmt): Likewise.
821         (cli_spaces): Likewise.
822         (cli_text): Likewise.
823         (cli_message): Likewise.
824         (cli_wrap_hint): Likewise.
825         (cli_flush): Likewise.
826         (cli_redirect): Likewise.
827         (out_field_fmt): Likewise.
828         (field_separator): Likewise.
829         (cli_out_set_stream): Likewise.
830         * cli/cli-cmds.c (compare_symtabs): Likewise.
831         * cli/cli-dump.c (call_dump_func): Likewise.
832         (restore_section_callback): Likewise.
833         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
834         (do_restore_user_call_depth): Likewise.
835         (do_free_command_lines_cleanup): Likewise.
836         * coff-pe-read.c (get_section_vmas): Likewise.
837         (pe_as16): Likewise.
838         (pe_as32): Likewise.
839         * coffread.c (coff_symfile_read): Likewise.
840         * common/agent.c (agent_look_up_symbols): Likewise.
841         * common/filestuff.c (do_close_cleanup): Likewise.
842         * common/format.c (free_format_pieces_cleanup): Likewise.
843         * common/vec.c (vec_o_reserve): Likewise.
844         * compile/compile-c-support.c (print_one_macro): Likewise.
845         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
846         (eq_symbol_error): Likewise.
847         (del_symbol_error): Likewise.
848         (error_symbol_once): Likewise.
849         (gcc_convert_symbol): Likewise.
850         (gcc_symbol_address): Likewise.
851         (hash_symname): Likewise.
852         (eq_symname): Likewise.
853         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
854         (eq_type_map_instance): Likewise.
855         (insert_type): Likewise.
856         (convert_type): Likewise.
857         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
858         (setup_sections): Likewise.
859         (link_hash_table_free): Likewise.
860         (copy_sections): Likewise.
861         * compile/compile-object-run.c (do_module_cleanup): Likewise.
862         * compile/compile.c (compile_print_value): Likewise.
863         (do_rmdir): Likewise.
864         (cleanup_compile_instance): Likewise.
865         (cleanup_unlink_file): Likewise.
866         * completer.c (free_completion_tracker): Likewise.
867         * corelow.c (add_to_spuid_list): Likewise.
868         * cp-namespace.c (reset_directive_searched): Likewise.
869         * cp-support.c (reset_directive_searched): Likewise.
870         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
871         (cris_frame_unwind_cache): Likewise.
872         * d-lang.c (builtin_d_type): Likewise.
873         * d-namespace.c (reset_directive_searched): Likewise.
874         * dbxread.c (dbx_free_symfile_info): Likewise.
875         (do_free_bincl_list_cleanup): Likewise.
876         * disasm.c (hash_dis_line_entry): Likewise.
877         (eq_dis_line_entry): Likewise.
878         (dis_asm_print_address): Likewise.
879         (fprintf_disasm): Likewise.
880         (do_ui_file_delete): Likewise.
881         * doublest.c (convert_floatformat_to_doublest): Likewise.
882         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
883         (dummy_frame_prev_register): Likewise.
884         (dummy_frame_this_id): Likewise.
885         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
886         (cache_eq): Likewise.
887         (cache_find): Likewise.
888         (tailcall_frame_this_id): Likewise.
889         (dwarf2_tailcall_prev_register_first): Likewise.
890         (tailcall_frame_prev_register): Likewise.
891         (tailcall_frame_dealloc_cache): Likewise.
892         (tailcall_frame_prev_arch): Likewise.
893         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
894         (dwarf2_frame_set_init_reg): Likewise.
895         (dwarf2_frame_init_reg): Likewise.
896         (dwarf2_frame_set_signal_frame_p): Likewise.
897         (dwarf2_frame_signal_frame_p): Likewise.
898         (dwarf2_frame_set_adjust_regnum): Likewise.
899         (dwarf2_frame_adjust_regnum): Likewise.
900         (clear_pointer_cleanup): Likewise.
901         (dwarf2_frame_cache): Likewise.
902         (find_cie): Likewise.
903         (dwarf2_frame_find_fde): Likewise.
904         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
905         (free_dwarf_expr_context_cleanup): Likewise.
906         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
907         (locexpr_get_frame_base): Likewise.
908         (loclist_find_frame_base_location): Likewise.
909         (loclist_get_frame_base): Likewise.
910         (dwarf_expr_dwarf_call): Likewise.
911         (dwarf_expr_get_base_type): Likewise.
912         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
913         (dwarf_expr_get_obj_addr): Likewise.
914         (entry_data_value_coerce_ref): Likewise.
915         (entry_data_value_copy_closure): Likewise.
916         (entry_data_value_free_closure): Likewise.
917         (get_frame_address_in_block_wrapper): Likewise.
918         (dwarf2_evaluate_property): Likewise.
919         (dwarf2_compile_property_to_c): Likewise.
920         (needs_frame_read_addr_from_reg): Likewise.
921         (needs_frame_get_reg_value): Likewise.
922         (needs_frame_frame_base): Likewise.
923         (needs_frame_frame_cfa): Likewise.
924         (needs_frame_tls_address): Likewise.
925         (needs_frame_dwarf_call): Likewise.
926         (needs_dwarf_reg_entry_value): Likewise.
927         (get_ax_pc): Likewise.
928         (locexpr_read_variable): Likewise.
929         (locexpr_read_variable_at_entry): Likewise.
930         (locexpr_read_needs_frame): Likewise.
931         (locexpr_describe_location): Likewise.
932         (locexpr_tracepoint_var_ref): Likewise.
933         (locexpr_generate_c_location): Likewise.
934         (loclist_read_variable): Likewise.
935         (loclist_read_variable_at_entry): Likewise.
936         (loclist_describe_location): Likewise.
937         (loclist_tracepoint_var_ref): Likewise.
938         (loclist_generate_c_location): Likewise.
939         * dwarf2read.c (line_header_hash_voidp): Likewise.
940         (line_header_eq_voidp): Likewise.
941         (dwarf2_has_info): Likewise.
942         (dwarf2_get_section_info): Likewise.
943         (locate_dwz_sections): Likewise.
944         (hash_file_name_entry): Likewise.
945         (eq_file_name_entry): Likewise.
946         (delete_file_name_entry): Likewise.
947         (dw2_setup): Likewise.
948         (dw2_get_file_names_reader): Likewise.
949         (dw2_find_pc_sect_compunit_symtab): Likewise.
950         (hash_signatured_type): Likewise.
951         (eq_signatured_type): Likewise.
952         (add_signatured_type_cu_to_table): Likewise.
953         (create_debug_types_hash_table): Likewise.
954         (lookup_dwo_signatured_type): Likewise.
955         (lookup_dwp_signatured_type): Likewise.
956         (lookup_signatured_type): Likewise.
957         (hash_type_unit_group): Likewise.
958         (eq_type_unit_group): Likewise.
959         (get_type_unit_group): Likewise.
960         (process_psymtab_comp_unit_reader): Likewise.
961         (sort_tu_by_abbrev_offset): Likewise.
962         (process_skeletonless_type_unit): Likewise.
963         (psymtabs_addrmap_cleanup): Likewise.
964         (dwarf2_read_symtab): Likewise.
965         (psymtab_to_symtab_1): Likewise.
966         (die_hash): Likewise.
967         (die_eq): Likewise.
968         (load_full_comp_unit_reader): Likewise.
969         (reset_die_in_process): Likewise.
970         (free_cu_line_header): Likewise.
971         (handle_DW_AT_stmt_list): Likewise.
972         (hash_dwo_file): Likewise.
973         (eq_dwo_file): Likewise.
974         (hash_dwo_unit): Likewise.
975         (eq_dwo_unit): Likewise.
976         (create_dwo_cu_reader): Likewise.
977         (create_dwo_unit_in_dwp_v1): Likewise.
978         (create_dwo_unit_in_dwp_v2): Likewise.
979         (lookup_dwo_unit_in_dwp): Likewise.
980         (dwarf2_locate_dwo_sections): Likewise.
981         (dwarf2_locate_common_dwp_sections): Likewise.
982         (dwarf2_locate_v2_dwp_sections): Likewise.
983         (hash_dwp_loaded_cutus): Likewise.
984         (eq_dwp_loaded_cutus): Likewise.
985         (lookup_dwo_cutu): Likewise.
986         (abbrev_table_free_cleanup): Likewise.
987         (dwarf2_free_abbrev_table): Likewise.
988         (find_partial_die_in_comp_unit): Likewise.
989         (free_line_header_voidp): Likewise.
990         (follow_die_offset): Likewise.
991         (follow_die_sig_1): Likewise.
992         (free_heap_comp_unit): Likewise.
993         (free_stack_comp_unit): Likewise.
994         (dwarf2_free_objfile): Likewise.
995         (per_cu_offset_and_type_hash): Likewise.
996         (per_cu_offset_and_type_eq): Likewise.
997         (get_die_type_at_offset): Likewise.
998         (partial_die_hash): Likewise.
999         (partial_die_eq): Likewise.
1000         (dwarf2_per_objfile_free): Likewise.
1001         (hash_strtab_entry): Likewise.
1002         (eq_strtab_entry): Likewise.
1003         (add_string): Likewise.
1004         (hash_symtab_entry): Likewise.
1005         (eq_symtab_entry): Likewise.
1006         (delete_symtab_entry): Likewise.
1007         (cleanup_mapped_symtab): Likewise.
1008         (add_indices_to_cpool): Likewise.
1009         (hash_psymtab_cu_index): Likewise.
1010         (eq_psymtab_cu_index): Likewise.
1011         (add_address_entry_worker): Likewise.
1012         (unlink_if_set): Likewise.
1013         (write_one_signatured_type): Likewise.
1014         (save_gdb_index_command): Likewise.
1015         * elfread.c (elf_symtab_read): Likewise.
1016         (elf_gnu_ifunc_cache_hash): Likewise.
1017         (elf_gnu_ifunc_cache_eq): Likewise.
1018         (elf_gnu_ifunc_record_cache): Likewise.
1019         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1020         (elf_get_probes): Likewise.
1021         (probe_key_free): Likewise.
1022         * f-lang.c (builtin_f_type): Likewise.
1023         * frame-base.c (frame_base_append_sniffer): Likewise.
1024         (frame_base_set_default): Likewise.
1025         (frame_base_find_by_frame): Likewise.
1026         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1027         (frame_unwind_append_unwinder): Likewise.
1028         (frame_unwind_find_by_frame): Likewise.
1029         * frame.c (frame_addr_hash): Likewise.
1030         (frame_addr_hash_eq): Likewise.
1031         (frame_stash_find): Likewise.
1032         (do_frame_register_read): Likewise.
1033         (unwind_to_current_frame): Likewise.
1034         (frame_cleanup_after_sniffer): Likewise.
1035         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1036         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1037         * ft32-tdep.c (ft32_frame_cache): Likewise.
1038         * gcore.c (do_bfd_delete_cleanup): Likewise.
1039         (gcore_create_callback): Likewise.
1040         * gdb_bfd.c (hash_bfd): Likewise.
1041         (eq_bfd): Likewise.
1042         (gdb_bfd_open): Likewise.
1043         (free_one_bfd_section): Likewise.
1044         (gdb_bfd_ref): Likewise.
1045         (gdb_bfd_unref): Likewise.
1046         (get_section_descriptor): Likewise.
1047         (gdb_bfd_map_section): Likewise.
1048         (gdb_bfd_crc): Likewise.
1049         (gdb_bfd_mark_parent): Likewise.
1050         (gdb_bfd_record_inclusion): Likewise.
1051         (gdb_bfd_requires_relocations): Likewise.
1052         (print_one_bfd): Likewise.
1053         * gdbtypes.c (type_pair_hash): Likewise.
1054         (type_pair_eq): Likewise.
1055         (builtin_type): Likewise.
1056         (objfile_type): Likewise.
1057         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1058         (vtable_address_point_offset): Likewise.
1059         (gnuv3_get_vtable): Likewise.
1060         (hash_value_and_voffset): Likewise.
1061         (eq_value_and_voffset): Likewise.
1062         (compare_value_and_voffset): Likewise.
1063         (compute_vtable_size): Likewise.
1064         (gnuv3_get_typeid_type): Likewise.
1065         * go-lang.c (builtin_go_type): Likewise.
1066         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1067         (bkscm_eq_block_smob): Likewise.
1068         (bkscm_objfile_block_map): Likewise.
1069         (bkscm_del_objfile_blocks): Likewise.
1070         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1071         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1072         (gdbscm_disasm_print_address): Likewise.
1073         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1074         (frscm_eq_frame_smob): Likewise.
1075         (frscm_inferior_frame_map): Likewise.
1076         (frscm_del_inferior_frames): Likewise.
1077         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1078         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1079         (ofscm_objfile_smob_from_objfile): Likewise.
1080         * guile/scm-ports.c (ioscm_write): Likewise.
1081         (ioscm_file_port_delete): Likewise.
1082         (ioscm_file_port_rewind): Likewise.
1083         (ioscm_file_port_put): Likewise.
1084         (ioscm_file_port_write): Likewise.
1085         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1086         (psscm_pspace_smob_from_pspace): Likewise.
1087         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1088         (scscm_recording_unwind_handler): Likewise.
1089         (gdbscm_with_catch): Likewise.
1090         (scscm_call_0_body): Likewise.
1091         (scscm_call_1_body): Likewise.
1092         (scscm_call_2_body): Likewise.
1093         (scscm_call_3_body): Likewise.
1094         (scscm_call_4_body): Likewise.
1095         (scscm_apply_1_body): Likewise.
1096         (scscm_eval_scheme_string): Likewise.
1097         (gdbscm_safe_eval_string): Likewise.
1098         (scscm_source_scheme_script): Likewise.
1099         (gdbscm_safe_source_script): Likewise.
1100         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1101         (gdbscm_call_scm_from_stringn): Likewise.
1102         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1103         (syscm_eq_symbol_smob): Likewise.
1104         (syscm_get_symbol_map): Likewise.
1105         (syscm_del_objfile_symbols): Likewise.
1106         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1107         (stscm_eq_symtab_smob): Likewise.
1108         (stscm_objfile_symtab_map): Likewise.
1109         (stscm_del_objfile_symtabs): Likewise.
1110         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1111         (tyscm_eq_type_smob): Likewise.
1112         (tyscm_type_map): Likewise.
1113         (tyscm_copy_type_recursive): Likewise.
1114         (save_objfile_types): Likewise.
1115         * guile/scm-utils.c (extract_arg): Likewise.
1116         * h8300-tdep.c (h8300_frame_cache): Likewise.
1117         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1118         * hppa-tdep.c (compare_unwind_entries): Likewise.
1119         (find_unwind_entry): Likewise.
1120         (hppa_frame_cache): Likewise.
1121         (hppa_stub_frame_unwind_cache): Likewise.
1122         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1123         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1124         (hppaobsd_supply_fpregset): Likewise.
1125         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1126         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1127         * i386-tdep.c (i386_frame_cache): Likewise.
1128         (i386_epilogue_frame_cache): Likewise.
1129         (i386_sigtramp_frame_cache): Likewise.
1130         (i386_supply_gregset): Likewise.
1131         (i386_collect_gregset): Likewise.
1132         (i386_gdbarch_init): Likewise.
1133         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1134         (i386obsd_trapframe_cache): Likewise.
1135         * i387-tdep.c (i387_supply_fsave): Likewise.
1136         (i387_collect_fsave): Likewise.
1137         (i387_supply_fxsave): Likewise.
1138         (i387_collect_fxsave): Likewise.
1139         (i387_supply_xsave): Likewise.
1140         (i387_collect_xsave): Likewise.
1141         * ia64-tdep.c (ia64_frame_cache): Likewise.
1142         (ia64_sigtramp_frame_cache): Likewise.
1143         * infcmd.c (attach_command_continuation): Likewise.
1144         (attach_command_continuation_free_args): Likewise.
1145         * inferior.c (restore_inferior): Likewise.
1146         (delete_thread_of_inferior): Likewise.
1147         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1148         (get_inflow_inferior_data): Likewise.
1149         (inflow_inferior_exit): Likewise.
1150         * infrun.c (displaced_step_clear_cleanup): Likewise.
1151         (restore_current_uiout_cleanup): Likewise.
1152         (release_stop_context_cleanup): Likewise.
1153         (do_restore_infcall_suspend_state_cleanup): Likewise.
1154         (do_restore_infcall_control_state_cleanup): Likewise.
1155         (restore_inferior_ptid): Likewise.
1156         * inline-frame.c (block_starting_point_at): Likewise.
1157         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1158         * jit.c (get_jit_objfile_data): Likewise.
1159         (get_jit_program_space_data): Likewise.
1160         (jit_object_close_impl): Likewise.
1161         (jit_find_objf_with_entry_addr): Likewise.
1162         (jit_breakpoint_deleted): Likewise.
1163         (jit_unwind_reg_set_impl): Likewise.
1164         (jit_unwind_reg_get_impl): Likewise.
1165         (jit_dealloc_cache): Likewise.
1166         (jit_frame_sniffer): Likewise.
1167         (jit_frame_prev_register): Likewise.
1168         (jit_prepend_unwinder): Likewise.
1169         (jit_inferior_exit_hook): Likewise.
1170         (free_objfile_data): Likewise.
1171         * jv-lang.c (jv_per_objfile_free): Likewise.
1172         (get_dynamics_objfile): Likewise.
1173         (get_java_class_symtab): Likewise.
1174         (builtin_java_type): Likewise.
1175         * language.c (language_string_char_type): Likewise.
1176         (language_bool_type): Likewise.
1177         (language_lookup_primitive_type): Likewise.
1178         (language_lookup_primitive_type_as_symbol): Likewise.
1179         * linespec.c (hash_address_entry): Likewise.
1180         (eq_address_entry): Likewise.
1181         (iterate_inline_only): Likewise.
1182         (iterate_name_matcher): Likewise.
1183         (decode_line_2_compare_items): Likewise.
1184         (collect_one_symbol): Likewise.
1185         (compare_symbols): Likewise.
1186         (compare_msymbols): Likewise.
1187         (add_symtabs_to_list): Likewise.
1188         (collect_symbols): Likewise.
1189         (compare_msyms): Likewise.
1190         (add_minsym): Likewise.
1191         (cleanup_linespec_result): Likewise.
1192         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1193         * linux-nat.c (delete_lwp_cleanup): Likewise.
1194         (count_events_callback): Likewise.
1195         (select_event_lwp_callback): Likewise.
1196         (resume_stopped_resumed_lwps): Likewise.
1197         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1198         (invalidate_linux_cache_inf): Likewise.
1199         (get_linux_inferior_data): Likewise.
1200         (linux_find_memory_regions_thunk): Likewise.
1201         (linux_make_mappings_callback): Likewise.
1202         (linux_corefile_thread_callback): Likewise.
1203         (find_mapping_size): Likewise.
1204         * linux-thread-db.c (find_new_threads_callback): Likewise.
1205         * lm32-tdep.c (lm32_frame_cache): Likewise.
1206         * m2-lang.c (builtin_m2_type): Likewise.
1207         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1208         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1209         (m32r_linux_supply_gregset): Likewise.
1210         (m32r_linux_collect_gregset): Likewise.
1211         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1212         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1213         * m68k-tdep.c (m68k_frame_cache): Likewise.
1214         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1215         (m68kbsd_supply_gregset): Likewise.
1216         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1217         * m88k-tdep.c (m88k_frame_cache): Likewise.
1218         (m88k_supply_gregset): Likewise.
1219
1220 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1221
1222         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1223         to allocation result assignment.
1224         * ada-exp.y (write_object_renaming): Likewise.
1225         (write_ambiguous_var): Likewise.
1226         (ada_nget_field_index): Likewise.
1227         (write_var_or_type): Likewise.
1228         * ada-lang.c (ada_decode_symbol): Likewise.
1229         (ada_value_assign): Likewise.
1230         (value_pointer): Likewise.
1231         (cache_symbol): Likewise.
1232         (add_nonlocal_symbols): Likewise.
1233         (ada_name_for_lookup): Likewise.
1234         (symbol_completion_add): Likewise.
1235         (ada_to_fixed_type_1): Likewise.
1236         (ada_get_next_arg): Likewise.
1237         (defns_collected): Likewise.
1238         * ada-lex.l (processId): Likewise.
1239         (processString): Likewise.
1240         * ada-tasks.c (read_known_tasks_array): Likewise.
1241         (read_known_tasks_list): Likewise.
1242         * ada-typeprint.c (decoded_type_name): Likewise.
1243         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1244         * amd64-tdep.c (amd64_push_arguments): Likewise.
1245         (amd64_displaced_step_copy_insn): Likewise.
1246         (amd64_classify_insn_at): Likewise.
1247         (amd64_relocate_instruction): Likewise.
1248         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1249         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1250         (initialize_current_architecture): Likewise.
1251         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1252         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1253         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1254         (arm_push_dummy_call): Likewise.
1255         (extend_buffer_earlier): Likewise.
1256         (arm_adjust_breakpoint_address): Likewise.
1257         (arm_skip_stub): Likewise.
1258         * auto-load.c (filename_is_in_pattern): Likewise.
1259         (maybe_add_script_file): Likewise.
1260         (maybe_add_script_text): Likewise.
1261         (auto_load_objfile_script_1): Likewise.
1262         * auxv.c (ld_so_xfer_auxv): Likewise.
1263         * ax-general.c (new_agent_expr): Likewise.
1264         (grow_expr): Likewise.
1265         (ax_reg_mask): Likewise.
1266         * bcache.c (bcache_full): Likewise.
1267         * breakpoint.c (program_breakpoint_here_p): Likewise.
1268         * btrace.c (parse_xml_raw): Likewise.
1269         * build-id.c (build_id_to_debug_bfd): Likewise.
1270         * buildsym.c (end_symtab_with_blockvector): Likewise.
1271         * c-exp.y (string_exp): Likewise.
1272         (qualified_name): Likewise.
1273         (write_destructor_name): Likewise.
1274         (operator_stoken): Likewise.
1275         (parse_number): Likewise.
1276         (scan_macro_expansion): Likewise.
1277         (yylex): Likewise.
1278         (c_print_token): Likewise.
1279         * c-lang.c (c_get_string): Likewise.
1280         (emit_numeric_character): Likewise.
1281         * charset.c (wchar_iterate): Likewise.
1282         * cli/cli-cmds.c (complete_command): Likewise.
1283         (make_command): Likewise.
1284         * cli/cli-dump.c (restore_section_callback): Likewise.
1285         (restore_binary_file): Likewise.
1286         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1287         * cli/cli-script.c (execute_control_command): Likewise.
1288         * cli/cli-setshow.c (do_set_command): Likewise.
1289         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1290         (read_pe_exported_syms): Likewise.
1291         * coffread.c (coff_read_struct_type): Likewise.
1292         (coff_read_enum_type): Likewise.
1293         * common/btrace-common.c (btrace_data_append): Likewise.
1294         * common/buffer.c (buffer_grow): Likewise.
1295         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1296         * common/format.c (parse_format_string): Likewise.
1297         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1298         * common/xml-utils.c (xml_escape_text): Likewise.
1299         * compile/compile-object-load.c (copy_sections): Likewise.
1300         (compile_object_load): Likewise.
1301         * compile/compile-object-run.c (compile_object_run): Likewise.
1302         * completer.c (filename_completer): Likewise.
1303         * corefile.c (read_memory_typed_address): Likewise.
1304         (write_memory_unsigned_integer): Likewise.
1305         (write_memory_signed_integer): Likewise.
1306         (complete_set_gnutarget): Likewise.
1307         * corelow.c (get_core_register_section): Likewise.
1308         * cp-name-parser.y (d_grab): Likewise.
1309         (allocate_info): Likewise.
1310         (cp_new_demangle_parse_info): Likewise.
1311         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1312         (cp_lookup_symbol_in_namespace): Likewise.
1313         (lookup_namespace_scope): Likewise.
1314         (find_symbol_in_baseclass): Likewise.
1315         (cp_lookup_nested_symbol): Likewise.
1316         (cp_lookup_transparent_type_loop): Likewise.
1317         * cp-support.c (copy_string_to_obstack): Likewise.
1318         (make_symbol_overload_list): Likewise.
1319         (make_symbol_overload_list_namespace): Likewise.
1320         (make_symbol_overload_list_adl_namespace): Likewise.
1321         (first_component_command): Likewise.
1322         * cp-valprint.c (cp_print_value): Likewise.
1323         * ctf.c (ctf_xfer_partial): Likewise.
1324         * d-exp.y (StringExp): Likewise.
1325         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1326         (lookup_module_scope): Likewise.
1327         (find_symbol_in_baseclass): Likewise.
1328         (d_lookup_nested_symbol): Likewise.
1329         * dbxread.c (find_stab_function_addr): Likewise.
1330         (read_dbx_symtab): Likewise.
1331         (dbx_end_psymtab): Likewise.
1332         (cp_set_block_scope): Likewise.
1333         * dcache.c (dcache_alloc): Likewise.
1334         * demangle.c (_initialize_demangler): Likewise.
1335         * dicos-tdep.c (dicos_load_module_p): Likewise.
1336         * dictionary.c (dict_create_hashed_expandable): Likewise.
1337         (dict_create_linear_expandable): Likewise.
1338         (expand_hashtable): Likewise.
1339         (add_symbol_linear_expandable): Likewise.
1340         * dwarf2-frame.c (add_cie): Likewise.
1341         (add_fde): Likewise.
1342         (dwarf2_build_frame_info): Likewise.
1343         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1344         (dwarf_expr_fetch_address): Likewise.
1345         (add_piece): Likewise.
1346         (execute_stack_op): Likewise.
1347         * dwarf2loc.c (chain_candidate): Likewise.
1348         (dwarf_entry_parameter_to_value): Likewise.
1349         (read_pieced_value): Likewise.
1350         (write_pieced_value): Likewise.
1351         * dwarf2read.c (dwarf2_read_section): Likewise.
1352         (add_type_unit): Likewise.
1353         (read_comp_units_from_section): Likewise.
1354         (fixup_go_packaging): Likewise.
1355         (dwarf2_compute_name): Likewise.
1356         (dwarf2_physname): Likewise.
1357         (create_dwo_unit_in_dwp_v1): Likewise.
1358         (create_dwo_unit_in_dwp_v2): Likewise.
1359         (read_func_scope): Likewise.
1360         (read_call_site_scope): Likewise.
1361         (dwarf2_attach_fields_to_type): Likewise.
1362         (process_structure_scope): Likewise.
1363         (mark_common_block_symbol_computed): Likewise.
1364         (read_common_block): Likewise.
1365         (abbrev_table_read_table): Likewise.
1366         (guess_partial_die_structure_name): Likewise.
1367         (fixup_partial_die): Likewise.
1368         (add_file_name): Likewise.
1369         (dwarf2_const_value_data): Likewise.
1370         (dwarf2_const_value_attr): Likewise.
1371         (build_error_marker_type): Likewise.
1372         (guess_full_die_structure_name): Likewise.
1373         (anonymous_struct_prefix): Likewise.
1374         (typename_concat): Likewise.
1375         (dwarf2_canonicalize_name): Likewise.
1376         (dwarf2_name): Likewise.
1377         (write_constant_as_bytes): Likewise.
1378         (dwarf2_fetch_constant_bytes): Likewise.
1379         (copy_string): Likewise.
1380         (parse_macro_definition): Likewise.
1381         * elfread.c (elf_symfile_segments): Likewise.
1382         (elf_rel_plt_read): Likewise.
1383         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1384         (elf_gnu_ifunc_resolve_by_got): Likewise.
1385         (elf_read_minimal_symbols): Likewise.
1386         (elf_gnu_ifunc_record_cache): Likewise.
1387         * event-top.c (top_level_prompt): Likewise.
1388         (command_line_handler): Likewise.
1389         * exec.c (resize_section_table): Likewise.
1390         * expprint.c (print_subexp_standard): Likewise.
1391         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1392         * findcmd.c (parse_find_args): Likewise.
1393         * findvar.c (address_from_register): Likewise.
1394         * frame.c (get_prev_frame_always): Likewise.
1395         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1396         (get_section_descriptor): Likewise.
1397         * gdb_obstack.c (obconcat): Likewise.
1398         (obstack_strdup): Likewise.
1399         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1400         (create_set_type): Likewise.
1401         (lookup_unsigned_typename): Likewise.
1402         (lookup_signed_typename): Likewise.
1403         (resolve_dynamic_union): Likewise.
1404         (resolve_dynamic_struct): Likewise.
1405         (add_dyn_prop): Likewise.
1406         (copy_dynamic_prop_list): Likewise.
1407         (arch_flags_type): Likewise.
1408         (append_composite_type_field_raw): Likewise.
1409         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1410         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1411         * go-exp.y (string_exp): Likewise.
1412         * go-lang.c (go_demangle): Likewise.
1413         * guile/guile.c (compute_scheme_string): Likewise.
1414         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1415         (gdbscm_canonicalize_command_name): Likewise.
1416         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1417         (ioscm_init_memory_port): Likewise.
1418         (ioscm_reinit_memory_port): Likewise.
1419         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1420         (gdbscm_gc_dup_argv): Likewise.
1421         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1422         * hppa-tdep.c (internalize_unwinds): Likewise.
1423         (read_unwind_info): Likewise.
1424         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1425         (windows_core_xfer_shared_libraries): Likewise.
1426         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1427         (i386_stap_parse_special_token_triplet): Likewise.
1428         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1429         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1430         * inf-child.c (inf_child_fileio_readlink): Likewise.
1431         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1432         (inf_ptrace_store_register): Likewise.
1433         * infrun.c (follow_exec): Likewise.
1434         (displaced_step_prepare_throw): Likewise.
1435         (save_stop_context): Likewise.
1436         (save_infcall_suspend_state): Likewise.
1437         * jit.c (jit_read_descriptor): Likewise.
1438         (jit_read_code_entry): Likewise.
1439         (jit_symtab_line_mapping_add_impl): Likewise.
1440         (finalize_symtab): Likewise.
1441         (jit_unwind_reg_get_impl): Likewise.
1442         * jv-exp.y (QualifiedName): Likewise.
1443         * jv-lang.c (get_java_utf8_name): Likewise.
1444         (type_from_class): Likewise.
1445         (java_demangle_type_signature): Likewise.
1446         (java_class_name_from_physname): Likewise.
1447         * jv-typeprint.c (java_type_print_base): Likewise.
1448         * jv-valprint.c (java_value_print): Likewise.
1449         * language.c (add_language): Likewise.
1450         * linespec.c (add_sal_to_sals_basic): Likewise.
1451         (add_sal_to_sals): Likewise.
1452         (decode_objc): Likewise.
1453         (find_linespec_symbols): Likewise.
1454         * linux-fork.c (fork_save_infrun_state): Likewise.
1455         * linux-nat.c (linux_nat_detach): Likewise.
1456         (linux_nat_fileio_readlink): Likewise.
1457         * linux-record.c (record_linux_sockaddr): Likewise.
1458         (record_linux_msghdr): Likewise.
1459         (Do): Likewise.
1460         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1461         (linux_collect_regset_section_cb): Likewise.
1462         (linux_get_siginfo_data): Likewise.
1463         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1464         (try_thread_db_load_from_dir): Likewise.
1465         (thread_db_load_search): Likewise.
1466         (info_auto_load_libthread_db): Likewise.
1467         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1468         (m32c_m16c_pointer_to_address): Likewise.
1469         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1470         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1471         * machoread.c (macho_check_dsym): Likewise.
1472         * macroexp.c (resize_buffer): Likewise.
1473         (gather_arguments): Likewise.
1474         (maybe_expand): Likewise.
1475         * macrotab.c (new_macro_key): Likewise.
1476         (new_source_file): Likewise.
1477         (new_macro_definition): Likewise.
1478         * mdebugread.c (parse_symbol): Likewise.
1479         (parse_type): Likewise.
1480         (parse_partial_symbols): Likewise.
1481         (psymtab_to_symtab_1): Likewise.
1482         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1483         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1484         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1485         (mi_cmd_data_read_memory_bytes): Likewise.
1486         (mi_cmd_data_write_memory_bytes): Likewise.
1487         (mi_cmd_trace_frame_collected): Likewise.
1488         * mi/mi-parse.c (mi_parse_argv): Likewise.
1489         (mi_parse): Likewise.
1490         * minidebug.c (lzma_open): Likewise.
1491         (lzma_pread): Likewise.
1492         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1493         (mips_print_fp_register): Likewise.
1494         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1495         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1496         * mt-tdep.c (mt_register_name): Likewise.
1497         (mt_registers_info): Likewise.
1498         (mt_push_dummy_call): Likewise.
1499         * namespace.c (add_using_directive): Likewise.
1500         * nat/linux-btrace.c (perf_event_read): Likewise.
1501         (linux_enable_bts): Likewise.
1502         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1503         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1504         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1505         (nto_parse_redirection): Likewise.
1506         * objc-lang.c (objc_demangle): Likewise.
1507         (find_methods): Likewise.
1508         * objfiles.c (get_objfile_bfd_data): Likewise.
1509         (set_objfile_main_name): Likewise.
1510         (allocate_objfile): Likewise.
1511         (objfile_relocate): Likewise.
1512         (update_section_map): Likewise.
1513         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1514         * p-exp.y (exp): Likewise.
1515         (yylex): Likewise.
1516         * p-valprint.c (pascal_object_print_value): Likewise.
1517         * parse.c (initialize_expout): Likewise.
1518         (mark_completion_tag): Likewise.
1519         (copy_name): Likewise.
1520         (parse_float): Likewise.
1521         (type_stack_reserve): Likewise.
1522         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1523         (ppu2spu_prev_register): Likewise.
1524         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1525         * printcmd.c (printf_wide_c_string): Likewise.
1526         (printf_pointer): Likewise.
1527         * probe.c (parse_probes): Likewise.
1528         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1529         (cmdpy_init): Likewise.
1530         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1531         * python/py-symtab.c (set_sal): Likewise.
1532         * python/py-unwind.c (pyuw_sniffer): Likewise.
1533         * python/python.c (python_interactive_command): Likewise.
1534         (compute_python_string): Likewise.
1535         * ravenscar-thread.c (get_running_thread_id): Likewise.
1536         * record-full.c (record_full_exec_insn): Likewise.
1537         (record_full_core_open_1): Likewise.
1538         * regcache.c (regcache_raw_read_signed): Likewise.
1539         (regcache_raw_read_unsigned): Likewise.
1540         (regcache_cooked_read_signed): Likewise.
1541         (regcache_cooked_read_unsigned): Likewise.
1542         * remote-fileio.c (remote_fileio_func_open): Likewise.
1543         (remote_fileio_func_rename): Likewise.
1544         (remote_fileio_func_unlink): Likewise.
1545         (remote_fileio_func_stat): Likewise.
1546         (remote_fileio_func_system): Likewise.
1547         * remote-mips.c (mips_xfer_memory): Likewise.
1548         (mips_load_srec): Likewise.
1549         (pmon_end_download): Likewise.
1550         * remote.c (new_remote_state): Likewise.
1551         (map_regcache_remote_table): Likewise.
1552         (remote_register_number_and_offset): Likewise.
1553         (init_remote_state): Likewise.
1554         (get_memory_packet_size): Likewise.
1555         (remote_pass_signals): Likewise.
1556         (remote_program_signals): Likewise.
1557         (remote_start_remote): Likewise.
1558         (remote_check_symbols): Likewise.
1559         (remote_query_supported): Likewise.
1560         (extended_remote_attach): Likewise.
1561         (process_g_packet): Likewise.
1562         (store_registers_using_G): Likewise.
1563         (putpkt_binary): Likewise.
1564         (read_frame): Likewise.
1565         (compare_sections_command): Likewise.
1566         (remote_hostio_pread): Likewise.
1567         (remote_hostio_readlink): Likewise.
1568         (remote_file_put): Likewise.
1569         (remote_file_get): Likewise.
1570         (remote_pid_to_exec_file): Likewise.
1571         (_initialize_remote): Likewise.
1572         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1573         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1574         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1575         (bfd_uses_spe_extensions): Likewise.
1576         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1577         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1578         * solib-dsbt.c (decode_loadmap): Likewise.
1579         (fetch_loadmap): Likewise.
1580         (scan_dyntag): Likewise.
1581         (enable_break): Likewise.
1582         (dsbt_relocate_main_executable): Likewise.
1583         * solib-frv.c (fetch_loadmap): Likewise.
1584         (enable_break2): Likewise.
1585         (frv_relocate_main_executable): Likewise.
1586         * solib-spu.c (spu_relocate_main_executable): Likewise.
1587         (spu_bfd_open): Likewise.
1588         * solib-svr4.c (lm_info_read): Likewise.
1589         (read_program_header): Likewise.
1590         (find_program_interpreter): Likewise.
1591         (scan_dyntag): Likewise.
1592         (elf_locate_base): Likewise.
1593         (open_symbol_file_object): Likewise.
1594         (read_program_headers_from_bfd): Likewise.
1595         (svr4_relocate_main_executable): Likewise.
1596         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1597         * solib.c (solib_find_1): Likewise.
1598         (exec_file_find): Likewise.
1599         (solib_find): Likewise.
1600         * source.c (openp): Likewise.
1601         (print_source_lines_base): Likewise.
1602         (forward_search_command): Likewise.
1603         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1604         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1605         (spu_get_overlay_table): Likewise.
1606         * stabsread.c (patch_block_stabs): Likewise.
1607         (define_symbol): Likewise.
1608         (again:): Likewise.
1609         (read_member_functions): Likewise.
1610         (read_one_struct_field): Likewise.
1611         (read_enum_type): Likewise.
1612         (common_block_start): Likewise.
1613         * stack.c (read_frame_arg): Likewise.
1614         (backtrace_command): Likewise.
1615         * stap-probe.c (stap_parse_register_operand): Likewise.
1616         * symfile.c (syms_from_objfile_1): Likewise.
1617         (find_separate_debug_file): Likewise.
1618         (load_command): Likewise.
1619         (load_progress): Likewise.
1620         (load_section_callback): Likewise.
1621         (reread_symbols): Likewise.
1622         (add_filename_language): Likewise.
1623         (allocate_compunit_symtab): Likewise.
1624         (read_target_long_array): Likewise.
1625         (simple_read_overlay_table): Likewise.
1626         * symtab.c (symbol_set_names): Likewise.
1627         (resize_symbol_cache): Likewise.
1628         (rbreak_command): Likewise.
1629         (completion_list_add_name): Likewise.
1630         (completion_list_objc_symbol): Likewise.
1631         (add_filename_to_list): Likewise.
1632         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1633         * target-memory.c (target_write_memory_blocks): Likewise.
1634         * target.c (target_read_string): Likewise.
1635         (read_whatever_is_readable): Likewise.
1636         (target_read_alloc_1): Likewise.
1637         (simple_search_memory): Likewise.
1638         (target_fileio_read_alloc_1): Likewise.
1639         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1640         * top.c (command_line_input): Likewise.
1641         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1642         * tracefile.c (tracefile_fetch_registers): Likewise.
1643         * tracepoint.c (add_memrange): Likewise.
1644         (init_collection_list): Likewise.
1645         (add_aexpr): Likewise.
1646         (trace_dump_actions): Likewise.
1647         (parse_trace_status): Likewise.
1648         (parse_tracepoint_definition): Likewise.
1649         (parse_tsv_definition): Likewise.
1650         (parse_static_tracepoint_marker_definition): Likewise.
1651         * tui/tui-file.c (tui_sfileopen): Likewise.
1652         (tui_file_adjust_strbuf): Likewise.
1653         * tui/tui-io.c (tui_expand_tabs): Likewise.
1654         * tui/tui-source.c (tui_set_source_content): Likewise.
1655         * typeprint.c (find_global_typedef): Likewise.
1656         * ui-file.c (do_ui_file_xstrdup): Likewise.
1657         (ui_file_obsavestring): Likewise.
1658         (mem_file_write): Likewise.
1659         * utils.c (make_hex_string): Likewise.
1660         (get_regcomp_error): Likewise.
1661         (puts_filtered_tabular): Likewise.
1662         (gdb_realpath_keepfile): Likewise.
1663         (ldirname): Likewise.
1664         (gdb_bfd_errmsg): Likewise.
1665         (substitute_path_component): Likewise.
1666         * valops.c (search_struct_method): Likewise.
1667         (find_oload_champ_namespace_loop): Likewise.
1668         * valprint.c (print_decimal_chars): Likewise.
1669         (read_string): Likewise.
1670         (generic_emit_char): Likewise.
1671         * varobj.c (varobj_delete): Likewise.
1672         (varobj_value_get_print_value): Likewise.
1673         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1674         * windows-tdep.c (display_one_tib): Likewise.
1675         * xcoffread.c (read_xcoff_symtab): Likewise.
1676         (process_xcoff_symbol): Likewise.
1677         (swap_sym): Likewise.
1678         (scan_xcoff_symtab): Likewise.
1679         (xcoff_initial_scan): Likewise.
1680         * xml-support.c (gdb_xml_end_element): Likewise.
1681         (xml_process_xincludes): Likewise.
1682         (xml_fetch_content_from_file): Likewise.
1683         * xml-syscall.c (xml_list_of_syscalls): Likewise.
1684         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1685
1686 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
1687
1688         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1689         instead of builtin_func_ptr.
1690         (ft32_pointer_to_address): New function.
1691         (ft32_address_class_type_flags): New function.
1692         (ft32_address_class_type_flags_to_name): New function.
1693         (ft32_address_class_name_to_type_flags): New function.
1694         (ft32_gdbarch_init): Set tdep->pc_type.  Call
1695         set_gdbarch_pointer_to_address,
1696         set_gdbarch_address_class_type_flags
1697         set_gdbarch_address_class_name_to_type_flags,
1698         and set_gdbarch_address_class_type_flags_to_name.
1699         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1700
1701 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
1702
1703         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1704         value is a reference, actually dereference it in order to get
1705         the underlying value.
1706
1707 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
1708
1709         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1710
1711 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
1712
1713         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1714         * linespec.c (linespec_lexer_lex_string): Same.
1715
1716 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1717
1718         * NEWS: Mention support for fast tracepoints on aarch64-linux.
1719
1720 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1721
1722         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1723         variable.  Call aarch64_decode_adr instead of
1724         aarch64_decode_adrp.
1725         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1726         (aarch64_decode_adr): New function declaration.
1727         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1728         (aarch64_decode_adr): New function, factored out from
1729         aarch64_decode_adrp to decode both adr and adrp instructions.
1730
1731 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1732
1733         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1734         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1735         (aarch64-insn.o): New rule.
1736         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1737         (aarch64*-*-linux*): Likewise.
1738         * arch/aarch64-insn.c: New file.
1739         * arch/aarch64-insn.h: New file.
1740         * aarch64-tdep.c: Include arch/aarch64-insn.h.
1741         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
1742         arch/aarch64-insn.h.
1743         (decode_add_sub_imm): Rename to ...
1744         (aarch64_decode_add_sub_imm): ... this.
1745         (decode_adrp): Rename to ...
1746         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
1747         Declare in arch/aarch64-insn.h.
1748         (decode_b): Rename to ...
1749         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
1750         Declare in arch/aarch64-insn.h.
1751         (decode_bcond): Rename to ...
1752         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
1753         Declare in arch/aarch64-insn.h.
1754         (decode_br): Rename to ...
1755         (aarch64_decode_br): ... this.
1756         (decode_cb): Rename to ...
1757         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
1758         Declare in arch/aarch64-insn.h.
1759         (decode_eret): Rename to ...
1760         (aarch64_decode_eret): ... this.
1761         (decode_movz): Rename to ...
1762         (aarch64_decode_movz): ... this.
1763         (decode_orr_shifted_register_x): Rename to ...
1764         (aarch64_decode_orr_shifted_register_x): ... this.
1765         (decode_ret): Rename to ...
1766         (aarch64_decode_ret): ... this.
1767         (decode_stp_offset): Rename to ...
1768         (aarch64_decode_stp_offset): ... this.
1769         (decode_stp_offset_wb): Rename to ...
1770         (aarch64_decode_stp_offset_wb): ... this.
1771         (decode_stur): Rename to ...
1772         (aarch64_decode_stur): ... this.
1773         (decode_tb): Rename to ...
1774         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
1775         Declare in arch/aarch64-insn.h.
1776         (aarch64_analyze_prologue): Adjust calls to renamed functions.
1777
1778 2015-09-20  Doug Evans  <xdje42@gmail.com>
1779
1780         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1781
1782 2015-09-20  Doug Evans  <xdje42@gmail.com>
1783
1784         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
1785         variable name that collides with a parameter.
1786
1787 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
1788
1789         * dwarf2loc.c (locexpr_get_frame_base): Renames
1790         block_op_get_frame_base.
1791         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1792         block_op_get_frame_base by reference to locexpr_get_frame_base.
1793         (loclist_get_frame_base): New function, near identical copy of
1794         locexpr_get_frame_base.
1795         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1796         block_op_get_frame_base by reference to loclist_get_frame_base.
1797
1798 2015-09-19  Doug Evans  <xdje42@gmail.com>
1799
1800         * ravenscar-thread.c (ravenscar_inferior_created): Replace
1801         current_inferior ()->gdbarch with its wrapper target_gdbarch.
1802
1803 2015-09-18  Doug Evans  <xdje42@gmail.com>
1804
1805         * linux-thread-db.c (record_thread): Return the created thread.
1806         (thread_from_lwp): Likewise.
1807         (thread_db_get_thread_local_address): Update.
1808
1809 2015-09-18  Doug Evans  <xdje42@gmail.com>
1810
1811         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1812         move only member demangled_name up.  All uses updated.
1813
1814 2015-09-18  Doug Evans  <xdje42@gmail.com>
1815
1816         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1817         kind of minimal symbol in the error message.
1818         * objfiles.c (objfile_flavour_name): New function.
1819         * objfiles.h (objfile_flavour_name): Declare.
1820
1821 2015-09-18  Yao Qi  <yao.qi@linaro.org>
1822
1823         * nat/aarch64-linux.c: Include elf/common.h,
1824         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1825         (aarch64_ps_get_thread_area): New function.
1826         * nat/aarch64-linux.h: Include gdb_proc_service.h.
1827         (aarch64_ps_get_thread_area): Declare.
1828         * aarch64-linux-nat.c (ps_get_thread_area): Call
1829         aarch64_ps_get_thread_area.
1830
1831 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1832
1833         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1834
1835 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1836
1837         * NEWS: Announce new scheduler-locking mode.
1838         * infrun.c (schedlock_replay): New.
1839         (scheduler_enums): Add schedlock_replay.
1840         (scheduler_mode): Change default to schedlock_replay.
1841         (user_visible_resume_ptid): Handle schedlock_replay.
1842         (clear_proceed_status_thread): Stop replaying if resumed thread is
1843         not replaying.
1844         (schedlock_applies): Handle schedlock_replay.
1845         (_initialize_infrun): Document new scheduler-locking mode.
1846         * record-btrace.c (record_btrace_resume): Remove code to stop other
1847         threads when not replaying the resumed thread.
1848
1849 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1850
1851         * record-btrace.c ((record_btrace_will_replay): New.
1852         (init_record_btrace_ops): Initialize to_record_will_replay.
1853         * record-full.c ((record_full_will_replay): New.
1854         (init_record_full_ops): Initialize to_record_will_replay.
1855         * target-delegates.c: Regenerated.
1856         * target.c (target_record_will_replay): New.
1857         * target.h (struct target_ops) <to_record_will_replay>: New.
1858         (target_record_will_replay): New.
1859
1860 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1861
1862         * record-btrace.c (record_btrace_resume): Call
1863         target_record_stop_replaying.
1864         (record_btrace_stop_replaying_all): New.
1865         (init_record_btrace_ops): Initialize to_record_stop_replaying.
1866         * record-full.c (record_full_stop_replaying): New.
1867         (init_record_full_ops ): Initialize to_record_stop_replaying.
1868         * target-delegates.c: Regenerated.
1869         * target.c (target_record_stop_replaying): New.
1870         * target.h (struct target_ops) <to_record_stop_replaying>: New.
1871         (target_record_stop_replaying): New.
1872
1873 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1874
1875         * record-btrace.c (record_btrace_xfer_partial)
1876         (record_btrace_store_registers, record_btrace_prepare_to_store):
1877         Call record_btrace_is_replaying with inferior_ptid instead of
1878         minus_one_ptid.
1879         (record_btrace_store_registers): Change error message.
1880
1881 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1882
1883         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1884         Update users to pass minus_one_ptid.
1885         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1886         * record.c (cmd_record_delete): Pass inferior_ptid to
1887         target_record_is_replaying.
1888         * target-delegates.c: Regenerated.
1889         * target.c (target_record_is_replaying): Add ptid argument.
1890         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1891         argument.
1892         (target_record_is_replaying): Add ptid argument.
1893
1894 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1895
1896         * record-btrace.c (record_btrace_open): Remove non_stop check.
1897         * NEWS: Announce that record btrace supports non-stop mode.
1898
1899 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1900
1901         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1902         in the TARKET_WAITKIND_NO_HISTORY case.
1903
1904 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1905
1906         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1907         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1908
1909 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1910
1911         * record-btrace.c (get_thread_current_frame): New.
1912         (record_btrace_start_replaying): Call get_thread_current_frame.
1913
1914 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1915
1916         * record-btrace.c (record_btrace_resume_thread): A move request
1917         overwrites a previous move request.
1918         (record_btrace_find_resume_thread): Removed.
1919         (record_btrace_resume): Resume all requested threads.
1920
1921 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1922
1923         * record-btrace.c: Include vec.h.
1924         (record_btrace_find_thread_to_move): Removed.
1925         (btrace_step_no_resumed, btrace_step_again)
1926         (record_btrace_stop_replaying_at_end): New.
1927         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1928         (record_btrace_single_step_forward): Remove calls to
1929         record_btrace_stop_replaying.
1930         (record_btrace_step_thread): Do only one step for BTHR_CONT and
1931         BTHR_RCONT.  Keep threads at the end of their history moving.
1932         (record_btrace_wait): Call record_btrace_step_thread for all threads
1933         until one reports an event.  Call record_btrace_stop_replaying_at_end
1934         for the eventing thread.
1935
1936 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1937
1938         * record-btrace.c (record_btrace_single_step_forward): Return
1939         NO_HISTORY if a step brings us to the end of the execution history.
1940
1941 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1942
1943         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1944         to ...
1945         (record_btrace_single_step_forward): ... here and
1946         (record_btrace_single_step_backward): ... here.
1947
1948 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1949
1950         * record-btrace.c (btrace_step_spurious)
1951         (record_btrace_single_step_forward)
1952         (record_btrace_single_step_backward): New.
1953         (record_btrace_step_thread): Call record_btrace_single_step_forward
1954         and record_btrace_single_step_backward.
1955
1956 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1957
1958         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1959         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1960
1961 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1962
1963         * record-btrace.c (btrace_thread_flag_to_str)
1964         (record_btrace_cancel_resume): New.
1965         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1966         (record_btrace_resume): Print execution direction.
1967         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1968         (record_btrace_wait): Call record_btrace_cancel_resume.
1969
1970 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1971
1972         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1973         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1974         (record_btrace_find_thread_to_move): Also accept threads that have
1975         BTHR_STOP set.
1976         (btrace_step_stopped_on_request, record_btrace_stop): New.
1977         (record_btrace_step_thread): Support BTHR_STOP.
1978         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1979         (init_record_btrace_ops): Initialize to_stop.
1980
1981 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1982
1983         * record-btrace.c (record_btrace_wait): Replace non_stop check with
1984         target_is_non_stop_p ().
1985
1986 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
1987
1988         * ada-typeprint.c (print_array_type): Do not describe arrays as
1989         packed when they embed dynamic elements.
1990
1991 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1992
1993         * symtab.h (address_class): Document that TLS variables
1994         are handled by LOC_UNRESOLVED.
1995         * findvar.c (default_read_var_value): Don't relocate TLS variables.
1996         * printcmd.c (address_info): Don't relocate TLS variables.
1997
1998 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
1999
2000         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2001         (decode_adrp): Likewise.
2002         (decode_b): Likewise.
2003         (decode_bcond): Likewise.
2004         (decode_br): Likewise.
2005         (decode_cb): Likewise.
2006         (decode_eret): Likewise.
2007         (decode_movz): Likewise.
2008         (decode_orr_shifted_register_x): Likewise.
2009         (decode_ret): Likewise.
2010         (decode_stp_offset): Likewise.
2011         (decode_stp_offset_wb): Likewise.
2012         (decode_stur): Likewise.
2013         (decode_tb): Likewise.
2014         (aarch64_analyze_prologue): Likewise.
2015         (pass_in_x): Likewise.
2016         (pass_in_v): Likewise.
2017         (pass_on_stack): Likewise.
2018         (aarch64_push_dummy_call): Likewise.
2019         (aarch64_extract_return_value): Likewise.
2020         (aarch64_store_return_value): Likewise.
2021         (aarch64_return_value): Likewise.
2022         (aarch64_record_asimd_load_store): Likewise.
2023         (aarch64_record_load_store): Likewise.
2024         (aarch64_record_data_proc_simd_fp): Likewise.
2025
2026 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2027
2028         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2029         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2030         (ppc64_skip_trampoline_code_1): ... here.
2031         (ppc64_skip_trampoline_code): New wrapper function.
2032         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2033
2034 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2035
2036         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2037         function.
2038         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2039         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2040         if target_can_do_single_step returns 1.
2041         * remote.c (struct vCont_action_support) <s, S>: New fields.
2042         (PACKET_vContSupported): New enum.
2043         (remote_protocol_features): New element for vContSupported.
2044         (remote_query_supported): Append "vContSupported+".
2045         (remote_vcont_probe): Remove support_s and support_S, use
2046         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2047         vCont packet if c and C actions are not supported.
2048         (remote_can_do_single_step): New function.
2049         (init_remote_ops): Install it to to_can_do_single_step.
2050         (_initialize_remote): Call add_packet_config_cmd.
2051         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2052         (target_can_do_single_step): New macro.
2053         * target-delegates.c: Re-generated.
2054
2055 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2056
2057         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2058         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2059         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2060         New function.
2061         (aarch64_siginfo_from_compat_siginfo): New function.
2062         * nat/aarch64-linux.h: Include signal.h.
2063         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2064         (compat_timer_t, compat_clock_t): Likewise.
2065         (struct compat_timeval): New.
2066         (union compat_sigval): New.
2067         (struct compat_siginfo): New.
2068         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2069         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2070         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2071         (cpt_si_band, cpt_si_fd): Likewise.
2072
2073 2015-09-14  Pedro Alves  <palves@redhat.com>
2074
2075         * infrun.c (current_stop_id): New global.
2076         (get_stop_id, new_stop_id): New functions.
2077         (fetch_inferior_event): Handle normal_stop proceeding the target.
2078         (struct stop_context): New.
2079         (save_stop_context, release_stop_context_cleanup)
2080         (stop_context_changed): New functions.
2081         (normal_stop): Return true if the hook-stop changes the stop
2082         context.
2083         * infrun.h (get_stop_id): Declare.
2084         (normal_stop): Now returns int.  Add documentation.
2085
2086 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2087
2088         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2089         comment.  Handle packed arrays.
2090
2091 2015-09-14  Pedro Alves  <palves@redhat.com>
2092
2093         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2094         mention of maint set/show target-non-stop.
2095
2096 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2097
2098         * NEWS: Announce new remote packets for the exec-events
2099         feature and the exec-events feature and associated commands.
2100
2101 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2102
2103         * remote.c (remote_exec_event_p): New function.
2104         (remote_insert_exec_catchpoint): New function.
2105         (remote_remove_exec_catchpoint): New function.
2106         (init_extended_remote_ops): Initialize extended_remote_ops
2107         members to_insert_exec_catchpoint and
2108         to_remove_exec_catchpoint.
2109
2110 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2111             Luis Machado  <lgustavo@codesourcery.com>
2112
2113         * infrun.c (follow_exec): Use process-style ptid for
2114         exec message.  Call add_inferior_with_spaces and
2115         target_follow_exec.
2116         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2117         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2118         * remote.c (remote_pspace_data): New static variable.
2119         (remote_pspace_data_cleanup): New function.
2120         (get_remote_exec_file): New function.
2121         (set_remote_exec_file_1): New function.
2122         (set_remote_exec_file): New function.
2123         (show_remote_exec_file): New function.
2124         (remote_exec_file): Delete static variable.
2125         (anonymous enum) <PACKET_exec_event_feature>: New
2126         enumeration constant.
2127         (remote_protocol_features): Add entry for exec-events feature.
2128         (remote_query_supported): Add client side of qSupported query
2129         for exec-events feature.
2130         (remote_follow_exec): New function.
2131         (remote_parse_stop_reply): Handle 'exec' stop reason.
2132         (extended_remote_run, extended_remote_create_inferior): Call
2133         get_remote_exec_file and set_remote_exec_file_1.
2134         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2135         member.
2136         (_initialize_remote): Call
2137         register_program_space_data_with_cleanup.  Call
2138         add_packet_config_cmd for remote exec-events feature.
2139         Modify call to add_setshow_string_noescape_cmd for exec-file
2140         to use new functions set_remote_exec_file and
2141         show_remote_exec_file.
2142         * target-debug.h, target-delegates.c: Regenerated.
2143         * target.c (target_follow_exec): New function.
2144         * target.h (struct target_ops) <to_follow_exec>: New member.
2145         (target_follow_exec): Declare new function.
2146
2147 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2148
2149         * aarch64-tdep.c (decode_cb): Move up comment describing the
2150         encoding.
2151         (decode_tb): Fix a typo in comment above the function.  Move up
2152         comment describing the encoding.
2153
2154 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2155
2156         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2157
2158 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2159
2160         PR gdb/18947
2161         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2162         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2163
2164 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2165
2166         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2167         operations.
2168
2169 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2170
2171         * ada-lang.c (ada_search_struct_field): Constify parameters
2172         and/or variables..
2173         (xget_renaming_scope): Likewise.
2174         (ada_is_redundant_range_encoding): Likewise.
2175         (scan_discrim_bound): Likewise.
2176         (to_fixed_range_type): Likewise.
2177
2178 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2179
2180         * breakpoint.c (download_tracepoint_locations): New local
2181         can_download_tracepoint.  Check the result of
2182         target_can_download_tracepoint and save it in
2183         can_download_tracepoint if there are tracepoints to download.
2184         * linux-nat.h (enum tribool): Move it to ...
2185         * common/common-types.h: ... here.
2186
2187 2015-09-09  Pedro Alves  <palves@redhat.com>
2188
2189         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2190         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2191
2192 2015-09-09  Pedro Alves  <palves@redhat.com>
2193
2194         * continuations.c (add_continuation, restore_thread_cleanup)
2195         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2196         (do_all_continuations_thread, do_all_continuations)
2197         (discard_all_continuations_thread_callback)
2198         (discard_all_continuations_thread, discard_all_continuations)
2199         (add_intermediate_continuation)
2200         (do_all_intermediate_continuations_thread_callback)
2201         (do_all_intermediate_continuations_thread)
2202         (do_all_intermediate_continuations)
2203         (discard_all_intermediate_continuations_thread_callback)
2204         (discard_all_intermediate_continuations_thread)
2205         (discard_all_intermediate_continuations): Delete.
2206         * continuations.h (add_continuation, do_all_continuations)
2207         (do_all_continuations_thread, discard_all_continuations)
2208         (discard_all_continuations_thread, add_intermediate_continuation)
2209         (do_all_intermediate_continuations)
2210         (do_all_intermediate_continuations_thread)
2211         (discard_all_intermediate_continuations)
2212         (discard_all_intermediate_continuations_thread): Delete
2213         declarations.
2214         * event-top.c (stdin_event_handler): Delete references to
2215         continuations.
2216         * gdbthread.h (struct thread_info): Delete continuations and
2217         intermediate_continuations fields.
2218         * inf-loop.c (inferior_event_handler): Remove references to
2219         continuations.
2220         * infrun.c (infrun_thread_stop_requested_callback): Remove
2221         references to continuations.
2222         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2223         * thread.c: Don't include "continuations.h".
2224         (clear_thread_inferior_resources): Remove references to
2225         continuations.
2226
2227 2015-09-09  Pedro Alves  <palves@redhat.com>
2228
2229         * infcall.c (struct dummy_frame_context_saver): Delete.
2230         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2231         (dummy_frame_context_saver_drop)
2232         (dummy_frame_context_saver_cleanup)
2233         (dummy_frame_context_saver_get_regs)
2234         (dummy_frame_context_saver_setup): Delete.
2235         * infcall.h (dummy_frame_context_saver_drop)
2236         (dummy_frame_context_saver_cleanup)
2237         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2238         Delete.
2239         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2240         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2241         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2242
2243 2015-09-09  Pedro Alves  <palves@redhat.com>
2244
2245         * breakpoint.c: Include "thread-fsm.h".
2246         (struct until_break_command_continuation_args): Delete.
2247         (struct until_break_fsm): New.
2248         (until_break_fsm_ops): New global.
2249         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2250         (until_break_command_continuation): Delete.
2251         (until_break_fsm_clean_up): New function.
2252         (until_break_fsm_async_reply_reason): New function.
2253         (until_break_command): Adjust to create an until_break_fsm instead
2254         of a continuation.
2255         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2256         here.
2257         * infcmd.c (struct until_next_fsm): New.
2258         (until_next_fsm_ops): New global.
2259         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2260         (until_next_continuation): Delete.
2261         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2262         functions.
2263         (until_next_command): Adjust to create a new until_next_fsm
2264         instead of a continuation.
2265
2266 2015-09-09  Pedro Alves  <palves@redhat.com>
2267
2268         * infcall.c: Include thread_fsm.h.
2269         (struct call_return_meta_info): New.
2270         (get_call_return_value): New function, factored out from
2271         call_function_by_hand_dummy.
2272         (struct call_thread_fsm): New.
2273         (call_thread_fsm_ops): New global.
2274         (new_call_thread_fsm, call_thread_fsm_should_stop)
2275         (call_thread_fsm_should_notify_stop): New functions.
2276         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2277         the thread.
2278         (call_function_by_hand_dummy): Create a new call_thread_fsm
2279         instance, associate it with the thread, and wait for the FSM to
2280         finish.  If finished successfully, fetch the function's result
2281         value out of the FSM.
2282         * infrun.c (fetch_inferior_event): If the FSM says the stop
2283         shouldn't be notified, don't call normal_stop.
2284         (maybe_remove_breakpoints): New function, factored out from ...
2285         (normal_stop): ... here.  Simplify.
2286         * infrun.h (maybe_remove_breakpoints): Declare.
2287         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2288         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2289         (thread_fsm_should_notify_stop): Declare.
2290
2291 2015-09-09  Pedro Alves  <palves@redhat.com>
2292
2293         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2294         * breakpoint.c (handle_jit_event): Print debug output.
2295         (bpstat_what): Split event callback handling to ...
2296         (bpstat_run_callbacks): ... this new function.
2297         (momentary_bkpt_print_it): No longer handle bp_finish here.
2298         * breakpoint.h (bpstat_run_callbacks): Declare.
2299         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2300         <thread_fsm>: New field.
2301         (thread_cancel_execution_command): Declare.
2302         * infcmd.c: Include thread-fsm.h.
2303         (struct step_command_fsm): New.
2304         (step_command_fsm_ops): New global.
2305         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2306         (step_1): Adjust to use step_command_fsm_prepare and
2307         prepare_one_step.
2308         (struct step_1_continuation_args): Delete.
2309         (step_1_continuation): Delete.
2310         (step_command_fsm_should_stop): New function.
2311         (step_once): Delete.
2312         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2313         (prepare_one_step): New function, based on step_once.
2314         (until_next_command): Remove step_multi reference.
2315         (struct return_value_info): New.
2316         (print_return_value): Rename to ...
2317         (print_return_value_1): ... this.  New struct return_value_info
2318         parameter.  Adjust.
2319         (print_return_value): Reimplement as wrapper around
2320         print_return_value_1.
2321         (struct finish_command_fsm): New.
2322         (finish_command_continuation): Delete.
2323         (finish_command_fsm_ops): New global.
2324         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2325         functions.
2326         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2327         New.
2328         (finish_command_continuation_free_arg): Delete.
2329         (finish_command_fsm_async_reply_reason): New.
2330         (finish_backward, finish_forward): Change symbol parameter to a
2331         finish_command_fsm.  Adjust.
2332         (finish_command): Create a finish_command_fsm.  Adjust.
2333         * infrun.c: Include "thread-fsm.h".
2334         (clear_proceed_status_thread): Delete the thread's FSM.
2335         (infrun_thread_stop_requested_callback): Cancel the thread's
2336         execution command.
2337         (clean_up_just_stopped_threads_fsms): New function.
2338         (fetch_inferior_event): Handle the event_thread's should_stop
2339         method saying the command isn't done yet.
2340         (process_event_stop_test): Run breakpoint callbacks here.
2341         (print_stop_event): Rename to ...
2342         (print_stop_location): ... this.
2343         (restore_current_uiout_cleanup): New function.
2344         (print_stop_event): Reimplement.
2345         (normal_stop): No longer notify the end_stepping_range observers
2346         here handle "step N" nor "finish" here.  No longer call
2347         print_stop_event here.
2348         * infrun.h (struct return_value_info): Forward declare.
2349         (print_return_value): Declare.
2350         (print_stop_event): Change prototype.
2351         * thread-fsm.c: New file.
2352         * thread-fsm.h: New file.
2353         * thread.c: Include "thread-fsm.h".
2354         (thread_cancel_execution_command): New function.
2355         (clear_thread_inferior_resources): Call it.
2356         * cli/cli-interp.c (cli_on_normal_stop): New function.
2357         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2358         observer.
2359         * mi/mi-interp.c: Include "thread-fsm.h".
2360         (restore_current_uiout_cleanup): Delete.
2361         (mi_on_normal_stop): If the thread has an FSM associated, and it
2362         finished, ask it for the async-reply-reason to print.  Always call
2363         print_stop_event here, regardless of the top-level interpreter.
2364         Check bpstat_what to tell whether an asynchronous breakpoint hit
2365         triggered.
2366         * tui/tui-interp.c (tui_on_normal_stop): New function.
2367         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2368
2369 2015-09-09  Pedro Alves  <palves@redhat.com>
2370
2371         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2372         check whether the target can async.
2373         * inf-loop.c (inferior_event_handler): Only call target_async if
2374         the target can async.
2375         * infcall.c: Include top.h and interps.h.
2376         (run_inferior_call): For the interpreter to sync mode while
2377         running the infcall.  Call wait_sync_command_done instead of
2378         wait_for_inferior plus normal_stop.
2379         * infcmd.c (prepare_execution_command): Don't check whether the
2380         target can async when running in the foreground.
2381         (step_1): Delete synchronous case handling.
2382         (step_once): Always install a continuation, even in sync mode.
2383         (until_next_command, finish_forward): Don't check whether the
2384         target can async.
2385         (attach_command_post_wait, notice_new_inferior): Always install a
2386         continuation, even in sync mode.
2387         * infrun.c (mark_infrun_async_event_handler): New function.
2388         (proceed): In sync mode, mark infrun's event source instead of
2389         waiting for events here.
2390         (fetch_inferior_event): If the target can't async, do a blocking
2391         wait.
2392         (prepare_to_wait): In sync mode, mark infrun's event source.
2393         (infrun_async_inferior_event_handler): No longer bail out if the
2394         target can't async.
2395         * infrun.h (mark_infrun_async_event_handler): New declaration.
2396         * linux-nat.c (linux_nat_wait_1): Remove calls to
2397         set_sigint_trap/clear_sigint_trap.
2398         (linux_nat_terminal_inferior): No longer check whether the target
2399         can async.
2400         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2401         comment.
2402         (mi_execute_command_input_handler): No longer check whether the
2403         target is async.  Update and simplify comment.
2404         * target.c (default_target_wait): New function.
2405         * target.h (struct target_ops) <to_wait>: Now defaults to
2406         default_target_wait.
2407         (default_target_wait): Declare.
2408         * top.c (wait_sync_command_done): New function, factored out from
2409         ...
2410         (maybe_wait_sync_command_done): ... this.
2411         * top.h (wait_sync_command_done): Declare.
2412         * target-delegates.c: Regenerate.
2413
2414 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2415
2416         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2417         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2418         Remove include of sys/utsname.h.
2419         (linux_determine_kernel_ptr_bits): Remove.
2420         (linux_determine_kernel_start): New.
2421         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2422         Update check.
2423         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2424         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2425         initialization.
2426         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2427         assignment.
2428
2429 2015-09-07  Pedro Alves  <palves@redhat.com>
2430
2431         * guile/guile-internal.h (as_a_scm_t_subr): New.
2432         * guile/guile.c (misc_guile_functions): Use it.
2433         * guile/scm-arch.c (arch_functions): Use it.
2434         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2435         Use it.
2436         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2437         * guile/scm-cmd.c (command_functions): Use it.
2438         * guile/scm-disasm.c (disasm_functions): Use it.
2439         * guile/scm-exception.c (exception_functions)
2440         (private_exception_functions): Use it.
2441         * guile/scm-frame.c (frame_functions)
2442         * guile/scm-gsmob.c (gsmob_functions): Use it.
2443         * guile/scm-iterator.c (iterator_functions): Use it.
2444         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2445         * guile/scm-math.c (math_functions): Use it.
2446         * guile/scm-objfile.c (objfile_functions): Use it.
2447         * guile/scm-param.c (parameter_functions): Use it.
2448         * guile/scm-ports.c (port_functions, private_port_functions): Use
2449         it.
2450         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2451         * guile/scm-progspace.c (pspace_functions): Use it.
2452         * guile/scm-string.c (string_functions): Use it.
2453         * guile/scm-symbol.c (symbol_functions): Use it.
2454         * guile/scm-symtab.c (symtab_functions): Use it.
2455         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2456         it.
2457         * guile/scm-value.c (value_functions): Use it.
2458
2459 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2460
2461         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2462         (tui_next_win): Likewise.
2463         (tui_prev_win): Likewise.
2464         (tui_partial_win_by_name): Likewise.
2465         (tui_init_generic_part): Likewise.
2466         (init_content_element): Likewise.
2467         (tui_del_window): Likewise.
2468         (tui_free_window): Likewise.
2469         (tui_del_data_windows): Likewise.
2470         (tui_free_data_content): Likewise.
2471         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2472         * tui/tui-regs.c (tui_show_register_group): Likewise.
2473         * tui/tui-win.c (tui_resize_all): Likewise.
2474         (tui_set_focus): Likewise.
2475         (tui_set_win_height): Likewise.
2476         (make_invisible_and_set_new_height): Likewise.
2477         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2478         * tui/tui-wingeneral.c (make_visible): Likewise.
2479
2480 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2481
2482         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2483
2484 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2485
2486         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2487         pointer.
2488         * dbxread.c (dbx_end_psymtab): Likewise.
2489         * gnu-nat.c (gnu_write_inferior): Likewise.
2490         * mdebugread.c (cross_ref): Likewise.
2491         * p-valprint.c (pascal_val_print): Likewise.
2492         * xcoffread.c (xcoff_end_psymtab): Likewise.
2493
2494 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2495
2496         * NEWS: Mention the aarch64 multi-arch debugging support.
2497
2498 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2499
2500         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2501         type instead of a TYPE_CODE_INT one for the string_char_type
2502         and the ada_primitive_type_char types.
2503
2504 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2505
2506         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2507         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2508         aarch64_linux_region_ok_for_watchpoint.
2509         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2510         New function.
2511         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2512         Declare it.
2513
2514 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2515
2516         * gdb_obstack.h (obstack_strdup): Declare.
2517         * gdb_obstack.c (obstack_strdup): Define.
2518         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2519         * gdbarch.c: Regenerate.
2520         * gdbarch.h: Regenerate.
2521         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2522
2523 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2524
2525         * gdbtypes.c (copy_type_recursive): Update documentation.
2526
2527 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2528
2529         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2530         as zero.
2531
2532 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2533
2534         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2535
2536 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2537
2538         * solib-svr4.c (solib_event_probe_action): Call
2539         get_probe_argument_count using TRY...CATCH.
2540         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2541
2542 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2543
2544         * probe.h (struct probe_ops) <get_probe_argument_count,
2545         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2546         the comment that the function can throw an exception.
2547         (get_probe_argument_count): Likewise.
2548         (evaluate_probe_argument): Likewise.
2549         * stap-probe.c (stap_get_opcode): Call error instead of
2550         internal_error.
2551         (stap_get_expected_argument_type): Likewise.  Add argument
2552         'probe'.  Improve error message by mentioning the probe's name.
2553         (stap_parse_probe_arguments): Adjust call to
2554         stap_get_expected_argument_type.
2555         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2556         not zero.  Call internal_error if GDB requests an argument but the
2557         probe has no arguments.
2558
2559 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2560
2561         * ada-lang.c (ada_resolve_function): Do not ask the user what
2562         match to use when in completion mode.
2563
2564 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2565
2566         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2567         cast of NULL.
2568
2569 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2570
2571         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2572         call_abi using XSHAL_ABI macro.
2573
2574 2015-08-29  Doug Evans  <xdje42@gmail.com>
2575
2576         * symtab.h (struct symbol): Tweak comment.
2577
2578 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2579
2580         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2581         gdbarch obstack instead of on the heap.  Update commentary
2582         accordingly.
2583
2584 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2585
2586         GDB 7.10 released.
2587
2588 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2589
2590         * NEWS: Update entry about non-8-bits addressable memory.
2591
2592 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2593
2594         Revert:
2595         2014-11-06  Doug Evans  <xdje42@gmail.com>
2596         * solib.c (solib_global_lookup): Fetch arch from objfile,
2597         not target_gdbarch.
2598
2599 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2600
2601         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2602         attempt to relocate a TLS variable offset.
2603
2604 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2605
2606         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2607         registered yet.  Set inferior_ptid while calling target_read_memory.
2608
2609 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2610
2611         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2612         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2613         * linux-nat.c (check_stopped_by_breakpoint): Use
2614         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2615
2616 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2617
2618         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2619         thread was not yet discovered, use thread_from_lwp instead of
2620         calling thread_db_find_new_threads_1.
2621
2622 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2623
2624         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2625         statements.
2626
2627 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2628
2629         * NEWS: Document support for non-8-bits addressable memory.
2630
2631 2015-08-27  Pedro Alves  <palves@redhat.com>
2632
2633         * configure.ac: Remove AC_TYPE_SIGNAL call.
2634         * configure, config.in: Regenerate.
2635
2636 2015-08-27  Pedro Alves  <palves@redhat.com>
2637
2638         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2639         * extension-priv.h: Include signal.h.
2640         (struct signal_handler) <handler>: Change type to sighandler_t.
2641         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2642         * inflow.c (sigint_ours, sigquit_ours): Change type to
2643         sighandler_t.
2644         (child_terminal_inferior): Remove casts.
2645         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
2646         (osig): Change type to sighandler_t.
2647         * nto-procfs.c (ofunc): Change type to sighandler_t.
2648         (procfs_wait): Remove casts.
2649         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2650         * remote-sim.c (gdbsim_wait): Use sighandler_t.
2651         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2652
2653 2015-08-27  Pedro Alves  <palves@redhat.com>
2654
2655         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2656         * gnulib/aclocal.m4: Renegerate.
2657         * gnulib/config.in: Renegerate.
2658         * gnulib/configure: Renegerate.
2659         * gnulib/import/Makefile.am: Update.
2660         * gnulib/import/Makefile.in: Regenerate.
2661         * gnulib/import/m4/gnulib-cache.m4: Update.
2662         * gnulib/import/m4/gnulib-comp.m4: Update.
2663         * gnulib/import/m4/signal_h.m4: New file.
2664         * gnulib/import/signal.in.h: New file.
2665
2666 2015-08-27  Pedro Alves  <palves@redhat.com>
2667
2668         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2669         (MIN_MEMORY_PACKET_SIZE): New.
2670         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2671         (get_memory_packet_size): Adjust.  No longer limit the max packet
2672         size.
2673         (set_memory_packet_size): Adjust, and remove dead code.
2674         (remote_check_symbols): Use xmalloc and a cleanup instead of
2675         alloca.
2676         (remote_packet_size): No longer cap the packet size.
2677         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2678
2679 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
2680
2681         * compile/compile.c (compile_to_object): Mention language in
2682         error message.
2683
2684 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
2685
2686         * target.c (target_pre_inferior): Unset attach_flag.
2687
2688 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2689
2690         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2691         * gdbarch.c: Re-generate.
2692
2693 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2694
2695         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2696         function with the XNEW-family equivalent.
2697         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2698         * ada-exp.y (write_ambiguous_var): Likewise.
2699         * ada-lang.c (resolve_subexp): Likewise.
2700         (user_select_syms): Likewise.
2701         (assign_aggregate): Likewise.
2702         (ada_evaluate_subexp): Likewise.
2703         (cache_symbol): Likewise.
2704         * addrmap.c (allocate_key): Likewise.
2705         (addrmap_create_mutable): Likewise.
2706         * aix-thread.c (sync_threadlists): Likewise.
2707         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2708         (alpha_gdbarch_init): Likewise.
2709         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2710         * arm-linux-nat.c (arm_linux_add_process): Likewise.
2711         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2712         * arm-tdep.c (push_stack_item): Likewise.
2713         (arm_displaced_step_copy_insn): Likewise.
2714         (arm_gdbarch_init): Likewise.
2715         (_initialize_arm_tdep): Likewise.
2716         * avr-tdep.c (push_stack_item): Likewise.
2717         * ax-general.c (new_agent_expr): Likewise.
2718         * block.c (block_initialize_namespace): Likewise.
2719         * breakpoint.c (alloc_counted_command_line): Likewise.
2720         (update_dprintf_command_list): Likewise.
2721         (parse_breakpoint_sals): Likewise.
2722         (decode_static_tracepoint_spec): Likewise.
2723         (until_break_command): Likewise.
2724         (clear_command): Likewise.
2725         (update_global_location_list): Likewise.
2726         (get_breakpoint_objfile_data) Likewise.
2727         * btrace.c (ftrace_new_function): Likewise.
2728         (btrace_set_insn_history): Likewise.
2729         (btrace_set_call_history): Likewise.
2730         * buildsym.c (add_symbol_to_list): Likewise.
2731         (record_pending_block): Likewise.
2732         (start_subfile): Likewise.
2733         (start_buildsym_compunit): Likewise.
2734         (push_subfile): Likewise.
2735         (end_symtab_get_static_block): Likewise.
2736         (buildsym_init): Likewise.
2737         * cli/cli-cmds.c (source_command): Likewise.
2738         * cli/cli-decode.c (add_cmd): Likewise.
2739         * cli/cli-script.c (build_command_line): Likewise.
2740         (setup_user_args): Likewise.
2741         (realloc_body_list): Likewise.
2742         (process_next_line): Likewise.
2743         (copy_command_lines): Likewise.
2744         * cli/cli-setshow.c (do_set_command): Likewise.
2745         * coff-pe-read.c (read_pe_exported_syms): Likewise.
2746         * coffread.c (coff_locate_sections): Likewise.
2747         (coff_symtab_read): Likewise.
2748         (coff_read_struct_type): Likewise.
2749         * common/cleanups.c (make_my_cleanup2): Likewise.
2750         * common/common-exceptions.c (throw_it): Likewise.
2751         * common/filestuff.c (make_cleanup_close): Likewise.
2752         * common/format.c (parse_format_string): Likewise.
2753         * common/queue.h (DEFINE_QUEUE_P): Likewise.
2754         * compile/compile-object-load.c (munmap_list_add): Likewise.
2755         (compile_object_load): Likewise.
2756         * compile/compile-object-run.c (compile_object_run): Likewise.
2757         * compile/compile.c (append_args): Likewise.
2758         * corefile.c (specify_exec_file_hook): Likewise.
2759         * cp-support.c (make_symbol_overload_list): Likewise.
2760         * cris-tdep.c (push_stack_item): Likewise.
2761         (cris_gdbarch_init): Likewise.
2762         * ctf.c (ctf_trace_file_writer_new): Likewise.
2763         * dbxread.c (init_header_files): Likewise.
2764         (add_new_header_file): Likewise.
2765         (init_bincl_list): Likewise.
2766         (dbx_end_psymtab): Likewise.
2767         (start_psymtab): Likewise.
2768         (dbx_end_psymtab): Likewise.
2769         * dcache.c (dcache_init): Likewise.
2770         * dictionary.c (dict_create_hashed): Likewise.
2771         (dict_create_hashed_expandable): Likewise.
2772         (dict_create_linear): Likewise.
2773         (dict_create_linear_expandable): Likewise.
2774         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2775         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2776         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2777         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2778         (decode_frame_entry_1): Likewise.
2779         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2780         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2781         * dwarf2read.c (dwarf2_has_info): Likewise.
2782         (create_signatured_type_table_from_index): Likewise.
2783         (dwarf2_read_index): Likewise.
2784         (dw2_get_file_names_reader): Likewise.
2785         (create_all_type_units): Likewise.
2786         (read_cutu_die_from_dwo): Likewise.
2787         (init_tu_and_read_dwo_dies): Likewise.
2788         (init_cutu_and_read_dies): Likewise.
2789         (create_all_comp_units): Likewise.
2790         (queue_comp_unit): Likewise.
2791         (inherit_abstract_dies): Likewise.
2792         (read_call_site_scope): Likewise.
2793         (dwarf2_add_field): Likewise.
2794         (dwarf2_add_typedef): Likewise.
2795         (dwarf2_add_member_fn): Likewise.
2796         (attr_to_dynamic_prop): Likewise.
2797         (abbrev_table_alloc_abbrev): Likewise.
2798         (abbrev_table_read_table): Likewise.
2799         (add_include_dir): Likewise.
2800         (add_file_name): Likewise.
2801         (dwarf_decode_line_header): Likewise.
2802         (dwarf2_const_value_attr): Likewise.
2803         (dwarf_alloc_block): Likewise.
2804         (parse_macro_definition): Likewise.
2805         (set_die_type): Likewise.
2806         (write_psymtabs_to_index): Likewise.
2807         (create_cus_from_index): Likewise.
2808         (dwarf2_create_include_psymtab): Likewise.
2809         (process_psymtab_comp_unit_reader): Likewise.
2810         (build_type_psymtab_dependencies): Likewise.
2811         (read_comp_units_from_section): Likewise.
2812         (compute_compunit_symtab_includes): Likewise.
2813         (create_dwo_unit_in_dwp_v1): Likewise.
2814         (create_dwo_unit_in_dwp_v2): Likewise.
2815         (read_func_scope): Likewise.
2816         (process_structure_scope): Likewise.
2817         (mark_common_block_symbol_computed): Likewise.
2818         (load_partial_dies): Likewise.
2819         (dwarf2_symbol_mark_computed): Likewise.
2820         * elfread.c (elf_symfile_segments): Likewise.
2821         (elf_read_minimal_symbols): Likewise.
2822         * environ.c (make_environ): Likewise.
2823         * eval.c (evaluate_subexp_standard): Likewise.
2824         * event-loop.c (create_file_handler): Likewise.
2825         (create_async_signal_handler): Likewise.
2826         (create_async_event_handler): Likewise.
2827         (create_timer): Likewise.
2828         * exec.c (build_section_table): Likewise.
2829         * fbsd-nat.c (fbsd_remember_child): Likewise.
2830         * fork-child.c (fork_inferior): Likewise.
2831         * frv-tdep.c (new_variant): Likewise.
2832         * gdbarch.sh (gdbarch_alloc): Likewise.
2833         (append_name): Likewise.
2834         * gdbtypes.c (rank_function): Likewise.
2835         (copy_type_recursive): Likewise.
2836         (add_dyn_prop): Likewise.
2837         * gnu-nat.c (make_proc): Likewise.
2838         (make_inf): Likewise.
2839         (gnu_write_inferior): Likewise.
2840         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2841         (build_std_type_info_type): Likewise.
2842         * guile/scm-param.c (compute_enum_list): Likewise.
2843         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2844         * guile/scm-value.c (gdbscm_value_call): Likewise.
2845         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2846         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2847         (read_unwind_info): Likewise.
2848         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2849         * infcall.c (dummy_frame_context_saver_setup): Likewise.
2850         (call_function_by_hand_dummy): Likewise.
2851         * infcmd.c (step_once): Likewise.
2852         (finish_forward): Likewise.
2853         (attach_command): Likewise.
2854         (notice_new_inferior): Likewise.
2855         * inferior.c (add_inferior_silent): Likewise.
2856         * infrun.c (add_displaced_stepping_state): Likewise.
2857         (save_infcall_control_state): Likewise.
2858         (save_inferior_ptid): Likewise.
2859         (_initialize_infrun): Likewise.
2860         * jit.c (bfd_open_from_target_memory): Likewise.
2861         (jit_gdbarch_data_init): Likewise.
2862         * language.c (add_language): Likewise.
2863         * linespec.c (decode_line_2): Likewise.
2864         * linux-nat.c (add_to_pid_list): Likewise.
2865         (add_initial_lwp): Likewise.
2866         * linux-thread-db.c (add_thread_db_info): Likewise.
2867         (record_thread): Likewise.
2868         (info_auto_load_libthread_db): Likewise.
2869         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2870         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2871         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2872         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2873         * macrocmd.c (macro_define_command): Likewise.
2874         * macroexp.c (gather_arguments): Likewise.
2875         * macroscope.c (sal_macro_scope): Likewise.
2876         * macrotab.c (new_macro_table): Likewise.
2877         * mdebugread.c (push_parse_stack): Likewise.
2878         (parse_partial_symbols): Likewise.
2879         (parse_symbol): Likewise.
2880         (psymtab_to_symtab_1): Likewise.
2881         (new_block): Likewise.
2882         (new_psymtab): Likewise.
2883         (mdebug_build_psymtabs): Likewise.
2884         (add_pending): Likewise.
2885         (elfmdebug_build_psymtabs): Likewise.
2886         * mep-tdep.c (mep_gdbarch_init): Likewise.
2887         * mi/mi-main.c (mi_execute_command): Likewise.
2888         * mi/mi-parse.c (mi_parse_argv): Likewise.
2889         * minidebug.c (lzma_open): Likewise.
2890         * minsyms.c (terminate_minimal_symbol_table): Likewise.
2891         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2892         * mips-tdep.c (mips_gdbarch_init): Likewise.
2893         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2894         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2895         * mt-tdep.c (mt_registers_info): Likewise.
2896         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2897         * nat/linux-btrace.c (linux_enable_bts): Likewise.
2898         (linux_enable_pt): Likewise.
2899         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2900         (linux_xfer_osdata_processgroups): Likewise.
2901         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2902         * nto-procfs.c (procfs_meminfo): Likewise.
2903         * objc-lang.c (start_msglist): Likewise.
2904         (selectors_info): Likewise.
2905         (classes_info): Likewise.
2906         (find_methods): Likewise.
2907         * objfiles.c (allocate_objfile): Likewise.
2908         (update_section_map): Likewise.
2909         * osabi.c (gdbarch_register_osabi): Likewise.
2910         (gdbarch_register_osabi_sniffer): Likewise.
2911         * parse.c (start_arglist): Likewise.
2912         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2913         (hwdebug_insert_point): Likewise.
2914         * printcmd.c (display_command): Likewise.
2915         (ui_printf): Likewise.
2916         * procfs.c (create_procinfo): Likewise.
2917         (load_syscalls): Likewise.
2918         (proc_get_LDT_entry): Likewise.
2919         (proc_update_threads): Likewise.
2920         * prologue-value.c (make_pv_area): Likewise.
2921         (pv_area_store): Likewise.
2922         * psymtab.c (extend_psymbol_list): Likewise.
2923         (init_psymbol_list): Likewise.
2924         (allocate_psymtab): Likewise.
2925         * python/py-inferior.c (add_thread_object): Likewise.
2926         * python/py-param.c (compute_enum_values): Likewise.
2927         * python/py-value.c (valpy_call): Likewise.
2928         * python/py-varobj.c (py_varobj_iter_next): Likewise.
2929         * python/python.c (ensure_python_env): Likewise.
2930         * record-btrace.c (record_btrace_start_replaying): Likewise.
2931         * record-full.c (record_full_reg_alloc): Likewise.
2932         (record_full_mem_alloc): Likewise.
2933         (record_full_end_alloc): Likewise.
2934         (record_full_core_xfer_partial): Likewise.
2935         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2936         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2937         * remote-notif.c (remote_notif_state_allocate): Likewise.
2938         * remote.c (demand_private_info): Likewise.
2939         (remote_notif_stop_alloc_reply): Likewise.
2940         (remote_enable_btrace): Likewise.
2941         * reverse.c (save_bookmark_command): Likewise.
2942         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2943         * rx-tdep.c (rx_gdbarch_init): Likewise.
2944         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2945         * ser-go32.c (dos_get_tty_state): Likewise.
2946         (dos_copy_tty_state): Likewise.
2947         * ser-mingw.c (ser_windows_open): Likewise.
2948         (ser_console_wait_handle): Likewise.
2949         (ser_console_get_tty_state): Likewise.
2950         (make_pipe_state): Likewise.
2951         (net_windows_open): Likewise.
2952         * ser-unix.c (hardwire_get_tty_state): Likewise.
2953         (hardwire_copy_tty_state): Likewise.
2954         * solib-aix.c (solib_aix_new_lm_info): Likewise.
2955         * solib-dsbt.c (dsbt_current_sos): Likewise.
2956         (dsbt_relocate_main_executable): Likewise.
2957         * solib-frv.c (frv_current_sos): Likewise.
2958         (frv_relocate_main_executable): Likewise.
2959         * solib-spu.c (spu_bfd_fopen): Likewise.
2960         * solib-svr4.c (lm_info_read): Likewise.
2961         (svr4_copy_library_list): Likewise.
2962         (svr4_default_sos): Likewise.
2963         * source.c (find_source_lines): Likewise.
2964         (line_info): Likewise.
2965         (add_substitute_path_rule): Likewise.
2966         * spu-linux-nat.c (spu_bfd_open): Likewise.
2967         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2968         * stabsread.c (dbx_lookup_type): Likewise.
2969         (read_type): Likewise.
2970         (read_member_functions): Likewise.
2971         (read_struct_fields): Likewise.
2972         (read_baseclasses): Likewise.
2973         (read_args): Likewise.
2974         (_initialize_stabsread): Likewise.
2975         * stack.c (func_command): Likewise.
2976         * stap-probe.c (handle_stap_probe): Likewise.
2977         * symfile.c (addrs_section_sort): Likewise.
2978         (addr_info_make_relative): Likewise.
2979         (load_section_callback): Likewise.
2980         (add_symbol_file_command): Likewise.
2981         (init_filename_language_table): Likewise.
2982         * symtab.c (create_filename_seen_cache): Likewise.
2983         (sort_search_symbols_remove_dups): Likewise.
2984         (search_symbols): Likewise.
2985         * target.c (make_cleanup_restore_target_terminal): Likewise.
2986         * thread.c (new_thread): Likewise.
2987         (enable_thread_stack_temporaries): Likewise.
2988         (make_cleanup_restore_current_thread): Likewise.
2989         (thread_apply_all_command): Likewise.
2990         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2991         * top.c (gdb_readline_wrapper): Likewise.
2992         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2993         * tracepoint.c (trace_find_line_command): Likewise.
2994         (all_tracepoint_actions_and_cleanup): Likewise.
2995         (make_cleanup_restore_current_traceframe): Likewise.
2996         (get_uploaded_tp): Likewise.
2997         (get_uploaded_tsv): Likewise.
2998         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2999         (tui_alloc_win_info): Likewise.
3000         (tui_alloc_content): Likewise.
3001         (tui_add_content_elements): Likewise.
3002         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3003         (tui_set_disassem_content): Likewise.
3004         * ui-file.c (ui_file_new): Likewise.
3005         (stdio_file_new): Likewise.
3006         (tee_file_new): Likewise.
3007         * utils.c (make_cleanup_restore_integer): Likewise.
3008         (add_internal_problem_command): Likewise.
3009         * v850-tdep.c (v850_gdbarch_init): Likewise.
3010         * valops.c (find_oload_champ): Likewise.
3011         * value.c (allocate_value_lazy): Likewise.
3012         (record_latest_value): Likewise.
3013         (create_internalvar): Likewise.
3014         * varobj.c (install_variable): Likewise.
3015         (new_variable): Likewise.
3016         (new_root_variable): Likewise.
3017         (cppush): Likewise.
3018         (_initialize_varobj): Likewise.
3019         * windows-nat.c (windows_make_so): Likewise.
3020         * x86-nat.c (x86_add_process): Likewise.
3021         * xcoffread.c (arrange_linetable): Likewise.
3022         (allocate_include_entry): Likewise.
3023         (process_linenos): Likewise.
3024         (SYMBOL_DUP): Likewise.
3025         (xcoff_start_psymtab): Likewise.
3026         (xcoff_end_psymtab): Likewise.
3027         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3028         * xtensa-tdep.c (xtensa_register_type): Likewise.
3029         * gdbarch.c: Regenerate.
3030         * gdbarch.h: Regenerate.
3031
3032 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3033
3034         * infrun.c (follow_exec): Re-order operations for
3035         handling follow-exec-mode "new".
3036         (handle_inferior_event_1): Assign ecs->event_thread
3037         to the current thread.
3038         * remote.c (get_remote_arch_state): Add an assertion.
3039
3040 2015-08-26  Pedro Alves  <palves@redhat.com>
3041
3042         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3043
3044 2015-08-25  Pedro Alves  <palves@redhat.com>
3045
3046         PR gdb/18804
3047         * defs.h (maybe_quit): Declare.
3048         (QUIT): Now calls maybe_quit.
3049         * event-loop.c (clear_async_signal_handler)
3050         (async_signal_handler_is_marked): New functions.
3051         * event-loop.h (async_signal_handler_is_marked)
3052         (clear_async_signal_handler): New declarations.
3053         * remote.c (remote_check_pending_interrupt): New function.
3054         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3055         longer check whether the target is async.  If waiting for a stop
3056         reply, and a Ctrl-C as been sent to the target, offer to
3057         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3058         Otherwise do not disconnect and throw a quit.
3059         (_initialize_remote): Install remote_check_pending_interrupt as
3060         to_check_pending_interrupt.
3061         * target.c (target_check_pending_interrupt): New function.
3062         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3063         field.
3064         (target_check_pending_interrupt): New declaration.
3065         * utils.c (maybe_quit): New function.
3066         * target-delegates.c: Regenerate.
3067
3068 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3069
3070         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3071         Rename local variable pid to tid, and get lwpid of lwp.  Update
3072         debug output.
3073
3074 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3075
3076         * ada-lang.c (ada_read_var_value): Add a var_block argument
3077         and pass it to default_read_var_value.
3078         * block.c (block_static_link): New accessor.
3079         * block.h (block_static_link): Declare it.
3080         * buildsym.c (finish_block_internal): Add a static_link
3081         argument.  If there is a static link, associate it to the new
3082         block.
3083         (finish_block): Add a static link argument and pass it to
3084         finish_block_internal.
3085         (end_symtab_get_static_block): Update calls to finish_block and
3086         to finish_block_internal.
3087         (end_symtab_with_blockvector): Update call to
3088         finish_block_internal.
3089         * buildsym.h: Forward-declare struct dynamic_prop.
3090         (struct context_stack): Add a static_link field.
3091         (finish_block): Add a static link argument.
3092         * c-exp.y: Remove an obsolete comment (evaluation of variables
3093         already start from the selected frame, and now they climb *up*
3094         the call stack) and propagate the block information to the
3095         produced expression.
3096         * d-exp.y: Likewise.
3097         * f-exp.y: Likewise.
3098         * go-exp.y: Likewise.
3099         * jv-exp.y: Likewise.
3100         * m2-exp.y: Likewise.
3101         * p-exp.y: Likewise.
3102         * coffread.c (coff_symtab_read): Update calls to finish_block.
3103         * dbxread.c (process_one_symbol): Likewise.
3104         * xcoffread.c (read_xcoff_symtab): Likewise.
3105         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3106         "sym" parameter to struct block_symbol, update its uses and pass
3107         its block to calls to read_var_value.
3108         (convert_symbol_sym): Update the calls to convert_one_symbol.
3109         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3110         call to read_var_value.
3111         * dwarf2loc.c (block_op_get_frame_base): New.
3112         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3113         get_frame_base method.
3114         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3115         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3116         instead of the selected frame in order to evaluate the
3117         expression.
3118         (dwarf2_evaluate_property): Add a frame argument.  Update call
3119         to dwarf2_locexpr_baton_eval to provide a frame in available and
3120         to handle the absence of address stack.
3121         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3122         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3123         declaration.
3124         (read_func_scope): Record any available static link description.
3125         Update call to finish_block.
3126         (read_lexical_block_scope): Update call to finish_block.
3127         * findvar.c (follow_static_link): New.
3128         (get_hosting_frame): New.
3129         (default_read_var_value): Add a var_block argument.  Use
3130         get_hosting_frame to handle non-local references.
3131         (read_var_value): Add a var_block argument and pass it to the
3132         LA_READ_VAR_VALUE method.
3133         * gdbtypes.c (resolve_dynamic_range): Update calls to
3134         dwarf2_evaluate_property.
3135         (resolve_dynamic_type_internal): Likewise.
3136         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3137         read_var_value, passing it the block coming from symbol lookup.
3138         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3139         read_var_value (TODO).
3140         * infcmd.c (finish_command_continuation): Update call to
3141         read_var_value, passing it the block coming from symbol lookup.
3142         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3143         * language.h (struct language_defn): Add a var_block argument to
3144         the LA_READ_VAR_VALUE method.
3145         * objfiles.c (struct static_link_htab_entry): New.
3146         (static_link_htab_entry_hash): New.
3147         (static_link_htab_entry_eq): New.
3148         (objfile_register_static_link): New.
3149         (objfile_lookup_static_link): New.
3150         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3151         * objfiles.h: Include hashtab.h.
3152         (struct objfile): Add a static_links field.
3153         (objfile_register_static_link): New.
3154         (objfile_lookup_static_link): New.
3155         * printcmd.c (print_variable_and_value): Update call to
3156         read_var_value.
3157         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3158         * python/py-frame.c (frapy_read_var): Update call to
3159         read_var_value, passing it the block coming from symbol lookup.
3160         * python/py-framefilter.c (extract_sym): Add a sym_block
3161         parameter and set the pointed value to NULL (TODO).
3162         (enumerate_args): Update call to extract_sym.
3163         (enumerate_locals): Update calls to extract_sym and to
3164         read_var_value.
3165         * python/py-symbol.c (sympy_value): Update call to
3166         read_var_value (TODO).
3167         * stack.c (read_frame_local): Update call to read_var_value.
3168         (read_frame_arg): Likewise.
3169         (return_command): Likewise.
3170         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3171         method.
3172         (struct symbol): Add a block field.
3173         (SYMBOL_BLOCK): New accessor.
3174         * valops.c (value_of_variable): Remove frame/block handling and
3175         pass the block argument to read_var_value, which does this job
3176         now.
3177         (value_struct_elt_for_reference): Update calls to
3178         read_var_value.
3179         (value_of_this): Pass the block found to read_var_value.
3180         * value.h (read_var_value): Add a var_block argument.
3181         (default_read_var_value): Likewise.
3182
3183 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3184
3185         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3186         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3187         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3188
3189 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3190
3191         * Makefile.in (aarch64-liunx.o): New rule.
3192         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3193         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3194         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3195         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3196         extern.
3197         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3198         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3199         * nat/aarch64-linux.c: New file.
3200         * nat/aarch64-linux.h: New file.
3201
3202 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3203
3204         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3205         lwp_arch_private_info and ptid_of_lwp.
3206
3207 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3208
3209         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3210         Move it to nat/aarch64-linux-hw-point.c.
3211         (debug_reg_change_callback): Likewise.
3212         (aarch64_notify_debug_reg_change): :Likewise.
3213         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3214         (aarch64_dr_update_callback_param): New.
3215         (debug_reg_change_callback): New function.
3216         (aarch64_notify_debug_reg_change): Likewise.
3217         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3218         Remove the declaration.
3219
3220 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3221
3222         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3223         Call current_lwp_ptid.
3224
3225 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3226
3227         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3228         debug_printf.
3229
3230 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3231
3232         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3233         ptid_get_pid rather than ptid_get_lwp.
3234
3235 2015-08-24  Pedro Alves  <palves@redhat.com>
3236
3237         * NEWS (New commands): Mention set/show remote
3238         multiprocess-extensions-packet.
3239         * remote.c (remote_query_supported): Only tell the server to use
3240         the multiprocess extensions if the user hasn't force-disabled them
3241         with "set remote multiprocess-extensions-packet off".
3242
3243 2015-08-24  Pedro Alves  <palves@redhat.com>
3244
3245         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3246         1029a8112290f6eee9d7878a391c49db42c999bd.
3247         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3248         Regenerate.
3249         * gnulib/import/Makefile.am: Update.
3250         * gnulib/import/Makefile.in: Update.
3251         * gnulib/import/alloca.in.h: Update.
3252         * gnulib/import/basename-lgpl.c: Update.
3253         * gnulib/import/canonicalize-lgpl.c: Update.
3254         * gnulib/import/config.charset: Update.
3255         * gnulib/import/dirent.in.h: Update.
3256         * gnulib/import/dirfd.c: Update.
3257         * gnulib/import/dirname-lgpl.c: Update.
3258         * gnulib/import/dirname.h: Update.
3259         * gnulib/import/dosname.h: Update.
3260         * gnulib/import/errno.in.h: Update.
3261         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3262         * gnulib/import/extra/snippet/c++defs.h: Update.
3263         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3264         * gnulib/import/extra/update-copyright: Update.
3265         * gnulib/import/float+.h: Update.
3266         * gnulib/import/float.c: Update.
3267         * gnulib/import/float.in.h: Update.
3268         * gnulib/import/fnmatch.c: Update.
3269         * gnulib/import/fnmatch.in.h: Update.
3270         * gnulib/import/fnmatch_loop.c: Update.
3271         * gnulib/import/fpucw.h: Update.
3272         * gnulib/import/frexp.c: Update.
3273         * gnulib/import/frexpl.c: Update.
3274         * gnulib/import/gettimeofday.c: Update.
3275         * gnulib/import/inttypes.in.h: Update.
3276         * gnulib/import/isnan.c: Update.
3277         * gnulib/import/isnand-nolibm.h: Update.
3278         * gnulib/import/isnand.c: Update.
3279         * gnulib/import/isnanl-nolibm.h: Update.
3280         * gnulib/import/isnanl.c: Update.
3281         * gnulib/import/itold.c: Update.
3282         * gnulib/import/localcharset.c: Update.
3283         * gnulib/import/localcharset.h: Update.
3284         * gnulib/import/lstat.c: Update.
3285         * gnulib/import/m4/00gnulib.m4: Update.
3286         * gnulib/import/m4/absolute-header.m4: Update.
3287         * gnulib/import/m4/alloca.m4: Update.
3288         * gnulib/import/m4/canonicalize.m4: Update.
3289         * gnulib/import/m4/codeset.m4: Update.
3290         * gnulib/import/m4/configmake.m4: Update.
3291         * gnulib/import/m4/dirent_h.m4: Update.
3292         * gnulib/import/m4/dirfd.m4: Update.
3293         * gnulib/import/m4/dirname.m4: Update.
3294         * gnulib/import/m4/double-slash-root.m4: Update.
3295         * gnulib/import/m4/eealloc.m4: Update.
3296         * gnulib/import/m4/errno_h.m4: Update.
3297         * gnulib/import/m4/exponentd.m4: Update.
3298         * gnulib/import/m4/exponentl.m4: Update.
3299         * gnulib/import/m4/extensions.m4: Update.
3300         * gnulib/import/m4/extern-inline.m4: Update.
3301         * gnulib/import/m4/fcntl-o.m4: Update.
3302         * gnulib/import/m4/float_h.m4: Update.
3303         * gnulib/import/m4/fnmatch.m4: Update.
3304         * gnulib/import/m4/fpieee.m4: Update.
3305         * gnulib/import/m4/frexp.m4: Update.
3306         * gnulib/import/m4/frexpl.m4: Update.
3307         * gnulib/import/m4/gettimeofday.m4: Update.
3308         * gnulib/import/m4/glibc21.m4: Update.
3309         * gnulib/import/m4/gnulib-cache.m4: Update.
3310         * gnulib/import/m4/gnulib-common.m4: Update.
3311         * gnulib/import/m4/gnulib-comp.m4: Update.
3312         * gnulib/import/m4/gnulib-tool.m4: Update.
3313         * gnulib/import/m4/include_next.m4: Update.
3314         * gnulib/import/m4/inttypes-pri.m4: Update.
3315         * gnulib/import/m4/inttypes.m4: Update.
3316         * gnulib/import/m4/isnand.m4: Update.
3317         * gnulib/import/m4/isnanl.m4: Update.
3318         * gnulib/import/m4/largefile.m4: Update.
3319         * gnulib/import/m4/localcharset.m4: Update.
3320         * gnulib/import/m4/locale-fr.m4: Update.
3321         * gnulib/import/m4/locale-ja.m4: Update.
3322         * gnulib/import/m4/locale-zh.m4: Update.
3323         * gnulib/import/m4/longlong.m4: Update.
3324         * gnulib/import/m4/lstat.m4: Update.
3325         * gnulib/import/m4/malloc.m4: Update.
3326         * gnulib/import/m4/malloca.m4: Update.
3327         * gnulib/import/m4/math_h.m4: Update.
3328         * gnulib/import/m4/mbrtowc.m4: Update.
3329         * gnulib/import/m4/mbsinit.m4: Update.
3330         * gnulib/import/m4/mbsrtowcs.m4: Update.
3331         * gnulib/import/m4/mbstate_t.m4: Update.
3332         * gnulib/import/m4/memchr.m4: Update.
3333         * gnulib/import/m4/memmem.m4: Update.
3334         * gnulib/import/m4/mmap-anon.m4: Update.
3335         * gnulib/import/m4/multiarch.m4: Update.
3336         * gnulib/import/m4/nocrash.m4: Update.
3337         * gnulib/import/m4/off_t.m4: Update.
3338         * gnulib/import/m4/pathmax.m4: Update.
3339         * gnulib/import/m4/readlink.m4: Update.
3340         * gnulib/import/m4/rename.m4: Update.
3341         * gnulib/import/m4/rmdir.m4: Update.
3342         * gnulib/import/m4/ssize_t.m4: Update.
3343         * gnulib/import/m4/stat.m4: Update.
3344         * gnulib/import/m4/stdbool.m4: Update.
3345         * gnulib/import/m4/stddef_h.m4: Update.
3346         * gnulib/import/m4/stdint.m4: Update.
3347         * gnulib/import/m4/stdio_h.m4: Update.
3348         * gnulib/import/m4/stdlib_h.m4: Update.
3349         * gnulib/import/m4/string_h.m4: Update.
3350         * gnulib/import/m4/strstr.m4: Update.
3351         * gnulib/import/m4/strtok_r.m4: Update.
3352         * gnulib/import/m4/sys_socket_h.m4: Update.
3353         * gnulib/import/m4/sys_stat_h.m4: Update.
3354         * gnulib/import/m4/sys_time_h.m4: Update.
3355         * gnulib/import/m4/sys_types_h.m4: Update.
3356         * gnulib/import/m4/time_h.m4: Update.
3357         * gnulib/import/m4/unistd_h.m4: Update.
3358         * gnulib/import/m4/warn-on-use.m4: Update.
3359         * gnulib/import/m4/wchar_h.m4: Update.
3360         * gnulib/import/m4/wchar_t.m4: Update.
3361         * gnulib/import/m4/wctype_h.m4: Update.
3362         * gnulib/import/m4/wint_t.m4: Update.
3363         * gnulib/import/malloc.c: Update.
3364         * gnulib/import/malloca.c: Update.
3365         * gnulib/import/malloca.h: Update.
3366         * gnulib/import/math.in.h: Update.
3367         * gnulib/import/mbrtowc.c: Update.
3368         * gnulib/import/mbsinit.c: Update.
3369         * gnulib/import/mbsrtowcs-impl.h: Update.
3370         * gnulib/import/mbsrtowcs-state.c: Update.
3371         * gnulib/import/mbsrtowcs.c: Update.
3372         * gnulib/import/memchr.c: Update.
3373         * gnulib/import/memmem.c: Update.
3374         * gnulib/import/pathmax.h: Update.
3375         * gnulib/import/readlink.c: Update.
3376         * gnulib/import/ref-add.sin: Update.
3377         * gnulib/import/ref-del.sin: Update.
3378         * gnulib/import/rename.c: Update.
3379         * gnulib/import/rmdir.c: Update.
3380         * gnulib/import/same-inode.h: Update.
3381         * gnulib/import/stat.c: Update.
3382         * gnulib/import/stdbool.in.h: Update.
3383         * gnulib/import/stddef.in.h: Update.
3384         * gnulib/import/stdint.in.h: Update.
3385         * gnulib/import/stdio.c: Update.
3386         * gnulib/import/stdio.in.h: Update.
3387         * gnulib/import/stdlib.in.h: Update.
3388         * gnulib/import/str-two-way.h: Update.
3389         * gnulib/import/streq.h: Update.
3390         * gnulib/import/string.in.h: Update.
3391         * gnulib/import/stripslash.c: Update.
3392         * gnulib/import/strnlen1.c: Update.
3393         * gnulib/import/strnlen1.h: Update.
3394         * gnulib/import/strstr.c: Update.
3395         * gnulib/import/strtok_r.c: Update.
3396         * gnulib/import/sys_stat.in.h: Update.
3397         * gnulib/import/sys_time.in.h: Update.
3398         * gnulib/import/sys_types.in.h: Update.
3399         * gnulib/import/time.in.h: Update.
3400         * gnulib/import/unistd.in.h: Update.
3401         * gnulib/import/verify.h: Update.
3402         * gnulib/import/wchar.in.h: Update.
3403         * gnulib/import/wctype.in.h: Update.
3404         * gnulib/import/gettimeofday.c: New file.
3405         * gnulib/import/m4/absolute-header.m4: New file.
3406         * gnulib/import/m4/gettimeofday.m4: New file.
3407         * gnulib/import/m4/sys_socket_h.m4: New file.
3408         * gnulib/import/m4/sys_time_h.m4: New file.
3409         * gnulib/import/stdio.c: Delete file.
3410         * gnulib/import/sys_time.in.h: New file.
3411
3412 2015-08-24  Pedro Alves  <palves@redhat.com>
3413
3414         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3415         * common/gdb_sys_time.h: New file.
3416         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3417         * gdb_select.h: Likewise.
3418         * gdb_usleep.c: Likewise.
3419         * maint.c: Likewise.
3420         * mi/mi-main.c: Likewise.
3421         * mi/mi-parse.h: Likewise.
3422         * remote-fileio.c: Likewise.
3423         * remote-m32r-sdi.c: Likewise.
3424         * remote.c: Likewise.
3425         * ser-base.c: Likewise.
3426         * ser-pipe.c: Likewise.
3427         * ser-tcp.c: Likewise.
3428         * ser-unix.c: Likewise.
3429         * symfile.c: Likewise.
3430         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3431         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3432         * utils.c: Likewise.
3433
3434 2015-08-24  Pedro Alves  <palves@redhat.com>
3435
3436         * NEWS: Mention removed support for the various ROM monitors.
3437         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3438         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3439         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3440         gdb_target_obs.
3441         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3442         gdb_target_obs.
3443         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3444         dsrec.o from gdb_target_obs.
3445         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3446         from gdb_target_obs.
3447         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3448         gdb_target_obs.
3449         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3450         dink32-rom.o from gdb_target_obs.
3451         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3452         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3453         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3454         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3455
3456 2015-08-21  Pedro Alves  <palves@redhat.com>
3457
3458         * frame.c (null_frame_id): Explicitly zero-initialize.
3459
3460 2015-08-21  Tom Tromey  <tromey@redhat.com>
3461
3462         * dwarf2read.c (struct dwarf2_section_info): Rename field
3463         'asection' to 'section'.
3464         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3465         (dwarf2_locate_sections, dwarf2_locate_sections)
3466         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3467         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3468         (dwarf2_locate_v2_dwp_sections): Adjust.
3469
3470 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3471
3472         * top.h (gdb_in_secondary_prompt_p): Declare.
3473         * top.c (gdb_secondary_prompt_depth): Define.
3474         (gdb_in_secondary_prompt_p): Define.
3475         (gdb_readline_wrapper_cleanup): Decrement
3476         gdb_secondary_prompt_depth.
3477         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3478         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3479         are in a secondary prompt.
3480
3481 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3482
3483         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3484         emit the newline.
3485
3486 2015-08-21  Gary Benson  <gbenson@redhat.com>
3487
3488         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3489
3490 2015-08-21  Gary Benson  <gbenson@redhat.com>
3491
3492         * target.h (struct target_ops) <to_fileio_open>: New argument
3493         warn_if_slow.  Update comment.  All implementations updated.
3494         (target_fileio_open_warn_if_slow): New declaration.
3495         * target.c (target_fileio_open): Renamed as...
3496         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3497         Pass warn_if_slow to implementation.  Update debug printing.
3498         (target_fileio_open): New function.
3499         (target_fileio_open_warn_if_slow): Likewise.
3500         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3501         target_fileio_open_warn_if_slow.
3502
3503 2015-08-21  Gary Benson  <gbenson@redhat.com>
3504
3505         * nat/linux-namespaces.c (linux_mntns_access_fs):
3506         Do not overwrite old_chain.
3507
3508 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3509
3510         * arch/xtensa.h: New file.
3511         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3512         (ps_get_thread_area): New function.
3513         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3514         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3515         * xtensa-tdep.c (osabi.h): New #include.
3516         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3517         xtensa-specific hooks.
3518         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3519         member and move the structure to arch/xtensa.h.
3520
3521 2015-08-21  Pedro Alves  <palves@redhat.com>
3522
3523         * remote.c (struct readahead_cache): New.
3524         (struct remote_state) <readahead_cache>: New field.
3525         (remote_open_1): Invalidate the cache.
3526         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3527         functions.
3528         (remote_hostio_pwrite): Invalidate the readahead cache.
3529         (remote_hostio_pread): Rename to ...
3530         (remote_hostio_pread_vFile): ... this.
3531         (remote_hostio_pread_from_cache): New function.
3532         (remote_hostio_pread): Reimplement.
3533         (remote_hostio_close): Invalidate the readahead cache.
3534
3535 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3536
3537         PR build/18843
3538         * procfs.c: Include "filestuff.h".
3539
3540 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3541
3542         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3543         curch.
3544         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3545         cur_line or curch, instead call wmove().
3546         (init_win_info) [CMD_WIN]: Likewise.
3547         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3548         instead call getcury().
3549         (tui_redisplay_readline): Don't set cur_line or curch.
3550         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3551         getcury().
3552         (tui_cont_sig): Remove call to wmove.
3553         (tui_getc): Don't read cur_line or curch, instead call getcury()
3554         or getyx().  Don't set curch.
3555         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3556         set cur_line or curch.  Always move cursor to (0,0).
3557
3558 2015-08-20  Pedro Alves  <palves@redhat.com>
3559
3560         * infrun.c (print_target_wait_results): Make extern.
3561         * infrun.h (print_target_wait_results): Declare.
3562         * remote.c (set_stop_requested_callback): Delete.
3563         (process_initial_stop_replies): New function.
3564         (remote_start_remote): Use it.
3565         (stop_reply_queue_length): New function.
3566
3567 2015-08-20  Pedro Alves  <palves@redhat.com>
3568
3569         * dwarf2read.c (process_full_comp_unit): To tell whether
3570         start_subfile managed to deduce a language, test for
3571         language_unknown instead of language_c.
3572
3573 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3574
3575         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3576         matches attributes.
3577
3578 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3579
3580         * dwarf2read.c (dwarf2_string_attr): New function.
3581         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3582         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3583         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3584         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3585         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3586
3587 2015-08-18  Doug Evans  <dje@google.com>
3588             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3589
3590         PR mi/18833
3591         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3592         if MI-like.
3593         * mi/mi-out.c: #include "vec.h".
3594         (ui_filep): New type.
3595         (DEV_VEC_P (ui_filep)): New type.
3596         (struct ui_out_data) <buffer, original_buffer>: Delete.
3597         (struct ui_out_data) <streams>: New member.
3598         (mi_ui_out_impl): Add data_destroy field.
3599         (mi_field_string, mi_field_fmt): Update.
3600         (mi_flush, mi_redirect, field_separator): Update.
3601         (mi_open, mi_close): Update.
3602         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3603         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3604         (mi_out_new): Call mi_out_data_ctor.
3605
3606 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3607
3608         * remote.c (strprefix): New.
3609         (remote_parse_stop_reply): Use strprefix instead of strncmp
3610         to ensure exact match of keyword.
3611
3612 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3613
3614         * gdb_bfd.c (debug_bfd_cache): New variable.
3615         (show_bfd_cache_debug): New function.
3616         (gdb_bfd_open): Add debug logging.
3617         (gdb_bfd_ref): Likewise.
3618         (gdb_bfd_unref): Likewise.
3619         (_initialize_gdb_bfd): Add new set/show command.
3620         * NEWS: Mention new command.
3621
3622 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3623
3624         * gdb_bfd.c (bfd_sharing): New variable.
3625         (show_bfd_sharing): New function.
3626         (gdb_bfd_open): Check bfd_sharing variable.
3627         (_initialize_gdb_bfd): Add new set/show command.
3628         * NEWS: Mention new command.
3629
3630 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3631
3632         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3633         field.
3634         (struct gdb_bfd_cache_search): Likewise.
3635         (eq_bfd): Compare the size, inode, and device id fields.
3636         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3637         (gdb_bfd_ref): Likewise.
3638         (gdb_bfd_unref): Likewise.
3639
3640 2015-08-18  Pedro Alves  <palves@redhat.com>
3641
3642         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3643         target implements to_always_non_stop_p, call it.
3644         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3645         (x86_linux_create_target): Install it as to_always_non_stop_p
3646         method.
3647
3648 2015-08-17  Doug Evans  <dje@google.com>
3649
3650         * ui-out.c (default_ui_out_impl): Add comment.
3651
3652 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
3653
3654         * d-exp.y (type_aggregate_p): New function.
3655         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3656         (classify_inner_name): Likewise.
3657         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3658
3659 2015-08-15  Doug Evans  <xdje42@gmail.com>
3660
3661         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
3662         updated.
3663         (add_psymbol_to_list): Ditto.
3664
3665 2015-08-15  Doug Evans  <xdje42@gmail.com>
3666
3667         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
3668         updated.  Call end_psymtab_common.
3669         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3670         end_psymtab_common.
3671         (build_type_psymtabs_reader): Ditto.
3672         * psympriv.h (sort_pst_symbols): Delete.
3673         (end_psymtab_common): Declare.
3674         * psymtab.c (sort_pst_symbols): Make static.
3675         (end_psymtab_common): New function.
3676         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3677
3678 2015-08-15  Doug Evans  <xdje42@gmail.com>
3679
3680         * defs.h (LANGUAGE_BITS): Define.
3681         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3682         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3683         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3684         (minimal_symbol_type): Add nr_minsym_types.
3685         (MINSYM_TYPE_BITS): Define.
3686         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3687         (domain_enum_tag): Add NR_DOMAINS.
3688         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3689         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3690
3691 2015-08-15  Doug Evans  <xdje42@gmail.com>
3692
3693         * objfiles.h: Whitespace cleanup.
3694         * psympriv.h: Whitespace cleanup.
3695         * psymtab.c: Whitespace/coding convention cleanup.
3696
3697 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
3698
3699         * inferior.c (detach_inferior_command): Don't call
3700         any_thread_of_process when pid is 0.
3701         (kill_inferior_command): Likewise.
3702
3703 2015-08-14  Doug Evans  <xdje42@gmail.com>
3704
3705         PR gdb/11833
3706         * NEWS: Document new /s modifier for the disassemble command.
3707         * cli/cli-cmds.c (disassemble_command): Add support for /s.
3708         (_initialize_cli_cmds): Update online docs of disassemble command.
3709         * disasm.c: #include "source.h".
3710         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3711         All uses updated.
3712         (dis_line_entry): New struct.
3713         (hash_dis_line_entry, eq_dis_line_entry): New functions.
3714         (allocate_dis_line_table): New functions.
3715         (maybe_add_dis_line_entry, line_has_code_p): New functions.
3716         (dump_insns): New arg end_pc.  All callers updated.
3717         (do_mixed_source_and_assembly_deprecated): Renamed from
3718         do_mixed_source_and_assembly.  All callers updated.
3719         (do_mixed_source_and_assembly): New function.
3720         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3721         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3722         DISASSEMBLY_SOURCE.  All uses updated.
3723         (DISASSEMBLY_SOURCE): New macro.
3724         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3725
3726 2015-08-14  Keith Seitz  <keiths@redhat.com>
3727
3728         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3729         `typename' to `type_name' to avoid C++ reserved word.
3730
3731 2015-08-14  Keith Seitz  <keiths@redhat.com>
3732
3733         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3734         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3735         silence ARI errors.
3736
3737 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3738
3739         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3740         xstrprintf instead of malloc and sprintf.
3741         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3742         (lex_one_token): Likewise.
3743
3744 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3745
3746         * solib-svr4.c (read_program_header): Add base_addr argument to
3747         report the runtime address of the segment.
3748         (find_program_interpreter): Update read_program_header call to pass
3749         a NULL pointer for the new argument.
3750         (scan_dyntag): Add ptr_addr argument to report the runtime address
3751         of the tag payload.
3752         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3753         read_program_header to get the base address of the dynamic segment.
3754         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3755         read_program_header.
3756         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3757
3758 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3759
3760         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3761
3762 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3763
3764         * d-exp.y (%union): Add voidval.
3765         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3766         name in the lexing stage.
3767         (PostfixExpression): Move symbol completion handling in grammar here
3768         from PrimaryExpression.
3769         (PrimaryExpression): Move routines to handle resolving identifier
3770         tokens in the grammar here from push_expression_name.
3771         (IdentifierExp): Remove the handling of alternating '.' and identifier
3772         tokens.
3773         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3774         (BasicType): Remove C-style typename rules.
3775         (d_type_from_name, d_module_from_name, push_variable)
3776         (push_fieldnames, push_type_name, push_module_name)
3777         (push_expression_name): Remove.
3778         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
3779         (token_and_value): New type.
3780         (token_fifo, popping, name_obstack): New globals.
3781         (classify_name): New function.
3782         (classify_inner_name): Likewise.
3783         (yylex): Likewise.
3784         (d_parse): Initialize token_fifo, popping and name_obstack.
3785
3786 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3787
3788         * Makefile.in (SFILES): Add d-namespace.c.
3789         (COMMON_OBS): Add d-namespace.o.
3790         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3791         la_lookup_symbol_nonlocal callback function pointer.
3792         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3793         (d_lookup_nested_symbol): New declaration.
3794         * d-namespace.c: New file.
3795
3796 2015-08-13  Pedro Alves  <palves@redhat.com>
3797
3798         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3799         cleanup after the decref cleanup, not before.
3800
3801 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
3802
3803         * ada-lang.c: Include namespace.h
3804         (aux_add_nonlocal_symbols): Fix a function name in comment.
3805         (ada_add_block_renamings): New.
3806         (add_nonlocal_symbols): Add global renamings handling.
3807         (ada_lookup_symbol_list_worker): Move the symbol lookup part
3808         to...
3809         (ada_add_all_symbols): ... this new function.
3810         (ada_add_block_symbols): Try to match the input name against the
3811         "using directives list", perform a recursive symbol lookup on
3812         the matched declarations.
3813         * block.h (struct block): Move the_namespace to top-level as
3814         namespace_info. Remove the language_specific field.
3815         (BLOCK_NAMESPACE): Update access to the namespace_info field.
3816         * buildsym.h (using_directives): Rename into...
3817         (local_using_directives): ... this.
3818         (global_using_directives): New.
3819         (struct context_stack): Rename the using_directives field into
3820         local_using_directives.
3821         * buildsym.c (finish_block_internal): Deal with the proper
3822         using directives repository (local or global).
3823         (prepare_for_building): Reset local_using_directives. Assert
3824         that there is no pending global using directive.
3825         (reset_symtab_globals): Reset global_using_directives and
3826         local_using_directives.
3827         (end_symtab_get_static_block): Don't ignore symtabs that have
3828         only using directives.
3829         (push_context): Update references to local_using_directives.
3830         (buildsym_init): Do not reset using_directives.
3831         * cp-support.c: Include namespace.h.
3832         * cp-support.h (struct using_direct): Move to namespace.h.
3833         (cp_add_using_directives): Move to namespace.h.
3834         * cp-namespace.c: Include namespace.h
3835         (cp_add_using_directive): Move to namespace.c, rename it to
3836         add_using_directive, add a "using_directives" argument and use
3837         it as the pending using directives repository.  All callers
3838         updated.
3839         * dwarf2read.c (using_directives): New.
3840         (read_import_statement): Call using_directives.
3841         (read_func_scope): Update references to local_using_directives.
3842         (read_lexical_block_scope): Likewise.
3843         (read_namespace): Update the heading comment, call
3844         using_directives.
3845         * namespace.h: New file.
3846         * namespace.c: New file.
3847         * Makefile.in (SFILES): Add namespace.c.
3848         (COMMON_OBS): Add namespace.o
3849
3850 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
3851
3852         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3853         compute RETADDR.
3854
3855 2015-08-12  Keith Seitz  <keiths@redhat.com>
3856
3857         * break-catch-throw.c (re_set_exception_catchpoint) Rename
3858         reserved C++ keyword "explicit" to "explicit_loc".
3859         * breakpoint.c (create_overlay_event_breakpoint)
3860         (create_longjmp_master_breakpoint)
3861         (create_std_terminate_master_breakpoint)
3862         (create_exception_master_breakpoint, update_static_tracepoint):
3863         Rename reserved C++ keyword "explicit" to "explicit_loc".
3864         * completer.c (collect_explicit_location_matches)
3865         (explicit_location_completer): Rename reserved C++ keyword
3866         "explicit" to "explicit_loc".
3867         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3868         (canonicalize_linespec, create_sals_line_offset)
3869         (convert_linespec_to_sals, convert_explicit_location_to_sals)
3870         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3871         "explicit" to "explicit_loc".
3872         * location.c (struct event_location) <explicit>: Rename to
3873         "explicit_loc".
3874         (initialize_explicit_location, new_explicit_location)
3875         (explicit_location_to_string_internal, explicit_location_to_linespec):
3876         Rename reserved C++ keyword "explicit" to "explicit_loc".
3877         * location.h (explicit_location_to_string)
3878         (explicit_location_to_linespec, initialize_explicit_location)
3879         (new_explicit_location): Rename reserved C++ keyword "explicit"
3880         to "explicit_loc".
3881         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3882         keyword "explicit" to "explicit_loc".
3883
3884 2015-08-12  Keith Seitz  <keiths@redhat.com>
3885
3886         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3887         and only call decode_line_1 when it is non-NULL.
3888
3889 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
3890
3891         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3892         location address is not meaningful.
3893         (breakpoint_address_is_meaningful): Update comment.
3894
3895 2015-08-11  Keith Seitz  <keiths@redhat.com>
3896
3897         * NEWS: Mention explicit locations.
3898         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3899         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3900         (_initialize_breakpoint): Update documentation for
3901         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3902
3903 2015-08-11  Keith Seitz  <keiths@redhat.com>
3904
3905         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3906         explicit locations, options "--source", "--function",
3907         "--label", and "--line".
3908
3909 2015-08-11  Keith Seitz  <keiths@redhat.com>
3910
3911         * completer.c: Include location.h.
3912         (enum match_type): New enum.
3913         (location_completer): Rename to ...
3914         (linespec_completer): ... this.
3915         (collect_explicit_location_matches, backup_text_ptr)
3916         (explicit_location_completer): New functions.
3917         (location_completer): "New" function; handle linespec
3918         and explicit location completions.
3919         (complete_line_internal): Remove all location completer-specific
3920         handling.
3921         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3922         (find_toplevel_char): Export.
3923         (linespec_parse_line_offset): Export.
3924         Issue error if STRING is not numerical.
3925         (gdb_get_linespec_parser_quote_characters): New function.
3926         * linespec.h (linespec_parse_line_offset): Declare.
3927         (get_gdb_linespec_parser_quote_characters): Declare.
3928         (is_ada_operator): Declare.
3929         (find_toplevel_char): Declare.
3930         (linespec_lexer_lex_keyword): Declare.
3931         * location.c (explicit_to_event_location): New function.
3932         (explicit_location_lex_one): New function.
3933         (string_to_explicit_location): New function.
3934         (string_to_event_location): Handle explicit locations.
3935         * location.h (explicit_to_event_location): Declare.
3936         (string_to_explicit_location): Declare.
3937
3938 2015-08-11  Keith Seitz  <keiths@redhat.com>
3939
3940         * break-catch-throw.c (re_set_exception_catchpoint): Convert
3941         linespec into explicit location.
3942         * breakpoint.c (create_overlay_breakpoint)
3943         (create_longjmp_master_breakpoint)
3944         (create_std_terminate_master_breakpoint)
3945         (create_exception_master_breakpoint): Convert linespec into explicit
3946         location.
3947         (update_static_tracepoint): Convert linespec into explicit location.
3948         * linespec.c (enum offset_relative_sign, struct line_offset): Move
3949         location.h.
3950         (struct linespec) <expression, expr_pc, source_filename>
3951         <function_name, label_name, line_offset>: Replace with ...
3952         <explicit>: ... this.
3953         <is_linespec>: New member.
3954         (PARSER_EXPLICIT): New accessor macro.
3955         (undefined_label_error): New function.
3956         (source_file_not_found_error): New function.
3957         (linespec_parse_basic): The parser result is now an explicit location.
3958         Use PARSER_EXPLICIT to access it.
3959         Use undefined_label_error.
3960         (canonicalize_linespec): Convert canonical linespec into explicit
3961         location.
3962         Move string representation of location to explicit_location_to_linespec
3963         and use it and explicit_location_to_string to save string
3964         representations of the canonical location.
3965         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3966         explicit location.  Update all references.
3967         (convert_explicit_location_to_sals): New function.
3968         (parse_linespec): Use PARSER_EXPLICIT to access the parser
3969         result's explicit location.
3970         (linespec_state_constructor): Initialize is_linespec.
3971         Use PARSER_EXPLICIT.
3972         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3973         result.
3974         (event_location_to_sals): For linespec locations, set is_linespec.
3975         Handle explicit locations.
3976         (decode_objc): 'ls' contains an explicit location now. Update all
3977         references.
3978         (symtabs_from_filename): Use source_file_not_found_error.
3979         * location.c (struct event_location.u) <explicit>: New member.
3980         (initialize_explicit_location): New function.
3981         (initialize_event_location): Initialize explicit locations.
3982         (new_explicit_location, get_explicit_location)
3983         (get_explicit_location_const): New functions.
3984         (explicit_to_string_internal): New function; most of contents moved
3985         from canonicalize_linespec.
3986         (explicit_location_to_string): New function.
3987         (explicit_location_to_linespec): New function.
3988         (copy_event_location, delete_event_location)
3989         (event_location_to_string_const, event_location_empty_p): Handle
3990         explicit locations.
3991         * location.h (enum offset_relative_sign, struct line_offset): Move
3992         here from linespec.h.
3993         (enum event_location_type): Add EXPLICIT_LOCATION.
3994         (struct explicit_location): New structure.
3995         (explicit_location_to_string): Declare.
3996         (explicit_location_to_linespec): Declare.
3997         (new_explicit_location, get_explicit_locationp
3998         (get_explicit_location_const, initialize_explicit_location): Declare.
3999
4000 2015-08-11  Keith Seitz  <keiths@redhat.com>
4001
4002         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4003         linespec for stap probe to probe location.
4004         * breakpoint.c (create_longjmp_master_breakpoint)
4005         (create_exception_master_breakpoint): Likewise.
4006         (break_command_1): Remove local variable `arg_cp'.
4007         Check location type to set appropriate breakpoint ops methods.
4008         (trace_command): Likewise.
4009         * linespec.c (event_location_to_sals): Assert on probe locations.
4010         * location.c (EL_PROBE): Add macro definition.
4011         (new_probe_location, get_probe_location): New functions.
4012         (copy_event_location, delete_event_location, event_location_to_string)
4013         (string_to_event_location, event_location_empty_p): Handle probe
4014         locations.
4015         * location.h (enum event_location_type): Add PROBE_LOCATION.
4016         (new_probe_location, get_probe_location): Declare.
4017         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4018         Convert linespec into probe location.
4019
4020 2015-08-11  Keith Seitz  <keiths@redhat.com>
4021
4022         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4023         Convert linespec to address location.
4024         * linespec.c (canonicalize_linespec): Do not handle address
4025         locations here.
4026         (convert_address_location_to_sals): New function; contents moved
4027         from ...
4028         (convert_linespc_to_sals): ... here.
4029         (parse_linespec): Remove address locations from linespec grammar.
4030         Remove handling of address locations.
4031         (linespec_lex_to_end): Remove handling of address linespecs.
4032         (event_location_to_sals): Handle ADDRESS_LOCATION.
4033         (linespec_expression_to_pc): Export.
4034         * linespec.h (linespec_expression_to_pc): Add declaration.
4035         * location.c (struct event_location.u) <address>: New member.
4036         (new_address_location, get_address_location): New functions.
4037         (copy_event_location, delete_event_location, event_location_to_string)
4038         (string_to_event_location, event_location_empty_p): Handle address
4039         locations.
4040         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4041         (new_address_location, get_address_location): Declare.
4042         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4043         to address location.
4044         * spu-tdep.c (spu_catch_start): Likewise.
4045
4046 2015-08-11  Keith Seitz  <keiths@redhat.com>
4047
4048         * ax-gdb.c: Include location.h.
4049         (agent_command_1) Use linespec location instead of address
4050         string.
4051         * break-catch-throw.c: Include location.h.
4052         (re_set_exception_catchpoint): Use linespec locations instead
4053         of address strings.
4054         * breakpoint.c: Include location.h.
4055         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4056         (create_std_terminate_master_breakpoint)
4057         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4058         Use linespec location instead of address string.
4059         (print_breakpoint_location):  Use locations and
4060         event_location_to_string.
4061         Print extra_string for pending locations for non-MI streams.
4062         (print_one_breakpoint_location): Use locations and
4063         event_location_to_string.
4064         (init_raw_breakpoint_without_location): Initialize b->location.
4065         (create_thread_event_breakpoint): Use linespec location instead of
4066         address string.
4067         (init_breakpoint_sal): Likewise.
4068         Only save extra_string if it is non-NULL and not the empty string.
4069         Use event_location_to_string instead of `addr_string'.
4070         Constify `p' and `endp'.
4071         Use skip_spaces_const/skip_space_const instead of non-const versions.
4072         Copy the location into the breakpoint.
4073         If LOCATION is NULL, save the breakpoint address as a linespec location
4074         instead of an address string.
4075         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4076         event_location. All uses updated.
4077         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4078         (parse_breakpoint_sals): Use locations instead of address strings.
4079         Remove check for empty linespec with conditional.
4080         Refactor.
4081         (decode_static_tracepoint_spec): Make argument const and update
4082         function.
4083         (create_breakpoint): Change `arg' to a struct event_location and
4084         rename.
4085         Remove `copy_arg' and `addr_start'.
4086         If EXTRA_STRING is empty, set it to NULL.
4087         Don't populate `canonical' for pending breakpoints.
4088         Pass `extra_string' to find_condition_and_thread.
4089         Clear `extra_string' if `rest' was NULL.
4090         Do not error with "garbage after location" if setting a dprintf
4091         breakpoint.
4092         Copy the location into the breakpoint instead of an address string.
4093         (break_command_1): Use string_to_event_location and pass this to
4094         create_breakpoint instead of an address string.
4095         Check against `arg_cp' for a probe linespec.
4096         (dprintf_command): Use string_to_event_location and pass this to
4097         create_breakpoint instead of an address string.
4098         Throw an exception if no format string was specified.
4099         (print_recreate_ranged_breakpoint): Use event_location_to_string
4100         instead of address strings.
4101         (break_range_command, until_break_command)
4102         (init_ada_exception_breakpoint): Use locations instead
4103         of address strings.
4104         (say_where): Print out extra_string for pending locations.
4105         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4106         the breakpoint.
4107         (base_breakpoint_create_sals_from_location): Use struct event_location
4108         instead of address string.
4109         Remove `addr_start' and `copy_arg' parameters.
4110         (base_breakpoint_decode_location): Use struct event_location instead of
4111         address string.
4112         (bkpt_re_set): Use locations instead of address strings.
4113         Use event_location_empty_p to check for unset location.
4114         (bkpt_print_recreate): Use event_location_to_string instead of
4115         an address string.
4116         Print out extra_string for pending locations.
4117         (bkpt_create_sals_from_location, bkpt_decode_location)
4118         (bkpt_probe_create_sals_from_location): Use struct event_location
4119         instead of address string.
4120         (bkpt_probe_decode_location): Use struct event_location instead of
4121         address string.
4122         (tracepoint_print_recreate): Use event_location_to_string to
4123         recreate the tracepoint.
4124         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4125         (tracepoint_probe_create_sals_from_location)
4126         (tracepoint_probe_decode_location): Use struct event_location
4127         instead of address string.
4128         (dprintf_print_recreate): Use event_location_to_string to recreate
4129         the dprintf.
4130         (dprintf_re_set): Remove check for valid/missing format string.
4131         (strace_marker_create_sals_from_location)
4132         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4133         (update_static_tracepoint): Use struct event_location instead of
4134         address string.
4135         (location_to_sals): Likewise.
4136         Pass `extra_string' to find_condition_and_thread.
4137         For newly resolved pending breakpoint locations, clear the location's
4138         string representation.
4139         Assert that the breakpoint's condition string is NULL when
4140         condition_not_parsed.
4141         (breakpoint_re_set_default, create_sals_from_location_default)
4142         (decode_location_default, trace_command, ftrace_command)
4143         (strace_command, create_tracepoint_from_upload): Use locations
4144         instead of address strings.
4145         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4146         Use struct event_location instead of address string.
4147         Update all uses.
4148         <decode_location>: Likewise.
4149         (struct breakpoint) <addr_string>: Change to struct event_location
4150         and rename `location'.
4151         <addr_string_range_end>: Change to struct event_location and rename
4152         `location_range_end'.
4153         (create_breakpoint): Use struct event_location instead of address
4154         string.
4155         * cli/cli-cmds.c: Include location.h.
4156         (edit_command, list_command): Use locations instead of address strings.
4157         * elfread.c: Include location.h.
4158         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4159         * guile/scm-breakpoint.c: Include location.h.
4160         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4161         (gdbscm_register_breakpoint): Use locations instead of address
4162         strings.
4163         * linespec.c: Include location.h.
4164         (struct ls_parser) <stream>: Change to const char *.
4165         (PARSER_STREAM): Update.
4166         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4167         keywords must be followed by whitespace.
4168         (canonicalize_linespec): Save a linespec location into `canonical'.
4169         Save a canonical linespec into `canonical'.
4170         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4171         All uses updated.
4172         Update function description.
4173         (linespec_parser_new): Initialize `parser'.
4174         Update initialization of  parsing stream.
4175         (event_location_to_sals): New function.
4176         (decode_line_full): Change `argptr' to a struct event_location and
4177         rename it `location'.
4178         Use locations instead of address strings.
4179         Call event_location_to_sals instead of parse_linespec.
4180         (decode_line_1): Likewise.
4181         (decode_line_with_current_source, decode_line_with_last_displayed)
4182         Use locations instead of address strings.
4183         (decode_objc): Likewise.
4184         Change `argptr' to const char * and rename `arg'.
4185         (destroy_linespec_result): Delete the linespec result's location
4186         instead of freeing the address string.
4187         * linespec.h (struct linespec_result) <addr_string>: Change to
4188         struct event_location and rename to ...
4189         <location>: ... this.
4190         (decode_line_1, decode_line_full): Change `argptr' to struct
4191         event_location.  All callers updated.
4192         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4193         (mi_cmd_break_insert_1): Use locations instead of address strings.
4194         Throw an error if there was "garbage" at the end of the specified
4195         linespec.
4196         * probe.c: Include location.h.
4197         (parse_probes): Change `argptr' to struct event_location.
4198         Use event locations instead of address strings.
4199         * probe.h (parse_probes): Change `argptr' to struct event_location.
4200         * python/py-breakpoint.c: Include location.h.
4201         (bppy_get_location): Constify local variable `str'.
4202         Use event_location_to_string.
4203         (bppy_init): Use locations instead of address strings.
4204         * python/py-finishbreakpoint.c: Include location.h.
4205         (bpfinishpy_init): Remove local variable `addr_str'.
4206         Use locations instead of address strings.
4207         * python/python.c: Include location.h.
4208         (gdbpy_decode_line): Use locations instead of address strings.
4209         * remote.c: Include location.h.
4210         (remote_download_tracepoint): Use locations instead of address
4211         strings.
4212         * spu-tdep.c: Include location.h.
4213         (spu_catch_start): Remove local variable `buf'.
4214         Use locations instead of address strings.
4215         * tracepoint.c: Include location.h.
4216         (scope_info): Use locations instead of address strings.
4217         (encode_source_string): Constify parameter `src'.
4218         * tracepoint.h (encode_source_string): Likewise.
4219
4220 2015-08-11  Keith Seitz  <keiths@redhat.com>
4221
4222         * Makefile.in (SFILES): Add location.c.
4223         (HFILES_NO_SRCDIR): Add location.h.
4224         (COMMON_OBS): Add location.o.
4225         * linespec.c (linespec_lex_to_end): New function.
4226         * linespec.h (linespec_lex_to_end): Declare.
4227         * location.c: New file.
4228         * location.h: New file.
4229
4230 2015-08-11  Keith Seitz  <keiths@redhat.com>
4231
4232         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4233         Renamed to create_sals_from_location.
4234         <decode_linespec>: Renamed to decode_location.
4235         Update all callers.
4236         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4237         (create_sals_from_location_default): ... this.
4238         (addr_string_to_sals): Renamed to ...
4239         (location_to_sals): ... this.
4240         (decode_linespec_default): Renamed to ...
4241         (decode_location_default): ... this.
4242         (base_breakpoint_create_sals_from_address): Renamed to ...
4243         (base_breakpoint_create_sals_from_location): ... this.
4244         (bkpt_create_sals_from_address): Renamed to ...
4245         (bkpt_create_sals_from_location): ... this.
4246         (bkpt_decode_linespec): Renamed to ...
4247         (bkpt_decode_location): ... this.
4248         (bkpt_probe_create_sals_from_address): Renamed to ...
4249         (bkpt_probe_create_sals_from_location): ... this.
4250         (tracepoint_create_sals_from_address): Renamed to ...
4251         (tracepoint_create_sals_from_location): ... this.
4252         (tracepoint_decode_linespec): Renamed to ...
4253         (tracepoint_decode_location): ... this.
4254         (tracepoint_probe_create_sals_from_address): Renamed to ...
4255         (tracepoint_probe_create_sals_from_location): ... this.
4256         (tracepoint_probe_decode_linespec): Renamed to ...
4257         (tracepoint_probe_decode_location): ... this.
4258         (strace_marker_create_sals_from_address): Renamed to ...
4259         (strace_marker_create_sals_from_location): ... this.
4260         (decode_linespec_default): Renamed to ...
4261         (decode_location_default): ... this.
4262
4263 2015-08-10  Doug Evans  <dje@google.com>
4264             Keith Seitz  <keiths@redhat.com>
4265
4266         PR gdb/17960
4267         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4268         make_file_symbol_completion_list and made static.
4269         (make_file_symbol_completion_list): New function.
4270
4271 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4272
4273         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4274         trailing new-line at end of warning message.
4275         (proceed): Add i18n marker to error messages.
4276
4277 2015-08-07  Pedro Alves  <palves@redhat.com>
4278
4279         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4280
4281 2015-08-07  Pedro Alves  <palves@redhat.com>
4282
4283         * s390-linux-tdep.c (is_non_branch_ril)
4284         (s390_displaced_step_copy_insn): New functions.
4285         (s390_displaced_step_fixup): Update comment.
4286         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4287         gdbarch_displaced_step_copy_insn hook.
4288
4289 2015-08-07  Pedro Alves  <palves@redhat.com>
4290
4291         * infrun.c (displaced_step_prepare_throw): Return -1 if
4292         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4293         comment.
4294         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4295         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4296         in file.
4297         (ppc_displaced_step_copy_insn): New function.
4298         (ppc_displaced_step_fixup): Update comment.
4299         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4300         gdbarch_displaced_step_copy_insn hook.
4301         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4302         NULL return.
4303         * gdbarch.h: Regenerate.
4304
4305 2015-08-07  Pedro Alves  <palves@redhat.com>
4306
4307         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4308         field.
4309         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4310         Return false if dispaced stepping failed before.
4311         (resume): Pass the current inferior to
4312         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4313         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4314         displaced_stepping_failed flag, and fall back to an in-line
4315         step-over.
4316
4317 2015-08-07  Pedro Alves  <palves@redhat.com>
4318
4319         * darwin-nat.c (darwin_stop): Rename to ...
4320         (darwin_interrupt): ... this.
4321         (_initialize_darwin_inferior): Adjust.
4322         * gnu-nat.c (gnu_stop): Delete.
4323         (gnu_target): Don't install gnu_stop.
4324         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4325         (inf_ptrace_interrupt): ... this.
4326         (inf_ptrace_target): Adjust.
4327         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4328         target_stop.
4329         * linux-nat (linux_nat_stop): Rename to ...
4330         (linux_nat_interrupt): ... this.
4331         (linux_nat_stop): Reimplement.
4332         (linux_nat_add_target): Install linux_nat_interrupt.
4333         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4334         (nto_handle_sigint_twice): ... this.
4335         (nto_interrupt): Rename to ...
4336         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4337         target_stop.
4338         (procfs_wait): Adjust.
4339         (procfs_stop): Rename to ...
4340         (procfs_interrupt): ... this.
4341         (init_procfs_targets): Adjust.
4342         * procfs.c (procfs_stop): Rename to ...
4343         (procfs_interrupt): ... this.
4344         (procfs_target): Adjust.
4345         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4346         (m32r_interrupt): ... this.
4347         (init_m32r_ops): Adjust.
4348         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4349         (gdbsim_interrupt_inferior): ... this.
4350         (gdbsim_stop): Rename to ...
4351         (gdbsim_interrupt): ... this.
4352         (gdbsim_cntrl_c): Adjust.
4353         (init_gdbsim_ops): Adjust.
4354         * remote.c (sync_remote_interrupt): Adjust comments.
4355         (remote_stop_as): Rename to ...
4356         (remote_interrupt_as): ... this.
4357         (remote_stop): Adjust comment.
4358         (remote_interrupt): New function.
4359         (init_remote_ops): Install remote_interrupt.
4360         * target.c (target_interrupt): New function.
4361         * target.h (struct target_ops) <to_interrupt>: New field.
4362         (target_interrupt): New declaration.
4363         * windows-nat.c (windows_stop): Rename to ...
4364         (windows_interrupt): ... this.
4365         * target-delegates.c: Regenerate.
4366
4367 2015-08-07  Pedro Alves  <palves@redhat.com>
4368
4369         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4370         threads" as alternative to "switching back to stepped thread".
4371
4372 2015-08-07  Pedro Alves  <palves@redhat.com>
4373
4374         * NEWS: Mention "maint set/show target-non-stop".
4375         * breakpoint.c (update_global_location_list): Check
4376         target_is_non_stop_p instead of non_stop.
4377         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4378         * infrun.c (show_can_use_displaced_stepping)
4379         (can_use_displaced_stepping_p, start_step_over_inferior):
4380         Likewise.
4381         (internal_resume_ptid): New function.
4382         (resume): Use it.
4383         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4384         all-stop mode but the target is always in non-stop mode, start all
4385         the other threads that are implicitly resumed too.
4386         (for_each_just_stopped_thread, fetch_inferior_event)
4387         (adjust_pc_after_break, stop_all_threads): Check
4388         target_is_non_stop_p instead of non_stop.
4389         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4390         with the target always in non-stop mode.
4391         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4392         instead of non_stop.
4393         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4394         instead of non_stop.
4395         (keep_going_stepped_thread): Use internal_resume_ptid.
4396         (stop_waiting): If in all-stop mode, and the target is in non-stop
4397         mode, stop all threads.
4398         (keep_going_pass): Likewise, when starting a new in-line step-over
4399         sequence.
4400         * linux-nat.c (get_pending_status, select_event_lwp)
4401         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4402         target_is_non_stop_p instead of non_stop.
4403         (linux_nat_always_non_stop_p): New function.
4404         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4405         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4406         * target-delegates.c: Regenerate.
4407         * target.c (target_is_non_stop_p): New function.
4408         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4409         (maint_set_target_non_stop_command)
4410         (maint_show_target_non_stop_command): New functions.
4411         (_initilize_target): Install "maint set/show target-non-stop"
4412         commands.
4413         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4414         (target_non_stop_enabled): New declaration.
4415         (target_is_non_stop_p): New declaration.
4416
4417 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4418
4419         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4420         has a pending status, return true.
4421         * gdbthread.h: Include target/waitstatus.h.
4422         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4423         stop_pc>: New fields.
4424         (struct thread_info) <resumed>: New field.
4425         (set_resumed): Declare.
4426         * infrun.c: Include "event-loop.h".
4427         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4428         (infrun_async): New function.
4429         (clear_step_over_info): Add debug output.
4430         (displaced_step_in_progress_any_inferior): New function.
4431         (displaced_step_fixup): New returns int.
4432         (start_step_over): Handle in-line step-overs too.  Assert the
4433         thread is marked resumed.
4434         (resume_cleanups): Clear the thread's resumed flag.
4435         (resume): Set the thread's resumed flag.  Return early if the
4436         thread has a pending status.  Allow stepping a breakpoint with no
4437         signal.
4438         (proceed): Adjust to check 'resumed' instead of 'executing'.
4439         (clear_proceed_status_thread): If the thread has a pending status,
4440         and that status is a finished step, discard the pending status.
4441         (clear_proceed_status): Don't clear step_over_info here.
4442         (random_pending_event_thread, do_target_wait): New functions.
4443         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4444         do_target_wait.
4445         (wait_one): New function.
4446         (THREAD_STOPPED_BY): New macro.
4447         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4448         (thread_stopped_by_hw_breakpoint): New functions.
4449         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4450         functions.
4451         (handle_inferior_event): Also call set_resumed(false) on all
4452         threads implicitly stopped by the event.
4453         (restart_threads, resumed_thread_with_pending_status): New
4454         functions.
4455         (finish_step_over): If we were doing an in-line step-over before,
4456         and no longer are after trying to start a new step-over, restart
4457         all threads.  If we have multiple threads with pending events,
4458         save the current event and go through the event loop again.
4459         (handle_signal_stop): Return early if finish_step_over returns
4460         false.
4461         <random signal>: If we get a signal while stepping over a
4462         breakpoint in-line in non-stop mode, restart all threads.  Clear
4463         step_over_info before delivering the signal.
4464         (keep_going_stepped_thread): Use internal_error instead of
4465         gdb_assert.  Mark the thread as resumed.
4466         (keep_going_pass_signal): Assert the thread isn't already resumed.
4467         If some other thread is doing an in-line step-over, defer the
4468         resume.  If we just started a new in-line step-over, stop all
4469         threads.  Don't clear step_over_info.
4470         (infrun_async_inferior_event_handler): New function.
4471         (_initialize_infrun): Create async event handler with
4472         infrun_async_inferior_event_handler as callback.
4473         (infrun_async): New declaration.
4474         * target.c (target_async): New function.
4475         * target.h (target_async): Declare macro and readd as function
4476         declaration.
4477         * target/waitstatus.h (enum target_stop_reason)
4478         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4479         * thread.c (new_thread): Clear the new waitstatus field.
4480         (set_resumed): New function.
4481
4482 2015-08-07  Pedro Alves  <palves@redhat.com>
4483
4484         * infrun.c (keep_going_stepped_thread): New function, factored out
4485         from ...
4486         (switch_back_to_stepped_thread): ... here.
4487
4488 2015-08-07  Pedro Alves  <palves@redhat.com>
4489
4490         * infrun.c (currently_stepping): Extend intro comment.
4491         * target.h (target_resume): Extend intro comment.
4492
4493 2015-08-07  Pedro Alves  <palves@redhat.com>
4494
4495         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4496         of inferior_ptid.  If the stepped thread vanished, return 0
4497         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4498         the current stop_pc in log message.  Clear trap_expected if the
4499         thread advanced.  Don't pass currently_stepping to
4500         do_target_resume.
4501
4502 2015-08-07  Pedro Alves  <palves@redhat.com>
4503
4504         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4505         * infrun.c (struct execution_control_state): Move higher up in the
4506         file.
4507         (reset_ecs): New function.
4508         (start_step_over): Now returns int.  Rewrite to use
4509         keep_going_pass_signal instead of manually starting a displaced step.
4510         (resume): Don't call set_running here.  If displaced stepping
4511         can't start now, clear trap_expected.
4512         (find_thread_needs_step_over): Delete function.
4513         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4514         If the current thread needs a step over, push it in the step-over
4515         chain.  Don't set insert breakpoints nor call resume directly
4516         here.  Instead rewrite to use start_step_over and
4517         keep_going_pass_signal.
4518         (finish_step_over): New function.
4519         (handle_signal_stop): Call finish_step_over instead of
4520         start_step_over.
4521         (switch_back_to_stepped_thread): If the event thread needs another
4522         step-over do that first.  Use start_step_over.
4523         (keep_going_pass_signal): New function, factored out from ...
4524         (keep_going): ... here.
4525         (_initialize_infrun): Comment moved here.
4526         * thread.c (set_running_thread): New function.
4527         (set_running, finish_thread_state): Use set_running_thread.
4528
4529 2015-08-07  Pedro Alves  <palves@redhat.com>
4530
4531         * gdbthread.h (struct thread_info) <step_over_prev,
4532         step_over_next>: New fields.
4533         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4534         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4535         declarations.
4536         * infrun.c (struct displaced_step_request): Delete.
4537         (struct displaced_step_inferior_state) <step_request_queue>:
4538         Delete field.
4539         (displaced_step_prepare): Assert that trap_expected is set.  Use
4540         thread_step_over_chain_enqueue.  Split starting a new displaced
4541         step to ...
4542         (start_step_over): ... this new function.
4543         (resume): Assert the thread isn't waiting for a step over already.
4544         (proceed): Assert the thread isn't waiting for a step over
4545         already.
4546         (infrun_thread_stop_requested): Adjust to remove threads from the
4547         embedded step-over chain.
4548         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4549         displaced_step_fixup.
4550         (handle_signal_stop): Call start_step_over after
4551         displaced_step_fixup.
4552         * infrun.h (step_over_queue_head): New declaration.
4553         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4554         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4555         (thread_step_over_chain_enqueue)
4556         (thread_step_over_chain_remove): New functions.
4557         (delete_thread_1): Remove thread from the step-over chain.
4558
4559 2015-08-07  Pedro Alves  <palves@redhat.com>
4560
4561         * infrun.c (thread_still_needs_step_over): Rename to ...
4562         (thread_still_needs_step_over_bp): ... this.
4563         (enum step_over_what): New.
4564         (thread_still_needs_step_over): Reimplement.
4565
4566 2015-08-07  Pedro Alves  <palves@redhat.com>
4567
4568         * remote.c (remote_wait_as): If not waiting for a stop reply,
4569         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4570         requested, don't block waiting forever.
4571
4572 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4573
4574         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4575         waitstatus pointers instead of an ecs.  Adjust.
4576         (handle_inferior_event): Adjust caller.
4577
4578 2015-08-07  Pedro Alves  <palves@redhat.com>
4579
4580         * infrun.c (handle_inferior_event): If we get
4581         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4582         mode, mark all threads of the exiting process as not-executing.
4583         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4584         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4585         exiting process, if inferior_ptid still points at a process.
4586         * thread.c (struct current_thread_cleanup) <next>: New field.
4587         (current_thread_cleanup_chain): New global.
4588         (restore_current_thread_ptid_changed): New function.
4589         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4590         current_thread_cleanup_chain list.
4591         (make_cleanup_restore_current_thread): Add the cleanup data to the
4592         current_thread_cleanup_chain list.
4593         (_initialize_thread): Install restore_current_thread_ptid_changed
4594         as thread_ptid_changed observer.
4595
4596 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4597
4598         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4599         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4600         smaller than expected.
4601
4602 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4603
4604         * stack.c (get_frame_language): Moved ...
4605         * frame.c (get_frame_language): ... to here.
4606         * language.h (get_frame_language): Declaration moved to frame.h.
4607         * frame.h: Add language.h include, for language enum.
4608         (get_frame_language): Declaration moved from language.h.
4609         * language.c: Add frame.h include.
4610         * top.c: Add frame.h include.
4611         * symtab.h (struct obj_section): Declare.
4612         (struct cmd_list_element): Declare.
4613
4614 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4615
4616         * language.c (show_language_command): Find selected frame before
4617         asking for the language of that frame.
4618         (set_language_command): Likewise.
4619         * language.h (get_frame_language): Add frame parameter.
4620         * stack.c (get_frame_language): Add frame parameter, assert
4621         parameter is not NULL, update comment and reindent.
4622         * top.c (check_frame_language_change): Pass the selected frame
4623         into get_frame_language.
4624
4625 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4626
4627         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4628         (pt_btrace_insn_flags): New.
4629         (ftrace_add_pt): Call pt_btrace_insn_flags.
4630         * btrace.h (btrace_insn_flag): New.
4631         (btrace_insn) <flags>: New.
4632         * record-btrace.c (btrace_insn_history): Print insn prefix.
4633         * NEWS: Announce it.
4634
4635 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4636
4637         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4638         * configure: Regenerate.
4639
4640 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4641
4642         * Makefile.in (LIBICONV): Define.
4643         (CLIBS): Add LIBICONV.
4644         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4645         * configure: Regenerate.
4646
4647 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4648             Pedro Alves  <palves@redhat.com>
4649
4650         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4651         (arm_set_abi): Likewise.
4652         * ax-general.c (ax_print): Likewise.
4653         * c-exp.y (exp : string_exp): Likewise.
4654         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4655         (do_compile_dwarf_expr_to_c): Likewise.
4656         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4657         Likewise.
4658         * dwarf2expr.c (execute_stack_op): Likewise.
4659         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4660         (disassemble_dwarf_expression): Likewise.
4661         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4662         (read_array_order): Likewise.
4663         (abbrev_table_read_table): Likewise.
4664         (read_attribute_value): Likewise.
4665         (skip_unknown_opcode): Likewise.
4666         (dwarf_decode_macro_bytes): Likewise.
4667         (dwarf_decode_macros): Likewise.
4668         * eval.c (value_f90_subarray): Likewise.
4669         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4670         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4671         * infrun.c (handle_command): Likewise.
4672         * memory-map.c (memory_map_start_memory): Likewise.
4673         * osabi.c (set_osabi): Likewise.
4674         * parse.c (operator_length_standard): Likewise.
4675         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4676         single return point.
4677         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4678         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4679         (gdbpy_lookup_global_symbol): Likewise.
4680         * record-full.c (record_full_restore): Likewise.
4681         * regcache.c (regcache_register_status): Likewise.
4682         (regcache_raw_read): Likewise.
4683         (regcache_cooked_read): Likewise.
4684         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4685         * symtab.c (initialize_ordinary_address_classes): Likewise.
4686         * target-debug.h (target_debug_print_signals): Likewise.
4687         * utils.c (do_restore_current_language): Likewise.
4688
4689 2015-08-06  Clem Dickey  <clemd@acm.org>
4690
4691         PR python/17136
4692         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4693
4694 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4695
4696         * complaints.c (enum complaint_series): Add newlines and remove
4697         out of date comment.
4698         (struct complaints) <series>: Change type to enum
4699         complaint_series and remove out of date comment.
4700         (symfile_complaint_hook): Use equivalent enum value
4701         ISOLATED_MESSAGE instead of 0.
4702
4703 2015-08-06  Pedro Alves  <palves@redhat.com>
4704
4705         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4706         returned > 0.
4707
4708 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
4709
4710         * common/agent.c (symbol_list) <required>: Remove.
4711
4712 2015-08-06  Pedro Alves  <palves@redhat.com>
4713
4714         * target/waitstatus.h (enum target_stop_reason)
4715         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4716
4717 2015-08-05  Pedro Alves  <palves@redhat.com>
4718             Joel Brobecker  <brobecker@adacore.com>
4719
4720         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4721         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4722         case where BS->STOP is not set.
4723
4724 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
4725
4726         * nat/gdb_thread_db.h: Add copyright header.
4727         Protect against multiple inclusion.
4728
4729 2015-08-05  Yao Qi  <yao.qi@linaro.org>
4730
4731         * aarch64-linux-nat.c (get_thread_id): Remove.
4732         (debug_reg_change_callback): Call ptid_get_lwp instead of
4733         get_thread_id.
4734         (fetch_gregs_from_thread): Likewise.
4735         (store_gregs_to_thread): Likewise.
4736         (fetch_fpregs_from_thread): Likewise.
4737         (store_fpregs_to_thread): Likewise.
4738         (aarch64_linux_get_debug_reg_capacity): Likewise.
4739         * arm-linux-nat.c (get_thread_id): Remove.
4740         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4741         * xtensa-linux-nat.c (get_thread_id): Remove.
4742         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4743         * arm-linux-nat.c (get_thread_id): Remove.
4744         (GET_THREAD_ID): Remove.
4745         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4746         (store_fpregs, fetch_regs, store_regs): Likewise.
4747         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4748         (fetch_vfp_regs, store_vfp_regs): Likewise.
4749         (arm_linux_read_description): Likewise.
4750         (arm_linux_get_hwbp_cap): Likewise.
4751         * xtensa-linux-nat.c (get_thread_id): Remove.
4752         (GET_THREAD_ID): Remove.
4753         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4754         GET_THREAD_ID.
4755
4756 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
4757
4758         * python/py-linetable.c: Fix case of Linetable to LineTable
4759         in docstrings and code comments.
4760         * python/py-symtab.c: Same.
4761
4762 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4763
4764         * infcmd.c (signal_command): Call do_cleanups for args_chain.
4765
4766 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4767
4768         PR gdb/18767
4769         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4770         use.
4771
4772 2015-08-04  Pedro Alves  <palves@redhat.com>
4773
4774         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4775         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4776         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4777         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4778         (td_thr_validate_ftype, td_thr_get_info_ftype)
4779         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4780         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4781         New typedefs.
4782         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4783         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4784         local macros and use them instead of verbose_dlsym and dlsym
4785         calls.
4786
4787 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
4788
4789         * nios2-tdep.h: Include opcode/nios2.h here.
4790         (NIOS2_CDX_OPCODE_SIZE): New.
4791         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4792         * nios2-tdep.c: Don't include opcode/nios2.h here.
4793         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4794         4-byte read fails.
4795         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4796         (nios2_match_addi, nios2_match_orhi): Likewise.
4797         (nios2_match_stw, nios2_match_ldw): Likewise.
4798         (nios2_match_rdctl): Likewise.
4799         (nios2_match_stwm, nios2_match_ldwm): New.
4800         (nios2_match_branch): Add cases for R2 encodings.
4801         (nios2_match_jmpi, nios2_match_calli): Likewise.
4802         (nios2_match_jmpr, nios2_match_callr): Likewise.
4803         (nios2_match_break, nios2_match_trap): Likewise.
4804         (nios2_in_epilogue_p): Add R2 support.
4805         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
4806         prologues.
4807         (nios2_breakpoint_from_pc): Handle R2 instructions.
4808         (nios2_get_next_pc): Likewise.  Adjust call to
4809         tdep->syscall_next_pc.
4810         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4811         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
4812         instruction field macros instead of literal hex values.
4813         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4814         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4815         Use size field from OP instead of assuming all instructions
4816         are the same size.
4817         (nios2_linux_init_abi): Register appropriate unwinder for mach.
4818
4819 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
4820
4821         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4822         variable warning with some compilers.
4823
4824 2015-08-03  Yao Qi  <yao.qi@linaro.org>
4825
4826         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4827         in comment.  Replace "rw" with "type".
4828         (arm_linux_remove_watchpoint): Change type of "rw" to
4829         "enum target_hw_bp_type".
4830
4831 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
4832
4833         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4834         lookup_symbol.
4835         * ft32-tdep.c (ft32_skip_prologue): Likewise.
4836         * moxie-tdep.c (moxie_skip_prologue): Likewise.
4837         * mt-tdep.c (mt_skip_prologue): Likewise.
4838         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4839
4840 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4841
4842         * ada-exp.y (write_object_renaming): Replace struct
4843         ada_symbol_info with struct block_symbol.  Update field
4844         references accordingly.
4845         (block_lookup, select_possible_type_sym): Likewise.
4846         (find_primitive_type): Likewise.  Also update call to
4847         ada_lookup_symbol to extract the symbol itself.
4848         (write_var_or_type, write_name_assoc): Likewise.
4849         * ada-lang.h (struct ada_symbol_info): Remove.
4850         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4851         struct block_symbol.
4852         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4853         (ada_lookup_symbol): Return struct block_symbol instead of a
4854         mere symbol.
4855         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4856         with struct block_symbol.
4857         (resolve_subexp, ada_resolve_function, sort_choices,
4858         user_select_syms, is_nonfunction, add_defn_to_vec,
4859         num_defns_collected, defns_collected,
4860         symbols_are_identical_enums, remove_extra_symbols,
4861         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4862         ada_lookup_symbol_list, ada_iterate_over_symbols,
4863         ada_lookup_encoded_symbol, get_var_value): Likewise.
4864         (ada_lookup_symbol): Return a block_symbol instead of a mere
4865         symbol.  Replace struct ada_symbol_info with struct
4866         block_symbol.
4867         (ada_lookup_symbol_nonlocal): Likewise.
4868         (standard_lookup): Make block passing explicit through
4869         lookup_symbol_in_language.
4870         * ada-tasks.c (get_tcb_types_info): Update the calls to
4871         lookup_symbol_in_language to extract the mere symbol out of the
4872         returned value.
4873         (ada_tasks_inferior_data_sniffer): Likewise.
4874         * ax-gdb.c (gen_static_field): Likewise for the call to
4875         lookup_symbol.
4876         (gen_maybe_namespace_elt): Deal with struct block_symbol from
4877         lookup functions.
4878         (gen_expr): Likewise.
4879         * c-exp.y: Likewise.  Remove uses of block_found.
4880         (lex_one_token, classify_inner_name, c_print_token): Likewise.
4881         (classify_name): Likewise.  Rename the "sym" local variable to
4882         "bsym".
4883         * c-valprint.c (print_unpacked_pointer): Likewise.
4884         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4885         "sym" parameter from struct symbol * to struct block_symbol.
4886         Use it to remove uses of block_found.  Deal with struct
4887         block_symbol from lookup functions.
4888         (gcc_convert_symbol): Likewise.  Update the call to
4889         convert_symbol_sym.
4890         * compile/compile-object-load.c (compile_object_load): Deal with
4891         struct block_symbol from lookup functions.
4892         * cp-namespace.c (cp_lookup_nested_symbol_1,
4893         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4894         cp_search_static_and_baseclasses,
4895         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4896         cp_lookup_symbol_imports_or_template,
4897         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4898         lookup_namespace_scope, cp_lookup_nonlocal,
4899         find_symbol_in_baseclass): Return struct block_symbol instead of
4900         mere symbols and deal with struct block_symbol from lookup
4901         functions.
4902         * cp-support.c (inspect_type, replace_typedefs,
4903         cp_lookup_rtti_type): Deal with struct block_symbol from
4904         lookup functions.
4905         * cp-support.h (cp_lookup_symbol_nonlocal,
4906         cp_lookup_symbol_from_namespace,
4907         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4908         Return struct block_symbol instead of mere symbols.
4909         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4910         push_module_name):
4911         Deal with struct block_symbol from lookup functions.  Remove
4912         uses of block_found.
4913         * eval.c (evaluate_subexp_standard): Update call to
4914         cp_lookup_symbol_namespace.
4915         * f-exp.y: Deal with struct block_symbol from lookup functions.
4916         Remove uses of block_found.
4917         (yylex): Likewise.
4918         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4919         lookup_enum, lookup_template_type, check_typedef): Deal with
4920         struct block_symbol from lookup functions.
4921         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4922         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4923         (gdbscm_lookup_global_symbol): Likewise.
4924         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4925         * go-exp.y: Likewise.  Remove uses of block_found.
4926         (package_name_p, classify_packaged_name, classify_name):
4927         Likewise.
4928         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4929         * jv-exp.y (push_variable): Likewise.
4930         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4931         * language.c (language_bool_type): Likewise.
4932         * language.h (struct language_defn): Update
4933         la_lookup_symbol_nonlocal to return a struct block_symbol rather
4934         than a mere symbol.
4935         * linespec.c (find_label_symbols): Deal with struct block_symbol
4936         from lookup functions.
4937         * m2-exp.y: Likewise.  Remove uses of block_found.
4938         (yylex): Likewise.
4939         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4940         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4941         * p-exp.y: Likewise.  Remove uses of block_found.
4942         (yylex): Likewise.
4943         * p-valprint.c (pascal_val_print): Likewise.
4944         * parse.c (write_dollar_variable): Likewise.  Remove uses of
4945         block_found.
4946         * parser-defs.h (struct symtoken): Turn the SYM field into a
4947         struct block_symbol.
4948         * printcmd.c (address_info): Deal with struct block_symbol from
4949         lookup functions.
4950         * python/py-frame.c (frapy_read_var): Likewise.
4951         * python/py-symbol.c (gdbpy_lookup_symbol,
4952         gdbpy_lookup_global_symbol): Likewise.
4953         * skip.c (skip_function_command): Likewise.
4954         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4955         block_symbol instead of a mere symbol.
4956         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4957         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4958         * solib.c (solib_global_lookup): Likewise.
4959         * solist.h (solib_global_lookup): Likewise.
4960         (struct target_so_ops): Update lookup_lib_global_symbol to
4961         return a struct block_symbol rather than a mere symbol.
4962         * source.c (select_source_symtab): Deal with struct block_symbol
4963         from lookup functions.
4964         * stack.c (print_frame_args, iterate_over_block_arg_vars):
4965         Likewise.
4966         * symfile.c (set_initial_language): Likewise.
4967         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4968         block_symbol.
4969         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4970         (struct symbol_cache_slot): Turn the FOUND field into a struct
4971         block_symbol.
4972         (block_found): Remove.
4973         (eq_symbol_entry): Update to deal with struct block_symbol in
4974         cache slots.
4975         (symbol_cache_lookup): Return a struct block_symbol rather than
4976         a mere symbol.
4977         (symbol_cache_mark_found): Add a BLOCK parameter to fill
4978         appropriately the cache slots.  Update callers.
4979         (symbol_cache_dump): Update cache slots handling to the type
4980         change.
4981         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4982         lookup_symbol_aux, lookup_local_symbol,
4983         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4984         lookup_symbol_in_objfile_symtabs,
4985         lookup_symbol_in_objfile_from_linkage_name,
4986         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4987         lookup_symbol_in_static_block, lookup_static_symbol,
4988         lookup_global_symbol):
4989         Return a struct block_symbol rather than a mere symbol.  Deal
4990         with struct block_symbol from other lookup functions.  Remove
4991         uses of block_found.
4992         (lookup_symbol_in_block): Remove uses of block_found.
4993         (struct global_sym_lookup_data): Turn the RESULT field into a
4994         struct block_symbol.
4995         (lookup_symbol_global_iterator_cb): Update references to the
4996         RESULT field.
4997         (search_symbols): Deal with struct block_symbol from lookup
4998         functions.
4999         * symtab.h (struct block_symbol): New structure.
5000         (block_found): Remove.
5001         (lookup_symbol_in_language, lookup_symbol,
5002         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5003         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5004         lookup_global_symbol_from_objfile): Return a struct block_symbol
5005         rather than just a mere symbol.  Update comments to remove
5006         mentions of block_found.
5007         * valops.c (find_function_in_inferior,
5008         value_struct_elt_for_reference, value_maybe_namespace_elt,
5009         value_of_this):  Deal with struct block_symbol from lookup
5010         functions.
5011         * value.c (value_static_field, value_fn_field): Likewise.
5012
5013 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5014
5015         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5016         instead of integer.
5017
5018 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5019             Pedro Alves  <palves@redhat.com>
5020
5021         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5022         type or value instead of integer.
5023         (aarch64_linux_insert_watchpoint): Likewise.
5024         (aarch64_linux_remove_watchpoint): Likewise.
5025         * ada-lang.c (ada_op_print_tab): Likewise.
5026         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5027         (amd64_linux_syscall_record_common): Likewise.
5028         * arch-utils.c (target_byte_order_user): Likewise.
5029         (default_byte_order): Likewise.
5030         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5031         (arm_linux_get_hwbp_type): Likewise.
5032         (arm_linux_hw_watchpoint_initialize): Likewise.
5033         (arm_linux_insert_watchpoint): Likewise.
5034         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5035         (arm_linux_syscall_record): Likewise.
5036         * breakpoint.c (update_watchpoint): Likewise.
5037         (breakpoint_here_p): Likewise.
5038         (bpstat_print): Likewise.
5039         (enable_breakpoint_disp): Likewise.
5040         * c-lang.c (c_op_print_tab): Likewise.
5041         * cli/cli-decode.c (add_info_alias): Likewise.
5042         * d-lang.c (d_op_print_tab): Likewise.
5043         * eval.c (evaluate_subexp_standard): Likewise.
5044         * f-exp.y (dot_ops): Likewise.
5045         (f77_keywords): Likewise.
5046         * f-lang.c (f_op_print_tab): Likewise.
5047         * go-lang.c (go_op_print_tab): Likewise.
5048         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5049         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5050         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5051         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5052         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5053         (struct scm_from_stringn_data): Likewise.
5054         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5055         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5056         (ia64_linux_remove_watchpoint): Likewise.
5057         (ia64_linux_can_use_hw_breakpoint): Likewise.
5058         * infrun.c (print_stop_event): Likewise.
5059         * jv-lang.c (java_op_print_tab): Likewise.
5060         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5061         * linux-nat.h (struct lwp_info): Likewise.
5062         * linux-thread-db.c (enable_thread_event): Likewise.
5063         * m2-lang.c (m2_op_print_tab): Likewise.
5064         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5065         (mi_cmd_stack_list_variables): Likewise.
5066         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5067         * mi/mi-out.c (mi_table_begin): Likewise.
5068         (mi_table_header): Likewise.
5069         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5070         (mips_linux_insert_watchpoint): Likewise.
5071         (mips_linux_remove_watchpoint): Likewise.
5072         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5073         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5074         (mips_linux_watch_type_to_irw): Likewise.
5075         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5076         (procfs_insert_hw_watchpoint): Likewise.
5077         (procfs_remove_hw_watchpoint): Likewise.
5078         (procfs_hw_watchpoint): Likewise.
5079         (procfs_can_use_hw_breakpoint): Likewise.
5080         (procfs_remove_hw_watchpoint): Likewise.
5081         (procfs_insert_hw_watchpoint): Likewise.
5082         * p-lang.c (pascal_op_print_tab): Likewise.
5083         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5084         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5085         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5086         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5087         (procfs_insert_watchpoint): Likewise.
5088         (procfs_remove_watchpoint): Likewise.
5089         * psymtab.c (recursively_search_psymtabs): Likewise.
5090         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5091         (m32r_insert_watchpoint): Likewise.
5092         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5093         (mips_insert_watchpoint): Likewise.
5094         (mips_remove_watchpoint): Likewise.
5095         * remote.c (watchpoint_to_Z_packet): Likewise.
5096         (remote_insert_watchpoint): Likewise.
5097         (remote_remove_watchpoint): Likewise.
5098         (remote_check_watch_resources): Likewise.
5099         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5100         (s390_remove_watchpoint): Likewise.
5101         (s390_can_use_hw_breakpoint): Likewise.
5102         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5103         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5104         * target.h (struct target_ops): Likewise.
5105         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5106         * ui-out.c (struct ui_out_hdr): Likewise.
5107         (append_header_to_list): Likewise.
5108         (get_next_header): Likewise.
5109         (verify_field): Likewise.
5110         (ui_out_begin): Likewise.
5111         (ui_out_field_int): Likewise.
5112         (ui_out_field_fmt_int): Likewise.
5113         (ui_out_field_skip): Likewise.
5114         (ui_out_field_string): Likewise.
5115         (ui_out_field_fmt): Likewise.
5116         * varobj.c (new_variable): Likewise.
5117         * x86-nat.c (x86_insert_watchpoint): Likewise.
5118         (x86_remove_watchpoint): Likewise.
5119         (x86_can_use_hw_breakpoint): Likewise.
5120         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5121         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5122         previously anonymous enumeration type..
5123         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5124         value.
5125         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5126         (target_debug_print_enum_bptype): New.
5127         * target-delegates.c: Regenerate.
5128
5129 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5130
5131         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5132         already says and disallow non-stack memory writes in the prologue.
5133
5134 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5135
5136         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5137         reflect how current GCC emits stack overflow checks.  Match
5138         both trap and break instructions for backward compatbility.
5139         Disallow other trap and break instructions in the prologue.
5140
5141 2015-07-30  Pedro Alves  <palves@redhat.com>
5142
5143         PR threads/18600
5144         * linux-nat.c (wait_lwp): Report to the core when thread group
5145         leader exits.
5146
5147 2015-07-30  Pedro Alves  <palves@redhat.com>
5148             Simon Marchi  <simon.marchi@ericsson.com>
5149
5150         PR threads/18600
5151         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5152         mark the new thread as resumed.  Remove STOPPING parameter.
5153         (wait_lwp): Adjust call to linux_handle_extended_wait.
5154         (linux_nat_filter_event): Adjust call to
5155         linux_handle_extended_wait.
5156         (resume_stopped_resumed_lwps): Add debug output.
5157
5158 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5159
5160         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5161         isize argument.
5162         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5163         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5164         gdbarch_fast_tracepoint_valid_at.
5165         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5166         * gdbarch.h: Regenerate.
5167         * gdbarch.c: Regenerate.
5168         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5169         argument.  Do not set it.
5170         * remote.c (remote_download_tracepoint): Adjust call to
5171         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5172         the instruction length.
5173
5174 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5175
5176         * arm-tdep.h (enum gdb_regnum): Move it to ...
5177         * arch/arm.h: ... here.  New file.
5178         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5179
5180 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5181
5182         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5183         Change its type to int *.
5184         (decode_br): Rename link argument to is_blr.  Change its type to
5185         int *.
5186         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5187         int *.
5188         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5189         int *.  Set is_tbnz to either 1 or 0.
5190         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5191         new variables is_cbnz and is_tbnz.  Adjust call to
5192         aarch64_decode_cb and aarch64_decode_tb.
5193
5194 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5195
5196         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5197         parameter.
5198         (mips_linux_new_thread): Likewise.
5199         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5200
5201 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5202
5203         * top.c: Include "tui/tui.h".
5204         (undo_terminal_modifications_before_exit): New static function.
5205         (quit_force): Use it.
5206
5207 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5208
5209         * target.c (terminal_state): Initialize to terminal_is_ours.
5210
5211 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5212
5213         PR record/18691
5214         * dcache.c (dcache_read_memory_partial): Call
5215         raw_memory_xfer_partial.
5216         * target.c (raw_memory_xfer_partial): Make it non-static.
5217         * target.h (raw_memory_xfer_partial): Declare.
5218
5219 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5220
5221         * c-valprint.c (c_val_print_array): Consider addressable memory
5222         unit size.
5223         (c_val_print_ptr): Likewise.
5224         (c_val_print_int): Likewise.
5225         * findvar.c (read_frame_register_value): Likewise.
5226         * valarith.c (find_size_for_pointer_math): Likewise.
5227         (value_ptrdiff): Likewise.
5228         (value_subscripted_rvalue): Likewise.
5229         * valops.c (read_value_memory): Likewise (and rename variables).
5230         (value_assign): Likewise.
5231         (value_repeat): Likewise.
5232         (value_array): Likewise.
5233         (value_slice): Likewise.
5234         * valprint.c (generic_val_print_ptr): Likewise.
5235         (generic_val_print_enum): Likewise.
5236         (generic_val_print_bool): Likewise.
5237         (generic_val_print_int): Likewise.
5238         (generic_val_print_char): Likewise.
5239         (generic_val_print_float): Likewise.
5240         (generic_val_print_decfloat): Likewise.
5241         (generic_val_print_complex): Likewise.
5242         (val_print_scalar_formatted): Likewise.
5243         (val_print_array_elements): Likewise.
5244         * value.c (set_value_parent): Likewise.
5245         (value_contents_copy_raw): Likewise.
5246         (set_internalvar_component): Likewise.
5247         (value_primitive_field): Likewise.
5248         (value_fetch_lazy): Likewise.
5249         * value.h (read_value_memory): Update comment.
5250
5251 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5252
5253         * value.c (get_value_arch): New function.
5254         * value.h (get_value_arch): New declaration.
5255
5256 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5257
5258         * value.c (struct value): Update comments.
5259
5260 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5261
5262         * gdbtypes.c (type_length_units): New function.
5263         * gdbtypes.h (type_length_units): New declaration.
5264         (struct type) <length>: Update comment.
5265
5266 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5267
5268         * valprint.c (generic_val_print): Factor out complex
5269         printing code to ...
5270         (generic_val_print_complex): ... this new function.
5271
5272 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5273
5274         * valprint.c (generic_val_print): Factor out decfloat
5275         printing code to ...
5276         (generic_val_print_decfloat): ... this new function.
5277
5278 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5279
5280         * valprint.c (generic_val_print): Factor out float
5281         printing code to ...
5282         (generic_val_print_float): ... this new function.
5283
5284 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5285
5286         * valprint.c (generic_val_print): Factor out char
5287         printing code to ...
5288         (generic_val_print_char): ... this new function.
5289
5290 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5291
5292         * valprint.c (generic_val_print): Factor out integer
5293         printing code to ...
5294         (generic_val_print_int): ... this new function.
5295
5296 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5297
5298         * valprint.c (generic_val_print): Factor out bool
5299         printing code to ...
5300         (generic_val_print_bool): ... this new function.
5301
5302 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5303
5304         * valprint.c (generic_val_print): Factor out function/method
5305         printing code to ...
5306         (generic_val_print_func): ... this new function.
5307
5308 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5309
5310         * valprint.c (generic_val_print): Factor out flags
5311         printing code to ...
5312         (generic_val_print_flags): ... this new function.
5313
5314 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5315
5316         * valprint.c (generic_val_print): Factor out enum
5317         printing code to ...
5318         (generic_val_print_enum): ... this new function.
5319
5320 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5321
5322         * valprint.c (generic_val_print): Factor out reference
5323         printing code to ...
5324         (generic_val_print_ref): ... this new function.
5325
5326 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5327
5328         * valprint.c (generic_val_print): Factor out memberptr
5329         printing code to ...
5330         (generic_val_print_memberptr): ... this new function.
5331
5332 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5333
5334         * valprint.c (generic_val_print): Factor out pointer
5335         printing code to ...
5336         (generic_val_print_ptr): ... this new function.
5337
5338 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5339
5340         * valprint.c (generic_val_print): Factor out array
5341         printing code to ...
5342         (generic_val_print_array): ... this new function.
5343
5344 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5345
5346         * valprint.c (generic_val_print): Factor out
5347         print_unpacked_pointer code to ...
5348         (print_unpacked_pointer): ... this new function.
5349
5350 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5351
5352         * event-top.c (handle_sigterm): Don't inspect
5353         target_can_async_p.  Always set the quit flag and always mark
5354         the async signal handler.
5355
5356 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5357
5358         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5359
5360 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5361
5362         * remote.c (read_ptid): Return null_ptid when no thread id
5363         is found.
5364         (remote_current_thread): Add log warning for malformed
5365         qC reply.
5366         (remote_start_remote): Add log warning when current thread
5367         not found.
5368
5369 2015-07-24  Pedro Alves  <palves@redhat.com>
5370
5371         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5372         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5373         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5374
5375 2015-07-24  Pedro Alves  <palves@redhat.com>
5376
5377         PR gdb/18717
5378         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5379         is resumed, and extend the debug log.
5380
5381 2015-07-24  Pedro Alves  <palves@redhat.com>
5382
5383         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5384
5385 2015-07-24  Pedro Alves  <palves@redhat.com>
5386
5387         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5388         sys/ptrace.h.
5389         * alpha-linux-nat.c: Likewise.
5390         * amd64-linux-nat.c: Likewise.
5391         * arm-linux-nat.c: Likewise.
5392         * hppa-linux-nat.c: Likewise.
5393         * i386-linux-nat.c: Likewise.
5394         * ia64-linux-nat.c: Likewise.
5395         * linux-fork.c: Likewise.
5396         * linux-nat.c: Likewise.
5397         * m32r-linux-nat.c: Likewise.
5398         * m68klinux-nat.c: Likewise.
5399         * mips-linux-nat.c: Likewise.
5400         * nat/linux-btrace.c: Likewise.
5401         * nat/linux-ptrace.c: Likewise.
5402         * nat/linux-ptrace.h
5403         * nat/mips-linux-watch.c: Likewise.
5404         * nat/x86-linux-dregs.c: Likewise.
5405         * ppc-linux-nat.c: Likewise.
5406         * s390-linux-nat.c: Likewise.
5407         * spu-linux-nat.c: Likewise.
5408         * tilegx-linux-nat.c: Likewise.
5409         * x86-linux-nat.c: Likewise.
5410         * xtensa-linux-nat.c: Likewise.
5411
5412 2015-07-24  Pedro Alves  <palves@redhat.com>
5413
5414         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5415         __ptrace_request as first parameter type instead of int.
5416         (PTRACE_TYPE_ARG1): Define.
5417         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5418         that casts first argument to PTRACE_TYPE_ARG1.
5419         * config.in: Regenerate.
5420         * configure: Regenerate.
5421
5422 2015-07-24  Pedro Alves  <palves@redhat.com>
5423
5424         * gdb_ptrace.h: Move ...
5425         * nat/gdb_ptrace.h: ... here.
5426         * inf-ptrace.c: Adjust.
5427
5428 2015-07-24  Pedro Alves  <palves@redhat.com>
5429
5430         * acinclude.m4: Include ptrace.m4.
5431         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5432         * ptrace.m4: ... to this new file.
5433
5434 2015-07-23  Doug Evans  <dje@google.com>
5435
5436         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5437         (load_cu): Handle dummy CUs.
5438         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5439         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5440
5441 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5442
5443         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5444         documentation to say that it returns a list rather than
5445         a FrozenSet.
5446         (linetable_object_methods): Update the docstring of the
5447         "source_line" entry.
5448
5449 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5450
5451         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5452         type to the recursive call instead of the original (maybe
5453         TYPE_CODE_TYPEDEF) type.
5454
5455 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5456
5457         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5458         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5459         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5460
5461 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5462
5463         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5464         Move it to nat/aarch64-linux-hw-point.c.
5465         (aarch64_linux_child_post_startup_inferior): Update.
5466         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5467         New function.
5468         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5469         Declare it.
5470
5471 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5472
5473         * common/btrace-common.c (btrace_data_append): Change case label.
5474
5475 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5476
5477         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5478         Re-indent the code.
5479         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5480         "unsigned long long".
5481
5482 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5483
5484         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5485         to be set for SEC_ALLOC sections too.
5486
5487 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5488
5489         * Makefile.in (HFILES_NO_SRCDIR): Add
5490         nat/aarch64-linux-hw-point.h.
5491         (aarch64-linux-hw-point.o): New rule.
5492         * nat/aarch64-linux-hw-point.h: New file.
5493         * nat/aarch64-linux-hw-point.c: New file.
5494         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5495         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5496         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5497         (AARCH64_HWP_ALIGNMENT): Likewise.
5498         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5499         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5500         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5501         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5502         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5503         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5504         (struct aarch64_debug_reg_state): Likewise.
5505         (struct arch_lwp_info): Likewise.
5506         (aarch64_linux_set_debug_regs): Likewise.
5507         (aarch64_notify_debug_reg_change): Remove static.
5508         (aarch64_align_watchpoint): Likewise.
5509         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5510         (aarch64_watchpoint_length): Likewise.
5511         (aarch64_point_encode_ctrl_reg): Likewise
5512         (aarch64_point_is_aligned): Likewise.
5513         (aarch64_dr_state_insert_one_point): Likewise.
5514         (aarch64_dr_state_remove_one_point): Likewise.
5515         (aarch64_handle_breakpoint): Likewise.
5516         (aarch64_handle_aligned_watchpoint): Likewise.
5517         (aarch64_handle_unaligned_watchpoint): Likewise.
5518         (aarch64_handle_watchpoint): Likewise.
5519         * config/aarch64/linux.mh (NAT_FILE): Add
5520         aarch64-linux-hw-point.o.
5521
5522 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5523
5524         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5525         state and don't call aarch64_get_debug_reg_state.  All callers
5526         update.
5527         (aarch64_linux_insert_hw_breakpoint): Call
5528         aarch64_get_debug_reg_state earlier.
5529         (aarch64_linux_remove_hw_breakpoint): Likewise.
5530         (aarch64_handle_aligned_watchpoint): Add argument state and
5531         don't call aarch64_get_debug_reg_state.  All callers update.
5532         (aarch64_handle_unaligned_watchpoint): Likewise.
5533         (aarch64_handle_watchpoint): Add argument state.
5534         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5535         earlier.
5536         (aarch64_linux_remove_watchpoint): Likewise.
5537
5538 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5539
5540         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5541         debug_printf.
5542         (aarch64_handle_unaligned_watchpoint): Likewise.
5543
5544 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5545
5546         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5547         argument type's type to 'enum target_hw_bp_type'.
5548         (aarch64_dr_state_remove_one_point): Likewise.
5549         (aarch64_handle_breakpoint): Likewise.
5550         (aarch64_linux_insert_hw_breakpoint): Likewise.
5551         (aarch64_linux_remove_hw_breakpoint): Likewise.
5552         (aarch64_handle_aligned_watchpoint): Likewise.
5553
5554 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5555
5556         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5557         ptid_get_pid instead of get_thread_id.
5558
5559 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5560
5561         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5562         (add_current_inferior_and_thread): Don't initialise ptid.
5563
5564 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5565
5566         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5567         unavailable if invalid.
5568
5569 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5570
5571         Revert the previous 6 commits:
5572         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5573         Move gdb_regex* to common/
5574         Prepare linux_find_memory_regions_full & co. for move
5575         Move linux_find_memory_regions_full & co.
5576         gdbserver build-id attribute generator
5577         Validate symbol file using build-id
5578
5579 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5580             Jan Kratochvil  <jan.kratochvil@redhat.com>
5581
5582         Validate symbol file using build-id.
5583         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5584         and 'show validate-build-id'.  Add build-id attribute.
5585         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5586         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5587         * solib-frv.c (_initialize_frv_solib): Ditto.
5588         * solib-spu.c (set_spu_solib_ops): Ditto.
5589         * solib-svr4.c: Include rsp-low.h.
5590         (NOTE_GNU_BUILD_ID_NAME): New define.
5591         (svr4_validate): New function.
5592         (svr4_copy_library_list): Duplicate field build_id.
5593         (library_list_start_library): Parse 'build-id' attribute.
5594         (svr4_library_attributes): Add 'build-id' attribute.
5595         (_initialize_svr4_solib): Assign validate value.
5596         * solib-target.c (solib.h): Include.
5597         (_initialize_solib_target): Assign validate value.
5598         * solib.c (validate_build_id, show_validate_build_id): New.
5599         (solib_map_sections): Use ops->validate.
5600         (clear_so): Free build_id.
5601         (default_solib_validate): New function.
5602         (_initialize_solib): Add "validate-build-id".
5603         * solib.h (default_solib_validate): New declaration.
5604         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5605         (target_so_ops): New field 'validate'.
5606
5607 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5608             Jan Kratochvil  <jan.kratochvil@redhat.com>
5609
5610         gdbserver build-id attribute generator.
5611         * features/library-list-svr4.dtd (library-list-svr4): New
5612         'build-id' attribute.
5613
5614 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5615             Jan Kratochvil  <jan.kratochvil@redhat.com>
5616
5617         Move linux_find_memory_regions_full & co.
5618         * linux-tdep.c (nat/linux-maps.h): Include.
5619         (gdb_regex.h): Remove the include.
5620         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5621         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5622         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5623         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5624         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5625         and target/target.h.
5626         (struct smaps_vmflags, read_mapping, decode_vmflags)
5627         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5628         (linux_find_memory_regions_full): Move from linux-tdep.c.
5629         * nat/linux-maps.h (read_mapping): New declaration.
5630         (linux_find_memory_region_ftype, enum filterflags): Moved from
5631         linux-tdep.c.
5632         (linux_find_memory_regions_full): New declaration.
5633         * target.c (target/target-utils.h): Include.
5634         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5635         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5636         definitions to target/target-utils.c.
5637         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5638         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5639         from target.c.
5640         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5641         (read_alloc): New declaration.
5642         (read_stralloc_func_ftype): New typedef.
5643         (read_stralloc): New declaration.
5644         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5645
5646 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5647             Jan Kratochvil  <jan.kratochvil@redhat.com>
5648
5649         Prepare linux_find_memory_regions_full & co. for move.
5650         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5651         (linux_find_memory_regions_full): Change signature and prepare
5652         for moving to linux-maps.
5653         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5654         (linux_find_memory_regions_thunk): New.
5655         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5656         (linux_find_memory_regions_gdb): New.
5657         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5658         (linux_make_mappings_corefile_notes): Use
5659         linux_find_memory_regions_gdb.
5660         * target.c (read_alloc_pread_ftype): New typedef.
5661         (target_fileio_read_alloc_1_pread): New function.
5662         (read_alloc): Refactor from target_fileio_read_alloc_1.
5663         (read_stralloc_func_ftype): New typedef.
5664         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5665         (read_stralloc): Refactored from target_fileio_read_stralloc.
5666         (target_fileio_read_stralloc): New implementation, use read_stralloc.
5667
5668 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5669
5670         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5671         common/gdb_regex.h.
5672         (COMMON_OBS): Add gdb_regex.o.
5673         (gdb_regex.o): New.
5674         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5675         --without-included-regex and USE_INCLUDED_REGEX.
5676         * common/gdb_regex.c: New file from utils.c functions.
5677         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5678         file wrapping define name.
5679         * configure: Rebuilt.
5680         * configure.ac (gdb_use_included_regex, --without-included-regex)
5681         (USE_INCLUDED_REGEX): Move them to common/common.m4.
5682         * gdb_regex.h: Move it to common/gdb_regex.h.
5683         * utils.c: Remove include gdb_regex.h.
5684         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5685         (compile_rx_or_error): Move them to common/gdb_regex.c.
5686
5687 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5688             Jan Kratochvil  <jan.kratochvil@redhat.com>
5689
5690         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5691         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5692         common/target-utils.h.
5693         (COMMON_OBS): Add target-utils.o.
5694         (linux-maps.o, target-utils.o): New.
5695         * target/target-utils.c: New file.
5696         * target/target-utils.h: New file.
5697         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5698         * config/i386/linux64.mh (NATDEPFILES): Ditto.
5699         * nat/linux-maps.c: New file.
5700         * nat/linux-maps.h: New file.
5701
5702 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
5703             Pedro Alves <palves@redhat.com>
5704
5705         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5706         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5707         (perf_event_read_bts): Change the type of SIZE and READ.
5708         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5709         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
5710         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
5711         mmap page.
5712         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
5713         buffer size to UINT_MAX.
5714         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5715         DATA_TAIL.
5716         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5717         <last_head>: Change type.
5718         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5719         * common/btrace-common.c (btrace_data_append): Change the type of
5720         SIZE.
5721         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
5722         check.
5723
5724 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
5725
5726         * gdbtypes.h (CHECK_TYPEDEF): Remove.
5727         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5728         with check_typedef.
5729         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5730         (ada_array_length): Likewise.
5731         (find_parallel_type_by_descriptive_type): Likewise.
5732         (ada_check_typedef): Likewise.
5733         * arm-tdep.c (arm_return_in_memory): Likewise.
5734         * ax-gdb.c (gen_trace_static_fields): Likewise.
5735         (gen_struct_ref_recursive): Likewise.
5736         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5737         (variable: block COLONCOLON name): Likewise.
5738         (qualified_name: TYPENAME COLONCOLON name): Likewise.
5739         * c-lang.c (classify_type): Likewise.
5740         * c-typeprint.c (c_print_type): Likewise.
5741         (c_print_typedef): Likewise.
5742         (c_type_print_base): Likewise.
5743         * c-valprint.c (c_val_print): Likewise.
5744         * compile/compile-c-types.c (convert_type): Likewise.
5745         * compile/compile-object-load.c (get_out_value_type): Likewise.
5746         * completer.c (add_struct_fields): Likewise.
5747         (expression_completer): Likewise.
5748         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5749         (cp_lookup_nested_symbol_1): Likewise.
5750         (cp_lookup_nested_symbol): Likewise.
5751         * cp-valprint.c (cp_print_value_fields): Likewise.
5752         (cp_print_static_field): Likewise.
5753         * d-valprint.c (d_val_print): Likewise.
5754         * eval.c (evaluate_subexp_standard): Likewise.
5755         (evaluate_subexp_for_sizeof): Likewise.
5756         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5757         * f-typeprint.c (f_type_print_base): Likewise.
5758         * f-valprint.c (f_val_print): Likewise.
5759         * gdbtypes.c (get_discrete_bounds): Likewise.
5760         (create_array_type_with_stride): Likewise.
5761         (type_name_no_tag_or_error): Likewise.
5762         (lookup_struct_elt_type): Likewise.
5763         (get_unsigned_type_max): Likewise.
5764         (internal_type_vptr_fieldno): Likewise.
5765         (set_type_vptr_fieldno): Likewise.
5766         (internal_type_vptr_basetype): Likewise.
5767         (set_type_vptr_basetype): Likewise.
5768         (get_vptr_fieldno): Likewise.
5769         (is_integral_type): Likewise.
5770         (is_scalar_type): Likewise.
5771         (is_scalar_type_recursive): Likewise.
5772         (distance_to_ancestor): Likewise.
5773         (is_unique_ancestor_worker): Likewise.
5774         (check_types_equal): Likewise.
5775         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5776
5777 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5778
5779         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5780         also test for language_d.
5781         (dwarf2_compute_name): Likewise.
5782         (read_func_scope): Likewise.
5783         (read_structure_type): Likewise.
5784         (new_symbol_full): Likewise.
5785         (determine_prefix): Likewise.
5786         (read_import_statement): Use dot as the separator for language_d.
5787         (typename_concat): Likewise, but don't prefix the D main function.
5788
5789 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
5790
5791         * nat/linux-namespaces.c (setns): Rename from this ...
5792         (do_setns): ... to this.  Support calling setns if it exists.
5793         (mnsh_handle_setns): Call do_setns.
5794
5795 2015-07-13  Yao Qi  <yao.qi@linaro.org>
5796
5797         * exec.c (exec_file_attach): Add period at the end of error
5798         message.
5799
5800 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
5801
5802         * tui/tui-win.c (window_name_completer): New function.
5803         (focus_completer): Call window_name_completer.  All old content
5804         moved into window_name_completer.
5805         (winheight_completer): New function.
5806         (_initialize_tui_win): Rename variable.  Add completer to
5807         winheight command.  Update doc string on winheight.
5808
5809 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
5810
5811         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5812         all nios2 mach variants.
5813
5814 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
5815
5816         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5817         of target_read_memory.
5818
5819 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5820
5821         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5822         string copy.
5823         (parse_scrolling_args): Likewise.
5824
5825 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5826
5827         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5828         names in this function.
5829
5830 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5831
5832         * tui/tui-data.h (SRC_NAME): Convert to lower case.
5833         (CMD_NAME): Likewise.
5834         (DATA_NAME): Likewise.
5835         (DISASSEM_NAME): Likewise.
5836         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5837         (tui_set_win_height): Likewise.
5838         (parse_scrolling_args): Likewise.
5839
5840 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
5841
5842         * record-btrace.c (record_btrace_goto_begin)
5843         (record_btrace_goto_end, record_btrace_goto): Move call to
5844         print_stack_frame ...
5845         (record_btrace_set_replay): ... here.  Set stop_pc.
5846         * record-full.c (record_full_goto_entry): Set stop_pc.
5847
5848 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5849
5850         * NEWS: Mention support for tracepoints on aarch64-linux.
5851
5852 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5853
5854         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5855         function.  Return 1.
5856         (the_low_target): Install it.
5857
5858 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5859
5860         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5861         * gdb.trace/collection.exp: Likewise.
5862         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5863         * gdb.trace/mi-trace-unavailable.exp: Likewise.
5864         * gdb.trace/report.exp: Likewise.
5865         * gdb.trace/trace-break.exp: Likewise.
5866         * gdb.trace/unavailable.exp: Likewise.
5867         * gdb.trace/while-dyn.exp: Likewise.
5868
5869 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5870
5871         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5872         (aarch64_gen_return_address): New function.
5873         (aarch64_gdbarch_init): Hook it.
5874
5875 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5876
5877         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5878         swallow NOT_AVAILABLE_ERROR.
5879         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5880         available_p is not set.
5881         (aarch64_stub_frame_unwind_stop_reason): New function.
5882         (aarch64_stub_unwind): Install it.
5883
5884 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5885
5886         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5887         field.
5888         (aarch64_make_prologue_cache_1): New function, factored out from
5889         aarch64_make_prologue_cache.  Do not allocate cache.  Set
5890         available_p.
5891         (aarch64_make_prologue_cache): Reimplement wrapping
5892         aarch64_make_prologue_cache_1, and swallowing
5893         NOT_AVAILABLE_ERROR.
5894         (aarch64_prologue_frame_unwind_stop_reason): New function.
5895         Return UNWIND_UNAVAILABLE if available_p is not set.
5896         (aarch64_prologue_unwind): Install it.
5897         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5898         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
5899         frame_id_build_unavailable_stack if available_p is not set.
5900
5901 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5902
5903         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5904         fields.
5905         (aarch64_scan_prologue): Set prev_pc.
5906         (aarch64_make_prologue_cache): Set func.
5907         (aarch64_make_stub_cache): Set prev_pc.
5908         (aarch64_prologue_this_id): Remove local variables id, pc and
5909         func.  Read prev_pc and func from cache.
5910         (aarch64_stub_this_id): Read prev_pc from cache.
5911
5912 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5913
5914         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
5915         argument this_cache.  Remove unused local variables reg and
5916         unwound_fp.  Return early if this_cache is already set.  Set
5917         this_cache.
5918         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5919
5920 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5921
5922         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5923         New argument this_cache.  Return early if this_cache is already
5924         set.  Set this_cache.
5925         (aarch64_prologue_this_id): Update call to
5926         aarch64_make_prologue_cache.
5927         (aarch64_prologue_prev_register): Likewise.
5928         (aarch64_normal_frame_base): Likewise.
5929
5930 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5931
5932         * c-valprint.c (c_val_print): Factor out memberptr printing code
5933         from c_val_print to ...
5934         (c_val_print_memberptr): ... this new function.
5935
5936 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5937
5938         * c-valprint.c (c_val_print): Factor out int printing code to ...
5939         (c_val_print_int): ... this new function.
5940
5941 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5942
5943         * c-valprint.c (c_val_print): Factor out struct and union
5944         printing code to ...
5945         (c_val_print_struct): ... this new function ...
5946         (c_val_print_union): ... and this new function.
5947
5948 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5949
5950         * c-valprint.c (c_val_print): Factor out pointer printing code
5951         to ...
5952         (c_val_print_ptr): ... this new function.
5953
5954 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5955
5956         * c-valprint.c (c_valprint): Factor our array printing code from
5957         c_val_print to ...
5958         (c_val_print_array): ... this new function.
5959
5960 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5961
5962         * c-valprint.c (c_val_print): Factor out pointer printing code
5963         to ...
5964         (print_unpacked_pointer): ... this new function.
5965
5966 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5967
5968         * c-valprint.c (c_val_print): Remove an assignment to i and move
5969         its declaration.
5970
5971 2015-07-09  Yao Qi  <yao.qi@linaro.org>
5972
5973         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5974         argument ptid.  Update comments.  Caller update.
5975
5976 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
5977
5978         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5979         mnt packets.
5980
5981 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
5982
5983         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5984
5985 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
5986
5987         * progspace.c (delete_program_space): Add missing spaces.
5988
5989 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
5990
5991         * inferior.c (delete_inferior_1): Rename to ...
5992         (delete_inferior): ..., remove 'silent' parameter, delete
5993         program space when unused and remove call to prune_program_spaces.
5994         Remove the old, unused, delete_inferior.
5995         (delete_inferior_silent): Remove.
5996         (prune_inferiors): Change call from delete_inferior_1 to
5997         delete_inferior and remove 'silent' parameter. Remove call to
5998         prune_program_spaces.
5999         (remove_inferior_command): Idem.
6000         * inferior.h (delete_inferior_1): Rename to...
6001         (delete_inferior): ..., remove 'silent' parameter and remove the
6002         original delete_inferior.
6003         (delete_inferior_silent): Remove.
6004         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6005         delete_inferior_1 to delete_inferior and remove 'silent'
6006         parameter.
6007         * progspace.c (prune_program_spaces): Remove.
6008         (pspace_empty_p): Rename to...
6009         (program_space_empty_p): ... and make non-static.
6010         (delete_program_space): New.
6011         * progspace.h (prune_program_spaces): Remove declaration.
6012         (program_space_empty_p): New declaration.
6013         (delete_program_space): New declaration.
6014         * monitor.c (monitor_close): Replace call to
6015         delete_thread_silent and delete_inferior_silent with
6016         discard_all_inferiors.
6017
6018 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6019
6020         * defs.h (deprecated_register_changed_hook): Remove prototype.
6021         * interps.c (clear_iterpreter_hooks): Remove reference to
6022         deprecated_register_changed_hook.
6023         * top.c (deprecated_register_changed_hook): Remove prototype.
6024         * valops.c (value_assign): Remove reference to
6025         deprecated_register_changed_hook.
6026         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6027         Add comment documenting the function.
6028         (tui_register_changed_observer): Define.
6029         (tui_install_hooks): Remove reference to
6030         deprecated_register_changed_hook.  Set
6031         tui_register_changed_observer.
6032         (tui_remove_hooks): Remove reference to
6033         deprecated_register_changed_hook.  Unset
6034         tui_register_changed_observer.
6035
6036 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6037
6038         PR compile/18484
6039         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6040
6041 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6042
6043         PR exp/18617
6044         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6045
6046 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6047
6048         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6049
6050 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6051
6052         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6053         Use safe_strerror() instead of strerror().
6054
6055 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6056
6057         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6058         * features/arm-with-m-fpa-layout.c: Regenerated.
6059         * features/arm-with-m-vfp-d16.xml: Likewise.
6060         * features/arm-with-m-vfp-d16.c: Regenerated.
6061         * features/arm-with-m.xml: Likewise.
6062         * features/arm-with-m.c: Regenerated.
6063         * features/arm-with-neon.xml: Likewise.
6064         * features/arm-with-neon.c: Regenerated.
6065         * features/arm-with-vfpv2.xml: Likewise.
6066         * features/arm-with-vfpv2.c: Regenerated.
6067         * features/arm-with-vfpv3.xml: Likewise.
6068         * features/arm-with-vfpv3.c: Regenerated.
6069
6070 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6071
6072         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6073         arm-linux-nat.c.
6074         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6075         elf/external.h.
6076         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6077         if target is 32-bit.
6078         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6079         if target is 32-bit.
6080         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6081         if target is 32-bit.
6082         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6083         if target is 32-bit.
6084         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6085         (aarch64_linux_read_description): Return the right target
6086         description.
6087         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6088         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6089         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6090         arm-linux-tdep.o.
6091
6092 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6093
6094         * aarch32-linux-nat.c: New file.
6095         * aarch32-linux-nat.h: New file.
6096         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6097         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6098         aarch32_gp_regcache_supply.
6099         (store_regs): Move code to aarch32-linux-nat.c.  Call
6100         aarch32_gp_regcache_collect.
6101         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6102         aarch32_vfp_regcache_supply.
6103         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6104         aarch32_vfp_regcache_collect.
6105         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6106
6107 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6108
6109         * arm-linux-nat.c (store_fpregister): Remove.
6110         (store_register): Likewise.
6111         (fetch_fpregister): Likewise.
6112         (fetch_register): Likewise.
6113         (arm_linux_store_inferior_registers): Call store_regs and
6114         store_fpregs instead.
6115         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6116         fetch_regs instead.
6117
6118 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6119
6120         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6121         and focus commands.
6122
6123 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6124
6125         * NEWS: Create a new section for the next release branch.
6126         Rename the section of the current branch, now that it has
6127         been cut.
6128
6129 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6130
6131         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6132         * version.in: Bump version to 7.10.50.DATE-cvs.
6133
6134 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6135
6136         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6137         breakpoints in a special way.
6138         (remove_breakpoint): Likewise.
6139         (mark_breakpoints_out): Likewise.
6140
6141 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6142
6143         * doc/gdb.texinfo (TUI): Add comma after @xref.
6144
6145 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6146
6147         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6148         instead of casting the structure type.
6149
6150 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6151
6152         * valops.c (search_struct_field): Remove OFFSET parameter.
6153         (value_cast_structs): Adjust calls to search_struct_field.
6154         (value_struct_elt): Same.
6155         (find_overload_match): Same.
6156
6157 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6158
6159         * value.c (value_fetch_lazy): Update comment, change return
6160         value to void.
6161         * value.h (value_fetch_lazy): Change return value to void.
6162
6163 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6164
6165         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6166         (tui_win_name): Make parameter and result const.
6167         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6168
6169 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6170
6171         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6172         use printf_unfiltered.
6173         (set_mpx_cmd): Add missing trailing space to command string
6174         literal.
6175         (_initialize_i386_tdep): Give the "mpx" prefix command its
6176         correct name.
6177
6178 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6179
6180         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6181         (enum rx_frame_type): New.
6182         (struct rx_prologue): Add new field `frame_type'.
6183         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6184         parameter in the prologue struct.  Add code for recording
6185         locations of PC and PSW for fast interrupt and exception frames.
6186         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6187         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6188         (rx_frame_type): New function.
6189         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6190         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6191         `this_cache'.
6192         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6193         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6194         RX_FRAME_TYPE_FAST_INTERRUPT.
6195         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6196         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6197         (rx_frame_unwind): Use rx_frame_sniffer instead of
6198         default_frame_sniffer.
6199         (rx_frame_unwind): New unwinder.
6200         (rx_gdbarch_init): Register new unwinder.
6201
6202 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6203
6204         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6205         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6206         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6207         and RX_FPSW_REGNUM.
6208         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6209
6210 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6211
6212         Fix GCC false warning.
6213         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6214
6215 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6216
6217         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6218         typo in the debugging message.
6219
6220 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6221
6222         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6223         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6224         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6225         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6226         (btrace_maint_clear): New.
6227         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6228         (pt_print_packet, btrace_maint_decode_pt)
6229         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6230         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6231         (maint_btrace_packet_history_cmd)
6232         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6233         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6234         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6235         (maint_info_btrace_cmd, _initialize_btrace): New.
6236         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6237         (btrace_maint_packet_history, btrace_maint_info): New.
6238         (btrace_thread_info) <maint>: New.
6239         * NEWS: Announce it.
6240
6241 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6242
6243         * btrace.c (btrace_fetch): Append the new trace data.
6244         (btrace_clear): Clear the stored trace data.
6245         * btrace.h (btrace_thread_info) <data>: New.
6246         * common/btrace-common.h (btrace_data_clear)
6247         (btrace_data_append): New.
6248         * common/btrace-common.c (btrace_data_clear)
6249         (btrace_data_append): New.
6250
6251 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6252
6253         * nat/linux-btrace.c (linux_enable_bts): Check for
6254         PERF_ATTR_SIZE_VER5.
6255         Check for data_offset and data_size fields.  Use them.
6256
6257 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6258
6259         * NEWS: Announce new commands "record btrace pt" and "record pt".
6260         Announce new options "set|show record btrace pt buffer-size".
6261         * btrace.c: Include "rsp-low.h".
6262         Include "inttypes.h".
6263         (btrace_add_pc): Add forward declaration.
6264         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6265         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6266         (btrace_compute_ftrace_pt): New.
6267         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6268         (check_xml_btrace_version): Update version check.
6269         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6270         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6271         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6272         (btrace_pt_children): New.
6273         (btrace_children): Add support for "pt".
6274         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6275         (btrace_conf_children): Add support for "pt".
6276         * btrace.h: Include "intel-pt.h".
6277         (btrace_pt_error): New.
6278         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6279         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6280         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6281         (struct btrace_config_pt): New.
6282         (struct btrace_config)<pt>: New.
6283         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6284         (struct btrace_data)<pt>: New.
6285         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6286         (pt): New.
6287         * features/btrace.dtd (btrace)<pt>: New.
6288         (pt, pt-config, cpu): New.
6289         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6290         (perf_event_pt_event_type, kernel_supports_pt)
6291         (linux_supports_pt): New.
6292         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6293         (linux_enable_bts): Free tinfo on error.
6294         (linux_enable_pt): New.
6295         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6296         (linux_disable_pt): New.
6297         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6298         (linux_fill_btrace_pt_config, linux_read_pt): New.
6299         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6300         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6301         (struct btrace_target_info)<pt>: New.
6302         * record-btrace.c (set_record_btrace_pt_cmdlist)
6303         (show_record_btrace_pt_cmdlist): New.
6304         (record_btrace_print_pt_conf): New.
6305         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6306         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6307         (cmd_record_btrace_pt_start): New.
6308         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6309         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6310         (_initialize_record_btrace): Add new commands.
6311         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6312         (remote_protocol_features): Add "Qbtrace:pt".
6313         Add "Qbtrace-conf:pt:size".
6314         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6315         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6316         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6317         (_initialize_remote): Add new commands.
6318
6319 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6320
6321         * configure.ac: check for libipt
6322         * configure: Regenerate.
6323         * config.in: Regenerate.
6324         * Makefile.in (LIBIPT): New.
6325         (CLIBS): Add $LIBIPT.
6326         * NEWS: document new configure options
6327
6328 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6329
6330         * compile/compile-object-load.c (compile_object_load): Replace debug
6331         message "lookup undefined ELF symbol" by 3 more specific messages.
6332
6333 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6334
6335         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6336         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6337         (rl78_gdbarch_init): Initialize rl78_psw_type.
6338
6339 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6340
6341         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6342         Update commentary.  Always refresh the registers when frame
6343         information has changed.
6344         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6345         Change return type to int.  Return 1 if frame information has
6346         changed, 0 otherwise.
6347         (tui_before_prompt): Update commentary.
6348         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6349         int.
6350
6351 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6352
6353         PR tui/13378
6354         * frame.c (select_frame): Remove reference to
6355         deprecated_selected_frame_level_changed_hook.
6356         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6357         declaration.
6358         * stack.c (deprecated_selected_frame_level_changed_hook):
6359         Likewise.
6360         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6361         Rename to ...
6362         (tui_refresh_frame_and_register_information): ... this.  Bail
6363         out if there is no stack.  Don't update register information
6364         unless registers_too_p is true.
6365         (tui_print_frame_info_listing_hook): Rename to ...
6366         (tui_dummy_print_frame_info_listing_hook): ... this.
6367         (tui_before_prompt): New function.
6368         (tui_normal_stop): New function.
6369         (tui_before_prompt_observer): New observer.
6370         (tui_normal_stop_observer): New observer.
6371         (tui_install_hooks): Set
6372         deprecated_print_frame_info_listing_hook to
6373         tui_dummy_print_frame_info_listing_hook.  Register
6374         tui_before_prompt_observer to call tui_before_prompt and
6375         tui_normal_stop_observer to call tui_normal_stop.  Remove
6376         reference to deprecated_selected_frame_level_changed_hook.
6377         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6378         and tui_normal_stop_observer.  Remove reference to
6379         deprecated_selected_frame_level_changed_hook.
6380
6381 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6382
6383         PR tui/13378
6384         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6385         return an int instead of void.  Return whether the locator
6386         window has changed.
6387         (tui_show_frame_info): If the locator info has not changed, then
6388         bail out early to avoid refreshing the windows.
6389
6390 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6391
6392         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6393         LOCATOR_WIN to tui_alloc_content.
6394
6395 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6396
6397         PR tdep/18605
6398         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6399         instructions.
6400
6401 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6402
6403         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6404         (rx_dwarf_reg_to_regnum): New function.
6405         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6406         unwinding.
6407
6408 2015-06-29  Pedro Alves  <palves@redhat.com>
6409
6410         PR threads/18127
6411         * infcall.c (run_inferior_call): On infcall success, if the thread
6412         was marked stopped before, reset it back to stopped.
6413         * infrun.c (resume): Don't suppress the set_running calls when
6414         doing an infcall.
6415         (normal_stop): Only discard the finish_thread_state cleanup if the
6416         infcall succeeded.
6417
6418 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6419
6420         * MAINTAINERS (Write After Approval): Update my email address.
6421
6422 2015-06-26  Keith Seitz  <keiths@redhat.com>
6423             Doug Evans  <dje@google.com>
6424
6425         PR 16253
6426         * block.c (block_lookup_symbol): For non-function blocks,
6427         continue to search for a symbol with an exact domain match
6428         Otherwise, return any previously found "best domain" symbol.
6429         (block_lookup_symbol_primary): Likewise.
6430
6431 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6432
6433         * NEWS: Mention the new option "history remove-duplicates".
6434         * top.c (history_remove_duplicates): New static variable.
6435         (show_history_remove_duplicates): New static function.
6436         (gdb_add_history): Conditionally remove duplicate history
6437         entries.
6438         (init_main): Add "history remove-duplicates" option.
6439
6440 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6441
6442         * tui/tui-win.c (focus_completer): New static function.
6443         (_initialize_tui_win): Set the completion function of the
6444         "focus" command to focus_completer.
6445
6446 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6447
6448         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6449         and language_asm..
6450         * symtab.c (find_function_start_sal): Likewise.
6451
6452 2015-06-25  Gary Benson  <gbenson@redhat.com>
6453
6454         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6455         it is the empty string after trailing slashes have been stripped.
6456
6457 2015-06-25  Gary Benson  <gbenson@redhat.com>
6458
6459         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6460         * infrun.c (follow_exec): Likewise.
6461         * remote.c (remote_filesystem_is_local): Likewise.
6462         * solib.c (solib_find_1): Likewise.
6463
6464 2015-06-24  Keith Seitz  <keiths@redhat.com>
6465
6466         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6467         return value from lrealpath.
6468
6469 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6470
6471         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6472
6473 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6474
6475         * remote-sim.c: Include gdb_bfd.h.
6476         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6477         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6478
6479 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6480
6481         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6482         set_gdbarch_get_siginfo_type.
6483         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6484         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6485         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6486         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6487         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6488         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6489         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6490         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6491         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6492         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6493
6494 2015-06-24  Gary Benson  <gbenson@redhat.com>
6495
6496         * common/buffer.c (stdint.h): Do not include.
6497         * common/print-utils.c (stdint.h): Likewise.
6498         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6499         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6500         * ft32-tdep.c (gdb_assert.h): Likewise.
6501         * guile/scm-utils.c (stdint.h): Likewise.
6502         * i386-linux-tdep.c (stdint.h): Likewise.
6503         * i386-tdep.c (stdint.h): Likewise.
6504         * nat/linux-btrace.c (stdint.h): Likewise.
6505         * nat/linux-btrace.h (stdint.h): Likewise.
6506         * nat/linux-ptrace.c (stdint.h): Likewise.
6507         * nat/mips-linux-watch.h (stdint.h): Likewise.
6508         * ppc-linux-nat.c (stdint.h): Likewise.
6509         * python/python-internal.h (stdint.h): Likewise.
6510         * stub-termcap.c (stdlib.h): Likewise.
6511         * target/target.h (stdint.h): Likewise.
6512         * xtensa-linux-nat.c (stdint.h): Likewise.
6513
6514 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6515
6516         * top.c (init_history): Look at errno after calling strtol to
6517         properly map large GDBHISTSIZE values to infinity.
6518
6519 2015-06-23  Doug Evans  <dje@google.com>
6520
6521         * inferior.h (struct inferior_suspend_state): Delete, unused.
6522         All references deleted.
6523
6524 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6525
6526         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6527         (microblaze_push_dummy_call): Likewise.
6528         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6529         and set_gdbarch_push_dummy_call.
6530
6531 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6532
6533         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6534         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6535         (amd64_linux_store_inferior_registers): Likewise.
6536         * arm-linux-nat.c (fetch_fpregister): Likewise.
6537         (fetch_fpregs, store_fpregister): Likewise.
6538         (store_fpregister, store_fpregs): Likewise.
6539         (fetch_register, fetch_regs): Likewise.
6540         (store_register, store_regs): Likewise.
6541         (fetch_vfp_regs, store_vfp_regs): Likewise.
6542         (arm_linux_read_description): Check have_ptrace_getregset is
6543         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6544         or TRIBOOL_FALSE.
6545         * i386-linux-nat.c (fetch_xstateregs): Check
6546         have_ptrace_getregset is not TRIBOOL_TRUE.
6547         (store_xstateregs): Likewise.
6548         * linux-nat.c (have_ptrace_getregset): Change its type to
6549         enum tribool.
6550         * linux-nat.h (tribool): New enum.
6551         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6552         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6553
6554 2015-06-19  Doug Evans  <dje@google.com>
6555
6556         * NEWS: Mention Sun's version of stabs is no longer supported.
6557         * elfread.c (free_elfinfo): Delete.  All uses updated.
6558         (elfstab_offset_sections): Delete.  All uses updated.
6559         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6560         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6561         All uses updated.
6562         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6563         All callers updated.
6564
6565 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6566
6567         * common/rsp-low.c (needs_escaping): New.
6568         (remote_escape_output): Add unit_size parameter. Refactor to
6569         support multi-byte addressable units.  Rename parameters.
6570         * common/rsp-low.h (remote_escape_output): Add unit_size
6571         parameter and rename others. Update doc.
6572         * remote.c (align_for_efficient_write): New.
6573         (remote_write_bytes_aux): Add unit_size parameter and use it.
6574         Rename some variables.  Update doc.
6575         (remote_xfer_partial): Get unit size and use it.
6576         (remote_read_bytes_1): Add unit_size parameter and use it.
6577         Rename some variables. Update doc.
6578         (remote_write_bytes): Same.
6579         (remote_xfer_live_readonly_partial): Same.
6580         (remote_read_bytes): Same.
6581         (remote_flash_write): Update call to remote_write_bytes_aux.
6582         (remote_write_qxfer): Update call to remote_escape_output.
6583         (remote_search_memory): Same.
6584         (remote_hostio_pwrite): Same.
6585
6586 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6587
6588         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6589         locations as inserted.
6590         Update and expand comment about permanent locations.
6591         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6592         Move comment to add_location_to_breakpoint.
6593         (update_global_location_list): Don't error out if a permanent
6594         breakpoint is not marked inserted.
6595         Don't error out if a non-permanent breakpoint location is inserted on
6596         top of a permanent breakpoint.
6597
6598 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6599
6600         * breakpoint.c (make_breakpoint_permanent): Remove unused
6601         function.
6602         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6603
6604 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6605
6606         PR gdb/16999
6607         * NEWS: Mention new GDBHISTSIZE behavior.
6608         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6609         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6610
6611 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6612
6613         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6614         * top.c (init_history): Read from GDBHISTSIZE instead of
6615         HISTSIZE.
6616         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6617
6618 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6619
6620         * top.c (gdb_safe_append_history): Do not call
6621         history_truncate_file if the history is not stifled.
6622
6623 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6624
6625         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6626         * syscalls/s390x-linux.xml: Likewise.
6627
6628 2015-06-16  Michael Eager  <eager@eagercon.com>
6629
6630         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6631
6632 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6633
6634         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6635         target_terminal_ours_for_output() before calling
6636         tui_show_frame_info(), and restore the original terminal
6637         settings afterwards.
6638
6639 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6640
6641         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6642
6643 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6644
6645         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6646         memory unit size.
6647         (mi_cmd_data_write_memory_bytes): Same.
6648
6649 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6650
6651         * corefile.c (write_memory): Update doc.
6652         * gdbcore.h (write_memory): Same.
6653
6654 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6655
6656         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6657         (dump_mapping_p): Use it for parameter filterflags.
6658         (linux_find_memory_regions_full): Use it for variable filterflags.
6659
6660 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6661             Jan Kratochvil  <jan.kratochvil@redhat.com>
6662
6663         Merge multiple hex conversions.
6664         * monitor.c: Include rsp-low.h.
6665         (fromhex): Remove definition.
6666
6667 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6668             Jan Kratochvil  <jan.kratochvil@redhat.com>
6669
6670         Move utility functions to common/.
6671         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6672         Move defs to common/common-utils.c.
6673         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6674         (skip_to_space_const): Move decls to common/common-utils.h.
6675         * common/common-defs.h: Move include of common-types.h before
6676         common-utils.h.
6677         * common/common-utils.c: Include host-defs.h and ctype.h.
6678         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6679         from utils.c.
6680         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6681         cli/cli-utils.c.
6682         * common/common-utils.h (strtoulst): Move decl from utils.h.
6683         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6684         Move from cli/cli-utils.h.
6685         * common/host-defs.h: Include limits.h.
6686         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6687         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6688         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6689         common/common-utils.h.
6690         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6691         (strtoulst): Move to common/common-utils.c.
6692         * utils.h (strtoulst): Moved decl to common/common-utils.h.
6693
6694 2015-06-15  Yao Qi  <yao.qi@linaro.org>
6695
6696         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6697
6698 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
6699
6700         * build-id.c: Don't include elf-bfd.h.
6701         (build_id_bfd_get): Use bfd_build_id.
6702         (build_id_verify): Ditto.
6703         * build-id.h: Ditto.
6704         (find_separate_debug_file_by_buildid): Ditto.
6705         * python/py-objfile.c: Don't include elf-bfd.h.
6706         (objfpy_get_build_id) Use bfd_build_id.
6707         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6708         * coffread.c: Include build-id.h.
6709         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6710
6711 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6712
6713         * windows-nat.c (do_windows_fetch_inferior_registers)
6714         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6715         conditional with __CYGWIN__.
6716
6717 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6718
6719         * completer.c: Add arch-utils.h include.
6720         (enum reg_completer_targets): New enum.
6721         (reg_or_group_completer_1): New function containing old
6722         reg_or_group_completer, add and use new parameter to control what
6723         is completed on.  Use get_current_arch rather than architecture of
6724         currently selected frame.
6725         (reg_or_group_completer): Call new reg_or_group_completer_1.
6726         (reggroup_completer): Call new reg_or_group_completer_1.
6727         * completer.h (reggroup_completer): Add declaration.
6728         * tui/tui-regs.c: Add 'completer.h' include.
6729         (tui_reg_next_command): Renamed to...
6730         (tui_reg_next): ...this.  Adjust parameters and return rather than
6731         display new group.
6732         (tui_reg_prev_command): Renamed to...
6733         (tui_reg_prev): ...this.  Adjust parameters and return rather than
6734         display new group.
6735         (tui_reg_float_command): Delete.
6736         (tui_reg_general_command): Delete.
6737         (tui_reg_system_command): Delete.
6738         (tui_reg_command): Rewrite to perform switching of register group.
6739         Add header comment.
6740         (tuireglist): Remove.
6741         (tui_reggroup_completer): New function.
6742         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6743         creation of 'tui reg' command.
6744         * NEWS: Add comment about 'tui reg' changes.
6745
6746 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6747
6748         * target.c (target_read): Consider addressable unit size when
6749         reading from a memory object.
6750         (read_memory_robust): Same.
6751         (read_whatever_is_readable): Same.
6752         (target_write_with_progress): Consider addressable unit size
6753         when writing to a memory object.
6754         * target.h (target_read): Update documentation.
6755         (target_write): Add documentation.
6756
6757 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6758
6759         * arch-utils.h (default_addressable_memory_unit_size): New.
6760         * arch-utils.c (default_addressable_memory_unit_size): New.
6761         * gdbarch.sh (addressable_memory_unit_size): New.
6762         * gdbarch.h: Re-generate.
6763         * gdbarch.c: Re-generate.
6764
6765 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6766
6767         * target.c (target_read): Rename variables and use
6768         TARGET_XFER_E_IO.
6769         (target_read_with_progress): Same.
6770         (read_memory_robust): Constify parameters and rename
6771         variables.
6772         (read_whatever_is_readable): Constify parameters,
6773         rename variables, adjust formatting.
6774         * target.h (read_memory_robust): Constify parameters.
6775
6776 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6777
6778         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6779         synthetic (non-AltiVec) vector types.
6780         (ppc64_sysv_abi_return_value): Likewise.
6781
6782 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6783
6784         PR breakpoints/16465
6785         * breakpoint.c (create_breakpoint): Save extra_string for
6786         pending breakpoints.
6787
6788 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6789
6790         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6791         and bt_mask to CORE_ADDR.
6792
6793 2015-06-11  Gary Benson <gbenson@redhat.com>
6794
6795         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6796         (mnsh_recv_message): Likewise.
6797
6798 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6799
6800         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6801         long long int and plongest instead of %ll.
6802
6803 2015-06-11  Gary Benson <gbenson@redhat.com>
6804
6805         * nat/linux-namespaces.c (gdb_wait.h): New include.
6806         (sys/wait.h): Do not include.
6807
6808 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
6809
6810         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6811         end_sequence is true.
6812
6813 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6814
6815         Code cleanup.
6816         * solib-target.c (library_list_start_list): Use explicit NULL
6817         comparison.
6818
6819 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6820
6821         * solib-target.c (library_list_start_list): Do not dereference
6822         variable version in its initialization.  Make the VERSION check handle
6823         NULL.
6824         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6825
6826 2015-06-10  Gary Benson <gbenson@redhat.com>
6827
6828         * NEWS: Announce support for direct access of executable and
6829         shared library files when attaching to inferiors in containers
6830         on GNU/Linux systems.
6831
6832 2015-06-10  Gary Benson <gbenson@redhat.com>
6833
6834         * remote.c (struct remote_state) <fs_pid>: New field.
6835         (new_remote_state): Initialize the above.
6836         (PACKET_vFile_setfs): New enum value.
6837         (remote_hostio_set_filesystem): New function.
6838         (remote_hostio_open): Call the above.
6839         (remote_hostio_unlink): Likewise.
6840         (remote_hostio_readlink): Likewise.
6841         (_initialize_remote): Register new "set/show remote
6842         hostio-setfs-packet" command.
6843         * NEWS: Announce new vFile:setfs packet.
6844
6845 2015-06-10  Gary Benson <gbenson@redhat.com>
6846
6847         * linux-nat.c (nat/linux-namespaces.h): New include.
6848         (fileio.h): Likewise.
6849         (linux_nat_filesystem_is_local): New function.
6850         (linux_nat_fileio_pid_of): Likewise.
6851         (linux_nat_fileio_open): Likewise.
6852         (linux_nat_fileio_readlink): Likewise.
6853         (linux_nat_fileio_unlink): Likewise.
6854         (linux_nat_add_target): Initialize to_filesystem_is_local,
6855         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6856         (_initialize_linux_nat): New "set/show debug linux-namespaces"
6857         commands.
6858         * NEWS: Mention new "set/show debug linux-namespaces" commands.
6859
6860 2015-06-10  Gary Benson <gbenson@redhat.com>
6861
6862         * target.h (struct inferior): New forward declaration.
6863         (struct target_ops) <to_filesystem_is_local>: Update comment.
6864         (struct target_ops) <to_fileio_open>: New argument inf.
6865         Update comment.  All implementations updated.
6866         (struct target_ops) <to_fileio_unlink>: Likewise.
6867         (struct target_ops) <to_fileio_readlink>: Likewise.
6868         (target_filesystem_is_local): Update comment.
6869         (target_fileio_open): New argument inf.  Update comment.
6870         (target_fileio_unlink): Likewise.
6871         (target_fileio_readlink): Likewise.
6872         (target_fileio_read_alloc): Likewise.
6873         (target_fileio_read_stralloc): Likewise.
6874         * target.c (target_fileio_open): New argument inf.
6875         Pass inf to implementation.  Update debug printing.
6876         (target_fileio_unlink): Likewise.
6877         (target_fileio_readlink): Likewise.
6878         (target_fileio_read_alloc_1): New argument inf. Pass inf
6879         to target_fileio_open.
6880         (target_fileio_read_alloc): New argument inf. Pass inf to
6881         target_fileio_read_alloc_1.
6882         (target_fileio_read_stralloc): Likewise.
6883         * gdb_bfd.c (inferior.h): New include.
6884         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6885         argument with new argument "inferior".  Pass inferior to
6886         target_fileio_open.
6887         (gdb_bfd_open): Supply inferior argument to
6888         gdb_bfd_iovec_fileio_open.
6889         * linux-tdep.c (linux_info_proc): Supply inf argument to
6890         relevant target_fileio calls.
6891         (linux_find_memory_regions_full): Likewise.
6892         (linux_fill_prpsinfo): Likewise.
6893         * remote.c (remote_filesystem_is_local): Supply inf
6894         argument to remote_hostio_open.
6895         (remote_file_put): Likewise.
6896         (remote_file_get): Likewise.
6897         (remote_file_delete): Supply inf argument to
6898         remote_hostio_unlink.
6899
6900 2015-06-10  Gary Benson <gbenson@redhat.com>
6901
6902         * inf-child.c (inf_child_fileio_open): Replace comment.
6903         (inf_child_fileio_pwrite): Likewise.
6904         (inf_child_fileio_pread): Likewise.
6905         (inf_child_fileio_fstat): Insert blank line before comment.
6906         (inf_child_fileio_close): Replace comment.
6907         (inf_child_fileio_unlink): Likewise.
6908         (inf_child_fileio_readlink): Likewise.
6909         * remote.c (remote_hostio_open): Likewise.
6910         (remote_hostio_pread): Likewise.
6911         (remote_hostio_pwrite): Likewise.
6912         (remote_hostio_close): Likewise.
6913         (remote_hostio_unlink): Likewise.
6914         (remote_hostio_readlink): Likewise.
6915         (remote_hostio_fstat): Likewise.
6916         (remote_filesystem_is_local): Likewise.
6917         * target.c (target_fileio_open): Likewise.
6918         (target_fileio_pwrite): Likewise.
6919         (target_fileio_pread): Likewise.
6920         (target_fileio_fstat): Insert blank line before comment.
6921         (target_fileio_close): Replace comment.
6922         (target_fileio_unlink): Likewise.
6923         (target_fileio_readlink): Likewise.
6924         (target_fileio_read_alloc): Likewise.
6925         (target_fileio_read_stralloc): Likewise.
6926
6927 2015-06-10  Gary Benson <gbenson@redhat.com>
6928
6929         * linux-thread-db.c (nat/linux-namespaces.h): New include.
6930         (check_pid_namespace_match): Use linux_ns_same rather than
6931         linux_proc_pid_get_ns to spot PID namespace mismatches.
6932         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6933         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6934
6935 2015-06-10  Gary Benson <gbenson@redhat.com>
6936
6937         * configure.ac (AC_CHECK_FUNCS): Add setns.
6938         * config.in: Regenerate.
6939         * configure: Likewise.
6940         * nat/linux-namespaces.h: New file.
6941         * nat/linux-namespaces.c: Likewise.
6942         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6943         (linux-namespaces.o): New rule.
6944         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6945         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6946         * config/arm/linux.mh (NATDEPFILES): Likewise.
6947         * config/i386/linux.mh (NATDEPFILES): Likewise.
6948         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6949         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6950         * config/m32r/linux.mh (NATDEPFILES): Likewise.
6951         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6952         * config/mips/linux.mh (NATDEPFILES): Likewise.
6953         * config/pa/linux.mh (NATDEPFILES): Likewise.
6954         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6955         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6956         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6957         * config/s390/linux.mh (NATDEPFILES): Likewise.
6958         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6959         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6960         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6961         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6962
6963 2015-06-10  Gary Benson <gbenson@redhat.com>
6964
6965         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6966         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6967         (make_cleanup_close): Likewise.
6968         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6969         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6970         (make_cleanup_close): Likewise.
6971
6972 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6973
6974         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6975         from SuspendThread().
6976
6977 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6978
6979         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6980         from OutputDebugString.
6981
6982 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6983                         Mircea Gherzan  <mircea.gherzan@intel.com>
6984
6985         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6986         MPX_BT_MASK_32): New macros.
6987         (i386_mpx_set_bounds): New function that implements
6988         the command "set-mpx-bound".
6989         (i386_mpx_enabled): Helper function to test MPX availability.
6990         (i386_mpx_bd_base): Helper function to calculate the base directory
6991         address.
6992         (i386_mpx_get_bt_entry): Helper function to access a bound
6993         table entry.
6994         (i386_mpx_print_bounds): Effectively display bound information.
6995         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6996         "show mpx".
6997         (_initialize_i386_tdep):
6998         Add "bound" to the commands "show mpx" and "set mpx" commands.
6999         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7000         and "show mpx" commands.
7001         * NEWS: List new commands for MPX support.
7002
7003 2015-06-09  Gary Benson <gbenson@redhat.com>
7004
7005         * common/fileio.h (fileio_to_host_mode): New declaration.
7006         * common/fileio.c (fileio_to_host_mode): New Function.
7007         * inf-child.c (inf_child_fileio_open): Process mode argument
7008         with fileio_to_host_mode.
7009
7010 2015-06-09  Gary Benson <gbenson@redhat.com>
7011
7012         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7013         conditional.
7014
7015 2015-06-05  Gary Benson <gbenson@redhat.com>
7016
7017         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7018         * remote.c (remote_filesystem_is_local): ...here.
7019
7020 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7021
7022         * gdbarch.c: Regenerate it.
7023
7024 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7025
7026         * arch-utils.c (default_infcall_munmap): New.
7027         * arch-utils.h (default_infcall_munmap): New declaration.
7028         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7029         (munmap_list_free, munmap_listp_free_cleanup): New.
7030         (struct setup_sections_data): Add field munmap_list_headp.
7031         (setup_sections): Call munmap_list_add.
7032         (compile_object_load): New variable munmap_list_head, initialize
7033         setup_sections_data.munmap_list_headp, return munmap_list_head.
7034         * compile/compile-object-load.h (struct munmap_list): New declaration.
7035         (struct compile_module): Add field munmap_list_head.
7036         (munmap_list_free): New declaration.
7037         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7038         munmap_list_head.
7039         (do_module_cleanup): Call munmap_list_free.
7040         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7041         * gdbarch.c: Regenerate.
7042         * gdbarch.h: Regenerate.
7043         * gdbarch.sh (infcall_munmap): New.
7044         * linux-tdep.c (linux_infcall_munmap): New.
7045         (linux_init_abi): Install it.
7046
7047 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7048
7049         PR gdb/15564
7050         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7051
7052 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7053
7054         * i386-linux-nat.c: Include linux-nat.h.
7055
7056 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7057             Jan Kratochvil  <jan.kratochvil@redhat.com>
7058
7059         PR symtab/18392
7060         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7061         assertion.
7062         * dwarf2loc.c (chain_candidate): Likewise.
7063
7064 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7065
7066         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7067         (store_vfp_regs): Use PTRACE_SETREGSET.
7068
7069 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7070
7071         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7072         (fetch_fpregs): Likewise.
7073         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7074         (store_fpregs): Likewise.
7075
7076 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7077
7078         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7079         (fetch_regs): Likewise.
7080         (store_regs): Use PTRACE_SETREGSET.
7081         (store_register): Likewise.
7082
7083 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7084
7085         * arm-linux-nat.c (arm_linux_read_description): Check whether
7086         kernel supports PTRACE_GETREGSET.
7087
7088 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7089
7090         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7091         * linux-nat.c: ... here.
7092         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7093         to ...
7094         * linux-nat.h: ... here.
7095
7096 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7097
7098         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7099         * i386-linux-nat.c: Likewise.
7100         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7101         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7102         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7103         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7104         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7105
7106 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7107
7108         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7109         compatible to what read_child and write_child return.  This
7110         unbreaks that DJGPP build of GDB which was broken since v7.7.
7111
7112 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7113
7114         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7115
7116 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7117
7118         PR gdb/18464
7119         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7120         rather than internal_error for an unrecognized value.
7121
7122 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7123
7124         * xtensa-tdep.c (xtensa_pseudo_register_read)
7125         (xtensa_pseudo_register_write): Don't alias last pseudo register
7126         to a1.
7127
7128 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7129
7130         * infrun.c (follow_fork_inferior): Ensure the use of
7131         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7132         messages.
7133
7134 2015-05-28  Doug Evans  <dje@google.com>
7135
7136         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7137
7138 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7139
7140         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7141         (arm_linux_fetch_inferior_registers): Use
7142         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7143         (arm_linux_store_inferior_registers): Likewise.
7144         (arm_linux_read_description): Don't set
7145         arm_linux_has_wmmx_registers.
7146         * arm-tdep.c (arm_gdbarch_init): Set
7147         tdep->have_wmmx_registers according target descriptions.
7148         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7149         field.
7150
7151 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7152
7153         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7154         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7155         instead of arm_linux_vfp_register_count.
7156         (store_vfp_regs): Likewise.
7157         (arm_linux_fetch_inferior_registers): Likewise.
7158         (arm_linux_store_inferior_registers): Likewise.
7159         (arm_linux_read_description): Don't set
7160         arm_linux_vfp_register_count.
7161         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7162         Adjust.
7163         * arm-tdep.c (arm_gdbarch_init): Add assert on
7164         vfp_register_count.
7165         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7166         field to vfp_register_count.  All users updated.
7167
7168 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7169
7170         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7171         ELFOSABI_GNU binaries.
7172
7173 2015-05-27  Doug Evans  <dje@google.com>
7174
7175         * dwarf2read.c (lnp_state_machine): New typedef.
7176         (lnp_reader_state): New typedef.
7177         (dwarf_record_line_1): Renamed from dwarf_record_line.
7178         All callers updated.
7179         (dwarf_record_line): New function.
7180         (init_lnp_state_machine): New function.
7181         (check_line_address): Replace p_record_line parameter with state.
7182         All callers updated.
7183         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7184         Update to record state in lnp_state_machine.
7185
7186 2015-05-27  Doug Evans  <dje@google.com>
7187
7188         * dwarf2read.c (record_line_ftype): New typedef.
7189         (check_line_address): New function.
7190         (dwarf_decode_lines_1): Call it.
7191
7192 2015-05-27  Doug Evans  <dje@google.com>
7193
7194         * NEWS: Mention "set debug dwarf-line".
7195         * dwarf2read.c (dwarf_line_debug): New static global.
7196         (add_include_dir): Add debug dwarf-line support.
7197         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7198         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7199
7200 2015-05-27  Doug Evans  <dje@google.com>
7201
7202         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7203         All callers updated.
7204         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7205         * cp-support.h (cp_lookup_nested_symbol): Update.
7206
7207 2015-05-27  Doug Evans  <dje@google.com>
7208
7209         PR symtab/18258
7210         * block.c (block_find_symbol): New function.
7211         (block_find_non_opaque_type): Ditto.
7212         (block_find_non_opaque_type_preferred): Ditto.
7213         * block.h (block_symbol_matcher_ftype): New typedef.
7214         (block_find_symbol): Declare.
7215         (block_find_non_opaque_type): Ditto.
7216         (block_find_non_opaque_type_preferred): Ditto.
7217         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7218         * psymtab.c (psym_lookup_symbol): Ditto.
7219         * symtab.c (basic_lookup_transparent_type_1): New function.
7220         (basic_lookup_transparent_type): Call it.
7221
7222 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7223
7224         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7225         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7226
7227 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7228
7229         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7230         before operator &&.
7231         (aarch64_record_load_store): Likewise.
7232
7233 2015-05-26  Doug Evans  <dje@google.com>
7234
7235         PR c++/18141, c++/18417.
7236         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7237         a typedef.
7238
7239 2015-05-26  Doug Evans  <dje@google.com>
7240
7241         * NEWS: Add entries for command renamings.
7242         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7243         All uses updated.
7244         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7245         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7246         All uses updated.
7247         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7248         All callers updated.  Fix spelling of DWARF in help text.
7249         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7250         All uses updated.
7251         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7252         All uses updated.
7253         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7254         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7255         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7256         All uses updated.
7257         (show_dwarf_always_disassemble): Renamed from
7258         show_dwarf2_always_disassemble.  All callers updated.
7259         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7260         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7261         "set/show dwarf max-cache-age".  Rename
7262         "set/show dwarf2 always-disassemble" to
7263         "set/show dwarf always-disassemble".  Rename
7264         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7265         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7266
7267 2015-05-26  Doug Evans  <dje@google.com>
7268
7269         PR python/18438
7270         * python/py-lazy-string.c (stpy_convert_to_value): Use
7271         gdbpy_gdb_memory_error not PyExc_MemoryError.
7272         (gdbpy_create_lazy_string_object): Ditto.
7273
7274 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7275
7276         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7277
7278 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7279
7280         * tui/tui-regs.c (tui_reg_prev_command): New function.
7281         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7282         * reggroups.c (reggroup_prev): New function.
7283         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7284
7285 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7286             Yao Qi  <yao.qi@linaro.org>
7287
7288         * aarch64-linux-tdep.c: Include linux-record.h and
7289         record-full.h.
7290         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7291         (aarch64_syscall): New enum.
7292         (aarch64_canonicalize_syscall): New function.
7293         (aarch64_all_but_pc_registers_record): New function.
7294         (aarch64_linux_syscall_record): New function.
7295         (aarch64_linux_init_abi): Install AArch64 process record
7296         handler.  Update to handle syscall recording.
7297         * aarch64-tdep.c: Include record.h and record-full.h.
7298         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7299         (struct aarch64_mem_r): Define.
7300         (aarch64_record_result): New enum.
7301         (struct insn_decode_record): Define.
7302         (insn_decode_record): New typedef.
7303         (aarch64_record_data_proc_reg): New function.
7304         (aarch64_record_data_proc_imm): New function.
7305         (aarch64_record_branch_except_sys): New function.
7306         (aarch64_record_load_store): New function.
7307         (aarch64_record_data_proc_simd_fp): New function.
7308         (aarch64_record_asimd_load_store): New function.
7309         (aarch64_record_decode_insn_handler): New function.
7310         (deallocate_reg_mem): New function.
7311         (aarch64_process_record): New function.
7312         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7313         New field.
7314         (aarch64_process_record): New extern declaration.
7315         * configure.tgt: Add linux-record.o to gdb_target_obs.
7316         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7317
7318 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7319
7320         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7321         targets.
7322
7323 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7324
7325         * amd64-tdep.c: Replace in_function_epilogue_p with
7326         stack_frame_destroyed_p throughout.
7327         * arch-utils.c: Ditto.
7328         * arch-utils.h: Ditto.
7329         * arm-tdep.c: Ditto.
7330         * breakpoint.c: Ditto.
7331         * gdbarch.sh: Ditto.
7332         * hppa-tdep.c: Ditto.
7333         * i386-tdep.c: Ditto.
7334         * mips-tdep.c: Ditto.
7335         * nios2-tdep.c: Ditto.
7336         * rs6000-tdep.c: Ditto.
7337         * s390-linux-tdep.c: Ditto.
7338         * score-tdep.c: Ditto.
7339         * sh-tdep.c: Ditto.
7340         * sparc-tdep.c: Ditto.
7341         * sparc-tdep.h: Ditto.
7342         * sparc64-tdep.c: Ditto.
7343         * spu-tdep.c: Ditto.
7344         * tic6x-tdep.c: Ditto.
7345         * tilegx-tdep.c: Ditto.
7346         * xstormy16-tdep.c: Ditto.
7347         * gdbarch.c, gdbarch.h: Re-generated.
7348
7349 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7350
7351         * NEWS: Mention 'tui enable' and 'tui disable'.
7352         * tui/tui.c (tui_enable_command): New function.
7353         (tui_disable_command): New function.
7354         (_initialize_tui): New function.
7355
7356 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7357
7358         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7359
7360 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7361
7362         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7363         buf_ptr is freed.
7364
7365 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7366
7367         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7368         into ...
7369         (tui_set_layout_for_display_command): ...here, before calling
7370         tui_set_layout.  Only set the layout if gdb has not already
7371         entered the TUI_FAILURE state.
7372
7373 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7374
7375         * tui/tui-layout.c (layout_completer): New function.
7376         (_initialize_tui_layout): Set completer on layout command.
7377
7378 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7379
7380         * tui/tui-layout.c (tui_set_layout): Remove
7381         tui_register_display_type parameter.  Remove all checking of this
7382         parameter, and reindent function.  Update header comment.
7383         (tui_set_layout_for_display_command): Rename to...
7384         (tui_set_layout_by_name): ...this, and don't check for different
7385         register class types, don't pass a tui_register_display_type to
7386         tui_set_layout.  Update header comment.
7387         (layout_names): Remove register set specific names.
7388         * tui/tui-layout.h (tui_set_layout): Remove
7389         tui_register_display_type parameter.
7390         * tui/tui.c (tui_rl_change_windows): Don't pass a
7391         tui_register_display_type to tui_set_layout.
7392         (tui_rl_delete_other_windows): Likewise.
7393         (tui_enable): Likewise.
7394         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7395         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7396         (TUI_GENERAL_REGS_NAME): Remove.
7397         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7398         (TUI_SPECIAL_REGS_NAME): Remove.
7399         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7400         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7401         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7402         (enum tui_register_display_type): Remove.
7403         (struct tui_layout_def): Remove regs_display_type and
7404         float_regs_display_type fields.
7405         (struct tui_data_info): Remove regs_display_type field.
7406         (tui_layout_command): Use new name for
7407         tui_set_layout_for_display_command.
7408         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7409         (tui_clear_win_detail): Don't initialise removed fields of
7410         win_info.
7411         * tui/tui-regs.c (tui_show_registers): Use new name for
7412         tui_set_layout_for_display_command.
7413         * tui/tui.h (tui_set_layout_for_display_command): Rename
7414         declaration to...
7415         (tui_set_layout_by_name): ...this.
7416         * printcmd.c (display_command): Remove tui related layout call,
7417         and reindent.
7418
7419 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7420
7421         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7422         (handle_inferior_event): New function.
7423
7424 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7425
7426         * ada-lang.c (to_fixed_array_type): Rename local variable
7427         typename into type_name.
7428
7429 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7430
7431         Fix ASAN crash for gdb.compile/compile.exp.
7432         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7433
7434 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7435
7436         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7437         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7438         * compile/compile-object-load.c (setup_sections, compile_object_load):
7439         Likewise.
7440         * compile/compile.c (compile_to_object): Likewise.
7441
7442 2015-05-16  Doug Evans  <xdje42@gmail.com>
7443
7444         * NEWS: Mention support for unbuffered Guile memory ports.
7445         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7446         (ioscm_lseek_address): Improve overflow calculation.
7447         (gdbscm_memory_port_fill_input): Add assert.
7448         (gdbscm_memory_port_write): Handle unbuffered ports.
7449         Handle large writes identical to Guile's fport_write.
7450         (gdbscm_memory_port_seek): Fix seeking past end check.
7451         (gdbscm_memory_port_close): Handle closing unbuffered port.
7452         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7453         (ioscm_init_memory_port): Handle unbuffered ports.
7454         (ioscm_reinit_memory_port): Ditto.
7455         (ioscm_init_memory_port): Update size calculation.
7456         (gdbscm_open_memory): Support zero sized ports.
7457
7458 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7459
7460         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7461         variable compiler warnings.
7462
7463 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7464
7465         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7466
7467 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7468             Phil Muldoon  <pmuldoon@redhat.com>
7469
7470         * NEWS (Changes since GDB 7.9): Add compile print.
7471         * compile/compile-c-support.c (add_code_header, add_code_footer)
7472         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7473         COMPILE_I_PRINT_VALUE_SCOPE.
7474         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7475         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7476         New.
7477         * compile/compile-object-load.c: Include block.h.
7478         (get_out_value_type): New function.
7479         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7480         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7481         OUT_VALUE_TYPE.
7482         * compile/compile-object-load.h (struct compile_module): Add fields
7483         out_value_addr and out_value_type.
7484         * compile/compile-object-run.c: Include valprint.h and compile.h.
7485         (struct do_module_cleanup): Add fields out_value_addr and
7486         out_value_type.
7487         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7488         COMPILE_I_PRINT_VALUE_SCOPE.
7489         (compile_object_run): Propagate out_value_addr and out_value_type.
7490         Pass OUT_VALUE_ADDR.
7491         * compile/compile.c: Include valprint.h.
7492         (compile_print_value, compile_print_command): New functions.
7493         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7494         (_initialize_compile): Update compile code help text.  Install
7495         compile_print_command.
7496         * compile/compile.h (compile_print_value): New prototype.
7497         * defs.h (enum compile_i_scope_types): Add
7498         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7499
7500 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7501
7502         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7503         Rely on its parameter count.
7504         (compile_object_load): Replace lookup_minimal_symbol_text by
7505         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7506         return value.
7507         * compile/compile-object-load.h (struct compile_module): Replace
7508         func_addr by func_sym.
7509         * compile/compile-object-run.c: Include block.h.
7510         (compile_object_run): Reset module variable after it is freed.  Use
7511         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7512
7513 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7514
7515         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7516         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7517         (c_compute_program): Call generate_register_struct after typedefs.
7518         * compile/compile-loc2c.c (push, pushf_register_address)
7519         (pushf_register): Cast to GCC_UINTPTR.
7520         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7521         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7522         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7523         * compile/compile.c (_initialize_compile): Enable warnings for
7524         COMPILE_ARGS.
7525
7526 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7527
7528         * cli/cli-script.c (execute_control_command): Update
7529         eval_compile_command caller.
7530         * compile/compile-object-load.c (compile_object_load): Add parameters
7531         scope and scope_data.  Set them.
7532         * compile/compile-object-load.h (struct compile_module): Add fields
7533         scope and scope_data.
7534         (compile_object_load): Add parameters scope and scope_data.
7535         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7536         scope and scope_data.
7537         (compile_object_run): Propagate the fields scope and scope_data.
7538         * compile/compile.c (compile_file_command, compile_code_command):
7539         Update eval_compile_command callers.
7540         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7541         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7542         * defs.h (struct command_line): Add field scope_data.
7543
7544 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7545
7546         * printcmd.c (struct format_data): Move it to valprint.h.
7547         (print_command_parse_format, print_value): New functions from ...
7548         (print_command_1): ... here.  Call them.
7549         * valprint.h (struct format_data): Move it here from printcmd.c.
7550         (print_command_parse_format, print_value): New declarations.
7551
7552 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7553
7554         * compile/compile-object-load.c (compile_object_load): Add
7555         COMPILE_DEBUG message.
7556
7557 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7558
7559         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7560         index to get element instead of enum value.
7561         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7562         of index to compute length, but enum values to compute bounds.
7563         (ada_array_length): Use enum position of index instead of enum value.
7564         (pos_atr): Move position computation to...
7565         (ada_evaluate_subexp): Use enum values to compute bounds.
7566         * gdbtypes.c (discrete_position): ...this new function.
7567         * gdbtypes.h (discrete_position): New function declaration.
7568         * valprint.c (val_print_array_elements): Call discrete_position
7569         to handle array indexed by non-contiguous enumeration types.
7570
7571 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7572
7573         * ada-lang.c (find_parallel_type_by_descriptive_type):
7574         Go through typedefs during lookup.
7575         (to_fixed_array_type): Add support for non-bit packed arrays
7576         as variable-length fields.
7577
7578 2015-05-15  Pedro Alves  <palves@redhat.com>
7579             Simon Marchi  <simon.marchi@ericsson.com>
7580
7581         * event-loop.c (gdb_notifier) <next_file_handler,
7582         next_poll_fds_index>: New fields.
7583         (get_next_file_handler_to_handle_and_advance): New function.
7584         (delete_file_handler): If deleting the next file handler to
7585         handle, advance to the next file handler.
7586         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7587         handlers in round-robin fashion.
7588
7589 2015-05-15  Pedro Alves  <palves@redhat.com>
7590
7591         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7592         'private' to 'priv'.
7593
7594 2015-05-15  Pedro Alves  <palves@redhat.com>
7595
7596         * nat/linux-nat.h: Include "target/waitstatus.h".
7597
7598 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7599
7600         * python/py-unwind.c (struct reg_info): Move out of ...
7601         (struct cached_frame_info): ... this scope.
7602         (pending_frame_object_type, unwind_info_object_type): Make extern.
7603
7604 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7605
7606         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7607         accumSize is never negative.
7608
7609 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7610
7611         * tui/tui-command.c: Remove include of <ctype.h>.
7612         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7613
7614 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7615
7616         * dwarf2read.c (die_needs_namespace): Return 1 for
7617         DW_TAG_inlined_subroutine.
7618
7619 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7620
7621         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7622         (regcache_cpy_no_passthrough): Make it static, add function comment.
7623         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7624         (regcache_cpy_no_passthrough): Remove declaration.
7625
7626 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7627
7628         * gdbthread.h (struct thread_control_state): Update comment for
7629         proceed_to_finish.
7630         * infcall.c (run_inferior_call): Update comment about
7631         proceed_to_finish.
7632         * infcmd.c (get_return_value): Update comment about stop_registers.
7633         (finish_forward): Update comment about proceed_to_finish.
7634         * infrun.c (stop_registers): Remove.
7635         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7636         * infrun.h (stop_registers): Remove.
7637
7638 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7639
7640         * infcall.c (struct dummy_frame_context_saver)
7641         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7642         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7643         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7644         New.
7645         (call_function_by_hand_dummy): Move discard_cleanups of
7646         inf_status_cleanup before dummy_frame_push.  Call
7647         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7648         Use dummy_frame_context_saver_get_regs instead of stop_registers.
7649         * infcall.h (struct dummy_frame_context_saver)
7650         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7651         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7652         New declarations.
7653         * infcmd.c: Include infcall.h.
7654         (get_return_value): Add parameter ctx_saver, use it instead of
7655         stop_registers.
7656         (print_return_value): Add parameter ctx_saver, pass it.
7657         (struct finish_command_continuation_args): Add field ctx_saver.
7658         (finish_command_continuation): Update print_return_value caller.
7659         (finish_command_continuation_free_arg): Free also ctx_saver.
7660         (finish_forward): Call dummy_frame_context_saver_setup.
7661         * inferior.h (struct dummy_frame_context_saver): New declaration.
7662         (get_return_value): Add parameter ctx_saver.
7663         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7664         get_return_value caller.
7665
7666 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7667
7668         * dummy-frame.c (struct dummy_frame_dtor_list): New.
7669         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7670         (remove_dummy_frame): Process dtor_list.
7671         (pop_dummy_frame): Process dtor_list.
7672         (register_dummy_frame_dtor): Maintain dtor_list.
7673         (find_dummy_frame_dtor): Handle dtor_list.
7674         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7675         Update comments.
7676
7677 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7678
7679         * compile/compile-object-run.c (do_module_cleanup): Add parameter
7680         registers_valid.
7681         (compile_object_run): Update do_module_cleanup caller.
7682         * dummy-frame.c: Include infcall.h.
7683         (struct dummy_frame): Update dtor comment.
7684         (remove_dummy_frame): Call dtor.
7685         (pop_dummy_frame): Update dtor caller.
7686         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7687         registers_valid.
7688
7689 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7690
7691         GDB 7.9.1 released.
7692
7693 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7694
7695         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
7696         Xmethods now being able to specify a result type to that new
7697         sectioin.
7698
7699 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7700
7701         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7702         first before resizing the window.
7703         * tui/tui.c (tui_enable): Likewise.
7704
7705 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7706
7707         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7708         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7709         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7710         dummy_dtor parameter.
7711         * infcall.h: Include dummy-frame.h.
7712         (call_function_by_hand_dummy_dtor_ftype): Remove.
7713         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7714         parameter.
7715
7716 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7717
7718         PR gdb/17820
7719         * top.c (history_size_setshow_var): Change type to signed.
7720         Initialize to -2.  Update documentation.
7721         (set_readline_history_size): Define.
7722         (set_history_size_command): Use it.  Remove logic for handling
7723         out-of-range sizes.
7724         (init_history): Use set_readline_history_size().  Test for a
7725         value of -2 instead of 0 when determining whether to set a
7726         default history size.
7727         (init_main): Decode the argument of the "size" command as a
7728         zuinteger_unlimited.
7729
7730 2015-05-12  Doug Evans  <dje@google.com>
7731
7732         * dwarf2read.c (struct file_entry): Tweak comments.
7733         (get_debug_line_section): Tweak comments.
7734
7735 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7736
7737         * NEWS: Announce fork support in the RSP and support
7738         for fork debugging in extended mode.
7739
7740 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7741
7742         * remote.c (remote_insert_fork_catchpoint): New function.
7743         (remote_remove_fork_catchpoint): New function.
7744         (remote_insert_vfork_catchpoint): New function.
7745         (remote_remove_vfork_catchpoint): New function.
7746         (pending_fork_parent_callback): New function.
7747         (remove_new_fork_child): New function.
7748         (remote_update_thread_list): Call remote_notif_get_pending_events
7749         and remove_new_fork_child.
7750         (extended_remote_kill): Kill fork child when killing the
7751         parent before follow_fork completes.
7752         (init_extended_remote_ops): Initialize target vector with
7753         new fork catchpoint functions.
7754
7755 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7756
7757         * remote.c (remove_vfork_event_p): New function.
7758         (remote_follow_fork): Add vfork event type to event checking.
7759         (remote_parse_stop_reply): New stop reasons "vfork" and
7760         "vforkdone" for RSP 'T' Stop Reply Packet.
7761
7762 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7763
7764         * linux-nat.c (linux_nat_ptrace_options): New function.
7765         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7766         Call linux_nat_ptrace_options and use different argument to
7767         linux_enable_event_reporting.
7768         (_initialize_linux_nat): Delete call to
7769         linux_ptrace_set_additional_flags.
7770         * nat/linux-ptrace.c (current_ptrace_options): Rename to
7771         supported_ptrace_options.
7772         (additional_flags): Delete variable.
7773         (linux_check_ptrace_features): Use supported_ptrace_options.
7774         (linux_test_for_tracesysgood, linux_test_for_tracefork):
7775         Likewise, and remove additional_flags check.
7776         (linux_enable_event_reporting): Change 'attached' argument to
7777         'options'.  Use supported_ptrace_options.
7778         (ptrace_supports_feature): Change comment.  Use
7779         supported_ptrace_options.
7780         (linux_ptrace_set_additional_flags): Delete function.
7781         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7782         Delete function prototype.
7783         * remote.c (remote_fork_event_p): New function.
7784         (remote_detach_pid): New function.
7785         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7786         if doing detach-on-fork.
7787         (remote_follow_fork): New function.
7788         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7789         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7790         (init_extended_remote_ops): Initialize to_follow_fork.
7791
7792 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7793
7794         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7795         from static to extern.
7796         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7797         * remote.c (anonymous enum): <PACKET_fork_event_feature,
7798         * PACKET_vfork_event_feature>: New enumeration constants.
7799         (remote_protocol_features): Add table entries for new packets.
7800         (remote_query_supported): Add new feature queries to qSupported
7801         packet.
7802
7803 2015-05-12  Gary Benson <gbenson@redhat.com>
7804
7805         * remote.c (remote_add_inferior): Call exec_file_locate_attach
7806         for fake PIDs as well as real ones.
7807         (remote_pid_to_exec_file): Send empty annex if PID is fake.
7808
7809 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
7810
7811         * NEWS (Python Scripting): Mention the new gdb.Value methods.
7812         * python/py-value.c (valpy_reference_value): New function.
7813         (valpy_const_value): Likewise.
7814         (value_object_methods): Add new methods.
7815         * value.c (make_cv_value): New function.
7816         * value.h (make_cv_value): Declare.
7817
7818 2015-05-08  Yao Qi  <yao@codesourcery.com>
7819             Sandra Loosemore  <sandra@codesourcery.com>
7820
7821         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7822         to 'lh->include_dirs' before accessing to it.
7823         (psymtab_include_file_name): Likewise.
7824         (dwarf_decode_lines_1): Likewise.
7825         (dwarf_decode_lines): Likewise.
7826         (file_file_name): Likewise.
7827
7828 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7829
7830         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7831         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7832         (nios2_linux_rt_sigreturn_init): Adjust base address of
7833         register save area.
7834
7835 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7836
7837         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7838         "trap 31" as the breakpoint instruction on all targets.
7839
7840 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7841
7842         * infcmd.c (print_return_value): Remove unused declaration.
7843
7844 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7845
7846         * dwarf2read.c (attr_to_dynamic_prop)
7847         <DW_AT_data_member_location>: Use read_type_die isntead of
7848         get_die_type.
7849
7850 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7851
7852         * ada-lang.c (ada_convert_actual): Add handling of formals
7853         passed inside an aligner type.
7854
7855 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7856
7857         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7858
7859 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
7860
7861         PR python/18291
7862         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7863         Print xmethod matcher status.
7864
7865 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7866
7867         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7868         register in the regcache when treating the PSWM register, and vice
7869         versa.
7870
7871 2015-05-07  Gary Benson <gbenson@redhat.com>
7872
7873         * linux-thread-db.c (struct thread_db_info)
7874         <td_ta_map_id2thr_p>: Remove field.
7875         (try_thread_db_load_1): Remove initialization for the above.
7876
7877 2015-05-07  Gary Benson <gbenson@redhat.com>
7878
7879         * linux-thread-db.c (struct thread_db_info)
7880         <td_thr_validate_p>: Remove field.
7881         (try_thread_db_load_1): Remove initialization for the above.
7882
7883 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7884
7885         * compile/compile-object-load.c (compile_object_load): Support
7886         mst_text_gnu_ifunc.
7887
7888 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7889
7890         * compile/compile.c (compile_to_object): Make the cmd_string parameter
7891         const.  Use new variables for the const compatibility.
7892         (eval_compile_command): Make the cmd_string parameter const.
7893         * compile/compile.h (eval_compile_command): Make the cmd_string
7894         parameter const.
7895
7896 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7897
7898         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
7899         comment.
7900         * top.c (deprecated_init_ui_hook): Delete.
7901         (gdb_init): Remove handling of deprecated_init_ui_hook.
7902         * interps.c (clear_interpreter_hooks): Remove handling of
7903         deprecated_init_ui_hook.
7904         * main.c (captured_main): Update comment.
7905
7906 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7907
7908         * solib.c (_initialize_solib): Add "info dll" alias creation.
7909         * windows-nat.c (set_windows_aliases): Delete.
7910         (_initialize_windows_nat): Remove deprecated_init_ui_hook
7911         assignment.
7912         * NEWS: Add news entry about "info dll" now being available
7913         on all platforms.
7914
7915 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7916
7917         * ada-lang.c (value_assign_to_component): Reformat and improve
7918         documentation. Remove all trailing spaces.
7919
7920 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7921
7922         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7923         Stop counting inlined frames as soon as an out-of-line function
7924         is found.
7925
7926 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
7927
7928         * dwarf2read.c (inherit_abstract_dies): Skip
7929         DW_TAG_GNU_call_site dies while inheriting children of an
7930         abstract DIE into a scope.
7931         (read_lexical_block_scope): Inherit abstract DIE's for
7932         lexical scopes.
7933
7934 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7935
7936         * ada-valprint.c (val_print_packed_array_elements): Delete
7937         variable "len".  Add a type-length check when comparing two
7938         consecutive elements of the array.  Use the element's actual
7939         length in call to value_contents_eq.
7940         * ada-lang.c (ada_value_primitive_packed_val): Always return
7941         a value whose type has been resolved.
7942
7943 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7944
7945         * ada-lang.c (ada_value_primitive_packed_val): Recompute
7946         BIT_SIZE and LEN if the size of the resolved type is smaller
7947         than BIT_SIZE * HOST_CHAR_BIT.
7948
7949 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7950
7951         * ada-lang.c (ada_value_primitive_packed_val): Use a more
7952         correct address in call to value_at.  Adjust call to
7953         value_address accordingly.
7954
7955 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7956
7957         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7958         to print it.
7959
7960 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7961
7962         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7963         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7964         pinfo->valaddr.
7965         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7966         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7967         (resolve_dynamic_type_internal): Set pinfo.valaddr.
7968         Add handling of addr_stack->valaddr.
7969         (resolve_dynamic_type): Add "valaddr" parameter.
7970         Set pinfo.valaddr field.
7971         * ada-lang.c (ada_discrete_type_high_bound): Update call to
7972         resolve_dynamic_type.
7973         (ada_discrete_type_low_bound): Likewise.
7974         * findvar.c (default_read_var_value): Likewise.
7975         * value.c (value_from_contents_and_address): Likewise.
7976
7977 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7978
7979         * gdbtypes.c (resolve_dynamic_array): Use
7980         create_array_type_with_stride instead of create_array_type.
7981
7982 2015-04-30  DJ Delorie  <dj@redhat.com>
7983
7984         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7985         rl78_decode_opcode
7986
7987 2015-04-29  Doug Evans  <dje@google.com>
7988
7989         PR python/18285
7990         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7991         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7992         EVAL_AVOID_SIDE_EFFECTS for xmethods.
7993         * extension-priv.h (struct extension_language_ops)
7994         <get_xmethod_result_type>: New member.
7995         * extension.c (get_xmethod_result_type): New function.
7996         * extension.h (get_xmethod_result_type): Declare.
7997         * python/py-xmethods.c (get_result_type_method_name): New static
7998         global.
7999         (py_get_result_type_method_name): Ditto.
8000         (gdbpy_get_xmethod_result_type): New function.
8001         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8002         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8003         * python/python.c (python_extension_ops): Add
8004         gdbpy_get_xmethod_result_type.
8005         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8006         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8007         xmethods.
8008         (value_x_unop): Ditto.
8009         * value.c (result_type_of_xmethod): New function.
8010         * value.h (result_type_of_xmethod): Declare.
8011
8012 2015-04-29  Gary Benson <gbenson@redhat.com>
8013
8014         * solib.c (solib_find_1): Allow fd argument to be NULL.
8015         (exec_file_find): Update comment.
8016         (solib_find): Likewise.
8017         * exec.c (exec_file_locate_attach): Use NULL as fd
8018         argument to exec_file_find to avoid having to close
8019         the opened file.
8020         * infrun.c (follow_exec): Likewise.
8021
8022 2015-04-28  Doug Evans  <dje@google.com>
8023
8024         PR python/18299
8025         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8026         name or __name__ attributes.  Handle gdb module as first argument.
8027
8028 2015-04-28  Doug Evans  <dje@google.com>
8029
8030         PR python/18089
8031         * python/py-prettyprint.c (print_children): Verify result of children
8032         iterator.  Provide better error message.
8033         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8034         * python/python.c (gdbpy_print_python_errors_p): New function.
8035
8036 2015-04-28  Doug Evans  <dje@google.com>
8037
8038         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8039
8040 2015-04-28  Sasha Smundak  <asmundak@google.com>
8041
8042         * NEWS: Mention gdb.Type.optimized_out method.
8043         * python/py-type.c (typy_optimized_out):  New function.
8044
8045 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8046
8047         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8048
8049 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8050
8051         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8052         (initialize_utils): Move call of init_page_info() to ...
8053         * top.c (gdb_init): ... here.
8054
8055 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8056
8057         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8058         (tui_sigwinch_handler): Still update our idea of
8059         the terminal's width and height even when TUI is not active.
8060
8061 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8062
8063         * utils.h (set_screen_width_and_height): Declare.
8064         * utils.c (set_screen_width_and_height): Define.
8065         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8066
8067 2015-04-28  Gary Benson <gbenson@redhat.com>
8068
8069         * infrun.c (solist.h): New include.
8070         (follow_exec): Use exec_file_find to prefix execd_pathname
8071         with gdb_sysroot.
8072
8073 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8074
8075         * tui/tui-source.c (tui_set_source_content): Avoid calling
8076         strcpy() when offset is 0.
8077
8078 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8079
8080         PR gdb/18155
8081         * tui/tui-data.c (tui_free_window): Don't free the locator
8082         window when passed an SRC_WIN or a DISASSEM_WIN.
8083
8084 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8085
8086         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8087         (tui_win_content): Move declaration.
8088         (struct tui_gen_win_info): Give 'content' field the
8089         type tui_win_content.
8090         * tui/tui-data.c (init_content_element): Remove redundant and
8091         erroneous casts.
8092         (tui_add_content_elements): Remove erroneous cast.
8093         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8094         casts.
8095         (tui_get_begin_asm_address): Likewise.
8096         * tui/tui-regs.c (tui_show_registers): Likewise.
8097         (tui_show_register_group): Likewise.
8098         (tui_display_registers_from): Likewise.
8099         (tui_check_register_values): Likewise.
8100         * tui/tui-source.c (tui_set_source_content): Likewise.
8101         (tui_set_source_content_nil): Likewise.
8102         (tui_source_is_displayed): Likewise.
8103         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8104         (tui_set_locator_fullname): Likewise.
8105         (tui_set_locator_info): Likewise.
8106         (tui_show_frame_info): Likewise.
8107         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8108         (tui_show_source_line): Likewise.
8109         (tui_horizontal_source_scroll): Likewise.
8110         (tui_update_breakpoint_info): Likewise.
8111         (tui_set_exec_info_content): Likewise.
8112         (tui_show_exec_info_content): Likewise.
8113         (tui_alloc_source_buffer): Likewise.
8114         (tui_line_is_displayed): Likewise.
8115         (tui_addr_is_displayed): Likewise.
8116
8117 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8118
8119         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8120         event if PL_FLAG_EXEC is set.
8121         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8122         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8123         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8124         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8125         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8126
8127 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8128
8129         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8130         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8131         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8132         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8133         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8134         [PT_LWPINFO] (fbsd_wait): New function.
8135         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8136         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8137         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8138         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8139         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8140         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8141         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8142         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8143         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8144         "fbsd_wait".
8145         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8146         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8147         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8148         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8149         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8150         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8151         Set "to_post_attach" to "fbsd_post_attach".
8152
8153 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8154
8155         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8156         (fbsd_find_memory_regions): Mark static.
8157         (fbsd_nat_add_target): New function.
8158         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8159         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8160         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8161         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8162         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8163         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8164
8165 2015-04-27  Gary Benson <gbenson@redhat.com>
8166
8167         * objfiles.c (allocate_objfile): Do not attempt to expand name
8168         if name is a "target:" filename.
8169         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8170         to load auto-load scripts for objfiles with "target:" filenames.
8171
8172 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8173
8174         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8175         (enum s390_vector_abi_kind): New enum.
8176         (struct gdbarch_tdep)<vector_abi>: New field.
8177         (s390_effective_inner_type): Add parameter min_size.  Stop
8178         unwrapping if the inner type is smaller than min_size.
8179         (s390_function_arg_float): Adjust call to
8180         s390_effective_inner_type.
8181         (s390_function_arg_vector): New function.
8182         (s390_function_arg_integer): Adjust comment.
8183         (struct s390_arg_state)<vr>: New field.
8184         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8185         arguments according to vector ABI when appropriate.
8186         (s390_push_dummy_call): Initialize the argument state's field
8187         'vr'.  Adjust calls to s390_handle_arg.
8188         (s390_register_return_value): Handle vector return values.
8189         (s390_return_value): Apply the "register" return value convention
8190         to a vector when appropriate.
8191         (s390_gdbarch_init): Initialize tdep->vector_abi.
8192         * NEWS: Announce S390 vector ABI support.
8193
8194 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8195
8196         * s390-linux-tdep.c (s390_return_value_convention): Remove
8197         function.  Inline its logic...
8198         (s390_return_value): ...here.  Instead, move the handling of the
8199         "register" return value convention...
8200         (s390_register_return_value): ...here.  New function.
8201
8202 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8203
8204         * s390-linux-tdep.c
8205         (is_float_singleton): Remove function.  Move the "singleton" part
8206         of the logic...
8207         (s390_effective_inner_type): ...here.  New function.
8208         (is_float_like): Remove function.  Inline its logic...
8209         (s390_function_arg_float): ...here.
8210         (is_pointer_like, is_integer_like, is_struct_like): Remove
8211         functions.  Inline their logic...
8212         (s390_function_arg_integer): ...here.
8213         (s390_function_arg_pass_by_reference): Remove function.
8214         (extend_simple_arg): Remove function.
8215         (alignment_of): Remove function.
8216         (struct s390_arg_state): New structure.
8217         (s390_handle_arg): New function.
8218         (s390_push_dummy_call): Move parameter placement logic to the new
8219         function s390_handle_arg.  Call it for calculating the stack area
8220         sizes first, and again for actually writing the parameters.
8221
8222 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8223
8224         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8225           false if the argument is zero.
8226
8227 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8228
8229         * ada-lang.c (template_to_static_fixed_type): Return input type
8230         when it is already fixed.  Cache the input type itself when not
8231         creating a static fixed copy.  Make it explicit that we never
8232         molestate the input type.
8233         * gdbtypes.c (resolve_dynamic_struct): Reset the
8234         TYPE_TARGET_TYPE field for resolved copies.
8235
8236 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8237
8238         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8239         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8240         (template_to_static_fixed_type): Call ada_check_typedef only
8241         when necessary.
8242
8243 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8244
8245         * cli/cli-dump.c (srec_dump_command): Add internationalization
8246         mark ups.
8247         (ihex_dump_command): Likewise.
8248         (tekhex_dump_command): Likewise.
8249         (binary_dump_command): Likewise.
8250         (binary_append_command): Likewise.
8251
8252 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8253
8254         * cli/cli-dump.c (verilog_cmdlist): New variable.
8255         (dump_verilog_memory): New function.
8256         (dump_verilog_value): New function.
8257         (verilog_dump_command): New function.
8258         (_initialize_cli_dump): Add new commands to support verilog dump
8259         format.
8260         * NEWS: Add entry for "dump verilog".
8261
8262 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8263
8264         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8265         descriptive type when there is none.
8266
8267 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8268
8269         * tui/tui-win.c (tui_async_resize_screen): Call
8270         rl_resize_terminal().
8271
8272 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8273
8274         * windows-nat.c (handle_output_debug_string): Don't change
8275         current_event.dwThreadId.
8276         (get_windows_debug_event): Use thread_id, rather than relying on
8277         current_event.dwThreadId being changed.
8278
8279 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8280
8281         * windows-nat.c (windows_continue): Report an error if
8282         ContinueDebugEvent() fails.
8283
8284 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8285
8286         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8287
8288 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8289
8290         * windows-nat.c (get_windows_debug_event): Replace retval with
8291         thread_id throughout.  Update stale comment.
8292
8293 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8294
8295         * windows-nat.c (get_windows_debug_event): Don't use ternary
8296         conditional operator.
8297
8298 2015-04-21  Pierre Muller  <muller@sourceware.org>
8299
8300         PR pascal/17815
8301         p-exp.y (yylex): Reorganize code to return the matched pattern
8302         for a field of this.
8303
8304 2015-04-21  Gary Benson <gbenson@redhat.com>
8305
8306         * common/fileio.h (fileio_to_host_openflags): New declaration.
8307         * common/fileio.c (fcntl.h): New include.
8308         (fileio_to_host_openflags): New function, factored out from...
8309         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8310         Single use updated.
8311
8312 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8313
8314         * rl78-tdep.c (RL78_SP_ADDR): Define.
8315         (opc_reg_to_gdb_regnum): New static function.
8316         (rl78_analyze_prologue): Recognize instructions forming slightly
8317         more interesting prologues.
8318
8319 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8320
8321         Revert:
8322         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8323         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8324         TYPE_CODE_REF types so that they are not considered as dynamic
8325         depending on the referenced type.
8326         (resolve_dynamic_type_internal): Likewise.
8327
8328 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8329
8330         Revert:
8331         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8332         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8333         "top_level" parameter.
8334         (resolve_dynamic_type_internal): Remove the unused "top_level"
8335         parameter.  Update call to is_dynamic_type_internal.
8336         (is_dynamic_type): Update call to is_dynamic_type_internal.
8337         (resolve_dynamic_range): Update call to
8338         resolve_dynamic_type_internal.
8339         (resolve_dynamic_union): Likewise.
8340         (resolve_dynamic_struct): Likewise.
8341         (resolve_dynamic_type): Likewise.
8342
8343 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8344
8345         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8346         xmalloc.
8347
8348 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8349
8350         * reply_mig_hack.awk: Robustify parsing.
8351
8352         * reply_mig_hack.awk: Don't bother to declare an intermediate
8353         function pointer variable.
8354
8355 2015-04-17  Doug Evans  <dje@google.com>
8356
8357         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8358         to "exec_displacement" to avoid confusion with inner use of the name.
8359
8360 2015-04-17  Pedro Alves  <palves@redhat.com>
8361
8362         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8363         if HW point of TYPE isn't supported.
8364
8365 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8366             Pedro Alves  <palves@redhat.com>
8367
8368         * target.h (target_can_use_hardware_watchpoint): Update comments.
8369         Remove trailing ";".
8370
8371 2015-04-17  Gary Benson <gbenson@redhat.com>
8372
8373         * remote.c (remote_add_inferior): New argument try_open_exec.
8374         If nonzero, attempt to open the inferior's executable file as
8375         the main executable if no main executable is open already.
8376         All callers updated.
8377         * NEWS: Mention that GDB now supports automatic location and
8378         retrieval of executable + files from remote targets.
8379
8380 2015-04-17  Gary Benson <gbenson@redhat.com>
8381
8382         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8383         * remote.c (PACKET_qXfer_exec_file): Likewise.
8384         (remote_protocol_features): Register the
8385         "qXfer:exec-file:read" feature.
8386         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8387         (remote_pid_to_exec_file): New function.
8388         (init_remote_ops): Initialize to_pid_to_exec_file.
8389         (_initialize_remote): Register new "set/show remote
8390         pid-to-exec-file-packet" command.
8391         * NEWS: Announce new qXfer:exec-file:read packet.
8392
8393 2015-04-17  Gary Benson <gbenson@redhat.com>
8394
8395         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8396         New declaration.
8397         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8398         New function, factored out from...
8399         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8400
8401 2015-04-17  Gary Benson <gbenson@redhat.com>
8402
8403         * exec.c (solist.h): New include.
8404         (exec_file_locate_attach): Prefix absolute executable
8405         paths with gdb_sysroot if set.
8406         * NEWS: Mention that executable paths may be prepended
8407         with sysroot.
8408
8409 2015-04-17  Gary Benson <gbenson@redhat.com>
8410
8411         * solist.h (exec_file_find): New declaration.
8412         * solib.c (solib_find_1): New function, factored out from...
8413         (solib_find): ...here.
8414         (exec_file_find): New function.
8415
8416 2015-04-17  Gary Benson <gbenson@redhat.com>
8417
8418         * gdbcore.h (exec_file_locate_attach): New declaration.
8419         * exec.c (exec_file_locate_attach): New function, factored
8420         out from...
8421         * infcmd.c (attach_command_post_wait): ...here.
8422
8423 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8424
8425         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8426
8427 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8428
8429         * infrun.c (maybe_software_singlestep): Declare.
8430         (displaced_step_fixup): Call maybe_software_singlestep.
8431
8432 2015-04-15  Doug Evans  <dje@google.com>
8433
8434         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8435
8436 2015-04-15  Doug Evans  <dje@google.com>
8437
8438         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8439
8440 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8441
8442         * python/lib/gdb/command/unwinders.py: Add parentheses.
8443
8444 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8445
8446         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8447
8448 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8449
8450         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8451
8452 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8453
8454         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8455         dsc->insn_size instead of 4.
8456
8457 2015-04-14  Gary Benson <gbenson@redhat.com>
8458
8459         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8460         * minidebug.c (lzma_stat): Likewise.
8461         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8462         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8463
8464 2015-04-13  Stan Shebs  <stanshebs@google.com>
8465
8466         * MAINTAINERS: Update my email address.
8467
8468 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8469
8470         * amd64-tdep.c (amd64_target_description): New function.
8471         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8472         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8473         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8474         x86 extended save area.
8475         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8476         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8477         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8478         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8479         "amd64fbsd_read_description".
8480         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8481         (amd64fbsd_supply_xstateregset): New function.
8482         (amd64fbsd_collect_xstateregset): New function.
8483         Add "amd64fbsd_xstateregset".
8484         (amd64fbsd_iterate_over_regset_sections): New function.
8485         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8486         "I386_FBSD_XSAVE_XCR0_OFFSET".
8487         Add "iterate_over_regset_sections" gdbarch method.
8488         Add "core_read_description" gdbarch method.
8489         * i386-tdep.c (i386_target_description): New function.
8490         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8491         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8492         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8493         x86 extended save area.
8494         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8495         * i386bsd-nat.h: Export i386bsd_xsave_len.
8496         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8497         (_initialize_i386fbsd_nat): Set "to_read_description" to
8498         "i386fbsd_read_description".
8499         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8500         (i386fbsd_core_read_description): New function.
8501         (i386fbsd_supply_xstateregset): New function.
8502         (i386fbsd_collect_xstateregset): New function.
8503         Add "i386fbsd_xstateregset".
8504         (i386fbsd_iterate_over_regset_sections): New function.
8505         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8506         "I386_FBSD_XSAVE_XCR0_OFFSET".
8507         Add "iterate_over_regset_sections" gdbarch method.
8508         Add "core_read_description" gdbarch method.
8509         * i386fbsd-tdep.h: New file.
8510
8511 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8512
8513         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8514         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8515         conditional.
8516         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8517         and lb.
8518         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8519         va.
8520         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8521         conditional.
8522         * defs.h (xdb_commands): Remove declaration.
8523         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8524         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8525         * infcmd.c (run_no_args_command, go_command): Remove.
8526         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8527         * infrun.c (xdb_handle_command): Remove.
8528         (_initialize_infrun): Remove xdb_commands for lz and z.
8529         * main.c (xdb_commands): Remove variable.
8530         (captured_main): Remove "xdb" from long_options.
8531         (print_gdb_help): Remove --xdb from help.
8532         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8533         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8534         * stack.c (backtrace_full_command, args_plus_locals_info)
8535         (current_frame_command): Remove.
8536         (_initialize_stack): Remove xdb_commands for t, T and l.
8537         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8538         * thread.c (_initialize_thread): Remove xdb_commands condition.
8539         * tui/tui-layout.c (tui_toggle_layout_command)
8540         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8541         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8542         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8543         (tui_scroll_regs_backward_command): Remove.
8544         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8545         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8546         (_initialize_tui_win): Remove xdb_commands for U and w.
8547         * utils.c (pagination_on_command, pagination_off_command): Remove.
8548         (initialize_utils): Remove xdb_commands for am and sm.
8549
8550 2015-04-10  Pedro Alves  <palves@redhat.com>
8551
8552         * infrun.c (displaced_step_fixup): Switch to the event ptid
8553         earlier.  If the thread stopped for a watchpoint and the
8554         target/arch has non-continuable watchpoints, cancel the displaced
8555         step.
8556         (resume): Don't start a displaced step if in-line step-over info
8557         is valid.
8558
8559 2015-04-10  Pedro Alves  <palves@redhat.com>
8560
8561         * infrun.c (displaced_step_in_progress): New function.
8562         (do_target_resume): Advise target to report all signals if
8563         displaced stepping.
8564
8565 2015-04-10  Pedro Alves  <palves@redhat.com>
8566
8567         PR gdb/18216
8568         * infrun.c (process_event_stop_test): Don't assume a step-resume
8569         is set if tp->stepped_breakpoint is true.
8570
8571 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8572
8573         * arm-tdep.c (install_alu_reg): Update comment.
8574         (thumb_copy_alu_reg): Remove local variable rn.  Update
8575         debugging message.  Use r2 instead of r1 in the modified
8576         instruction.
8577
8578 2015-04-10  Pedro Alves  <palves@redhat.com>
8579
8580         PR gdb/13858
8581         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8582         linux_displaced_step_location as gdbarch_displaced_step_location
8583         hook.
8584         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8585         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8586         * linux-tdep.c (linux_displaced_step_location): New function,
8587         based on ppc_linux_displaced_step_location.
8588         * linux-tdep.h (linux_displaced_step_location): New declaration.
8589         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8590         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8591         Delete.
8592         (ppc_linux_init_abi): Install linux_displaced_step_location as
8593         gdbarch_displaced_step_location hook, even without Cell/B.E..
8594         (_initialize_ppc_linux_tdep): Don't install
8595         ppc_linux_inferior_created as inferior_created observer.
8596         * s390-linux-tdep.c (s390_gdbarch_init): Install
8597         linux_displaced_step_location as gdbarch_displaced_step_location
8598         hook.
8599
8600 2015-04-09  Gary Benson <gbenson@redhat.com>
8601
8602         * common/common-remote-fileio.h: Rename to...
8603         * common/fileio.h: ...this.  Update all references.
8604         (remote_fileio_to_fio_error): Rename to...
8605         (host_to_fileio_error): ...this.
8606         (remote_fileio_to_be): Rename to...
8607         (host_to_bigendian): ...this.  Update all callers.
8608         (remote_fileio_to_fio_uint): Rename to...
8609         (host_to_fileio_uint): ...this.  Update all callers.
8610         (remote_fileio_to_fio_time): Rename to...
8611         (host_to_fileio_time): ...this.  Update all callers.
8612         (remote_fileio_to_fio_stat): Rename to...
8613         (host_to_fileio_stat): ...this.
8614         Update all references.
8615         * common/common-remote-fileio.c: Rename to...
8616         * common/fileio.c: ...this.  Update all references.
8617         (remote_fileio_to_fio_error): Rename to...
8618         (host_to_fileio_error): ...this.  Update all callers.
8619         (remote_fileio_mode_to_target): Rename to...
8620         (fileio_mode_pack): ...this.  Update all callers.
8621         (remote_fileio_to_fio_mode): Rename to...
8622         (host_to_fileio_mode): ...this.  Update all callers.
8623         (remote_fileio_to_fio_ulong): Rename to...
8624         (host_to_fileio_ulong): ...this.  Update all callers.
8625         (remote_fileio_to_fio_stat): Rename to...
8626         (host_to_fileio_stat): ...this.  Update all callers.
8627
8628 2015-04-09  Andy Wingo  <wingo@igalia.com>
8629
8630         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8631         (frame_functions): Bind gdbscm_frame_read_register to
8632         frame-read-register.
8633         * guile/lib/gdb.scm (frame-read-register): Export.
8634
8635 2015-04-09  Gary Benson <gbenson@redhat.com>
8636
8637         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8638         New declaration.
8639         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8640         New function, factored out the named functions below.
8641         * inf-child.c (gdb/fileio.h): Remove include.
8642         (common-remote-fileio.h): New include.
8643         (inf_child_errno_to_fileio_error): Remove function.  Update
8644         all callers to use remote_fileio_to_fio_error.
8645         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8646
8647 2015-04-09  Andy Wingo  <wingo@igalia.com>
8648
8649         * MAINTAINERS (Write After Approval): Add Andy Wingo.
8650
8651 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8652
8653         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8654         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8655         * configure: Regenerated.
8656
8657 2015-04-09  Pedro Alves  <palves@redhat.com>
8658
8659         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8660         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8661         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8662         * gnulib/import/Makefile.am: Update.
8663         * gnulib/import/Makefile.in: Update.
8664         * gnulib/import/m4/gnulib-cache.m4: Update.
8665         * gnulib/import/m4/gnulib-comp.m4: Update.
8666         * gnulib/import/m4/strtok_r.m4: New file.
8667         * gnulib/import/strtok_r.c: New file.
8668
8669 2015-04-09  Pedro Alves  <palves@redhat.com>
8670
8671         * gnulib/update-gnulib.sh (aclocal version check): Filter out
8672         "called too early to check prototype".
8673
8674 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
8675
8676         PR python/16699
8677         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8678         use a caching mechanism.  Adjust comments and code to reflect
8679         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8680         (cmdpy_completer_handle_brkchars): Adjust call to
8681         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
8682         (cmdpy_completer): Likewise.
8683
8684 2015-04-08  Yao Qi  <yao.qi@linaro.org>
8685
8686         * spu-tdep.c (spu_gdbarch_init): Don't call
8687         set_gdbarch_cannot_step_breakpoint.
8688
8689 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
8690
8691         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8692
8693 2015-04-07  Pedro Alves  <palves@redhat.com>
8694
8695         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8696         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8697         (delete_exited_threads): New declaration.
8698         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8699         * linux-nat.c (linux_nat_update_thread_list): New function.
8700         (linux_nat_add_target): Install it.
8701         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8702         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8703         (delete_exited_threads): New function.
8704
8705 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
8706
8707         * infrun.c (resume) <displaced stepping debug output>: Get the
8708         leader thread's regcache, not resume_ptid's.
8709
8710 2015-04-06  Doug Evans  <xdje42@gmail.com>
8711
8712         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8713         VAR_DOMAIN.
8714         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8715         Include symbol domain in debugging output.
8716
8717 2015-04-06  Pedro Alves  <palves@redhat.com>
8718             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8719
8720         * configure.ac: Remove the mingw32-specific stub-termcap.o
8721         fallback, and instead fallback to the stub termcap on all hosts.
8722         * configure: Regenerate.
8723         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8724         symbols.
8725
8726 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8727
8728         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8729         "top_level" parameter.
8730         (resolve_dynamic_type_internal): Remove the unused "top_level"
8731         parameter.  Update call to is_dynamic_type_internal.
8732         (is_dynamic_type): Update call to is_dynamic_type_internal.
8733         (resolve_dynamic_range): Update call to
8734         resolve_dynamic_type_internal.
8735         (resolve_dynamic_union): Likewise.
8736         (resolve_dynamic_struct): Likewise.
8737         (resolve_dynamic_type): Likewise.
8738
8739 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8740
8741         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8742         TYPE_CODE_REF types so that they are not considered as dynamic
8743         depending on the referenced type.
8744         (resolve_dynamic_type_internal): Likewise.
8745
8746 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8747
8748         * Makefile.in (top_srcdir): New.
8749         * configure: Regenerated.
8750
8751 2015-04-02  Gary Benson <gbenson@redhat.com>
8752
8753         * NEWS: Announce the new default sysroot of "target:".
8754
8755 2015-04-02  Gary Benson <gbenson@redhat.com>
8756
8757         * main.c (captured_main): Set gdb_sysroot to "target:"
8758         if not otherwise set.
8759
8760 2015-04-02  Gary Benson <gbenson@redhat.com>
8761
8762         * exec.c (exec_file_attach): Support "target:" filenames.
8763
8764 2015-04-02  Gary Benson <gbenson@redhat.com>
8765
8766         * solib.c (solib_find): Strip "target:" prefix from sysroot
8767         if accessing local files.
8768
8769 2015-04-02  Gary Benson <gbenson@redhat.com>
8770
8771         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8772         checks and error messages.
8773
8774 2015-04-02  Gary Benson <gbenson@redhat.com>
8775
8776         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8777         (remote_filename_p): Remove declaration.
8778         (remote_bfd_open): Likewise.
8779         * remote.c (remote_bfd_iovec_open): Remove function.
8780         (remote_bfd_iovec_close): Likewise.
8781         (remote_bfd_iovec_pread): Likewise.
8782         (remote_bfd_iovec_stat): Likewise.
8783         (remote_filename_p): Likewise.
8784         (remote_bfd_open): Likewise.
8785         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8786         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8787         (gdb_bfd_open_maybe_remote): Remove function.
8788         (symfile_bfd_open):  Replace remote filename check with
8789         target filename check.
8790         (reread_symbols): Use gdb_bfd_open.
8791         * build-id.c (gdbcore.h): New include.
8792         (build_id_to_debug_bfd): Use gdb_bfd_open.
8793         * infcmd.c (attach_command_post_wait): Remove remote filename
8794         check.
8795         * solib.c (solib_find): Replace remote-specific handling with
8796         target-specific handling.  Update comments where necessary.
8797         (solib_bfd_open): Replace remote-specific handling with
8798         target-specific handling.
8799         (gdb_sysroot_changed): New function.
8800         (_initialize_solib): Call the above when gdb_sysroot changes.
8801         * windows-tdep.c (gdbcore.h): New include.
8802         (windows_xfer_shared_library): Use gdb_bfd_open.
8803
8804 2015-04-02  Gary Benson <gbenson@redhat.com>
8805
8806         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8807         (is_target_filename): New declaration.
8808         (gdb_bfd_has_target_filename): Likewise.
8809         (gdb_bfd_open): Update documentation comment.
8810         * gdb_bfd.c (target.h): New include.
8811         (gdb/fileio.h): Likewise.
8812         (is_target_filename): New function.
8813         (gdb_bfd_has_target_filename): Likewise.
8814         (fileio_errno_to_host): Likewise.
8815         (gdb_bfd_iovec_fileio_open): Likewise.
8816         (gdb_bfd_iovec_fileio_pread): Likewise.
8817         (gdb_bfd_iovec_fileio_close): Likewise.
8818         (gdb_bfd_iovec_fileio_fstat): Likewise.
8819         (gdb_bfd_open): Use target fileio to access paths prefixed
8820         with "target:" where necessary.
8821
8822 2015-04-02  Gary Benson <gbenson@redhat.com>
8823
8824         * target.h (struct target_ops) <to_filesystem_is_local>:
8825         New field.
8826         (target_filesystem_is_local): New macro.
8827         * target-delegates.c: Regenerate.
8828         * remote.c (remote_filesystem_is_local): New function.
8829         (init_remote_ops): Initialize to_filesystem_is_local.
8830
8831 2015-04-02  Gary Benson <gbenson@redhat.com>
8832
8833         * target.h (struct target_ops) <to_fileio_fstat>: New field.
8834         (target_fileio_fstat): New declaration.
8835         * target.c (target_fileio_fstat): New function.
8836         * inf-child.c (inf_child_fileio_fstat): Likewise.
8837         (inf_child_target): Initialize to_fileio_fstat.
8838         * remote.c (init_remote_ops): Likewise.
8839
8840 2015-04-01  Sasha Smundak  <asmundak@google.com>
8841
8842         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8843         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8844         (py-unwind.o): New recipe.
8845         * NEWS: mention Python frame unwinding.
8846         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8847         gdb/unwinder.py and gdb/command/unwinder.py
8848         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8849         list.
8850         (execute_unwinders): New function.
8851         * python/lib/gdb/command/unwinders.py: New file.
8852         * python/lib/gdb/unwinder.py: New file.
8853         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8854         (objfpy_dealloc): Decrement frame_unwinders reference count.
8855         (objfpy_initialize): Create frame_unwinders list.
8856         (objfpy_get_frame_unwinders): New function.
8857         (objfpy_set_frame_unwinders): Ditto.
8858         (objfile_getset): Add frame_unwinders attribute to Objfile.
8859         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8860         (pspy_dealloc): Decrement frame_unwinders reference count.
8861         (pspy_initialize): Create frame_unwinders list.
8862         (pspy_get_frame_unwinders): New function.
8863         (pspy_set_frame_unwinders): Ditto.
8864         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8865         * python/py-unwind.c: New file.
8866         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8867         (objpy_get_frame_unwinders): New prototype.
8868         (gdbpy_initialize_unwind): New prototype.
8869         * python/python.c (gdbpy_apply_type_printers): Call
8870         gdbpy_initialize_unwind.
8871
8872 2015-04-01  Pedro Alves  <palves@redhat.com>
8873
8874         * infrun.c (resume): Check currently_stepping after clearing
8875         stepped_breakpoint, not before.
8876
8877 2015-04-01  Pedro Alves  <palves@redhat.com>
8878
8879         * infrun.c (print_target_wait_results): Print all the ptid
8880         elements.
8881
8882 2015-04-01  Pedro Alves  <palves@redhat.com>
8883
8884         * infrun.c (keep_going): Also discard cleanups if inserting
8885         breakpoints fails.
8886
8887 2015-04-01  Pedro Alves  <palves@redhat.com>
8888
8889         * infrun.c (wait_for_inferior): Install the
8890         finish_thread_state_cleanup cleanup across the whole function, not
8891         just around handle_inferior_event.
8892
8893 2015-04-01  Pedro Alves  <palves@redhat.com>
8894
8895         * infrun.c (resume) <step past permanent breakpoint>: Use
8896         do_target_resume.
8897
8898 2015-04-01  Pedro Alves  <palves@redhat.com>
8899
8900         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8901
8902 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
8903
8904         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8905
8906 2015-04-01  Pedro Alves  <palves@redhat.com>
8907
8908         * linux-thread-db.c (record_thread): Readd the thread to gdb's
8909         list if it was marked exited.
8910
8911 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
8912
8913         * configure: Regenerated.
8914
8915 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8916             Jan Kratochvil  <jan.kratochvil@redhat.com>
8917             Oleg Nesterov  <oleg@redhat.com>
8918
8919         PR corefiles/16092
8920         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8921         New enum identifying the various options of the coredump_filter
8922         file.
8923         (struct smaps_vmflags): New struct.
8924         (use_coredump_filter): New variable.
8925         (decode_vmflags): New function.
8926         (mapping_is_anonymous_p): Likewise.
8927         (dump_mapping_p): Likewise.
8928         (linux_find_memory_regions_full): New variables
8929         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8930         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
8931         parsing of its information.  Implement memory mapping filtering
8932         based on its contents.
8933         (show_use_coredump_filter): New function.
8934         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8935         * NEWS: Mention the possibility of using the
8936         '/proc/PID/coredump_filter' file when generating a corefile.
8937         Mention new command 'set use-coredump-filter'.
8938
8939 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8940
8941         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8942         read_memory_unsigned_integer.
8943
8944 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8945
8946         * Makefile.in (ZLIB): New.
8947         (ZLIBINC): Likewise.
8948         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8949         (CLIBS): Add $(ZLIB).
8950         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8951         Add -lz to LIBS.
8952         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8953         * top.c (print_gdb_configuration): Remove --with-zlib and
8954         --without-zlib.
8955         * config.in: Regenerated.
8956         * configure: Likewise.
8957
8958 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8959
8960         * NEWS: Mention info os cpus support.
8961         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8962         (struct osdata_type): Add cpus entry, reorder the entries in
8963         alphabetical order.
8964
8965 2015-03-31  Matthias Klose  <doko@ubuntu.com>
8966
8967         * compile/compile.c (compile_to_object): Allow triplets with or
8968         without vendor set.
8969
8970 2015-03-30  Doug Evans  <dje@google.com>
8971
8972         PR c++/18141
8973         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8974         klass in VAR_DOMAIN.
8975
8976 2015-03-30  Gary Benson <gbenson@redhat.com>
8977
8978         * remote.c (remote_mourn_1): Remove function.  Update all callers
8979         to use remote_mourn.
8980         (extended_remote_mourn_1): Remove function.  Update all callers
8981         to use extended_remote_mourn.
8982         (extended_remote_attach_1): Remove function.  Update all callers
8983         to use extended_remote_attach.
8984
8985 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
8986
8987         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8988         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8989         (ALLDEPFILES): Add ft32-tdep.c.
8990         * configure.tgt: Add FT32 entry.
8991         * ft32-tdep.c: New file, FT32 target-dependent code.
8992         * ft32-tdep.h: New file, FT32 target-dependent code.
8993
8994 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8995
8996         Revert:
8997         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8998         Code cleanup.
8999         * printcmd.c (print_command_1): Move expr variable scope.
9000
9001 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9002
9003         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9004
9005 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9006
9007         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9008         sections.
9009
9010 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9011
9012         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9013         exception raised while parsing the probe arguments.
9014         Force parsing to be done using the C language parser.
9015         * expression.h (parse_expression_with_language): Declare.
9016         * parse.c (parse_expression_with_language): New function.
9017
9018 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9019
9020         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9021
9022 2015-03-26  Andy Wingo  <wingo@igalia.com>
9023
9024         PR symtab/18148
9025         * dwarf2read.c (struct partial_die_info): Add has_const_value
9026         member.
9027         (add_partial_symbol): Don't punt on symbols that have const_value
9028         attributes.
9029         (read_partial_die): Detect DW_AT_const_value.
9030
9031 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9032
9033         Code cleanup.
9034         * printcmd.c (print_command_1): Move expr variable scope.
9035
9036 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9037
9038         Code cleanup.
9039         * printcmd.c (validate_format): Make the parameter cmdname const.
9040
9041 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9042
9043         * remote.c (_initialize_remote): Update comment.
9044
9045 2015-03-26  Pedro Alves  <palves@redhat.com>
9046             Jon TURNEY  <jon.turney@dronecode.org.uk>
9047
9048         * coffread.c (coff_symfile_read): When constructing the name of an
9049         import stub symbol from import symbol for amd64, only skip the
9050         char after _imp_ if the target is underscored (like i386) and the
9051         char is indeed the target's leading char.
9052
9053 2015-03-25  Pedro Alves  <palves@redhat.com>
9054
9055         * target.h <to_async>: Replace 'callback' and 'context' parameters
9056         with boolean 'enable' parameter.
9057         (target_async): Replace CALLBACK and CONTEXT parameters with
9058         boolean ENABLE parameter.
9059         * inf-loop.c (inferior_event_handler): Adjust.
9060         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9061         (linux_nat_resume): Adjust.
9062         (async_client_callback, async_client_context): Delete.
9063         (handle_target_event): Call inferior_event_handler directly.
9064         (linux_nat_async): Replace 'callback' and 'context' parameters
9065         with boolean 'enable' parameter.  Adjust.  Remove references to
9066         async_client_callback and async_client_context.
9067         (linux_nat_close): Adjust.
9068         * record-btrace.c (record_btrace_async): Replace 'callback' and
9069         'context' parameters with boolean 'enable' parameter.  Adjust.
9070         (record_btrace_resume): Adjust.
9071         * record-full.c (record_full_async): Replace 'callback' and
9072         'context' parameters with boolean 'enable' parameter.  Adjust.
9073         (record_full_resume, record_full_core_resume): Adjust.
9074         * remote.c (struct remote_state) <async_client_callback,
9075         async_client_context>: Delete fields.
9076         (remote_start_remote, extended_remote_attach_1, remote_resume)
9077         (extended_remote_create_inferior): Adjust.
9078         (remote_async_serial_handler): Call inferior_event_handler
9079         directly.
9080         (remote_async): Replace 'callback' and 'context' parameters with
9081         boolean 'enable' parameter.  Adjust.
9082         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9083         Adjust.
9084         * target-delegates.c: Regenerate.
9085
9086 2015-03-25  Gary Benson <gbenson@redhat.com>
9087             Pedro Alves  <palves@redhat.com>
9088
9089         * target.c (fileio_ft_t): New typedef, define object vector.
9090         (fileio_fhandles): New static variable.
9091         (is_closed_fileio_fh): New macro.
9092         (lowest_closed_fd): New static variable.
9093         (acquire_fileio_fd): New function.
9094         (release_fileio_fd): Likewise.
9095         (fileio_fd_to_fh): New macro.
9096         (target_fileio_open): Wrap the file descriptor on success.
9097         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9098         (target_fileio_pread): Likewise.
9099         (target_fileio_close): Likewise.
9100
9101 2015-03-24  Pedro Alves  <palves@redhat.com>
9102
9103         * thread.c (thread_apply_all_command): Take exited threads into
9104         account.
9105
9106 2015-03-24  Pedro Alves  <palves@redhat.com>
9107
9108         * infrun.c (resume, proceed): Mention
9109         switch_back_to_stepped_thread, not switch_back_to_stepping.
9110
9111 2015-03-24  Pedro Alves  <palves@redhat.com>
9112
9113         * infrun.c (user_visible_resume_ptid): Rewrite going from
9114         most-locked to unlocked instead of the opposite.  Move comment ...
9115         * infrun.h (user_visible_resume_ptid): ... here.
9116
9117 2015-03-24  Pedro Alves  <palves@redhat.com>
9118
9119         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9120         to resume the event lwp.  Use the lwp's ptid instead of the passed
9121         in (maybe wildcard) ptid.
9122         (stop_wait_callback): Tweak debug log output.
9123         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9124         TRAP_TRACE.
9125         (linux_nat_filter_event): In debug output, distinguish a
9126         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9127         before trying to resume the lwp.
9128
9129 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9130
9131         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9132         pointer indirection.
9133         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9134         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9135
9136 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9137
9138         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9139         Renames DYN_ATTR_DATA_LOCATION.
9140         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9141         DYN_ATTR_DATA_LOCATION.
9142         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9143         instead of DYN_ATTR_DATA_LOCATION.
9144
9145 2015-03-24  Pedro Alves  <palves@redhat.com>
9146
9147         * breakpoint.c (until_break_command): Adjust call to proceed.
9148         * gdbthread.h (struct thread_control_state) <stepping_command>:
9149         New field.
9150         * infcall.c (run_inferior_call): Adjust call to proceed.
9151         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9152         Adjust calls to proceed.
9153         (set_step_frame): Set the current thread's step_start_function
9154         here.
9155         (step_once): Adjust calls to proceed.
9156         (jump_command, signal_command, until_next_command)
9157         (finish_backward, finish_forward, proceed_after_attach_callback)
9158         (attach_command_post_wait): Adjust calls to proceed.
9159         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9160         (do_target_resume): New function, factored out from ...
9161         (resume): ... here.  Remove 'step' parameter.  Instead, check
9162         currently_stepping to determine whether the thread should be
9163         single-stepped.
9164         (proceed): Remove 'step' parameter and don't set the thread's
9165         step_start_function here.  Adjust call to 'resume'.
9166         (handle_inferior_event): Adjust calls to 'resume'.
9167         (switch_back_to_stepped_thread): Use do_target_resume instead of
9168         'resume'.
9169         (keep_going): Adjust calls to 'resume'.
9170         * infrun.h (proceed): Remove 'step' parameter.
9171         (resume): Likewise.
9172         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9173         'resume'.
9174         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9175
9176 2015-03-24  Pedro Alves  <palves@redhat.com>
9177
9178         * gdbthread.h (struct thread_control_state) <stepping_command>:
9179         New field.
9180         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9181         the thread's stepping_command field.
9182         * infrun.c (resume): Check the thread's stepping_command flag to
9183         determine which threads should be resumed.  Rename 'entry_step'
9184         local to user_step.
9185         (clear_proceed_status_thread): Clear 'stepping_command'.
9186         (schedlock_applies): Change parameter type to struct thread_info
9187         pointer.  Adjust.
9188         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9189         (switch_back_to_stepped_thread): Adjust calls to
9190         'schedlock_applies'.
9191         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9192
9193 2015-03-24  Pedro Alves  <palves@redhat.com>
9194
9195         * infrun.c (step_start_function): Delete and ...
9196         * gdbthread.h (struct thread_control_state) <step_start_function>:
9197         ... now a field here.
9198         * infrun.c (clear_proceed_status_thread): Clear the thread's
9199         step_start_function.
9200         (proceed, process_event_stop_test, print_stop_event): Adjust.
9201
9202 2015-03-24  Pedro Alves  <palves@redhat.com>
9203
9204         * infrun.c (proceed): No longer handle negative step.
9205
9206 2015-03-24  Gary Benson  <gbenson@redhat.com>
9207
9208         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9209         (x86_linux_prepare_to_resume): Likewise.
9210         * x86-linux-nat.c (x86_linux_new_thread):
9211         Moved to nat/x86-linux.c.
9212         (x86_linux_prepare_to_resume): Likewise.
9213         * nat/x86-linux.c (x86_linux_new_thread): New function.
9214         (x86_linux_prepare_to_resume): Likewise.
9215
9216 2015-03-24  Gary Benson  <gbenson@redhat.com>
9217
9218         * nat/x86-linux-dregs.h: New file.
9219         * nat/x86-linux-dregs.c: Likewise.
9220         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9221         (x86-linux-dregs.o): New rule.
9222         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9223         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9224         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9225         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9226         (x86_linux_dr_get): Likewise.
9227         (x86_linux_dr_set): Likewise.
9228         (x86_linux_dr_get_addr): Likewise.
9229         (x86_linux_dr_get_control): Likewise.
9230         (x86_linux_dr_get_status): Likewise.
9231         (update_debug_registers_callback): Likewise.
9232         (x86_linux_dr_set_control): Likewise.
9233         (x86_linux_dr_set_addr): Likewise.
9234         (x86_linux_update_debug_registers): Likewise.
9235
9236 2015-03-24  Gary Benson  <gbenson@redhat.com>
9237
9238         * x86-linux-nat.c (x86_linux_update_debug_registers):
9239         New function, factored out from...
9240         (x86_linux_prepare_to_resume): ...this.
9241
9242 2015-03-24  Gary Benson  <gbenson@redhat.com>
9243
9244         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9245         (x86_linux_dr_set): Likewise.
9246         (x86_linux_dr_get_addr): Likewise.
9247         (x86_linux_dr_get_control): Likewise.
9248         (x86_linux_dr_get_status): Likewise.
9249         (update_debug_registers_callback): Likewise.
9250         (x86_linux_dr_set_control): Likewise.
9251         (x86_linux_dr_set_addr): Likewise.
9252         (x86_linux_prepare_to_resume): Likewise.
9253         (x86_linux_new_thread): Likewise.
9254
9255 2015-03-24  Gary Benson  <gbenson@redhat.com>
9256
9257         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9258         (x86_linux_new_thread): Rename argument.
9259
9260 2015-03-24  Gary Benson  <gbenson@redhat.com>
9261
9262         * nat/x86-linux.h: New file.
9263         * nat/x86-linux.c: Likewise.
9264         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9265         (x86-linux.o): New rule.
9266         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9267         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9268         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9269         (lwp_set_arch_private_info): New declaration.
9270         (lwp_arch_private_info): Likewise.
9271         * linux-nat.c (lwp_set_arch_private_info): New function.
9272         (lwp_arch_private_info): Likewise.
9273         * x86-linux-nat.c: Include nat/x86-linux.h.
9274         (arch_lwp_info): Removed structure.
9275         (update_debug_registers_callback):
9276         Use lwp_set_debug_registers_changed.
9277         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9278         and lwp_set_debug_registers_changed.
9279         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9280
9281 2015-03-24  Gary Benson  <gbenson@redhat.com>
9282
9283         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9284         (lwp_is_stopped): Likewise.
9285         (lwp_stop_reason): Likewise.
9286         * linux-nat.c (ptid_of_lwp): New function.
9287         (lwp_is_stopped): Likewise.
9288         (lwp_is_stopped_by_watchpoint): Likewise.
9289         * x86-linux-nat.c (update_debug_registers_callback):
9290         Use lwp_is_stopped.
9291         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9292         lwp_stop_reason.
9293
9294 2015-03-24  Gary Benson  <gbenson@redhat.com>
9295
9296         * linux-nat.h (linux_stop_lwp): Move declaration to...
9297         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9298
9299 2015-03-24  Gary Benson  <gbenson@redhat.com>
9300
9301         * linux-nat.h: Include nat/linux-nat.h.
9302         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9303         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9304         (iterate_over_lwps_ftype): New typedef.
9305         (iterate_over_lwps): New declaration.
9306         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9307         iterate_over_lwps_ftype.  Update callback return value check.
9308
9309 2015-03-24  Gary Benson  <gbenson@redhat.com>
9310
9311         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9312         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9313
9314 2015-03-24  Gary Benson  <gbenson@redhat.com>
9315
9316         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9317         * linux-nat.c (current_lwp_ptid): New function.
9318         * x86-linux-nat.c: Include nat/linux-nat.h.
9319         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9320         (x86_linux_dr_get_control): Likewise.
9321         (x86_linux_dr_get_status): Likewise.
9322         (x86_linux_dr_set_control): Likewise.
9323         (x86_linux_dr_set_addr): Likewise.
9324
9325 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9326
9327         PR breakpoints/16466
9328         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9329
9330 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9331
9332         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9333         * ser-unix.c (hardwire_setparity): Likewise.
9334
9335 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9336
9337         * NEWS: Mention set/show serial parity command.
9338         * monitor.c (monitor_open): Call serial_setparity.
9339         * remote.c (remote_open_1): Likewise.
9340         * ser-base.c (ser_base_serparity): New function.
9341         * ser-base.h (ser_base_setparity): Add  declaration.
9342         * ser-go32.c (dos_ops): Set "setparity" field.
9343         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9344         state.Parity.
9345         (ser_windows_setparity): New function.
9346         (hardwire_ops): Add ser_windows_setparity.
9347         (tty_ops): Add NULL for setparity field.
9348         (pipe_ops): Add ser_base_setparity.
9349         (tcp_ops): Likewise.
9350         * ser-pipe.c (pipe_ops): Likewise.
9351         * ser-tcp.c (tcp_ops): Likewise.
9352         * ser-unix.c (hardwire_setparity): Add declaration.
9353         (hardwire_raw): Don't reset PARENB flag.
9354         (hardwire_setparity): New function.
9355         (hardwire_ops): Add hardwire_setparity.
9356         * serial.c (serial_setparity): New function.
9357         (serial_parity): New global.
9358         (parity_none, parity_odd, parity_even, parity_enums, parity):
9359         New static globals.
9360         (set_parity): New function.
9361         (_initialize_serial): Add set/show serial parity commands.
9362         * serial.h (GDBPARITY_NONE): Define.
9363         (GDBPARITY_ODD): Define.
9364         (GDBPARITY_EVEN): Define.
9365         (serial_setparity) Add declaration.
9366         (struct serial_ops): Add setparity field.
9367         * target.h (serial_parity): Add declaration.
9368
9369 2015-03-23  Keith Seitz  <keiths@redhat.com>
9370
9371         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9372
9373 2015-03-23  Keith Seitz  <keiths@redhat.com>
9374
9375         * breakpoint.c (parse_breakpoint_sals): Use
9376         linespec_lexer_lex_keyword to ascertain if the user specified
9377         a NULL location.
9378         * linespec.c [IF_KEYWORD_INDEX]: Define.
9379         (linespec_lexer_lex_keyword): Export.
9380         (struct ls_parser) <keyword_ok>: Remove.
9381         A keyword is only a keyword if not followed by another keyword.
9382         (linespec_lexer_lex_one): Remove keyword_ok handling.
9383         Add comment explaining why the parsing stream is not advanced
9384         when a keyword is seen.
9385         (parse_linespec): Remove parser->keyword_ok.
9386         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9387
9388 2015-03-23  Keith Seitz  <keiths@redhat.com>
9389
9390         PR gdb/18021
9391         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9392         if we find a static method with DW_AT_vtable_elem_location.
9393
9394 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9395
9396         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9397         before the second loop, to avoid undefined behavior.  Reported by
9398         Anton Blanchard <anton@samba.org>.
9399
9400 2015-03-20  Keven Boell  <keven.boell@intel.com>
9401
9402         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9403         data_location usage to linked list.
9404         (resolve_dynamic_type_internal): Adapt data_location to
9405         linked list.
9406         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9407         (copy_type_recursive, copy_type): Add copy of linked list.
9408         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9409         (struct dynamic_prop_list): New struct.
9410         * dwarf2read.c (set_die_type): Set data_location data.
9411
9412 2015-03-20  Pedro Alves  <palves@redhat.com>
9413
9414         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9415         inner block and make it const.
9416         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9417
9418 2015-03-20  Pedro Alves  <palves@redhat.com>
9419
9420         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9421         * breakpoint.h (set_breakpoint_condition): Update declaration.
9422
9423 2015-03-20  Pedro Alves  <palves@redhat.com>
9424
9425         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9426
9427 2015-03-20  Pedro Alves  <palves@redhat.com>
9428
9429         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9430
9431 2015-03-20  Pedro Alves  <palves@redhat.com>
9432
9433         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9434
9435 2015-03-20  Pedro Alves  <palves@redhat.com>
9436
9437         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9438         (nto_init_solib_absolute_prefix): Likewise.
9439
9440 2015-03-20  Pedro Alves  <palves@redhat.com>
9441
9442         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9443         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9444
9445 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9446
9447         * config/djgpp/README: Remove gdb.hp.
9448
9449 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9450
9451         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9452         set_gdbarch_cannot_step_breakpoint.
9453
9454 2015-03-19  Pedro Alves  <palves@redhat.com>
9455
9456         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9457         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9458         instead call perror_with_name.
9459         (check_ptrace_stopped_lwp_gone): New function.
9460         (linux_resume_one_lwp): Reimplement as wrapper around
9461         linux_resume_one_lwp_throw that swallows errors if the LWP is
9462         gone.
9463         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9464         swallows errors if the LWP is gone.  Use
9465         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9466
9467 2015-03-19  Pedro Alves  <palves@redhat.com>
9468
9469         * linux-nat.c (status_callback): Return early if the LWP has no
9470         status pending.
9471
9472 2015-03-19  Pedro Alves  <palves@redhat.com>
9473
9474         * linux-nat.c (select_event_lwp_callback): Update comment to no
9475         longer mention SIGTRAP.
9476
9477 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9478
9479         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9480         redirection code to ...
9481         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9482         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9483
9484 2015-03-18  Gary Benson <gbenson@redhat.com>
9485
9486         (remote_protocol_features): Remove the "vFile:fstat" feature.
9487         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9488
9489 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9490
9491         PR tdep/18107
9492         * aarch64-linux-tdep.c: Include xml-syscall.h
9493         (aarch64_linux_get_syscall_number): New function.
9494         (aarch64_linux_init_abi): Call
9495         set_gdbarch_get_syscall_number.
9496         * syscalls/aarch64-linux.xml: New file.
9497
9498 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9499
9500         * ser-base.h (ser_base_setstopbits): Change second argument name
9501         from "rate" to "num".
9502
9503 2015-03-17  Gary Benson <gbenson@redhat.com>
9504             Luke Allardyce <lukeallardyce@gmail.com>
9505
9506         PR gdb/18131
9507         * common/common-remote-fileio.h (sys/stat.h): New include.
9508         (stuct stat): Remove forward declaration.
9509
9510 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9511
9512         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9513         before writing core register notes.
9514
9515 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9516             Pedro Alves  <palves@redhat.com>
9517
9518         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9519         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9520         (tgoto): Wrap with extern "C".
9521
9522 2015-03-16  Pedro Alves  <palves@redhat.com>
9523             Yuanhui Zhang  <asmwarrior@gmail.com>
9524
9525         * stub-termcap.c (tputs): Change prototype.
9526
9527 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9528             Pedro Alves  <palves@redhat.com>
9529
9530         * windows-nat.c (struct thread_info_struct): Rename to ...
9531         (struct windows_thread_info_struct): ... this.
9532         (thread_info): Rename to ...
9533         (windows_thread_info): ... this.
9534         All users updated.
9535
9536 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9537             Pedro Alves  <palves@redhat.com>
9538
9539         * NEWS: New Removed targets and native configurations.
9540
9541 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9542
9543         Remove HPUX.
9544         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9545         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9546         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9547         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9548         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9549         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9550         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9551         hppa-hpux-tdep.c.
9552         * config/ia64/hpux.mh: Remove file.
9553         * config/pa/hpux.mh: Remove file.
9554         * configure: Rebuilt.
9555         * configure.ac (dlgetmodinfo, somread.o): Remove.
9556         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9557         (ia64-*-hpux*): Remove its float format exception.
9558         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9559         * hppa-hpux-nat.c: Remove file.
9560         * hppa-hpux-tdep.c: Remove file.
9561         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9562         Move them here from hppa-tdep.h
9563         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9564         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9565         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9566         Move them to hppa-tdep.c.
9567         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9568         declarations.
9569         * ia64-hpux-nat.c: Remove file.
9570         * ia64-hpux-tdep.c: Remove file.
9571         * ia64-hpux-tdep.h: Remove file.
9572         * inf-ttrace.c: Remove file.
9573         * inf-ttrace.h: Remove file.
9574         * solib-ia64-hpux.c: Remove file.
9575         * solib-ia64-hpux.h: Remove file.
9576         * solib-pa64.c: Remove file.
9577         * solib-pa64.h: Remove file.
9578         * solib-som.c: Remove file.
9579         * solib-som.h: Remove file.
9580         * somread.c: Remove file.
9581
9582 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9583
9584         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9585         * config.in: Regenerate.
9586         * configure: Regenerate.
9587         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9588         define.
9589         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9590         enumerate memory regions if present.
9591
9592 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9593
9594         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9595         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9596         expressions.
9597         (i386fbsd_sigtramp_p): Likewise.
9598
9599 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9600
9601         * MAINTAINERS (Write After Approval): Add John Baldwin.
9602
9603 2015-03-12  Gary Benson <gbenson@redhat.com>
9604
9605         * solib.c (_initialize_solib): Make "set/show sysroot" use
9606         add_setshow_optional_filename_cmd so it can be restored to
9607         empty after being set.
9608
9609 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9610
9611         * Makefile.in (SFILES): New source break-catch-syscall.c.
9612         (COMMON_OBS): New object break-catch-syscall.o.
9613         * break-catch-syscall.c: New file.
9614         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9615         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9616         (struct syscall_catchpoint): Likewise.
9617         (dtor_catch_syscall): Likewise.
9618         (catch_syscall_inferior_data): Likewise.
9619         (struct catch_syscall_inferior_data): Likewise.
9620         (get_catch_syscall_inferior_data): Likewise.
9621         (catch_syscall_inferior_data_cleanup): Likewise.
9622         (insert_catch_syscall): Likewise.
9623         (remove_catch_syscall): Likewise.
9624         (breakpoint_hit_catch_syscall): Likewise.
9625         (print_it_catch_syscall): Likewise.
9626         (print_one_catch_syscall): Likewise.
9627         (print_mention_catch_syscall): Likewise.
9628         (print_recreate_catch_syscall): Likewise.
9629         (catch_syscall_breakpoint_ops): Likewise.
9630         (syscall_catchpoint_p): Likewise.
9631         (create_syscall_event_catchpoint): Likewise.
9632         (catch_syscall_split_args): Likewise.
9633         (catch_syscall_command_1): Likewise.
9634         (is_syscall_catchpoint_enabled): Likewise.
9635         (catch_syscall_enabled): Likewise.
9636         (catching_syscall_number): Likewise.
9637         (catch_syscall_completer): Likewise.
9638         (clear_syscall_counts): Likewise.
9639         (initialize_breakpoint_ops): Move initialization of syscall
9640         catchpoints to break-catch-syscall.c.
9641         (_initialize_breakpoint): Move code related to syscall catchpoints
9642         to break-catch-syscall.c.
9643
9644 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9645
9646         * breakpoint.c (breakpoint_find_if): New function.
9647         * breakpoint.h (breakpoint_find_if): New prototype.
9648
9649 2015-03-11  Gary Benson <gbenson@redhat.com>
9650
9651         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9652         * remote-fileio.c (remote_fileio_to_host_uint): New function.
9653         (remote_fileio_to_host_ulong): Likewise.
9654         (remote_fileio_to_host_mode): Likewise.
9655         (remote_fileio_to_host_time): Likewise.
9656         (remote_fileio_to_host_stat): Likewise.
9657         * remote.c (PACKET_vFile_fstat): New enum value.
9658         (remote_protocol_features): Register the "vFile:fstat" feature.
9659         (remote_hostio_fstat): New function.
9660         (remote_bfd_iovec_stat): Use the above.
9661         (_initialize_remote): Register new "set/show remote
9662         hostio-fstat-packet" command.
9663         * symfile.c (separate_debug_file_exists): Update comment.
9664         * NEWS: Announce new vFile:fstat packet.
9665
9666 2015-03-11  Gary Benson <gbenson@redhat.com>
9667
9668         * common/common-remote-fileio.h: New file.
9669         * common/common-remote-fileio.c: Likewise.
9670         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9671         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9672         (COMMON_OBS): Add common-remote-fileio.o.
9673         (common-remote-fileio.o): New rule.
9674         * remote-fileio.h (common-remote-fileio.h): New include.
9675         * remote-fileio.c (gdb/fileio.h): Do not include.
9676         (remote_fileio_to_be): Moved to common-remote-fileio.h.
9677         (remote_fileio_to_fio_uint): Likewise.
9678         (remote_fileio_to_fio_time): Likewise.
9679         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9680         (remote_fileio_to_fio_mode): Likewise.
9681         (remote_fileio_to_fio_ulong): Likewise.
9682         (remote_fileio_to_fio_stat): Likewise.
9683
9684 2015-03-11  Andy Wingo  <wingo@igalia.com>
9685
9686         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9687         we were checking the cached type, not the cached dynamic type.
9688
9689 2015-03-11  Andy Wingo  <wingo@igalia.com>
9690
9691         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9692         other strings, as these are on the GC'd heap, and will be
9693         collected along with the smob.
9694
9695 2015-03-11  Andy Wingo  <wingo@igalia.com>
9696
9697         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9698         (objfile_functions): Bind gdbscm_objfile_progspace to
9699         objfile-progspace.
9700         * guile/lib/gdb.scm: Add objfile-progspace to exports.
9701
9702 2015-03-11  Andy Wingo  <wingo@igalia.com>
9703
9704         * guile/guile.c (_initialize_guile): Disable automatic
9705         finalization, if Guile offers us that possibility.
9706         * guile/guile.c (call_initialize_gdb_module):
9707         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9708         finalizers in appropriate places.
9709         * configure.ac (AC_TRY_LIBGUILE): Add a check for
9710         scm_set_automatic_finalization_enabled.
9711         * configure: Regenerated.
9712
9713 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9714
9715         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9716         SAL, if possible.
9717
9718 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9719
9720         * s390-linux-nat.c (struct arch_lwp_info): New.
9721         (s390_fix_watch_points): Rename to...
9722         (s390_prepare_to_resume): ...this.  Skip the PER info update
9723         unless the watch points have changed.
9724         (s390_refresh_per_info, s390_new_thread): New functions.
9725         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9726         s390_fix_watch_points.
9727         (s390_remove_watchpoint): Likewise.
9728         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9729         Register s390_prepare_to_resume.
9730
9731 2015-03-09  Pedro Alves  <palves@redhat.com>
9732
9733         Revert:
9734         2015-03-07  Pedro Alves  <palves@redhat.com>
9735         * common/gdb_socket.h: New file.
9736         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9737         sys/socket.h.
9738         (net_open): Use union gdb_sockaddr_u.
9739
9740 2015-03-07  Pedro Alves  <palves@redhat.com>
9741
9742         * configure.ac (build_warnings): Move -Wmissing-prototypes
9743         -Wdeclaration-after-statement -Wmissing-parameter-type
9744         -Wold-style-declaration -Wold-style-definition to the C-specific
9745         set.
9746         * configure: Regenerate.
9747
9748 2015-03-07  Pedro Alves  <palves@redhat.com>
9749
9750         * common/gdb_socket.h: New file.
9751         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9752         sys/socket.h.
9753         (net_open): Use union gdb_sockaddr_u.
9754
9755 2015-03-07  Pedro Alves  <palves@redhat.com>
9756
9757         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9758         (exceptions_state_mc_action_iter)
9759         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9760         Don't define.
9761         [__cplusplus] (try_scope_depth): New global.
9762         [__cplusplus] (exception_try_scope_entry)
9763         (exception_try_scope_exit, gdb_exception_sliced_copy)
9764         (exception_rethrow): New functions.
9765         (throw_exception): In C++ mode, throw
9766         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9767         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9768         (throw_it): In C++ mode, use try_scope_depth.
9769         * common/common-exceptions.h [!__cplusplus]
9770         (exceptions_state_mc_action_iter)
9771         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9772         Don't declare.
9773         [__cplusplus] (exception_try_scope_entry)
9774         (exception_try_scope_exit, exception_rethrow): Declare.
9775         [__cplusplus] (struct exception_try_scope): New struct.
9776         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9777         C++ exceptions.
9778         (struct gdb_exception_RETURN_MASK_ALL)
9779         (struct gdb_exception_RETURN_MASK_ERROR)
9780         (struct gdb_exception_RETURN_MASK_QUIT): New types.
9781
9782 2015-03-07  Pedro Alves  <palves@redhat.com>
9783
9784         * main.c (handle_command_errors): Remove volatile qualifier from
9785         parameter.
9786
9787 2015-03-07  Pedro Alves  <palves@redhat.com>
9788
9789         * breakpoint.c (save_breakpoints): Adjust to avoid code between
9790         TRY and CATCH.
9791         * gdbtypes.c (safe_parse_type): Remove empty line.
9792         (types_deeply_equal):
9793         * guile/scm-frame.c (gdbscm_frame_name):
9794         * linux-thread-db.c (find_new_threads_once):
9795         * python/py-breakpoint.c (bppy_get_commands):
9796         * record-btrace.c (record_btrace_insert_breakpoint)
9797         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9798         (record_btrace_start_replaying): Adjust to avoid code between TRY
9799         and CATCH.
9800
9801 2015-03-07  Pedro Alves  <palves@redhat.com>
9802
9803         * common/common-exceptions.c (struct catcher) <exception>: No
9804         longer a pointer to volatile exception.  Now an exception value.
9805         <mask>: Delete field.
9806         (exceptions_state_mc_init): Remove all parameters.  Adjust.
9807         (exceptions_state_mc): No longer pop the catcher here.
9808         (exceptions_state_mc_catch): New function.
9809         (throw_exception): Adjust.
9810         * common/common-exceptions.h (exceptions_state_mc_init): Remove
9811         all parameters.
9812         (exceptions_state_mc_catch): Declare.
9813         (TRY_CATCH): Rename to ...
9814         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
9815         (CATCH, END_CATCH): New.
9816         All callers adjusted.
9817
9818 2015-03-07  Tom Tromey  <tromey@redhat.com>
9819
9820         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9821
9822 2015-03-07  Pedro Alves  <palves@redhat.com>
9823
9824         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9825         (amd64_epilogue_frame_cache): Normal exception handling code.
9826         * break-catch-throw.c (check_status_exception_catchpoint)
9827         (re_set_exception_catchpoint): Ditto.
9828         * cli/cli-interp.c (safe_execute_command):
9829         * cli/cli-script.c (script_from_file): Ditto.
9830         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9831         Ditto.
9832         * compile/compile-object-run.c (compile_object_run): Ditto.
9833         * cp-abi.c (baseclass_offset): Ditto.
9834         * cp-valprint.c (cp_print_value): Ditto.
9835         * exceptions.c (catch_exceptions_with_msg):
9836         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9837         * frame.c (get_frame_address_in_block_if_available): Ditto.
9838         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9839         (i386_sigtramp_frame_cache): Ditto.
9840         * infcmd.c (post_create_inferior): Ditto.
9841         * linespec.c (parse_linespec, find_linespec_symbols):
9842         * p-valprint.c (pascal_object_print_value): Ditto.
9843         * parse.c (parse_expression_for_completion): Ditto.
9844         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9845         * remote.c (remote_get_noisy_reply): Ditto.
9846         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9847         * solib-svr4.c (solib_svr4_r_map): Ditto.
9848
9849 2015-03-06  Gary Benson  <gbenson@redhat.com>
9850
9851         * common/common-utils.h (startswith): New inline function.
9852         All places where this logic was used updated to use the above.
9853
9854 2015-03-05  Pedro Alves  <palves@redhat.com>
9855
9856         PR gdb/18002
9857         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9858         after reading the breakpoint's shadow memory.
9859
9860 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
9861
9862         * hppabsd-nat.c: Remove file.
9863         * hppaobsd-nat.c: New file.
9864         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
9865         hppaobsd-nat.c.
9866         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9867         hppaobsd-nat.o.
9868
9869 2015-03-04  Pedro Alves  <palves@redhat.com>
9870
9871         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9872         (target_decr_pc_after_break): Delete declaration.
9873         * target.c (default_target_decr_pc_after_break)
9874         (target_decr_pc_after_break): Delete.
9875         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9876         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9877         * linux-thread-db.c (check_event): Likewise.
9878         * infrun.c (adjust_pc_after_break): Likewise.
9879         * darwin-nat.c (cancel_breakpoint): Likewise.
9880         * aix-thread.c (aix_thread_wait): Likewise.
9881         * target-delegates.c: Regenerate.
9882
9883 2015-03-04  Pedro Alves  <palves@redhat.com>
9884
9885         * linux-nat.c (save_sigtrap): Check for breakpoints before
9886         checking watchpoints.
9887         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9888         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9889         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9890         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9891         (linux_nat_stopped_by_sw_breakpoint)
9892         (linux_nat_supports_stopped_by_sw_breakpoint)
9893         (linux_nat_stopped_by_hw_breakpoint)
9894         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9895         (linux_nat_wait_1): Don't re-increment the PC if relying on
9896         SIGTRAP's siginfo->si_code.
9897         (linux_nat_add_target): Install new target methods.
9898         * linux-thread-db.c (check_event): Don't account for breakpoint PC
9899         offset if the target already adjusted the PC.
9900         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9901         (GDB_ARCH_TRAP_BRKPT): New.
9902         (TRAP_HWBKPT): Define if not already defined.
9903
9904 2015-03-04  Pedro Alves  <palves@redhat.com>
9905
9906         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9907         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9908         Delete field.
9909         <stop_reason>: New field.
9910         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9911         (packet_set_cmd_state): New function.
9912         (remote_protocol_features): Register the "swbreak" and "hwbreak"
9913         features.
9914         (remote_query_supported): If not disabled with the corresponding
9915         "set remote foo-packet" command, report support for the swbreak
9916         and hwbreak features.
9917         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9918         field.
9919         <stop_reason>: New field.
9920         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9921         (remote_wait_as): Adjust.
9922         (remote_stopped_by_sw_breakpoint)
9923         (remote_supports_stopped_by_sw_breakpoint)
9924         (remote_stopped_by_hw_breakpoint)
9925         (remote_supports_stopped_by_hw_breakpoint): New functions.
9926         (remote_stopped_by_watchpoint): New function.
9927         (init_remote_ops): Install them.
9928         (_initialize_remote): Register new "set/show remote
9929         swbreak-feature-packet" and "set/show remote
9930         swbreak-feature-packet" commands.
9931
9932 2015-03-04  Pedro Alves  <palves@redhat.com>
9933
9934         * btrace.h: Include target/waitstatus.h.
9935         (struct btrace_thread_info) <stop_reason>: New field.
9936         * record-btrace.c (record_btrace_step_thread): Use
9937         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9938         (record_btrace_decr_pc_after_break): Delete.
9939         (record_btrace_stopped_by_sw_breakpoint)
9940         (record_btrace_supports_stopped_by_sw_breakpoint)
9941         (record_btrace_stopped_by_hw_breakpoint)
9942         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9943         (init_record_btrace_ops): Install them.
9944         * record-full.c (record_full_hw_watchpoint): Delete and replace
9945         with ...
9946         (record_full_stop_reason): ... this throughout.
9947         (record_full_exec_insn): Adjust.
9948         (record_full_wait_1): Adjust.  No longer re-increment the PC.
9949         (record_full_wait_1): Adjust.  Use
9950         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9951         (record_full_stopped_by_watchpoint): Adjust.
9952         (record_full_stopped_by_sw_breakpoint)
9953         (record_full_supports_stopped_by_sw_breakpoint)
9954         (record_full_supports_stopped_by_sw_breakpoint)
9955         (record_full_stopped_by_hw_breakpoint)
9956         (record_full_supports_stopped_by_hw_breakpoint): New functions.
9957         (init_record_full_ops, init_record_full_core_ops): Install them.
9958         * record.c (record_check_stopped_by_breakpoint): New function.
9959         * record.h: Include target/waitstatus.h.
9960         (record_check_stopped_by_breakpoint): New declaration.
9961
9962 2015-03-04  Pedro Alves  <palves@redhat.com>
9963
9964         enum lwp_stop_reason -> enum target_stop_reason
9965         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9966         (linux_nat_stopped_by_watchpoint, status_callback)
9967         (linux_nat_wait_1): Adjust.
9968         * linux-nat.h (enum lwp_stop_reason): Delete.
9969         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9970         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9971         * target/waitstatus.h (enum target_stop_reason): New.
9972
9973 2015-03-04  Pedro Alves  <palves@redhat.com>
9974
9975         * breakpoint.c (need_moribund_for_location_type): New function.
9976         (bpstat_stop_status): Don't skipping checking moribund locations
9977         of breakpoint types which the target tell caused a stop.
9978         (program_breakpoint_here_p): New function, factored out from ...
9979         (bp_loc_is_permanent): ... this.
9980         (update_global_location_list): Don't create a moribund location if
9981         the target supports reporting stops of the type of the removed
9982         breakpoint.
9983         * breakpoint.h (program_breakpoint_here_p): New declaration.
9984         * infrun.c (adjust_pc_after_break): Return early if the target has
9985         already adjusted the PC.  Add comments.
9986         (handle_signal_stop): If nothing explains a signal, and the target
9987         tells us the stop was caused by a software breakpoint, check if
9988         there's a breakpoint instruction in the memory.  If so, adjust the
9989         PC before presenting the stop to the user.  Otherwise, ignore the
9990         trap.  If nothing explains a signal, and the target tells us the
9991         stop was caused by a hardware breakpoint, ignore the trap.
9992         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9993         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9994         to_supports_stopped_by_hw_breakpoint>: New fields.
9995         (target_stopped_by_sw_breakpoint)
9996         (target_supports_stopped_by_sw_breakpoint)
9997         (target_stopped_by_hw_breakpoint)
9998         (target_supports_stopped_by_hw_breakpoint): Define.
9999         * target-delegates.c: Regenerate.
10000
10001 2015-03-04  Pedro Alves  <palves@redhat.com>
10002
10003         * infrun.c (follow_fork_inferior): Use the whole of the
10004         inferior_ptid and pending_follow.related_pid ptids instead of
10005         building ptids from the process components.  Adjust verbose output
10006         to use target_pid_to_str.
10007         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10008         inferior_ptid and pending_follow.related_pid ptids instead of
10009         building ptids from the process components.
10010
10011 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10012
10013         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10014         (inf_ptrace_insert_fork_catchpoint): New function.
10015         (inf_ptrace_remove_fork_catchpoint): New function.
10016         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10017
10018 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10019
10020         * s390-linux-tdep.c (s390_register_name): Return empty string
10021         instead of NULL for registers that shouldn't be visible.
10022
10023 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10024
10025         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10026         XML file for 64-bit targets.
10027
10028 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10029
10030         * target.h (find_default_create_inferior): Remove declaration.
10031         (find_default_attach): Likewise.
10032
10033 2015-03-03  Pedro Alves  <palves@redhat.com>
10034
10035         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10036         Use ptid_get_pid to get the overall process id when resuming all
10037         threads.
10038
10039 2015-03-03  Pedro Alves  <palves@redhat.com>
10040
10041         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10042         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10043         * inf-ptrace.c (get_ptrace_pid): New function.
10044         (inf_ptrace_resume): Use it.
10045         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10046         to the lower layer.
10047
10048 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10049
10050         * nat/linux-btrace.c: Include sys/utsname.h.
10051         (linux_determine_kernel_ptr_bits): New.
10052         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10053         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10054         ptr_bits.
10055
10056 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10057
10058         * btrace.c (ftrace_update_function): Treat return as tailcall for
10059         "_dl_runtime_resolve".
10060
10061 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10062
10063         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10064         * btrace.c (ftrace_debug): Do not print the line range.
10065         (ftrace_skip_file, ftrace_update_lines): Remove.
10066         (ftrace_new_function): Remove lbegin and lend initialization.
10067         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10068         * record-btrace.c (btrace_compute_src_line_range): New.
10069         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10070
10071 2015-03-02  Pedro Alves  <palves@redhat.com>
10072
10073         * infrun.c (follow_exec): Delete all threads of the process except
10074         the event thread.  Extended comments.
10075
10076 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10077
10078         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10079
10080 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10081
10082         * utils.h: Remove <stdbool.h> #include.
10083         (producer_is_gcc): Change return type to "int".
10084         * utils.c (producer_is_gcc): Change return type to int.
10085         Return 1 instead of true, and 0 instead of false.
10086         Adjust function documentation accordingly.
10087
10088 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10089
10090         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10091         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10092         present.
10093         (s390_linux_store_inferior_registers): Likewise.
10094         (s390_get_hwcap): Remove function.  Embed its logic...
10095         (s390_read_description): ...here.  Yield a target description with
10096         vector registers if applicable.
10097         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10098         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10099         "features/s390x-tevx-linux64.c".
10100         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10101         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10102         for "GNU/Linux-specific registers".
10103         (s390_dwarf_reg_r0l): New enum value.
10104         (s390_dwarf_reg_to_regnum): Support vector registers.
10105         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10106         of GPR lower halves.
10107         (regnum_is_vxr_full): New function.
10108         (s390_register_name): New function.
10109         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10110         f0-f15 and v0l-v15l.
10111         (s390_pseudo_register_type): Likewise.
10112         (s390_pseudo_register_read): Likewise.
10113         (s390_pseudo_register_write): Likewise.
10114         (s390_value_from_register): Account for the fact that values are
10115         placed left-justified in vector registers.
10116         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10117         the vector reggroup and omit them from the general reggroup.
10118         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10119         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10120         (s390_iterate_over_regset_sections): Add iterations for the two
10121         new vector regsets.
10122         (s390_core_read_description): Yield a target description with
10123         vector registers if applicable.
10124         (s390_gdbarch_init): Handle target descriptions with vector
10125         registers.  Add "register_name" gdbarch method.
10126         (_initialize_s390_tdep): Call new tdesc initialization functions.
10127         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10128         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10129         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10130         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10131         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10132         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10133         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10134         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10135         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10136         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10137         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10138         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10139         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10140         (S390_NUM_REGS): Adjust value.
10141         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10142         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10143         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10144         * NEWS: Announce S/390 vector register support.
10145
10146 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10147
10148         * features/s390-tevx-linux64.xml: New file.
10149         * features/s390-vx-linux64.xml: New file.
10150         * features/s390-vx.xml: New file.
10151         * features/s390x-tevx-linux64.xml: New file.
10152         * features/s390x-vx-linux64.xml: New file.
10153         * features/Makefile (WHICH): Add s390-vx-linux64,
10154         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10155         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10156         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10157         macros.
10158         * features/s390-tevx-linux64.c: New generated file.
10159         * features/s390-vx-linux64.c: Likewise.
10160         * features/s390x-tevx-linux64.c: Likewise.
10161         * features/s390x-vx-linux64.c: Likewise.
10162         * regformats/s390-tevx-linux64.dat: Likewise.
10163         * regformats/s390-vx-linux64.dat: Likewise.
10164         * regformats/s390x-tevx-linux64.dat: Likewise.
10165         * regformats/s390x-vx-linux64.dat: Likewise.
10166
10167 2015-02-28  Doug Evans  <xdje42@gmail.com>
10168
10169         * symtab.h (struct symtab) <next>: Fix comment.
10170
10171 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10172
10173         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10174         python_GdbMethods.
10175
10176 2015-02-27  Pedro Alves  <palves@redhat.com>
10177
10178         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10179
10180 2015-02-27  Pedro Alves  <palves@redhat.com>
10181
10182         * common/common-exceptions.h (exception_none): Declare.
10183         * common/common-exceptions.c (exception_none): Moved from
10184         exceptions.c.
10185         (exceptions_state_mc_init): Use exception_none.
10186         * exceptions.c (exception_none): Move to
10187         common/common-exceptions.c.
10188         * exceptions.h (exception_none): Move to
10189         common/common-exceptions.h.
10190
10191 2015-02-27  Pedro Alves  <palves@redhat.com>
10192
10193         * main.c (catch_command_errors, catch_command_errors_const):
10194         Remove 'mask' argument.  Adjust.
10195         (captured_main): Adjust callers.
10196
10197 2015-02-27  Pedro Alves  <palves@redhat.com>
10198
10199         * python/python-internal.h: Include "extension-priv.h".
10200
10201 2015-02-27  Pedro Alves  <palves@redhat.com>
10202
10203         * breakpoint.h (enum print_stop_action): Move further up in the
10204         file.
10205
10206 2015-02-27  Pedro Alves  <palves@redhat.com>
10207
10208         * gdbarch.sh: Include regcache.h.
10209         * gdbarch.h: Regenerate.
10210
10211 2015-02-27  Pedro Alves  <palves@redhat.com>
10212
10213         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10214         Remove duplicate const.
10215         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10216         duplicate const.
10217
10218 2015-02-27  Pedro Alves  <palves@redhat.com>
10219
10220         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10221         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10222         * features/feature_to_c.sh: Tag the generated xml_builtin array
10223         with extern const in C++ mode.
10224
10225 2015-02-27  Tom Tromey  <tromey@redhat.com>
10226
10227         * minidebug.c (struct lzma_stream): Rename to ...
10228         (struct gdb_lzma_stream): ... this.
10229         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10230
10231 2015-02-27  Pedro Alves  <palves@redhat.com>
10232
10233         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10234         function.
10235         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10236         (mi_cmd_stack_list_variables): Use it.
10237
10238 2015-02-27  Pedro Alves  <palves@redhat.com>
10239
10240         * x86-linux-nat.c (u_debugreg_offset): New function.
10241         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10242
10243 2015-02-27  Pedro Alves  <palves@redhat.com>
10244
10245         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10246         declaration.
10247         Include break-common.h.
10248
10249 2015-02-27  Tom Tromey  <tromey@redhat.com>
10250             Pedro Alves <palves@redhat.com>
10251
10252         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10253         local used to iterate over enums.
10254         * completer.c (signal_completer): Likewise.
10255         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10256         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10257         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10258         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10259         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10260         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10261         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10262
10263 2015-02-27  Pedro Alves  <palves@redhat.com>
10264
10265         * target.h: Include "infrun.h".
10266
10267 2015-02-27  Pedro Alves  <palves@redhat.com>
10268
10269         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10270
10271 2015-02-27  Pedro Alves  <palves@redhat.com>
10272
10273         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10274         (IPA_SYM): Use it.
10275         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10276
10277 2015-02-27  Pedro Alves  <palves@redhat.com>
10278
10279         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10280         cli_mld_erase_entire_line, and make it extern "C".
10281         * common/common-defs.h (EXTERN_C): New.
10282         * completer.c (_rl_completion_prefix_display_length)
10283         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10284         out of gdb_display_match_list_1.
10285         (_rl_qsort_string_compare): Move declaration out of
10286         gdb_display_match_list_1, and make it extern "C".
10287         * defs.h (re_comp): Use EXTERN_C.
10288         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10289         and make it extern "C".
10290         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10291         and make it extern "C".
10292         (main): Move declaration out of maintenance_set_profile_cmd.
10293         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10294         EXTERN_C.
10295
10296 2015-02-27  Pedro Alves  <palves@redhat.com>
10297
10298         * python/python.c (GdbMethods): Rename to ...
10299         (python_GdbMethods): ... this and make extern.
10300         (GdbModuleDef): Rename to ...
10301         (python_GdbModuleDef): ... this and make extern.
10302
10303 2015-02-27  Pedro Alves  <palves@redhat.com>
10304
10305         * record-btrace.c (set_record_btrace_cmdlist)
10306         (show_record_btrace_cmdlist): Remove redefinitions.
10307
10308 2015-02-27  Tom Tromey  <tromey@redhat.com>
10309             Pedro Alves  <palves@redhat.com>
10310
10311         * dwarf2-frame.c (enum cfa_how_kind, struct
10312         dwarf2_frame_state_reg_info): Move out of struct
10313         dwarf2_frame_state.
10314         * dwarf2read.c (struct tu_stats): Move out of struct
10315         dwarf2_per_objfile.
10316         (struct file_entry): Move out of struct line_header.
10317         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10318         typedef_field_list): Move out of struct field_info.
10319         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10320         Move out of struct dynamic_prop.
10321         (union type_owner, union field_location, struct field, struct
10322         range_bounds, union type_specific): Move out of struct main_type.
10323         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10324         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10325         (struct call_site_target, union call_site_parameter_u, struct
10326         call_site_parameter): Move out of struct call_site.
10327         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10328         m32c_prologue.
10329         (enum srcdest_kind): Move out of struct srcdest.
10330         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10331         * prologue-value.h (enum prologue_value_kind): Move out of struct
10332         prologue_value.
10333         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10334         gdbarch_tdep.
10335         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10336         out of struct field_info.
10337         * symfile.h (struct other_sections): Move out of struct
10338         section_addr_info.
10339         * symtab.c (struct symbol_cache_slot): Move out struct
10340         block_symbol_cache.
10341         * target-descriptions.c (enum tdesc_type_kind): Move out of
10342         typedef struct tdesc_type.
10343         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10344         struct tui_line_or_address.
10345         * value.c (enum internalvar_kind, union internalvar_data): Move
10346         out of struct internalvar.
10347         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10348         gdbarch_tdep.
10349
10350 2015-02-27  Tom Tromey  <tromey@redhat.com>
10351             Pedro Alves  <palves@redhat.com>
10352
10353         Rename symbols whose names are reserved C++ keywords throughout.
10354
10355 2015-02-27  Pedro Alves  <palves@redhat.com>
10356
10357         * Makefile.in (COMPILER): New, get it from autoconf.
10358         (COMPILE.pre, CC_LD): Use COMPILER.
10359         (CXX): Get from autoconf instead.
10360         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10361         * acinclude.m4: Include build-with-cxx.m4.
10362         * build-with-cxx.m4: New file.
10363         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10364         Disable -Werror by default if building in C++ mode.
10365         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10366         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10367         Run supported-warning-flags tests with the C++ compiler.
10368         Save/restore CXXFLAGS too.
10369         * configure: Regenerate.
10370
10371 2015-02-27  Pedro Alves  <palves@redhat.com>
10372
10373         * libiberty.m4: New file.
10374         * acinclude.m4: Include libiberty.m4.
10375         * configure.ac: Call libiberty_INIT.
10376         * config.in, configure: Regenerate.
10377
10378 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10379
10380         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10381         31-bit targets, but 64-bit targets as well.
10382         (s390_gnu_triplet_regexp): New function.
10383         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10384         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10385         method.
10386
10387 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10388
10389         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10390         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10391         from CONTEXT_DEBUGGER.
10392
10393 2015-02-26  Doug Evans  <dje@google.com>
10394
10395         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10396         CHECK_TYPEDEF.
10397         (set_type_vptr_fieldno): Ditto.
10398         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10399         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10400
10401 2015-02-26  Pedro Alves  <palves@redhat.com>
10402
10403         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10404         * complaints.c (vcomplaint): Pass argument FMT directly to
10405         printf-like functions instead of complaint->fmt.
10406         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10407         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10408         * compile/compile-loc2c.c (pushf, unary, binary): Add
10409         ATTRIBUTE_PRINTF.
10410         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10411         to pushf.
10412         (BINARY): Pass string literal as format string to 'binary'.
10413         * compile/compile-object-load.c (link_callbacks_einfo): Add
10414         ATTRIBUTE_PRINTF.
10415         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10416
10417 2015-02-26  Pedro Alves  <palves@redhat.com>
10418
10419         * windows-termcap.c: Rename to ...
10420         * stub-termcap.c: ... this.  Adjust header line.
10421         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10422         windows-termcap.c.
10423         * configure: Regenerate.
10424         * configure.ac: Refer to stub-termcap.o instead of
10425         windows-termcap.o.
10426         * gdb_curses.h: Mention stub-termcap.c instead of
10427         windows-termcap.c.
10428
10429 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10430
10431         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10432         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10433
10434 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10435
10436         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10437
10438 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10439
10440         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10441         bfd_canonicalize_symtab.
10442
10443 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10444
10445         * amd64fbsd-nat.c: Include sys/user.h.
10446         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10447         instead of KERN_PS_STRINGS to locate the signal trampoline.
10448         * i386fbsd-nat.c: Include sys/user.h.
10449         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10450         instead of KERN_PS_STRINGS to locate the signal trampoline.
10451         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10452         (amd64fbsd_sigtramp_p): New.
10453         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10454         longer set default values.
10455         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10456         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10457         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10458         (i386fbsd_freebsd4_sigtramp_start)
10459         (i386fbsd_freebsd4_sigtramp_middle)
10460         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10461         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10462         (i386fbsd_sigtramp_p): New.
10463         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10464         longer set default values.
10465         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10466
10467 2015-02-25  John Baldwin  <jhb@freebsd.org>
10468
10469         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10470         get_frame_register instead of frame_unwind_register_unsigned.
10471
10472 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10473
10474         PR build/18033
10475         * compile/compile-c-support.c (c_compute_program): Change // comment.
10476         * compile/compile-object-load.c (setup_sections): Change // comment.
10477
10478 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10479
10480         PR build/18033:
10481         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10482
10483 2015-02-23  Pedro Alves  <palves@redhat.com>
10484
10485         * remote.c (skip_to_semicolon): New function.
10486         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10487         special case the stop reasons that look like hex numbers
10488         upfront.  Instead handle real register numbers after matching
10489         all the known stop reasons.
10490
10491 2015-02-21  Doug Evans  <dje@google.com>
10492
10493         PR c++/17976, symtab/17821
10494         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10495         is_in_anonymous.  All callers updated.
10496         (find_symbol_in_baseclass): Ditto.
10497         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10498         for symbols in an anonymous namespace.
10499         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10500         DW_AT_name directly.
10501         (dwarf2_name): Convert missing namespace name to
10502         CP_ANONYMOUS_NAMESPACE_STR.
10503
10504 2015-02-20  Pedro Alves  <palves@redhat.com>
10505
10506         * linux-nat.c (linux_handle_extended_wait): Call
10507         thread_db_notice_clone whenever a new clone LWP is detected.
10508         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10509         functions.
10510         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10511         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10512         (linux_unstop_all_lwps): Declare.
10513         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10514         (thread_get_info_callback): Delete.
10515         (thread_from_lwp): Use td_thr_get_info and record_thread.
10516         (thread_db_attach_lwp): Delete.
10517         (thread_db_notice_clone): New function.
10518         (try_thread_db_load_1): If /proc is mounted and shows the
10519         process'es task list, walk over all LWPs and call thread_from_lwp
10520         instead of relying on td_ta_thr_iter.
10521         (attach_thread): Don't call check_thread_signals here.  Split the
10522         tail part of the function (which adds the thread to the core GDB
10523         thread list) to ...
10524         (record_thread): ... this function.  Call check_thread_signals
10525         here.
10526         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10527         call thread_from_lwp.
10528         (thread_db_update_thread_list): Rename to ...
10529         (thread_db_update_thread_list_org): ... this.
10530         (thread_db_update_thread_list): New function.
10531         (thread_db_find_thread_from_tid): Delete.
10532         (thread_db_get_ada_task_ptid): Simplify.
10533         * nat/linux-procfs.c: Include <sys/stat.h>.
10534         (linux_proc_task_list_dir_exists): New function.
10535         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10536
10537 2015-02-20  Pedro Alves  <palves@redhat.com>
10538
10539         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10540         main LWP.  Handle the case of waitpid returning 0 if we're already
10541         attached to the LWP.  Don't set the LWP's last_resume_kind to
10542         resume_stop if we already knew about the LWP.
10543         (linux_nat_filter_event): Add debug logs.
10544
10545 2015-02-20  Pedro Alves  <palves@redhat.com>
10546
10547         * target.h (forward_target_decr_pc_after_break): Delete
10548         declaration.
10549
10550 2015-02-20  Pedro Alves  <palves@redhat.com>
10551
10552         PR threads/18006
10553         * linux-thread-db.c (thread_get_info_callback): Return early if
10554         the thread's lwp id is -1.
10555
10556 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10557
10558         GDB 7.9 released.
10559
10560 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10561
10562         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10563         (dtrace_get_probes) Change type of variable 'dof'.
10564
10565 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10566
10567         PR breakpoints/16812
10568         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10569         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10570         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10571
10572 2015-02-19  David Taylor  <dtaylor@emc.com>
10573
10574         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10575
10576 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10577
10578         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10579         function.
10580         (tui_putc): Don't call tui_handle_resize_during_io.
10581         (tui_getc): Likewise.
10582         (tui_mld_getc): Likewise.
10583         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10584         (tui_sigwinch_token): New static variable.
10585         (tui_initialize_win): Adjust documentation.  Set
10586         tui_sigwinch_token.
10587         (tui_async_resize_screen): New asynchronous callback.
10588         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10589         invoke tui_async_resize_screen.
10590
10591 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10592
10593         * configure: Regenerated.
10594         * configure.ac: Use GDB_AC_TRANSFORM.
10595         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10596         * acinclude.m4: sinclude transform.m4.
10597         * transform.m4: New file.
10598         (GDB_AC_TRANSFORM): New macro.
10599
10600 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10601
10602         * NEWS: Announce the support for DTrace SDT probes.
10603
10604 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10605
10606         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10607         (amd64_dtrace_parse_probe_argument): New function.
10608         (amd64_dtrace_probe_is_enabled): Likewise.
10609         (amd64_dtrace_enable_probe): Likewise.
10610         (amd64_dtrace_disable_probe): Likewise.
10611         (amd64_linux_init_abi): Register the
10612         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10613         `gdbarch_dtrace_disable_probe' and
10614         `gdbarch_dtrace_probe_is_enabled' hooks.
10615         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10616         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10617         (amd64_dtrace_enable_probe_sequence): Likewise.
10618         (amd64_dtrace_disable_probe_sequence): Likewise.
10619
10620 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10621
10622         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10623         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10624         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10625         handle ELF files.
10626         * Makefile.in (SFILES): dtrace-probe.c added.
10627         * configure: Regenerate.
10628         * dtrace-probe.c: New file.
10629         (SHT_SUNW_dof): New constant.
10630         (dtrace_probe_type): New enum.
10631         (dtrace_probe_arg): New struct.
10632         (dtrace_probe_arg_s): New typedef.
10633         (struct dtrace_probe_enabler): New struct.
10634         (dtrace_probe_enabler_s): New typedef.
10635         (dtrace_probe): New struct.
10636         (dtrace_probe_is_linespec): New function.
10637         (dtrace_dof_sect_type): New enum.
10638         (dtrace_dof_dofh_ident): Likewise.
10639         (dtrace_dof_encoding): Likewise.
10640         (DTRACE_DOF_ENCODE_LSB): Likewise.
10641         (DTRACE_DOF_ENCODE_MSB): Likewise.
10642         (dtrace_dof_hdr): New struct.
10643         (dtrace_dof_sect): Likewise.
10644         (dtrace_dof_provider): Likewise.
10645         (dtrace_dof_probe): Likewise.
10646         (DOF_UINT): New macro.
10647         (DTRACE_DOF_PTR): Likewise.
10648         (DTRACE_DOF_SECT): Likewise.
10649         (dtrace_process_dof_probe): New function.
10650         (dtrace_process_dof): Likewise.
10651         (dtrace_build_arg_exprs): Likewise.
10652         (dtrace_get_arg): Likewise.
10653         (dtrace_get_probes): Likewise.
10654         (dtrace_get_probe_argument_count): Likewise.
10655         (dtrace_can_evaluate_probe_arguments): Likewise.
10656         (dtrace_evaluate_probe_argument): Likewise.
10657         (dtrace_compile_to_ax): Likewise.
10658         (dtrace_probe_destroy): Likewise.
10659         (dtrace_gen_info_probes_table_header): Likewise.
10660         (dtrace_gen_info_probes_table_values): Likewise.
10661         (dtrace_probe_is_enabled): Likewise.
10662         (dtrace_probe_ops): New variable.
10663         (info_probes_dtrace_command): New function.
10664         (_initialize_dtrace_probe): Likewise.
10665         (dtrace_type_name): Likewise.
10666
10667 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10668
10669         * gdbarch.sh (dtrace_parse_probe_argument): New.
10670         (dtrace_probe_is_enabled): Likewise.
10671         (dtrace_enable_probe): Likewise.
10672         (dtrace_disable_probe): Likewise.
10673         * gdbarch.c: Regenerate.
10674         * gdbarch.h: Regenerate.
10675
10676 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10677
10678         * stap-probe.c (stap_probe_ops): Add NULLs in the static
10679         stap_probe_ops for `enable_probe' and `disable_probe'.
10680         * probe.c (enable_probes_command): New function.
10681         (disable_probes_command): Likewise.
10682         (_initialize_probe): Define the cli commands `enable probe' and
10683         `disable probe'.
10684         (parse_probe_linespec): New function.
10685         (info_probes_for_ops): Use parse_probe_linespec.
10686         * probe.h (probe_ops): New hooks `enable_probe' and
10687         `disable_probe'.
10688
10689 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10690
10691         * probe.c (compute_probe_arg): Moved from stap-probe.c
10692         (compile_probe_arg): Likewise.
10693         (probe_funcs): Likewise.
10694         * stap-probe.c (compute_probe_arg): Moved to probe.c.
10695         (compile_probe_arg): Likewise.
10696         (probe_funcs): Likewise.
10697
10698 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10699
10700         * probe.c (print_ui_out_not_applicables): New function.
10701         (exists_probe_with_pops): Likewise.
10702         (info_probes_for_ops): Do not include column headers for probe
10703         types for which no probe has been actually found on any object.
10704         Also invoke `print_ui_out_not_applicables' in order to match the
10705         column rows with the header when probes of several types are
10706         listed.
10707         Print the "Type" column.
10708         * probe.h (probe_ops): Added a new probe operation `type_name'.
10709         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10710         (stap_type_name): New function.
10711
10712 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
10713
10714         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10715         (key_is_command_char): Delete.
10716
10717 2015-02-17  Pedro Alves  <palves@redhat.com>
10718
10719         * tui/tui.c (tui_enable): Resize windows before anything
10720         might show a window.
10721
10722 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10723
10724         PR gdb/17984
10725         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10726         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10727         call.
10728         * aarch64-tdep.h (tdesc_aarch64): Declare.
10729
10730 2015-02-12  Mark Wielaard  <mjw@redhat.com>
10731
10732         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10733
10734 2015-02-13  Doug Evans  <dje@google.com>
10735
10736         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10737         anonymous_namespace to is_in_anonymous for consistency with the rest
10738         of the file.
10739         (cp_lookup_bare_symbol): Fix typo in comment.
10740         (cp_search_static_and_baseclasses): Ditto.
10741         (search_symbol_list): Use vertical space in comment better.
10742         (reset_directive_searched): Ditto. Fix typo.
10743         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10744
10745 2015-02-13  Yao Qi  <yao.qi@arm.com>
10746
10747         * MAINTAINERS: Update my email address.
10748
10749 2015-02-12  Doug Evans  <dje@google.com>
10750
10751         * symtab.c (completion_list_add_name): Fix memory leak.
10752
10753 2015-02-12  Doug Evans  <dje@google.com>
10754
10755         * completer.c (complete_line): Remove incorrect comment.
10756
10757 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10758
10759         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10760         (py_print_frame): Use RETURN_MASK_ERROR.
10761
10762 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10763
10764         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10765         function comment.  Wrap all function that can throw in cleanups.
10766         (gdbpy_apply_frame_filter): Wrap all function that can throw in
10767         cleanups.
10768
10769 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10770
10771         * python/py-framefilter.c (py_print_frame): Substitute goto error.
10772         Remove the error label.
10773
10774 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10775
10776         * python/py-framefilter.c (py_print_frame): Put conditional code paths
10777         with goto first, indent the former else codepath left.  Put variable
10778         'elided' to a new inner block.
10779
10780 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10781
10782         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10783
10784 2015-02-11  Pedro Alves  <palves@redhat.com>
10785
10786         * xcoffread.c (within_function): Delete.
10787
10788 2015-02-11  Tom Tromey  <tromey@redhat.com>
10789             Pedro Alves <palves@redhat.com>
10790
10791         * breakpoint.c (base_breakpoint_ops): Delete.
10792         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10793         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10794         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10795         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10796         * python/py-arch.c (arch_object_type): Make extern.
10797         * python/py-block.c (block_syms_iterator_object_type): Make extern.
10798         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10799         * python/py-cmd.c (cmdpy_object_type): Make extern.
10800         * python/py-continueevent.c (continue_event_object_type)
10801         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10802         parameter.  Update all callers.
10803         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10804         * python/py-exitedevent.c (exited_event_object_type): Make extern.
10805         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10806         * python/py-function.c (fnpy_object_type): Make extern.
10807         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10808         * python/py-infevents.c (call_pre_event_object_type)
10809         (inferior_call_post_event_object_type).
10810         (memory_changed_event_object_type): Make extern.
10811         * python/py-infthread.c (thread_object_type): Make extern.
10812         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10813         * python/py-linetable.c (linetable_entry_object_type)
10814         (linetable_object_type, ltpy_iterator_object_type): Make extern.
10815         * python/py-newobjfileevent.c (new_objfile_event_object_type)
10816         (clear_objfiles_event_object_type): Make extern.
10817         * python/py-objfile.c (objfile_object_type): Make extern.
10818         * python/py-param.c (parmpy_object_type): Make extern.
10819         * python/py-progspace.c (pspace_object_type): Make extern.
10820         * python/py-signalevent.c (signal_event_object_type): Make extern.
10821         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10822         * python/py-type.c (type_object_type, field_object_type)
10823         (type_iterator_object_type): Make extern.
10824         * python/python.c (python_extension_script_ops)
10825         (python_extension_ops): Make extern.
10826         * stap-probe.c (stap_probe_ops): Make extern.
10827
10828 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
10829
10830         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10831         because the event thread is not the current thread.
10832
10833 2015-02-11  Doug Evans  <xdje42@gmail.com>
10834
10835         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10836         been initialized yet, return NULL.
10837
10838 2015-02-11  Doug Evans  <dje@google.com>
10839
10840         * symfile.h (new_symfile_objfile): Delete.
10841         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10842         All callers updated.
10843
10844 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10845
10846         * tui/tui-io.c (tui_handle_resize_during_io): Call
10847         tui_update_gdb_sizes() after resizing the screen.
10848         * tui/tui.c (tui_enable): Resize the terminal before
10849         calling tui_update_gdb_sizes().
10850
10851 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10852
10853         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10854         line before printing a newline.
10855
10856 2015-02-11  Mark Wielaard  <mjw@redhat.com>
10857
10858         * utils.c (producer_is_gcc): Return true or false.
10859
10860 2015-02-10  Mark Wielaard  <mjw@redhat.com>
10861
10862         * utils.h (producer_is_gcc): Change return type to bool. Add major
10863         argument.
10864         * utils.c (producer_is_gcc): Likewise.
10865         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10866         * dwarf2read.c (check_producer): Likewise.
10867
10868 2015-02-10  Pedro Alves  <palves@redhat.com>
10869
10870         * infrun.c (displaced_step_fixup): Switch to the event thread
10871         before calling gdbarch_displaced_step_fixup.
10872
10873 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
10874
10875         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10876
10877 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
10878
10879         * ada-varobj.c (ada_name_of_child): Constify parent.
10880         (ada_path_expr_of_child): Same.
10881         (ada_value_of_child): Same.
10882         (ada_type_of_child): Same.
10883         * c-varobj.c (c_is_path_expr_parent): Same.
10884         (c_describe_child): Same.
10885         (c_name_of_child): Same.
10886         (c_value_of_child): Same.
10887         (c_type_of_child): Same.
10888         (cplus_number_of_children): Same.
10889         (cplus_describe_child): Constify var.
10890         (cplus_name_of_child): Constify parent.
10891         (cplus_value_of_child): Same.
10892         (cplus_type_of_child): Same.
10893         * jv-varobj.c (java_name_of_child): Same.
10894         (java_value_of_child): Same.
10895         (java_type_of_child): Same.
10896         * varobj.c (value_of_child): Same.
10897         (varobj_default_is_path_expr_parent): Constify var, parent and return
10898         value.
10899         (varobj_get_path_expr): Constify var, modify path_expr through
10900         mutable_var.
10901         (install_new_value): Constify parent.
10902         (value_of_child): Constify parent.
10903         * varobj.h (struct varobj): Constify parent.
10904         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10905         type_of_child.
10906         (varobj_get_path_expr): Constify var.
10907         (varobj_get_path_expr_parent): Constify var and return value.
10908
10909 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
10910
10911         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10912         (arm_prologue_this_id): Move PC and SP limit checks to
10913         arm_prologue_unwind_stop_reason.
10914         (arm_prologue_unwind) <stop_reason> : Set to
10915         arm_prologue_unwind_stop_reason.
10916
10917 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10918
10919         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10920         DW_LANG_Fortran08 as language_fortran.
10921
10922 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
10923
10924         PR remote/17946
10925         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10926         of pointer against char.
10927
10928 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10929
10930         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10931         (c_type_print_modifier): Likewise.
10932         * dwarf2read.c (read_tag_atomic_type): New function.
10933         (read_type_die_1): Handle DW_TAG_atomic_type.
10934         * gdbtypes.c (make_atomic_type): New function.
10935         (recursive_dump_type): Handle TYPE_ATOMIC.
10936         * gdbtypes.h (enum type_flag_values): Renumber.
10937         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10938         (TYPE_ATOMIC): New macro.
10939         (make_atomic_type): Declare.
10940
10941 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10942
10943         * btrace.c (ftrace_find_call): Skip gaps.
10944         (ftrace_new_function): Initialize level.
10945         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10946         (ftrace_new_switch): Update
10947         level computation.
10948         (ftrace_new_gap): New.
10949         (ftrace_update_function): Create new function after gap.
10950         (btrace_compute_ftrace_bts): Create gap on error.
10951         (btrace_stitch_bts): Update parameters.  Clear trace if it
10952         becomes empty.
10953         (btrace_stitch_trace): Update parameters.  Update callers.
10954         (btrace_clear): Reset the number of gaps.
10955         (btrace_insn_get): Return NULL if the iterator points to a gap.
10956         (btrace_insn_number): Return zero if the iterator points to a gap.
10957         (btrace_insn_end): Allow gaps at the end.
10958         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10959         (btrace_find_insn_by_number): Assert that the found iterator does
10960         not point to a gap.
10961         (btrace_call_next, btrace_call_prev): Assert that the last function
10962         is not a gap.
10963         * btrace.h (btrace_bts_error): New.
10964         (btrace_function): Update comment.
10965         (btrace_function) <insn, insn_offset, number>: Update comment.
10966         (btrace_function) <errcode>: New.
10967         (btrace_thread_info) <ngaps>: New.
10968         (btrace_thread_info) <replay>: Update comment.
10969         (btrace_insn_get): Update comment.
10970         * record-btrace.c (btrace_ui_out_decode_error): New.
10971         (record_btrace_info): Print number of gaps.
10972         (btrace_insn_history, btrace_call_history): Call
10973         btrace_ui_out_decode_error for gaps.
10974         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10975
10976 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10977
10978         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10979         * nat/linux-btrace.c: (btrace_this_cpu): New.
10980         (cpu_supports_bts): Call btrace_this_cpu.
10981         (intel_supports_bts): Add cpu parameter.
10982
10983 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10984
10985         * btrace.h (btrace_insn_class): New.
10986         (btrace_insn) <size, iclass>: New.
10987         * btrace.c (ftrace_find_call): Update parameters.  Update users.
10988         Use instruction classification.
10989         (ftrace_new_return): Update parameters.  Update users.
10990         (ftrace_update_function): Update parameters.  Update users.  Use
10991         instruction classification.
10992         (ftrace_update_insns): Update parameters.  Update users.
10993         (ftrace_classify_insn): New.
10994         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
10995         TRY_CATCH around call to gdb_insn_length.
10996
10997 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10998
10999         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11000         Update parameters.  Update users.
11001
11002 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11003
11004         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11005         (btrace_conf_bts_attributes): New.
11006         (btrace_conf_children): Add attributes.
11007         * common/btrace-common.h (btrace_config_bts): New.
11008         (btrace_config)<bts>: New.
11009         (btrace_config): Update comment.
11010         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11011         Use config.
11012         * features/btrace-conf.dtd: Increment version.  Add size
11013         attribute to bts element.
11014         * record-btrace.c (set_record_btrace_bts_cmdlist,
11015         show_record_btrace_bts_cmdlist): New.
11016         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11017         record_btrace_print_conf, cmd_set_record_btrace_bts,
11018         cmd_show_record_btrace_bts): New.
11019         (record_btrace_info): Call record_btrace_print_conf.
11020         (_initialize_record_btrace): Add commands.
11021         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11022         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11023         (btrace_sync_conf): Synchronize bts size.
11024         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11025         * NEWS: Announce new commands and new packets.
11026
11027 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11028
11029         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11030         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11031         (x86_linux_btrace_conf): New.
11032         (x86_linux_create_target): Initialize to_btrace_conf.
11033         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11034         Check format.  Split into this and ...
11035         (linux_enable_bts): ... this.
11036         (linux_btrace_conf): New.
11037         (perf_event_skip_record): Renamed into ...
11038         (perf_event_skip_bts_record): ... this.  Updated users.
11039         (linux_disable_btrace): Split into this and ...
11040         (linux_disable_bts): ... this.
11041         (linux_read_btrace): Check format.
11042         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11043         (linux_btrace_conf): New.
11044         (btrace_target_info)<ptid>: Moved.
11045         (btrace_target_info)<conf>: New.
11046         (btrace_target_info): Split into this and ...
11047         (btrace_tinfo_bts): ... this.  Updated users.
11048         * btrace.c (btrace_enable): Update parameters.
11049         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11050         (btrace_conf_children, btrace_conf_attributes)
11051         (btrace_conf_elements): New.
11052         * btrace.h (btrace_enable): Update parameters.
11053         (btrace_conf, parse_xml_btrace_conf): New.
11054         * common/btrace-common.h (btrace_config): New.
11055         * feature/btrace-conf.dtd: New.
11056         * record-btrace.c (record_btrace_conf): New.
11057         (record_btrace_cmdlist): New.
11058         (record_btrace_enable_warn, record_btrace_open): Pass
11059         &record_btrace_conf.
11060         (record_btrace_info): Print recording format.
11061         (cmd_record_btrace_bts_start): New.
11062         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11063         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11064         Add "record bts" alias command.
11065         * remote.c (remote_state)<btrace_config>: New.
11066         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11067         (remote_protocol_features): Add qXfer:btrace-conf:read.
11068         (remote_open_1): Call remote_btrace_reset.
11069         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11070         (btrace_target_info)<conf>: New.
11071         (btrace_sync_conf, btrace_read_config): New.
11072         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11073         btrace_read_conf.
11074         (remote_btrace_conf): New.
11075         (init_remote_ops): Initialize to_btrace_conf.
11076         (_initialize_remote): Add qXfer:btrace-conf packet.
11077         * target.c (target_enable_btrace): Update parameters.
11078         (target_btrace_conf): New.
11079         * target.h (target_enable_btrace): Update parameters.
11080         (target_btrace_conf): New.
11081         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11082         (target_ops)<to_enable_btrace>: Update parameters and comment.
11083         (target_ops)<to_btrace_conf>: New.
11084         * target-delegates: Regenerate.
11085         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11086         (target_debug_print_const_struct_btrace_target_info_p): New.
11087         * NEWS: Announce new command and new packet.
11088
11089 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11090
11091         * nat/linux-btrace.h (perf_event_buffer): New.
11092         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11093         <bts>: ... this.
11094         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11095         (perf_event_buffer_size, perf_event_buffer_begin)
11096         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11097         Updated users.
11098         (perf_event_new_data): New.
11099
11100 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11101
11102         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11103         * record-btrace.c (record_btrace_open): Remove call to
11104         target_supports_btrace.
11105         * remote.c (remote_supports_btrace): Update parameters.
11106         * target.c (target_supports_btrace): Update parameters.
11107         * target.h (to_supports_btrace, target_supports_btrace): Update
11108         parameters.
11109         * target-delegates.c: Regenerate.
11110         * target-debug.h (target_debug_print_enum_btrace_format): New.
11111         * nat/linux-btrace.c
11112         (kernel_supports_btrace): Rename into ...
11113         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11114         (intel_supports_btrace): Rename into ...
11115         (intel_supports_bts): ... this.  Update users.
11116         (cpu_supports_btrace): Rename into ...
11117         (cpu_supports_bts): ... this.  Update users.
11118         (linux_supports_btrace): Update parameters.  Split into this and ...
11119         (linux_supports_bts): ... this.
11120         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11121
11122 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11123
11124         * Makefile.in (SFILES): Add common/btrace-common.c.
11125         (COMMON_OBS): Add common/btrace-common.o.
11126         (btrace-common.o): Add build rules.
11127         * btrace.c (parse_xml_btrace): Update parameters.
11128         (parse_xml_btrace_block): Set format field.
11129         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11130         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11131         (btrace_compute_ftrace): Split into this and...
11132         (btrace_compute_ftrace_bts): ...this.
11133         (btrace_stitch_trace): Split into this and...
11134         (btrace_stitch_bts): ...this.
11135         * btrace.h (parse_xml_btrace): Update parameters.
11136         (make_cleanup_btrace_data): New.
11137         * common/btrace-common.c: New.
11138         * common/btrace-common.h: Include common-defs.h.
11139         (btrace_block_s): Update comment.
11140         (btrace_format): New.
11141         (btrace_format_string): New.
11142         (btrace_data_bts): New.
11143         (btrace_data): New.
11144         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11145         * remote.c (remote_read_btrace): Update parameters.
11146         * target.c (target_read_btrace): Update parameters.
11147         * target.h (target_read_btrace): Update parameters.
11148         (target_ops)<to_read_btrace>: Update parameters.
11149         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11150         * target-delegates.c: Regenerate.
11151         * target-debug (target_debug_print_struct_btrace_data_p): New.
11152         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11153         (linux_read_bts): ...this.
11154         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11155
11156 2015-02-06  Doug Evans  <dje@google.com>
11157
11158         * remote-m32r-sdi.c: Include symfile.h.
11159
11160 2015-02-06  Doug Evans  <dje@google.com>
11161
11162         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11163         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11164         to here.
11165
11166 2015-02-06  Pedro Alves  <palves@redhat.com>
11167
11168         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11169
11170 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11171
11172         PR gdb/15678
11173         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11174         (enable_count_command): Check args for NULL value.
11175
11176 2015-02-05  Doug Evans  <xdje42@gmail.com>
11177
11178         * guile/scm-frame.c: Fix spelling errors in a comment.
11179
11180 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11181
11182         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11183         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11184         return type.
11185
11186 2015-02-04  Pedro Alves  <palves@redhat.com>
11187
11188         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11189         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11190         returns true.
11191         (resume_stopped_resumed_lwps): Don't check whether the thread is
11192         marked as executing.
11193         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11194
11195 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11196
11197         * regset.h (struct regset): Add flags field.
11198         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11199         * corelow.c (get_core_register_section): Add warning if the size
11200         exceeds the requested size and the regset does not have the
11201         REGSET_VARIABLE_SIZE flag set.
11202         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11203         flag.
11204         * armbsd-tdep.c (armbsd_gregset): Likewise.
11205         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11206         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11207         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11208         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11209
11210 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11211
11212         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11213         For ".reg-xstate", explicitly specify the requested section size
11214         via X86_XSTATE_SIZE instead of just 0 on input and
11215         X86_XSTATE_MAX_SIZE on output.
11216         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11217         Likewise.
11218
11219 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11220
11221         PR corefiles/17808:
11222         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11223         function type, particularly its SIZE parameter.
11224         * gdbarch.h: Regenerate.
11225         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11226         actual against required size using ">=" instead of "==".
11227         (amd64_collect_fpregset): Likewise.
11228         * i386-tdep.c (i386_supply_gregset): Likewise.
11229         (i386_collect_gregset): Likewise.
11230         (i386_supply_fpregset): Likewise.
11231         (i386_collect_fpregset): Likewise.
11232         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11233         (mips_fill_gregset_wrapper): Likewise.
11234         (mips_supply_fpregset_wrapper): Likewise.
11235         (mips_fill_fpregset_wrapper): Likewise.
11236         (mips64_supply_gregset_wrapper): Likewise.
11237         (mips64_fill_gregset_wrapper): Likewise.
11238         (mips64_supply_fpregset_wrapper): Likewise.
11239         (mips64_fill_fpregset_wrapper): Likewise.
11240         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11241         (am33_supply_fpregset_method): Likewise.
11242         (am33_collect_gregset_method): Likewise.
11243         (am33_collect_fpregset_method): Likewise.
11244
11245 2015-02-04  Doug Evans  <dje@google.com>
11246             Pedro Alves  <palves@redhat.com>
11247             Eli Zaretskii  <eliz@gnu.org>
11248
11249         PR tui/17810
11250         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11251         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11252         * tui/tui-file.c: #include tui/tui-command.h.
11253         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11254         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11255         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11256
11257 2015-02-04  Pedro Alves  <palves@redhat.com>
11258
11259         Fix build breakage.
11260         * event-loop.c (gdb_do_one_event): Add default switch case.
11261
11262 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11263
11264         Filter out inferior gcc option -fpreprocessed.
11265         * compile/compile.c (filter_args): New function.
11266         (get_args): Use it.
11267
11268 2015-02-03  Pedro Alves  <palves@redhat.com>
11269
11270         * event-loop.c: Don't declare nor define a queue type for
11271         gdb_event_p.
11272         (event_queue): Delete.
11273         (create_event, create_file_event, gdb_event_xfree)
11274         (initialize_event_loop, process_event): Delete.
11275         (gdb_do_one_event): Return as soon as one event is handled.
11276         (handle_file_event): Change prototype.  Used the passed in
11277         file_handler pointer and ready_mask instead of looping over all
11278         file handlers.
11279         (gdb_wait_for_event): Update the poll/select timeouts before
11280         blocking.  Run event handlers directly instead of queueing events.
11281         Return as soon as one event is handled.
11282         (struct async_event_handler_data): Delete.
11283         (invoke_async_event_handler): Delete.
11284         (check_async_event_handlers): Change return type to int.  Run
11285         event handlers directly instead of queueing events.  Return as
11286         soon as one event is handled.
11287         (handle_timer_event): Delete.
11288         (update_wait_timeout): New function, factored out from
11289         poll_timers.
11290         (poll_timers): Reimplement.
11291         * event-loop.h (initialize_event_loop): Delete declaration.
11292         * top.c (gdb_init): Don't call initialize_event_loop.
11293
11294 2015-02-03  Pedro Alves  <palves@redhat.com>
11295
11296         * event-loop.c (clear_async_event_handler): New function.
11297         * event-loop.h (clear_async_event_handler): New declaration.
11298         * record-btrace.c (record_btrace_async): New function.
11299         (init_record_btrace_ops): Install record_btrace_async.
11300         * record-full.c (record_full_async): New function.
11301         (record_full_resume): Don't mark the async event source here.
11302         (init_record_full_ops): Install record_full_async.
11303         (record_full_core_resume): Don't mark the async event source here.
11304         (init_record_full_core_ops): Install record_full_async.
11305         * remote.c (remote_async): Mark and clear the async stop reply
11306         queue event-loop token as appropriate.
11307
11308 2015-02-03  Pedro Alves  <palves@redhat.com>
11309
11310         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11311         target_is_async_p instead of target_can_async.
11312         (linux_nat_wait): Use target_is_async_p instead of
11313         target_can_async.  Don't enable async here.
11314         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11315         target_is_async_p instead of target_can_async.
11316
11317 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11318
11319         * varobj.h (lang_varobj_ops): Mention which return values need
11320         to be freed.
11321
11322 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11323
11324         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11325
11326 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11327
11328         PR gdb/17856:
11329         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11330         results found in the cache.
11331
11332 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11333
11334         PR gdb/17854:
11335         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11336         when allocating a new one.
11337
11338 2015-02-01  Tom Tromey  <tom@tromey.com>
11339
11340         * MAINTAINERS: Remove myself.
11341
11342 2015-01-31  Doug Evans  <xdje42@gmail.com>
11343
11344         * dwarf2read.c (process_structure_scope): Update setting of
11345         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11346         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11347         (set_type_vptr_fieldno): New function.
11348         (internal_type_vptr_basetype): New function.
11349         (set_type_vptr_basetype): New function.
11350         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11351         TYPE_VPTR_BASETYPE.
11352         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11353         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11354         (print_cplus_stuff): ... moved here.
11355         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11356         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11357         moved to ...
11358         (struct cplus_struct_type): ... here.  All uses updated.
11359         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11360         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11361         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11362         * stabsread.c (read_tilde_fields): Update setting of
11363         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11364
11365 2015-01-31  Doug Evans  <xdje42@gmail.com>
11366
11367         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11368         to self_p.
11369         (cp_print_class_member): Rename local domain to self_type.
11370         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11371         domain_type to self_type.
11372         (set_die_type) <need_gnat_info>: Handle
11373         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11374         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11375         TYPE_SPECIFIC_SELF_TYPE.
11376         * gdbtypes.c (internal_type_self_type): New function.
11377         (set_type_self_type): New function.
11378         (smash_to_memberptr_type): Rename parameter domain to self_type.
11379         Update setting of TYPE_SELF_TYPE.
11380         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11381         (smash_to_method_type): Rename parameter domain to self_type.
11382         Update setting of TYPE_SELF_TYPE.
11383         (check_stub_method): Call smash_to_method_type.
11384         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11385         (copy_type_recursive): Ditto.
11386         * gdbtypes.h (enum type_specific_kind): New value
11387         TYPE_SPECIFIC_SELF_TYPE.
11388         (struct main_type) <type_specific>: New member self_type.
11389         (struct cplus_struct_type) <fn_field.type>: Update comment.
11390         (TYPE_SELF_TYPE): Rewrite.
11391         (internal_type_self_type, set_type_self_type): Declare.
11392         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11393         self_type.
11394         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11395         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11396         TYPE_TARGET_TYPE.
11397         * stabsread.c (read_member_functions): Mark methods with
11398         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11399         TYPE_SELF_TYPE.
11400
11401 2015-01-31  Doug Evans  <xdje42@gmail.com>
11402
11403         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11404         All uses updated.
11405
11406 2015-01-31  Doug Evans  <xdje42@gmail.com>
11407
11408         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11409         or unions.  Return zero if union.
11410         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11411         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11412         gnuv3_get_vtable.
11413         (compute_vtable_size): Assert only passed structs.
11414         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11415
11416 2015-01-31  Doug Evans  <xdje42@gmail.com>
11417
11418         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11419         kinds.
11420
11421 2015-01-31  Gary Benson <gbenson@redhat.com>
11422             Doug Evans  <dje@google.com>
11423
11424         PR cli/9007
11425         PR cli/11920
11426         PR cli/15548
11427         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11428         reached.
11429         * common/common-exceptions.h (enum errors)
11430         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11431         * completer.h (get_max_completions_reached_message): New declaration.
11432         (max_completions): Likewise.
11433         (completion_tracker_t): New typedef.
11434         (new_completion_tracker): New declaration.
11435         (make_cleanup_free_completion_tracker): Likewise.
11436         (maybe_add_completion_enum): New enum.
11437         (maybe_add_completion): New declaration.
11438         (throw_max_completions_reached_error): Likewise.
11439         * completer.c (max_completions): New global variable.
11440         (new_completion_tracker): New function.
11441         (free_completion_tracker): Likewise.
11442         (make_cleanup_free_completion_tracker): Likewise.
11443         (maybe_add_completions): Likewise.
11444         (throw_max_completions_reached_error): Likewise.
11445         (complete_line): Remove duplicates and limit result to max_completions
11446         entries.
11447         (get_max_completions_reached_message): New function.
11448         (gdb_display_match_list): Handle max_completions.
11449         (_initialize_completer): New declaration and function.
11450         * symtab.c: Include completer.h.
11451         (completion_tracker): New static variable.
11452         (completion_list_add_name): Call maybe_add_completion.
11453         (default_make_symbol_completion_list_break_on_1): Renamed from
11454         default_make_symbol_completion_list_break_on.  Maintain
11455         completion_tracker across calls to completion_list_add_name.
11456         (default_make_symbol_completion_list_break_on): New function.
11457         * top.c (init_main): Set rl_completion_display_matches_hook.
11458         * tui/tui-io.c: Include completer.h.
11459         (tui_old_rl_display_matches_hook): New static global.
11460         (tui_rl_display_match_list): Notify user if max-completions reached.
11461         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11462         * NEWS (New Options): Mention set/show max-completions.
11463
11464 2015-01-31  Gary Benson  <gbenson@redhat.com>
11465
11466         * symtab.c (struct add_name_data) <code>: New field.
11467         Updated comments.
11468         (add_symtab_completions): New function.
11469         (symtab_expansion_callback): Likewise.
11470         (default_make_symbol_completion_list_break_on): Set datum.code.
11471         Move minimal symbol scan before calling expand_symtabs_matching.
11472         Scan known primary symtabs for externs and statics before calling
11473         expand_symtabs_matching.  Pass symtab_expansion_callback as
11474         expansion_notify argument to expand_symtabs_matching.  Do not scan
11475         primary symtabs for externs and statics after calling
11476         expand_symtabs_matching.
11477
11478 2015-01-31  Gary Benson  <gbenson@redhat.com>
11479
11480         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11481         (struct quick_symbol_functions) <expand_symtabs_matching>:
11482         New argument expansion_notify.  All uses updated.
11483         (expand_symtabs_matching): New argument expansion_notify.
11484         All uses updated.
11485         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11486         Also print expansion notify.
11487         * symtab.c (expand_symtabs_matching_via_partial): Call
11488         expansion_notify whenever a partial symbol table is expanded.
11489         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11490         expansion_notify whenever a symbol table is instantiated.
11491
11492 2015-01-31  Doug Evans  <xdje42@gmail.com>
11493
11494         * cli-out.c: #include completer.h, readline/readline.h.
11495         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11496         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11497         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11498         * cli-out.h (cli_display_match_list): Declare.
11499         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11500         (ELLIPSIS_LEN): Ditto.
11501         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11502         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11503         (gdb_fnprint, gdb_print_filename): Ditto.
11504         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11505         (gdb_display_match_list): Ditto.
11506         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11507         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11508         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11509         (match_list_displayer): New struct.
11510         (gdb_display_match_list): Declare.
11511         * top.c (init_main): Set rl_completion_display_matches_hook.
11512         * tui/tui-io.c: #include completer.h.
11513         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11514         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11515         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11516         (tui_mld_getc, tui_mld_read_key): Ditto.
11517         (tui_rl_display_match_list): Rewrite.
11518         (tui_handle_resize_during_io): New arg for_completion.  All callers
11519         updated.
11520
11521 2015-01-31  Doug Evans  <xdje42@gmail.com>
11522
11523         Add symbol lookup cache.
11524         * NEWS: Document new options and commands.
11525         * symtab.c (symbol_cache_key): New static global.
11526         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11527         (SYMBOL_LOOKUP_FAILED): New macro.
11528         (symbol_cache_slot_state): New enum.
11529         (block_symbol_cache): New struct.
11530         (symbol_cache): New struct.
11531         (new_symbol_cache_size, symbol_cache_size): New static globals.
11532         (hash_symbol_entry, eq_symbol_entry): New functions.
11533         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11534         (make_symbol_cache, free_symbol_cache): New functions.
11535         (get_symbol_cache, symbol_cache_cleanup): New function.
11536         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11537         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11538         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11539         (symbol_cache_flush, symbol_cache_dump): New functions.
11540         (maintenance_print_symbol_cache): New function.
11541         (maintenance_flush_symbol_cache): New function.
11542         (symbol_cache_stats): New function.
11543         (maintenance_print_symbol_cache_statistics): New function.
11544         (symtab_new_objfile_observer): New function.
11545         (symtab_free_objfile_observer): New function.
11546         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11547         (_initialize_symtab): Init symbol_cache_key.  New parameter
11548         maint symbol-cache-size.  New maint commands print symbol-cache,
11549         print symbol-cache-statistics, flush-symbol-cache.
11550         Install new_objfile, free_objfile observers.
11551
11552 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11553
11554         PR symtab/17855
11555         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11556         to end.
11557
11558 2015-01-31  Doug Evans  <xdje42@gmail.com>
11559
11560         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11561         * auto-load.c: #include ctype.h.
11562         (struct auto_load_pspace_info): Replace member loaded_scripts with
11563         new members loaded_script_files, loaded_script_texts.
11564         (auto_load_pspace_data_cleanup): Update.
11565         (init_loaded_scripts_info): Update.
11566         (get_auto_load_pspace_data_for_loading): Update.
11567         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11568         updated.
11569         (maybe_add_script_text): New function.
11570         (clear_section_scripts): Update.
11571         (source_script_file, execute_script_contents): New functions.
11572         (source_section_scripts): Add support for
11573         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11574         (print_scripts): New function.
11575         (auto_load_info_scripts): Also print inlined scripts.
11576         (maybe_print_unsupported_script_warning): Renamed from
11577         unsupported_script_warning_print.  All callers updated.
11578         (maybe_print_script_not_found_warning): Renamed from
11579         script_not_found_warning_print.  All callers updated.
11580         * extension-priv.h (struct extension_language_script_ops): New member
11581         objfile_script_executor.
11582         * extension.c (ext_lang_objfile_script_executor): New function.
11583         * extension.h (objfile_script_executor_func): New typedef.
11584         (ext_lang_objfile_script_executor): Declare.
11585         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11586         * guile/guile.c (guile_extension_script_ops): Update.
11587         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11588         * python/python.c (python_extension_script_ops): Update.
11589         (gdbpy_execute_objfile_script): New function.
11590
11591 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11592
11593         * tui/tui-io.c (tui_expand_tabs): New function.
11594         (tui_puts, tui_redisplay_readline): Expand TABs into the
11595         appropriate number of spaces.
11596         * tui/tui-regs.c: Include tui-io.h.
11597         (tui_register_format): Call tui_expand_tabs to expand TABs into
11598         the appropriate number of spaces.
11599         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11600
11601 2015-01-30  Doug Evans  <dje@google.com>
11602
11603         * NEWS: "info source" command now display producer string if present.
11604         * source.c (source_info): Print producer string if present.
11605
11606 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11607
11608         * varobj.c (varobj_delete): Fix comment.
11609
11610 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11611
11612         * varobj.c (create_child): Modify comment.
11613
11614 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11615
11616         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11617         parameter.
11618         (ada_name_of_variable): Same.
11619         (ada_path_expr_of_child): Same.
11620         (ada_value_of_variable): Same.
11621         (ada_value_is_changeable_p): Same.
11622         (ada_value_has_mutated): Same.
11623         * c-varobj.c (varobj_is_anonymous_child): Same.
11624         (c_is_path_expr_parent): Same.
11625         (c_number_of_children): Same.
11626         (c_name_of_variable): Same.
11627         (c_path_expr_of_child): Same.
11628         (get_type): Same.
11629         (c_value_of_variable): Same.
11630         (cplus_number_of_children): Same.
11631         (cplus_name_of_variable): Same.
11632         (cplus_path_expr_of_child): Same.
11633         (cplus_value_of_variable): Same.
11634         * jv-varobj.c (java_number_of_children): Same.
11635         (java_name_of_variable): Same.
11636         (java_path_expr_of_child): Same.
11637         (java_value_of_variable): Same.
11638         * varobj.c (number_of_children): Same.
11639         (name_of_variable): Same.
11640         (is_root_p): Same.
11641         (varobj_ensure_python_env): Same.
11642         (varobj_get_objname): Same.
11643         (varobj_get_expression): Same.
11644         (varobj_get_display_format): Same.
11645         (varobj_get_display_hint): Same.
11646         (varobj_has_more): Same.
11647         (varobj_get_thread_id): Same.
11648         (varobj_get_frozen): Same.
11649         (dynamic_varobj_has_child_method): Same.
11650         (varobj_get_gdb_type): Same.
11651         (is_path_expr_parent): Same.
11652         (varobj_default_is_path_expr_parent): Same.
11653         (varobj_get_language): Same.
11654         (varobj_get_attributes): Same.
11655         (varobj_is_dynamic_p): Same.
11656         (varobj_get_child_range): Same.
11657         (varobj_value_has_mutated): Same.
11658         (varobj_get_value_type): Same.
11659         (number_of_children): Same.
11660         (name_of_variable): Same.
11661         (check_scope): Same.
11662         (varobj_editable_p): Same.
11663         (varobj_value_is_changeable_p): Same.
11664         (varobj_floating_p): Same.
11665         (varobj_default_value_is_changeable_p): Same.
11666
11667 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11668
11669         * varobj.c (varobj_get_path_expr): Set var->path_expr.
11670         * c-varobj.c (c_path_expr_of_child): Set local var instead of
11671         child->path_expr.
11672         (cplus_path_expr_of_child): Same.
11673
11674 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11675
11676         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11677         result.
11678         (mi_cmd_var_info_expression): Same.
11679         * varobj.c (varobj_get_expression): Mention in the comment that
11680         the result must by freed by the caller.
11681
11682 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11683
11684         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11685         varobj_get_type.
11686         (varobj_update_one): Same.
11687         * varobj.c (update_type_if_necessary): Free curr_type_str and
11688         new_type_str.
11689         (varobj_get_type): Specify in comment that the result needs to be
11690         freed by the caller.
11691
11692 2015-01-29  Doug Evans  <dje@google.com>
11693
11694         PR symtab/17890
11695         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11696
11697 2015-01-25  Mark Wielaard  <mjw@redhat.com>
11698
11699         * dwarf2read.c (checkproducer): Call producer_is_gcc.
11700         * utils.c (producer_is_gcc_ge_4): Likewise.
11701         (producer_is_gcc): New function.
11702         * utils.h (producer_is_gcc): New declaration.
11703
11704 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11705
11706         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11707         kind.
11708         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11709         parameter by "addr_stack" parameter.
11710         (resolve_dynamic_range): Replace "addr" parameter by
11711         "stack_addr" parameter.  Update function documentation.
11712         Update code accordingly.
11713         (resolve_dynamic_array, resolve_dynamic_union)
11714         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11715         (resolve_dynamic_type): Update code, following the changes made
11716         to resolve_dynamic_type_internal's interface.
11717         * dwarf2loc.h (struct property_addr_info): New.
11718         (dwarf2_evaluate_property): Replace "address" parameter
11719         by "addr_stack" parameter.  Adjust function documentation.
11720         (struct dwarf2_offset_baton): New.
11721         (struct dwarf2_property_baton): Update documentation of
11722         field "referenced_type" to be more general. New field
11723         "offset_info" in union data field.
11724         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11725         parameter by "addr_stack" parameter.  Adjust code accordingly.
11726         Add support for PROP_ADDR_OFFSET properties.
11727         * dwarf2read.c (attr_to_dynamic_prop): Add support for
11728         DW_AT_data_member_location attributes as well.  Use case
11729         statements instead of if/else condition.
11730
11731 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11732
11733         * ada-varobj.c (ada_varobj_get_array_number_of_children):
11734         Return zero if PARENT_VALUE is NULL and parent_type's
11735         range type is dynamic.
11736
11737 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11738
11739         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11740         nonzero if the type's subtype is dynamic.
11741         (resolve_dynamic_range): Also resolve the range's subtype.
11742
11743 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
11744
11745         Pushed by Joel Brobecker  <brobecker@adacore.com>.
11746         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11747
11748 2015-01-27  Doug Evans  <dje@google.com>
11749
11750         * NEWS: Mention gdb.Objfile.username.
11751         * python/py-objfile.c (objfpy_get_username): New function.
11752         (objfile_getset): Add "username".
11753
11754 2015-01-24  Mark Wielaard  <mjw@redhat.com>
11755
11756         * stack.c (return_command): Markup warning message with _.
11757
11758 2015-01-24  Doug Evans  <xdje42@gmail.com>
11759
11760         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11761
11762 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11763
11764         Fix 100x slowdown regression on DWZ files.
11765         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11766         (struct line_header): Add offset and offset_in_dwz.
11767         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11768         (free_line_header_voidp): New declaration.
11769         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11770         functions.
11771         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11772         (handle_DW_AT_stmt_list): Use line_header_hash.
11773         (free_line_header_voidp): New function.
11774         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11775         (dwarf_decode_lines): New parameter decode_mapping, use it.
11776         (dwarf2_free_objfile): Free line_header_hash.
11777
11778 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
11779
11780         PR gdb/17416
11781         * valops.c (value_rtti_indirect_type): Catch exception thrown by
11782         value_ind.
11783
11784 2015-01-15  Mark Wielaard  <mjw@redhat.com>
11785
11786         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11787         DW_AT_noreturn.
11788         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11789         calling_convention an 8 bit bit field.
11790         (TYPE_NO_RETURN): New macro.
11791         * infcmd.c (finish_command): Query if function does not return
11792         normally.
11793         * stack.c (return_command): Likewise.
11794
11795 2015-01-23  Pedro Alves  <palves@redhat.com>
11796
11797         * linux-nat.c (linux_is_async_p): New macro.
11798         (linux_nat_is_async_p):
11799         (linux_nat_terminal_inferior): Check whether the target can async
11800         instead of whether it is already async.
11801         (linux_nat_terminal_ours): Don't check whether the target is
11802         async.
11803         (linux_async_pipe): Use linux_is_async_p.
11804
11805 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11806
11807         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11808         '-ascending'.
11809         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11810         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11811         Sort tp_array using tp_array_compar.
11812         (_initialize_thread): Extend thread_apply_all_command help.
11813
11814 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11815
11816         * corelow.c (core_open): Call also thread_command.
11817         * gdbthread.h (thread_command): New prototype moved from ...
11818         * thread.c (thread_command): ... here.
11819         (thread_command): Make it global.
11820
11821 2015-01-22  Pedro Alves  <palves@redhat.com>
11822
11823         * configure.ac [*mingw32*]: Check $curses_found instead of
11824         $prefer_curses.
11825         * configure: Regenerate.
11826         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11827         HAVE_NCURSES_NCURSES_H checks.
11828
11829 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11830
11831         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11832         fails with the 1st arg NULL, try again with "unknown".  Don't test
11833         the "cup" capability: it isn't supported by the Windows port of
11834         ncurses, but the Windows console driver is still capable of
11835         supporting TUI.
11836
11837 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11838
11839         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11840
11841 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11842
11843         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11844         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
11845         reason that "make TAGS" is broken.
11846
11847 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
11848
11849         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11850         and check additional store instructions.
11851
11852 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11853
11854         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11855
11856 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11857
11858         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11859         ppc_canonicalize_syscall, ppc_linux_syscall_record,
11860         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11861         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11862         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11863         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11864         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11865         ppc_process_record_op19, ppc_process_record_op31,
11866         ppc_process_record_op59, ppc_process_record_op60,
11867         ppc_process_record_op63): Likewise.
11868
11869 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
11870
11871         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11872         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11873         strerror.
11874
11875 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
11876
11877         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11878         ppc_process_record_op31, ppc_process_record_op59,
11879         ppc_process_record_op60, ppc_process_record_op63,
11880         ppc_process_record): Fix -Wformat warning.
11881         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11882         Remove unused variables.
11883
11884 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
11885
11886         * MAINTAINERS (Write After Approval): Add "Chen Gang".
11887
11888 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
11889
11890         * configure.ac [*mingw32*]: Only add windows-termcap.o to
11891         CONFIG_OBS if not building with a curses library.
11892         * configure: Regenerate.
11893
11894         * windows-termcap.c: Include defs.h.  Make the whole body empty if
11895         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11896         HAVE_NCURSES_NCURSES_H is defined.
11897
11898 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
11899
11900         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11901         from end of line to start of next line.
11902
11903 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11904
11905         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11906         Scan PLT stub backward for reverse debugging.
11907         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11908
11909 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11910             Ulrich Weigand  <uweigand@de.ibm.com>
11911
11912         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11913         gdb_target_obs.
11914         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11915         record.
11916         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11917         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11918         (ppc_linux_init_abi): Set process_record, process_record_signal.
11919         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11920         ppc_linux_record_tdep to gdbarch_tdep.
11921         (ppc_process_record): New declaration.
11922         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11923         ppc_process_record_op19, ppc_process_record_op31,
11924         ppc_process_record_op59, ppc_process_record_op60,
11925         ppc_process_record_op63, ppc_process_record): New functions.
11926
11927 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11928
11929         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11930         rs6000_in_function_epilogue_frame_p and add an argument
11931         for frame_info.
11932         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11933         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11934         New functions.
11935         (rs6000_epilogue_frame_unwind): New.
11936         (rs6000_gdbarch_init): Append epilogue unwinder.
11937
11938 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11939
11940         * nat/linux-personality.c: Replace "#ifndef
11941         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11942         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11943         systems.
11944
11945 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
11946
11947         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11948         functions.
11949         (_initialize_tui_win) <border-kind, border-mode>:
11950         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11951         (tui_set_tab_width_command): Fix the commentary.
11952
11953         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11954
11955         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11956         Doc fix.
11957         (tui_set_tab_width_command): Delete and recreate the source and
11958         the disassembly windows, to show the effect of the changed tab
11959         size immediately.
11960
11961         * tui/tui-data.h (LINE_PREFIX): Make shorter
11962         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11963         "Thread NNNNN.XXXX" thread ID notation on Windows.
11964
11965 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11966
11967         Fix gcc-5 compilation.
11968         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11969
11970 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
11971
11972         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11973         (linux-personality.o): New rule.
11974         * common/common-defs.h: Include <stdint.h>.
11975         * config/aarch64/linux.mh (NATDEPFILES): Include
11976         linux-personality.o.
11977         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11978         * config/arm/linux.mh (NATDEPFILES): Likewise.
11979         * config/i386/linux64.mh (NATDEPFILES): Likewise.
11980         * config/i386/linux.mh (NATDEPFILES): Likewise.
11981         * config/ia64/linux.mh (NATDEPFILES): Likewise.
11982         * config/m32r/linux.mh (NATDEPFILES): Likewise.
11983         * config/m68k/linux.mh (NATDEPFILES): Likewise.
11984         * config/mips/linux.mh (NATDEPFILES): Likewise.
11985         * config/pa/linux.mh (NATDEPFILES): Likewise.
11986         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11987         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11988         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11989         * config/s390/linux.mh (NATDEPFILES): Likewise.
11990         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11991         * config/sparc/linux.mh (NATDEPFILES): Likewise.
11992         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11993         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11994         * defs.h: Remove #include <stdint.h> (moved to
11995         common/common-defs.h).
11996         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
11997         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11998         nat/linux-personality.c).
11999         (linux_nat_create_inferior): Remove code to disable address space
12000         randomization (moved to nat/linux-personality.c).  Create cleanup
12001         to disable address space randomization.
12002         * nat/linux-personality.c: New file.
12003         * nat/linux-personality.h: Likewise.
12004
12005 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12006
12007         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12008         common/posix-strerror.c.
12009         (posix-strerror.o): New rule.
12010         (mingw-strerror.o): Likewise.
12011         * common/common-utils.h (safe_strerror): Move prototype to here,
12012         from utils.h.
12013         * common/common.host: New file.
12014         * common/mingw-strerror.c: Likewise.
12015         * common/posix-strerror.c: Likewise.
12016         * configure: Regenerated.
12017         * configure.ac: Source common/common.host.  Add variable
12018         common_host_obs to gdb_host_obs.
12019         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12020         gdb/common/posix-strerror.c when warning about the use of
12021         strerror.
12022         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12023         common/mingw-strerror.c.
12024         * posix-hdep.c (safe_strerror): Remove definition; move it to
12025         common/posix-hdep.c.
12026         * utils.h (safe_strerror): Remove prototype; move to
12027         common/common-utils.h.
12028
12029 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12030
12031         GDB 7.8.2 released.
12032
12033 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12034
12035         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12036         ___XA type if the array has already been fixed.
12037
12038 2015-01-14  Yao Qi  <yao@codesourcery.com>
12039
12040         * Makefile.in (ppc-linux.o): New rule.
12041         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12042         * configure.ac: AC_CHECK_FUNCS(getauxval).
12043         * config.in: Re-generated.
12044         * configure: Re-generated.
12045         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12046         Declare.
12047         * nat/ppc-linux.c: New file.
12048         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12049         Call ppc64_64bit_inferior_p.
12050
12051 2015-01-14  Yao Qi  <yao@codesourcery.com>
12052
12053         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12054         nat/ppc-linux.h.
12055         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12056         (PPC_FEATURE_HAS_DFP): Likewise.
12057         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12058         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12059         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12060         Include "nat/ppc-linux.h".
12061         * nat/ppc-linux.h: New file.
12062         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12063
12064 2015-01-14  Pedro Alves  <palves@redhat.com>
12065
12066         PR gdb/17525
12067         * breakpoint.c: Include "interps.h".
12068         (bpstat_do_actions_1): Also check whether the interpreter is
12069         async.
12070
12071 2015-01-14  Pedro Alves  <palves@redhat.com>
12072
12073         PR cli/17828
12074         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12075         reinstall if the interpreter is sync.
12076
12077 2015-01-13  Doug Evans  <dje@google.com>
12078
12079         * objfiles.c (objfile_filename): New function.
12080         * objfiles.h (objfile_filename): Declare it.
12081         (objfile_name): Add function comment.
12082         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12083         bfd file name (which may be realpath'd), and the original name.
12084
12085 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12086
12087         * NEWS: Create a new section for the next release branch.
12088         Rename the section of the current branch, now that it has
12089         been cut.
12090
12091 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12092
12093         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12094         * version.in: Bump version to 7.9.50.DATE-cvs.
12095
12096 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12097
12098         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12099         Remove trailing new-line in argument of call to warning.
12100
12101 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12102
12103         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12104         new-line in argument of call to "warning".
12105
12106 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12107
12108         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12109         in static block, then try searching for primitive types.
12110
12111 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12112
12113         * top.h (gdb_add_history): Declare.
12114         * top.c (command_count): New variable.
12115         (gdb_add_history): New function.
12116         (gdb_safe_append_history): New static function.
12117         (quit_force): Call it.
12118         (command_line_input): Use gdb_add_history instead of
12119         add_history.
12120         * event-top.c (command_line_handler): Likewise.
12121
12122 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12123
12124         PR gdb/17046
12125         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12126         <setjmp.h> #include.
12127
12128 2015-01-11  Doug Evans  <xdje42@gmail.com>
12129
12130         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12131
12132 2015-01-11  Doug Evans  <xdje42@gmail.com>
12133
12134         PR gdb/15830
12135         * NEWS: The "maint demangle" command is renamed as "demangle".
12136         * demangle.c: #include cli/cli-utils.h, language.h.
12137         (demangle_command): New function.
12138         (_initialize_demangle): Add new command "demangle".
12139         * maint.c (maintenance_demangle): Stub out.
12140         (_initialize_maint_cmds): Update help text for "maint demangle",
12141         and mark as deprecated.
12142
12143 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12144
12145         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12146         inferior_thread is a function.
12147
12148 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12149
12150         * Makefile.in (.y.c): Don't munge yacc's #line
12151         directives.
12152
12153 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12154
12155         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12156         to prompt for input.
12157         * tui/tui-hooks.c (tui_query_hook): Remove.
12158         (tui_install_hooks): Don't set deprecated_query_hook.
12159         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12160         height calculation.  Always update the command window's cur_line.
12161
12162 2015-01-09  Pedro Alves  <palves@redhat.com>
12163
12164         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12165         function.
12166         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12167         declaration.
12168         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12169         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12170         stop_reason.
12171         (check_stopped_by_watchpoint): New function.
12172         (save_sigtrap): Reimplement.
12173         (linux_nat_stopped_by_watchpoint): Adjust.
12174         (linux_nat_lp_status_is_event): Delete.
12175         (stop_wait_callback): Only call save_sigtrap after storing the
12176         pending status.
12177         (status_callback): If the thread had been stopped for a breakpoint
12178         that has since been removed, discard the event and resume the LWP.
12179         (count_events_callback, select_event_lwp_callback): Use
12180         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12181         (cancel_breakpoint): Rename to ...
12182         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12183         stopped for a software breakpoint or hardware breakpoint.
12184         (select_event_lwp): Only give preference to the stepping LWP in
12185         all-stop mode.  Adjust comments.
12186         (stop_and_resume_callback): Remove references to new_pending_p.
12187         (linux_nat_filter_event): Likewise.  Leave exit events of the
12188         leader thread pending here.  Handle signal short circuiting here.
12189         Only call save_sigtrap after storing the pending waitstatus.
12190         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12191         new_pending.  Don't handle leaving events the caller is not
12192         interested in pending here, nor handle signal short-circuiting
12193         here.  Also give equal priority to all LWPs that have had events
12194         in non-stop mode.  If reporting a software breakpoint event,
12195         unadjust the LWP's PC.
12196         * linux-nat.h (enum lwp_stop_reason): New.
12197         (struct lwp_info) <stop_pc>: New field.
12198         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12199         (struct lwp_info) <stop_reason>: New field.
12200         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12201
12202 2015-01-09  Pedro Alves  <palves@redhat.com>
12203
12204         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12205         Set the LWP's 'resumed' flag.
12206
12207 2015-01-09  Pedro Alves  <palves@redhat.com>
12208
12209         * linux-nat.c (linux_resume_one_lwp): New function.
12210         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12211         (linux_nat_resume): Use lwp_status_pending_p and
12212         linux_resume_one_lwp.
12213         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12214         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12215         (status_callback, running_callback): Use lwp_status_pending_p.
12216         (lwp_status_pending_p): New function.
12217         (stop_and_resume_callback): Use lwp_status_pending_p.
12218         (linux_nat_filter_event): Use linux_resume_one_lwp.
12219         (linux_nat_wait_1): Always use status_callback to look for an LWP
12220         with a pending status.  Use linux_resume_one_lwp.
12221         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12222         linux_resume_one_lwp.
12223
12224 2015-01-09  Pedro Alves  <palves@redhat.com>
12225
12226         * breakpoint.c (bp_location_inserted_here_p): New function,
12227         factored out from ...
12228         (breakpoint_inserted_here_p): ... here.  Use
12229         ALL_BP_LOCATIONS_AT_ADDR.
12230         (software_breakpoint_inserted_here_p): Use
12231         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12232
12233 2014-01-09  Pedro Alves  <palves@redhat.com>
12234
12235         Skip enabling event reporting if the kernel supports
12236         PTRACE_EVENT_CLONE.
12237         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12238         (thread_db_use_events): New function.
12239         (try_thread_db_load_1): Check thread_db_use_events before enabling
12240         event reporting.
12241         (update_thread_state): New function.
12242         (attach_thread): Use it.  Check thread_db_use_events before
12243         enabling event reporting.
12244         (thread_db_detach): Check thread_db_use_events before disabling
12245         event reporting.
12246         (find_new_threads_callback): Check thread_db_use_events before
12247         enabling event reporting.  Update the thread's state if not using
12248         libthread_db events.
12249
12250 2015-01-09  Pedro Alves  <palves@redhat.com>
12251
12252         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12253         about to wait for is > 0.
12254         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12255         the kernel thread ID is -1.
12256
12257 2015-01-09  Pedro Alves  <palves@redhat.com>
12258
12259         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12260         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12261         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12262         ptrace option flags.
12263         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12264         field.
12265         * nat/linux-procfs.c: Include <dirent.h>.
12266         (linux_proc_get_int): New parameter "warn".  Handle it.
12267         (linux_proc_get_tgid): Adjust.
12268         (linux_proc_get_tracerpid): Rename to ...
12269         (linux_proc_get_tracerpid_nowarn): ... this.
12270         (linux_proc_pid_get_state): New function, factored out from
12271         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12272         and handle it.
12273         (linux_proc_pid_is_gone): New function.
12274         (linux_proc_pid_is_stopped): Adjust.
12275         (linux_proc_pid_is_zombie_maybe_warn)
12276         (linux_proc_pid_is_zombie_nowarn): New functions.
12277         (linux_proc_pid_is_zombie): Use
12278         linux_proc_pid_is_zombie_maybe_warn.
12279         (linux_proc_attach_tgid_threads): New function.
12280         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12281         (linux_proc_get_tracerpid): Rename to ...
12282         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12283         (linux_proc_pid_is_gone): New declaration.
12284         (linux_proc_pid_is_zombie): Update comment.
12285         (linux_proc_pid_is_zombie_nowarn): New declaration.
12286         (linux_proc_attach_lwp_func): New typedef.
12287         (linux_proc_attach_tgid_threads): New declaration.
12288         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12289         use nowarn functions.
12290         (linux_ptrace_attach_fail_reason_string): Move here from
12291         gdbserver/linux-low.c and rename.
12292         (ptrace_supports_feature): If the current ptrace options are not
12293         known yet, check them now, instead of asserting.
12294         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12295         Declare.
12296
12297 2015-01-09  Pedro Alves  <palves@redhat.com>
12298
12299         * linux-thread-db.c (thread_db_find_new_threads_silently)
12300         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12301         (find_new_threads_once): Print debug output on gdb_stdlog.
12302
12303 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12304             Pedro Alves  <palves@redhat.com>
12305
12306         * compile/compile.c: Include "gdb_wait.h".
12307         (do_rmdir): Check return value, and free 'zap'.
12308
12309 2015-01-08  Pedro Alves  <palves@redhat.com>
12310             Yao Qi  <yao@codesourcery.com>
12311
12312         * dwarf2loc.c (indirect_pieced_value): Don't call
12313         gdb_sign_extend.  Call extract_signed_integer instead.
12314         * utils.c (gdb_sign_extend): Remove.
12315         * utils.h (gdb_sign_extend): Remove declaration.
12316
12317 2015-01-07  Pierre Muller  <muller@sourceware.org>
12318
12319         PR symtab/17811
12320         * stabsread.c (define_symbol): Set language for C++ special symbols.
12321
12322 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12323
12324         * inflow.c (initial_gdb_ttystate): Tweak comment.
12325
12326 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12327
12328         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12329         comment documenting function.
12330
12331 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12332
12333         * terminal.h (set_initial_gdb_ttystate): Declare.
12334         * inflow.c (initial_gdb_ttystate): New static variable.
12335         (set_initial_gdb_ttystate): New setter.
12336         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12337         instead of our current terminal state.
12338         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12339
12340 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12341
12342         * guile/scm-type.c (tyscm_array_1): Add comment.
12343         * python/py-type.c (typy_array_1): Add comment.
12344
12345 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12346
12347         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12348         error if N2 is equal to N1 - 1.
12349
12350 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12351
12352         * python/py-type.c (typy_array_1): Do not raise negative-length
12353         exception if N2 is equal to N1 - 1.
12354
12355 2015-01-03  Doug Evans  <xdje42@gmail.com>
12356
12357         * c-exp.y: Whitespace cleanup.
12358         (classify_inner_name): Remove extra ;.
12359
12360 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12361
12362         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12363         offset signed.
12364
12365 2015-01-02  Doug Evans  <dje@google.com>
12366
12367         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12368
12369 2015-01-02  Doug Evans  <dje@google.com>
12370
12371         * symtab.h (struct symbol): Fix typo in comment.
12372
12373 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12374
12375         Update year range in copyright notice of all files.
12376
12377 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12378
12379         * top.c (print_gdb_version): Update copyright year to 2015.
12380
12381 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12382
12383         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12384
12385 For older changes see ChangeLog-2014.
12386 \f
12387 Local Variables:
12388 mode: change-log
12389 left-margin: 8
12390 fill-column: 74
12391 version-control: never
12392 coding: utf-8
12393 End: