Reorder variable declarations in ada_value_primitive_packed_val
[external/binutils.git] / gdb / ChangeLog
1 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2
3         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
4         variable declarations.
5
6 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
7
8         * ada-lang.c (ada_value_primitive_packed_val): Change the type
9         of local variables src and unpacked to "gdb_type *" instead of
10         "unsigned char *".
11
12 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
13
14         * ada-lang.c (ada_value_primitive_packed_val): Make the name
15         of various local variables more explicit and consistent.
16         No real code change otherwise.
17
18 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
19
20         * i386-tdep.h (struct gdbarch_tdep): Change type of
21         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
22
23 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
24
25         * cris-tdep.c (struct instruction_environment): Change type of
26         byte_order to enum bfd_endian.
27
28 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
29
30         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
31         enum gdb_syscall casts.
32
33 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
34
35         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
36         * arm-tdep.c (struct stack_item): Likewise.
37         (push_stack_item): Add gdb_byte* cast.
38         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
39         (push_stack_item): Add gdb_byte* cast.
40         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
41         and add cast.
42         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
43         (push_stack_item): Add gdb_byte* cast.
44         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
45         add cast.
46         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
47         gdb_byte*.
48         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
49         gdb_byte* and remove unnecessary cast.
50         (h8300h_extract_return_value): Likewise.
51         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
52         (h8300h_store_return_value): Likewise.
53         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
54         gdb_byte* and remove unnecessary cast.
55         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
56         and add cast.
57         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
58         gdb_byte* and remove unnecessary cast.
59         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
60         valbuf.
61         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
62         (mep_pseudo_cr64_read): Likewise.
63         (mep_pseudo_csr_write): Likewise.
64         (mep_pseudo_cr32_write): Likewise.
65         (mep_pseudo_cr64_write): Likewise.
66         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
67         gdb_byte* and add cast.
68         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
69         gdb_byte* and remove unnecessary cast.
70         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
71         valbuf.
72         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
73         gdb_byte*.
74         * printcmd.c (void): Likewise.
75         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
76         gdb_byte* and add cast.
77         (infpy_write_memory): Likewise.
78         (infpy_search_memory): Likewise.
79         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
80         and add cast.
81         (regcache_raw_write_unsigned): Likewise.
82         (regcache_cooked_write_signed): Likewise.
83         (regcache_cooked_write_unsigned): Likewise.
84         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
85         gdb_byte*.
86
87 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
88
89         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
90         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
91
92 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
93
94         * stack.c (print_stack_frame):
95         * utils.c (printchar): Fix typos in commentary.
96
97 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
98
99         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
100         (PostfixExpression): Support `expr.sizeof' expressions.
101         (PrimaryExpression): Support `typeof(expr)' expressions.
102
103 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
104
105         * MAINTAINERS: Update my email address.
106
107 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
108
109         * record-btrace.c (record_btrace_resume): Fix void return.
110
111 2015-10-07  Yao Qi  <yao.qi@linaro.org>
112
113         * aarch64-tdep.c: Include opcode/aarch64.h.
114         (submask): Move it above.
115         (bit): Likewise.
116         (bits): Likewise.
117         (aarch64_software_single_step): Call aarch64_decode_insn.
118         Decode instruction by aarch64_inst instead of using
119         aarch64_decode_bcond and decode_masked_match.
120
121 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
122
123         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
124         only when the file is binary.
125
126 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
127
128         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
129         subroutine handling.
130
131 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
132
133         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
134
135 2015-09-30  Doug Evans  <dje@google.com>
136
137         * dwarf2read.c (setup_type_unit_groups): Add comment.
138
139 2015-09-30  Pedro Alves  <palves@redhat.com>
140
141         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
142         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
143         (x86_linux_create_target): Don't install
144         x86_linux_always_non_stop_p.
145
146 2015-09-30  Don Breazeal  <donb@codesourcery.com>
147
148         * remote.c (remote_parse_stop_reply): Call strprefix instead
149         of strncmp.
150
151 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
152
153         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
154         * gdbarch.h: Regenerate.
155         * i386-tdep.c (i386_gdbarch_init): Remove cast to
156         struct gdbarch_tdep_info *.
157         * mips-tdep.c (mips_gdbarch_init): Likewise.
158         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
159         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
160         * spu-multiarch.c (spu_gdbarch): Likewise.
161
162 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
163
164         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
165         record a NULL value.
166
167 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
168
169         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
170         and union arguments the same as pointer arguments when determining
171         size of argument.
172
173 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
174
175         * ft32-tdep.c: #include "opcode/ft32.h".
176         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
177         (ft32_analyze_prologue): Use FT32_* macros.
178
179 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
180
181         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
182         comment.
183
184 2015-09-28  Doug Evans  <dje@google.com>
185
186         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
187
188 2015-09-28  Doug Evans  <dje@google.com>
189
190         * common/filestuff.c (make_cleanup_close): Update comment.
191
192 2015-09-26  Simon Marchi  <simark@nova.polymtl.ca>
193
194         * btrace.c (parse_xml_btrace_block): Fix cast of
195         xml_find_attribute's return value.
196         * memory-map.c (memory_map_start_memory): Likewise.
197         * solib-svr4.c (library_list_start_library): Likewise.
198         * solib-target.c (library_list_start_segment): Likewise.
199         (library_list_start_section): Likewise.
200         * tracepoint.c (traceframe_info_start_memory): Likewise.
201
202 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
203
204         * d-namespace.c (d_lookup_symbol): New arg langdef.
205         All callers updated.  Support looking up symbol as a primitive type.
206         (lookup_module_scope): New arg langdef.  All callers updated.
207         Call d_lookup_symbol directly for simple bare symbols.
208
209 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
210
211         * macrocmd.c (print_macro_callback): Add cast(s).
212         * macrotab.c (macro_bcache_str): Likewise.
213         (new_macro_definition): Likewise.
214         * main.c (captured_main): Likewise.
215         * maint.c (print_bfd_section_info): Likewise.
216         * mdebugread.c (mdebug_build_psymtabs): Likewise.
217         (basic_type): Likewise.
218         * memattr.c (mem_region_cmp): Likewise.
219         * memory-map.c (memory_map_start_memory): Likewise.
220         (memory_map_end_memory): Likewise.
221         (memory_map_start_property): Likewise.
222         (memory_map_end_property): Likewise.
223         (clear_result): Likewise.
224         * memrange.c (compare_mem_ranges): Likewise.
225         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
226         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
227         * mi/mi-console.c (mi_console_file_delete): Likewise.
228         (mi_console_file_fputs): Likewise.
229         (mi_console_raw_packet): Likewise.
230         (mi_console_file_flush): Likewise.
231         (mi_console_set_raw): Likewise.
232         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
233         (mi_new_thread): Likewise.
234         (mi_thread_exit): Likewise.
235         (mi_record_changed): Likewise.
236         (mi_inferior_added): Likewise.
237         (mi_inferior_appeared): Likewise.
238         (mi_inferior_exit): Likewise.
239         (mi_inferior_removed): Likewise.
240         (mi_interp_data): Likewise.
241         (mi_on_normal_stop): Likewise.
242         (mi_traceframe_changed): Likewise.
243         (mi_tsv_created): Likewise.
244         (mi_tsv_deleted): Likewise.
245         (mi_tsv_modified): Likewise.
246         (mi_breakpoint_created): Likewise.
247         (mi_breakpoint_deleted): Likewise.
248         (mi_breakpoint_modified): Likewise.
249         (mi_output_running_pid): Likewise.
250         (mi_inferior_count): Likewise.
251         (mi_solib_loaded): Likewise.
252         (mi_solib_unloaded): Likewise.
253         (mi_command_param_changed): Likewise.
254         (mi_memory_changed): Likewise.
255         (report_initial_inferior): Likewise.
256         (mi_ui_out): Likewise.
257         (mi_set_logging): Likewise.
258         * mi/mi-main.c (collect_cores): Likewise.
259         (print_one_inferior): Likewise.
260         (free_vector_of_ints): Likewise.
261         (free_splay_tree): Likewise.
262         (mi_execute_command): Likewise.
263         * mi/mi-out.c (mi_table_body): Likewise.
264         (mi_table_end): Likewise.
265         (mi_table_header): Likewise.
266         (mi_begin): Likewise.
267         (mi_end): Likewise.
268         (mi_field_int): Likewise.
269         (mi_field_string): Likewise.
270         (mi_field_fmt): Likewise.
271         (mi_flush): Likewise.
272         (mi_redirect): Likewise.
273         (field_separator): Likewise.
274         (mi_open): Likewise.
275         (mi_close): Likewise.
276         (mi_out_buffered): Likewise.
277         (mi_out_rewind): Likewise.
278         (mi_out_put): Likewise.
279         (mi_version): Likewise.
280         (mi_out_data_dtor): Likewise.
281         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
282         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
283         * minidebug.c (lzma_open): Likewise.
284         (lzma_pread): Likewise.
285         (lzma_close): Likewise.
286         (lzma_stat): Likewise.
287         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
288         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
289         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
290         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
291         (mips_micro_frame_cache): Likewise.
292         (mips_insn32_frame_cache): Likewise.
293         (mips_stub_frame_cache): Likewise.
294         (gdb_print_insn_mips): Likewise.
295         (value_of_mips_user_reg): Likewise.
296         (mips_gdbarch_init): Likewise.
297         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
298         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
299         (mipsnbsd_supply_gregset): Likewise.
300         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
301         (am33_collect_gregset_method): Likewise.
302         (am33_collect_fpregset_method): Likewise.
303         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
304         * moxie-tdep.c (moxie_frame_cache): Likewise.
305         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
306         (msp430_analyze_frame_prologue): Likewise.
307         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
308         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
309         (nios2_collect_gregset): Likewise.
310         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
311         (nios2_stub_frame_cache): Likewise.
312         * objc-lang.c (find_methods): Likewise.
313         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
314         (get_objfile_pspace_data): Likewise.
315         (get_objfile_bfd_data): Likewise.
316         (objfile_bfd_data_free): Likewise.
317         (add_to_objfile_sections): Likewise.
318         (do_free_objfile_cleanup): Likewise.
319         (resume_section_map_updates_cleanup): Likewise.
320         * opencl-lang.c (builtin_opencl_type): Likewise.
321         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
322         * osdata.c (osdata_start_osdata): Likewise.
323         (osdata_start_item): Likewise.
324         (osdata_start_column): Likewise.
325         (osdata_end_column): Likewise.
326         (clear_parsing_data): Likewise.
327         (osdata_free_cleanup): Likewise.
328         * parse.c (type_stack_cleanup): Likewise.
329         (exp_uses_objfile_iter): Likewise.
330         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
331         (ppc_linux_collect_gregset): Likewise.
332         (ppu2spu_prev_arch): Likewise.
333         (ppu2spu_this_id): Likewise.
334         (ppu2spu_prev_register): Likewise.
335         (ppu2spu_unwind_register): Likewise.
336         (ppu2spu_sniffer): Likewise.
337         (ppu2spu_dealloc_cache): Likewise.
338         (ppc_linux_init_abi): Likewise.
339         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
340         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
341         * progspace.c (restore_program_space): Likewise.
342         * psymtab.c (find_pc_sect_psymtab): Likewise.
343         (compare_psymbols): Likewise.
344         (psymbol_bcache_full): Likewise.
345         (allocate_psymtab): Likewise.
346         (discard_psymtabs_upto): Likewise.
347         * python/py-block.c (set_block): Likewise.
348         (del_objfile_blocks): Likewise.
349         * python/py-breakpoint.c (build_bp_list): Likewise.
350         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
351         (build_inferior_list): Likewise.
352         (py_free_inferior): Likewise.
353         * python/py-objfile.c (py_free_objfile): Likewise.
354         (objfile_to_objfile_object): Likewise.
355         * python/py-prettyprint.c (py_restore_tstate): Likewise.
356         * python/py-progspace.c (py_free_pspace): Likewise.
357         (pspace_to_pspace_object): Likewise.
358         * python/py-symbol.c (set_symbol): Likewise.
359         (del_objfile_symbols): Likewise.
360         * python/py-symtab.c (set_sal): Likewise.
361         (set_symtab): Likewise.
362         (del_objfile_symtab): Likewise.
363         (del_objfile_sal): Likewise.
364         * python/py-type.c (save_objfile_types): Likewise.
365         (set_type): Likewise.
366         * python/py-unwind.c (pyuw_prev_register): Likewise.
367         (pyuw_on_new_gdbarch): Likewise.
368         * python/py-utils.c (py_decref): Likewise.
369         (py_xdecref): Likewise.
370         (gdb_py_generic_dict): Likewise.
371         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
372         (gdbpy_clone_xmethod_worker_data): Likewise.
373         (gdbpy_get_xmethod_arg_types): Likewise.
374         (gdbpy_get_xmethod_result_type): Likewise.
375         (gdbpy_invoke_xmethod): Likewise.
376         * python/python.c (gdbpy_apply_type_printers): Likewise.
377         (gdbpy_free_type_printers): Likewise.
378         * record-btrace.c (record_btrace_disable_callback): Likewise.
379         (bfcache_hash): Likewise.
380         (bfcache_eq): Likewise.
381         (btrace_get_frame_function): Likewise.
382         (record_btrace_frame_unwind_stop_reason): Likewise.
383         (record_btrace_frame_this_id): Likewise.
384         (record_btrace_frame_prev_register): Likewise.
385         (record_btrace_frame_dealloc_cache): Likewise.
386         * record-full.c (record_full_message_wrapper): Likewise.
387         (record_full_save_cleanups): Likewise.
388         * regcache.c (regcache_descr): Likewise.
389         (do_regcache_xfree): Likewise.
390         (do_regcache_invalidate): Likewise.
391         (do_cooked_read): Likewise.
392         (regcache_transfer_regset): Likewise.
393         * reggroups.c (reggroup_add): Likewise.
394         (reggroup_next): Likewise.
395         (reggroup_prev): Likewise.
396         * remote-fileio.c (do_remote_fileio_request): Likewise.
397         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
398         (do_notif_event_xfree): Likewise.
399         * remote.c (get_remote_arch_state): Likewise.
400         (remote_pspace_data_cleanup): Likewise.
401         (get_remote_exec_file): Likewise.
402         (set_pspace_remote_exec_file): Likewise.
403         (compare_pnums): Likewise.
404         (clear_threads_listing_context): Likewise.
405         (remote_newthread_step): Likewise.
406         (start_thread): Likewise.
407         (end_thread): Likewise.
408         (remove_child_of_pending_fork): Likewise.
409         (remove_stop_reply_for_inferior): Likewise.
410         (remove_stop_reply_of_remote_state): Likewise.
411         (remote_notif_remove_once_on_match): Likewise.
412         (stop_reply_match_ptid_and_ws): Likewise.
413         (kill_child_of_pending_fork): Likewise.
414         (register_remote_g_packet_guess): Likewise.
415         (remote_read_description_p): Likewise.
416         (remote_read_description): Likewise.
417         (free_actions_list_cleanup_wrapper): Likewise.
418         (remote_async_serial_handler): Likewise.
419         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
420         (rl78_analyze_frame_prologue): Likewise.
421         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
422         (ppc_supply_fpregset): Likewise.
423         (ppc_supply_vsxregset): Likewise.
424         (ppc_supply_vrregset): Likewise.
425         (ppc_collect_gregset): Likewise.
426         (ppc_collect_fpregset): Likewise.
427         (ppc_collect_vsxregset): Likewise.
428         (ppc_collect_vrregset): Likewise.
429         (e500_move_ev_register): Likewise.
430         (do_regcache_raw_write): Likewise.
431         (rs6000_frame_cache): Likewise.
432         (rs6000_epilogue_frame_cache): Likewise.
433         (rs6000_gdbarch_init): Likewise.
434         * rx-tdep.c (rx_get_opcode_byte): Likewise.
435         (rx_analyze_frame_prologue): Likewise.
436         (rx_frame_type): Likewise.
437         (rx_frame_sniffer_common): Likewise.
438         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
439         (s390_frame_unwind_cache): Likewise.
440         (s390_stub_frame_unwind_cache): Likewise.
441         (s390_sigtramp_frame_unwind_cache): Likewise.
442         * score-tdep.c (score_make_prologue_cache): Likewise.
443         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
444         (sentinel_frame_prev_arch): Likewise.
445         * ser-base.c (fd_event): Likewise.
446         (push_event): Likewise.
447         (ser_base_write): Likewise.
448         * ser-pipe.c (pipe_close): Likewise.
449         * serial.c (serial_write): Likewise.
450         * sh-tdep.c (sh_frame_cache): Likewise.
451         (sh_stub_this_id): Likewise.
452         * sh64-tdep.c (sh64_frame_cache): Likewise.
453         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
454         (library_list_start_library): Likewise.
455         (library_list_start_list): Likewise.
456         (solib_aix_free_library_list): Likewise.
457         * solib-darwin.c (get_darwin_info): Likewise.
458         * solib-dsbt.c (get_dsbt_info): Likewise.
459         * solib-spu.c (append_ocl_sos): Likewise.
460         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
461         (get_svr4_info): Likewise.
462         (library_list_start_library): Likewise.
463         (svr4_library_list_start_list): Likewise.
464         (hash_probe_and_action): Likewise.
465         (equal_probe_and_action): Likewise.
466         (svr4_update_solib_event_breakpoint): Likewise.
467         (set_solib_svr4_fetch_link_map_offsets): Likewise.
468         (svr4_fetch_link_map_offsets): Likewise.
469         (svr4_have_link_map_offsets): Likewise.
470         * solib-target.c (library_list_start_segment): Likewise.
471         (library_list_start_section): Likewise.
472         (library_list_start_library): Likewise.
473         (library_list_end_library): Likewise.
474         (library_list_start_list): Likewise.
475         (solib_target_free_library_list): Likewise.
476         * solib.c (solib_ops): Likewise.
477         (set_solib_ops): Likewise.
478         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
479         * sparc-tdep.c (sparc_frame_cache): Likewise.
480         (sparc32_frame_cache): Likewise.
481         (sparc32_supply_gregset): Likewise.
482         (sparc32_collect_gregset): Likewise.
483         (sparc32_supply_fpregset): Likewise.
484         (sparc32_collect_fpregset): Likewise.
485         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
486         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
487         (sparc64_collect_gregset): Likewise.
488         (sparc64_supply_fpregset): Likewise.
489         (sparc64_collect_fpregset): Likewise.
490         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
491         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
492         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
493         (sparc64obsd_trapframe_cache): Likewise.
494         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
495         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
496         * spu-multiarch.c (spu_gdbarch): Likewise.
497         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
498         (spu2ppu_prev_arch): Likewise.
499         (spu2ppu_this_id): Likewise.
500         (spu2ppu_prev_register): Likewise.
501         (spu2ppu_dealloc_cache): Likewise.
502         (spu_dis_asm_print_address): Likewise.
503         (gdb_print_insn_spu): Likewise.
504         (spu_get_overlay_table): Likewise.
505         * stabsread.c (rs6000_builtin_type): Likewise.
506         * stack.c (do_print_variable_and_value): Likewise.
507         * stap-probe.c (get_stap_base_address_1): Likewise.
508         * symfile-debug.c (debug_qf_has_symbols): Likewise.
509         (debug_qf_find_last_source_symtab): Likewise.
510         (debug_qf_forget_cached_source_info): Likewise.
511         (debug_qf_map_symtabs_matching_filename): Likewise.
512         (debug_qf_lookup_symbol): Likewise.
513         (debug_qf_print_stats): Likewise.
514         (debug_qf_dump): Likewise.
515         (debug_qf_relocate): Likewise.
516         (debug_qf_expand_symtabs_for_function): Likewise.
517         (debug_qf_expand_all_symtabs): Likewise.
518         (debug_qf_expand_symtabs_with_fullname): Likewise.
519         (debug_qf_map_matching_symbols): Likewise.
520         (debug_qf_expand_symtabs_matching): Likewise.
521         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
522         (debug_qf_map_symbol_filenames): Likewise.
523         (debug_sym_get_probes): Likewise.
524         (debug_sym_new_init): Likewise.
525         (debug_sym_init): Likewise.
526         (debug_sym_read): Likewise.
527         (debug_sym_read_psymbols): Likewise.
528         (debug_sym_finish): Likewise.
529         (debug_sym_offsets): Likewise.
530         (debug_sym_read_linetable): Likewise.
531         (debug_sym_relocate): Likewise.
532         (uninstall_symfile_debug_logging): Likewise.
533         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
534         * symfile.c (place_section): Likewise.
535         (add_section_size_callback): Likewise.
536         (load_progress): Likewise.
537         (load_section_callback): Likewise.
538         (clear_memory_write_data): Likewise.
539         (allocate_symtab): Likewise.
540         * symmisc.c (maintenance_expand_file_matcher): Likewise.
541         * symtab.c (lookup_symtab_callback): Likewise.
542         (hash_demangled_name_entry): Likewise.
543         (eq_demangled_name_entry): Likewise.
544         (get_symbol_cache): Likewise.
545         (symbol_cache_cleanup): Likewise.
546         (set_symbol_cache_size): Likewise.
547         (symbol_cache_flush): Likewise.
548         (maintenance_print_symbol_cache): Likewise.
549         (maintenance_print_symbol_cache_statistics): Likewise.
550         (delete_filename_seen_cache): Likewise.
551         (output_partial_symbol_filename): Likewise.
552         (search_symbols_file_matches): Likewise.
553         (search_symbols_name_matches): Likewise.
554         (do_free_completion_list): Likewise.
555         (maybe_add_partial_symtab_filename): Likewise.
556         (get_main_info): Likewise.
557         (main_info_cleanup): Likewise.
558         * target-dcache.c (target_dcache_cleanup): Likewise.
559         (target_dcache_init_p): Likewise.
560         (target_dcache_invalidate): Likewise.
561         (target_dcache_get): Likewise.
562         (target_dcache_get_or_init): Likewise.
563         * target-descriptions.c (target_find_description): Likewise.
564         (tdesc_find_type): Likewise.
565         (tdesc_data_cleanup): Likewise.
566         (tdesc_find_arch_register): Likewise.
567         (tdesc_register_name): Likewise.
568         (tdesc_register_type): Likewise.
569         (tdesc_register_reggroup_p): Likewise.
570         (set_tdesc_pseudo_register_name): Likewise.
571         (set_tdesc_pseudo_register_type): Likewise.
572         (set_tdesc_pseudo_register_reggroup_p): Likewise.
573         (tdesc_use_registers): Likewise.
574         (free_target_description): Likewise.
575         * target-memory.c (compare_block_starting_address): Likewise.
576         (cleanup_request_data): Likewise.
577         (cleanup_write_requests_vector): Likewise.
578         * target.c (open_target): Likewise.
579         (cleanup_restore_target_terminal): Likewise.
580         (free_memory_read_result_vector): Likewise.
581         * thread.c (disable_thread_stack_temporaries): Likewise.
582         (finish_thread_state_cleanup): Likewise.
583         (do_restore_current_thread_cleanup): Likewise.
584         (restore_current_thread_cleanup_dtor): Likewise.
585         (set_thread_refcount): Likewise.
586         (tp_array_compar): Likewise.
587         (do_captured_thread_select): Likewise.
588         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
589         (tic6x_stub_this_id): Likewise.
590         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
591         * top.c (do_restore_instream_cleanup): Likewise.
592         (gdb_readline_wrapper_cleanup): Likewise.
593         (kill_or_detach): Likewise.
594         (print_inferior_quit_action): Likewise.
595         * tracefile-tfile.c (match_blocktype): Likewise.
596         (build_traceframe_info): Likewise.
597         * tracefile.c (trace_file_writer_xfree): Likewise.
598         * tracepoint.c (memrange_cmp): Likewise.
599         (do_collect_symbol): Likewise.
600         (do_clear_collection_list): Likewise.
601         (do_restore_current_traceframe_cleanup): Likewise.
602         (restore_current_traceframe_cleanup_dtor): Likewise.
603         (free_current_marker): Likewise.
604         (traceframe_info_start_memory): Likewise.
605         (traceframe_info_start_tvar): Likewise.
606         (free_result): Likewise.
607         * tramp-frame.c (tramp_frame_cache): Likewise.
608         * tui/tui-file.c (tui_file_delete): Likewise.
609         (tui_fileopen): Likewise.
610         (tui_sfileopen): Likewise.
611         (tui_file_isatty): Likewise.
612         (tui_file_rewind): Likewise.
613         (tui_file_put): Likewise.
614         (tui_file_fputs): Likewise.
615         (tui_file_get_strbuf): Likewise.
616         (tui_file_adjust_strbuf): Likewise.
617         (tui_file_flush): Likewise.
618         * tui/tui-layout.c (make_command_window): Likewise.
619         (make_data_window): Likewise.
620         (show_source_disasm_command): Likewise.
621         (show_data): Likewise.
622         (make_source_or_disasm_window): Likewise.
623         (show_source_or_disasm_and_command): Likewise.
624         * tui/tui-out.c (tui_field_int): Likewise.
625         (tui_field_string): Likewise.
626         (tui_field_fmt): Likewise.
627         (tui_text): Likewise.
628         * typeprint.c (hash_typedef_field): Likewise.
629         (eq_typedef_field): Likewise.
630         (do_free_typedef_hash): Likewise.
631         (copy_typedef_hash_element): Likewise.
632         (do_free_global_table): Likewise.
633         (find_global_typedef): Likewise.
634         (find_typedef_in_hash): Likewise.
635         * ui-file.c (ui_file_write_for_put): Likewise.
636         (do_ui_file_xstrdup): Likewise.
637         (mem_file_delete): Likewise.
638         (mem_file_rewind): Likewise.
639         (mem_file_put): Likewise.
640         (mem_file_write): Likewise.
641         (stdio_file_delete): Likewise.
642         (stdio_file_flush): Likewise.
643         (stdio_file_read): Likewise.
644         (stdio_file_write): Likewise.
645         (stdio_file_write_async_safe): Likewise.
646         (stdio_file_fputs): Likewise.
647         (stdio_file_isatty): Likewise.
648         (stdio_file_fseek): Likewise.
649         (tee_file_delete): Likewise.
650         (tee_file_flush): Likewise.
651         (tee_file_write): Likewise.
652         (tee_file_fputs): Likewise.
653         (tee_file_isatty): Likewise.
654         * ui-out.c (do_cleanup_table_end): Likewise.
655         (do_cleanup_end): Likewise.
656         * user-regs.c (user_reg_add): Likewise.
657         (user_reg_map_name_to_regnum): Likewise.
658         (usernum_to_user_reg): Likewise.
659         (maintenance_print_user_registers): Likewise.
660         * utils.c (do_bfd_close_cleanup): Likewise.
661         (do_fclose_cleanup): Likewise.
662         (do_obstack_free): Likewise.
663         (do_ui_file_delete): Likewise.
664         (do_ui_out_redirect_pop): Likewise.
665         (do_free_section_addr_info): Likewise.
666         (restore_integer): Likewise.
667         (do_unpush_target): Likewise.
668         (do_htab_delete_cleanup): Likewise.
669         (do_restore_ui_file): Likewise.
670         (do_value_free): Likewise.
671         (do_free_so): Likewise.
672         (free_current_contents): Likewise.
673         (do_regfree_cleanup): Likewise.
674         (core_addr_hash): Likewise.
675         (core_addr_eq): Likewise.
676         (do_free_char_ptr_vec): Likewise.
677         * v850-tdep.c (v850_frame_cache): Likewise.
678         * varobj.c (do_free_variable_cleanup): Likewise.
679         * vax-tdep.c (vax_supply_gregset): Likewise.
680         (vax_frame_cache): Likewise.
681         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
682         * xml-support.c (gdb_xml_body_text): Likewise.
683         (gdb_xml_values_cleanup): Likewise.
684         (gdb_xml_start_element): Likewise.
685         (gdb_xml_start_element_wrapper): Likewise.
686         (gdb_xml_end_element): Likewise.
687         (gdb_xml_end_element_wrapper): Likewise.
688         (gdb_xml_cleanup): Likewise.
689         (gdb_xml_fetch_external_entity): Likewise.
690         (gdb_xml_parse_attr_enum): Likewise.
691         (xinclude_start_include): Likewise.
692         (xinclude_end_include): Likewise.
693         (xml_xinclude_default): Likewise.
694         (xml_xinclude_start_doctype): Likewise.
695         (xml_xinclude_end_doctype): Likewise.
696         (xml_xinclude_cleanup): Likewise.
697         (xml_fetch_content_from_file): Likewise.
698         * xml-syscall.c (free_syscalls_info): Likewise.
699         (syscall_start_syscall): Likewise.
700         * xml-tdesc.c (tdesc_end_arch): Likewise.
701         (tdesc_end_osabi): Likewise.
702         (tdesc_end_compatible): Likewise.
703         (tdesc_start_target): Likewise.
704         (tdesc_start_feature): Likewise.
705         (tdesc_start_reg): Likewise.
706         (tdesc_start_union): Likewise.
707         (tdesc_start_struct): Likewise.
708         (tdesc_start_flags): Likewise.
709         (tdesc_start_field): Likewise.
710         (tdesc_start_vector): Likewise.
711         (fetch_available_features_from_target): Likewise.
712         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
713         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
714         (xtensa_frame_cache): Likewise.
715         (xtensa_frame_prev_register): Likewise.
716         (xtensa_extract_return_value): Likewise.
717
718 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
719
720         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
721         (aarch64_make_stub_cache): Likewise.
722         (value_of_aarch64_user_reg): Likewise.
723         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
724         (get_ada_inferior_data): Likewise.
725         (get_ada_pspace_data): Likewise.
726         (ada_pspace_data_cleanup): Likewise.
727         (ada_complete_symbol_matcher): Likewise.
728         (ada_exc_search_name_matches): Likewise.
729         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
730         (get_ada_tasks_inferior_data): Likewise.
731         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
732         (splay_obstack_alloc): Likewise.
733         (splay_obstack_free): Likewise.
734         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
735         (alpha_linux_collect_gregset): Likewise.
736         (alpha_linux_supply_fpregset): Likewise.
737         (alpha_linux_collect_fpregset): Likewise.
738         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
739         * alpha-tdep.c (alpha_lds): Likewise.
740         (alpha_sts): Likewise.
741         (alpha_sigtramp_frame_unwind_cache): Likewise.
742         (alpha_heuristic_frame_unwind_cache): Likewise.
743         (alpha_supply_int_regs): Likewise.
744         (alpha_fill_int_regs): Likewise.
745         (alpha_supply_fp_regs): Likewise.
746         (alpha_fill_fp_regs): Likewise.
747         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
748         (alphanbsd_aout_supply_gregset): Likewise.
749         (alphanbsd_supply_gregset): Likewise.
750         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
751         (amd64_x32_linux_init_abi): Likewise.
752         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
753         (amd64_collect_native_gregset): Likewise.
754         * amd64-tdep.c (amd64_frame_cache): Likewise.
755         (amd64_sigtramp_frame_cache): Likewise.
756         (amd64_epilogue_frame_cache): Likewise.
757         (amd64_supply_fxsave): Likewise.
758         (amd64_supply_xsave): Likewise.
759         (amd64_collect_fxsave): Likewise.
760         (amd64_collect_xsave): Likewise.
761         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
762         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
763         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
764         (arm_linux_collect_gregset): Likewise.
765         (arm_linux_supply_nwfpe): Likewise.
766         (arm_linux_collect_nwfpe): Likewise.
767         (arm_linux_supply_vfp): Likewise.
768         (arm_linux_collect_vfp): Likewise.
769         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
770         (arm_prologue_unwind_stop_reason): Likewise.
771         (arm_prologue_this_id): Likewise.
772         (arm_prologue_prev_register): Likewise.
773         (arm_exidx_data_free): Likewise.
774         (arm_find_exidx_entry): Likewise.
775         (arm_stub_this_id): Likewise.
776         (arm_m_exception_this_id): Likewise.
777         (arm_m_exception_prev_register): Likewise.
778         (arm_normal_frame_base): Likewise.
779         (gdb_print_insn_arm): Likewise.
780         (arm_objfile_data_free): Likewise.
781         (arm_record_special_symbol): Likewise.
782         (value_of_arm_user_reg): Likewise.
783         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
784         (armbsd_supply_gregset): Likewise.
785         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
786         (get_auto_load_pspace_data): Likewise.
787         (hash_loaded_script_entry): Likewise.
788         (eq_loaded_script_entry): Likewise.
789         (clear_section_scripts): Likewise.
790         (collect_matching_scripts): Likewise.
791         * auxv.c (auxv_inferior_data_cleanup): Likewise.
792         (get_auxv_inferior_data): Likewise.
793         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
794         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
795         * bfd-target.c (target_bfd_xfer_partial): Likewise.
796         (target_bfd_xclose): Likewise.
797         (target_bfd_get_section_table): Likewise.
798         * bfin-tdep.c (bfin_frame_cache): Likewise.
799         * block.c (find_block_in_blockvector): Likewise.
800         (call_site_for_pc): Likewise.
801         (block_find_non_opaque_type_preferred): Likewise.
802         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
803         (signal_catchpoint_remove_location): Likewise.
804         (signal_catchpoint_breakpoint_hit): Likewise.
805         (signal_catchpoint_print_one): Likewise.
806         (signal_catchpoint_print_mention): Likewise.
807         (signal_catchpoint_print_recreate): Likewise.
808         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
809         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
810         (bp_location_compare_addrs): Likewise.
811         (get_first_locp_gte_addr): Likewise.
812         (check_tracepoint_command): Likewise.
813         (do_map_commands_command): Likewise.
814         (get_breakpoint_objfile_data): Likewise.
815         (free_breakpoint_probes): Likewise.
816         (do_captured_breakpoint_query): Likewise.
817         (compare_breakpoints): Likewise.
818         (bp_location_compare): Likewise.
819         (bpstat_remove_breakpoint_callback): Likewise.
820         (do_delete_breakpoint_cleanup): Likewise.
821         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
822         (bsd_uthread_set_collect_uthread): Likewise.
823         (bsd_uthread_activate): Likewise.
824         (bsd_uthread_fetch_registers): Likewise.
825         (bsd_uthread_store_registers): Likewise.
826         * btrace.c (check_xml_btrace_version): Likewise.
827         (parse_xml_btrace_block): Likewise.
828         (parse_xml_btrace_pt_config_cpu): Likewise.
829         (parse_xml_btrace_pt_raw): Likewise.
830         (parse_xml_btrace_pt): Likewise.
831         (parse_xml_btrace_conf_bts): Likewise.
832         (parse_xml_btrace_conf_pt): Likewise.
833         (do_btrace_data_cleanup): Likewise.
834         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
835         * charset.c (cleanup_iconv): Likewise.
836         (do_cleanup_iterator): Likewise.
837         * cli-out.c (cli_uiout_dtor): Likewise.
838         (cli_table_begin): Likewise.
839         (cli_table_body): Likewise.
840         (cli_table_end): Likewise.
841         (cli_table_header): Likewise.
842         (cli_begin): Likewise.
843         (cli_end): Likewise.
844         (cli_field_int): Likewise.
845         (cli_field_skip): Likewise.
846         (cli_field_string): Likewise.
847         (cli_field_fmt): Likewise.
848         (cli_spaces): Likewise.
849         (cli_text): Likewise.
850         (cli_message): Likewise.
851         (cli_wrap_hint): Likewise.
852         (cli_flush): Likewise.
853         (cli_redirect): Likewise.
854         (out_field_fmt): Likewise.
855         (field_separator): Likewise.
856         (cli_out_set_stream): Likewise.
857         * cli/cli-cmds.c (compare_symtabs): Likewise.
858         * cli/cli-dump.c (call_dump_func): Likewise.
859         (restore_section_callback): Likewise.
860         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
861         (do_restore_user_call_depth): Likewise.
862         (do_free_command_lines_cleanup): Likewise.
863         * coff-pe-read.c (get_section_vmas): Likewise.
864         (pe_as16): Likewise.
865         (pe_as32): Likewise.
866         * coffread.c (coff_symfile_read): Likewise.
867         * common/agent.c (agent_look_up_symbols): Likewise.
868         * common/filestuff.c (do_close_cleanup): Likewise.
869         * common/format.c (free_format_pieces_cleanup): Likewise.
870         * common/vec.c (vec_o_reserve): Likewise.
871         * compile/compile-c-support.c (print_one_macro): Likewise.
872         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
873         (eq_symbol_error): Likewise.
874         (del_symbol_error): Likewise.
875         (error_symbol_once): Likewise.
876         (gcc_convert_symbol): Likewise.
877         (gcc_symbol_address): Likewise.
878         (hash_symname): Likewise.
879         (eq_symname): Likewise.
880         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
881         (eq_type_map_instance): Likewise.
882         (insert_type): Likewise.
883         (convert_type): Likewise.
884         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
885         (setup_sections): Likewise.
886         (link_hash_table_free): Likewise.
887         (copy_sections): Likewise.
888         * compile/compile-object-run.c (do_module_cleanup): Likewise.
889         * compile/compile.c (compile_print_value): Likewise.
890         (do_rmdir): Likewise.
891         (cleanup_compile_instance): Likewise.
892         (cleanup_unlink_file): Likewise.
893         * completer.c (free_completion_tracker): Likewise.
894         * corelow.c (add_to_spuid_list): Likewise.
895         * cp-namespace.c (reset_directive_searched): Likewise.
896         * cp-support.c (reset_directive_searched): Likewise.
897         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
898         (cris_frame_unwind_cache): Likewise.
899         * d-lang.c (builtin_d_type): Likewise.
900         * d-namespace.c (reset_directive_searched): Likewise.
901         * dbxread.c (dbx_free_symfile_info): Likewise.
902         (do_free_bincl_list_cleanup): Likewise.
903         * disasm.c (hash_dis_line_entry): Likewise.
904         (eq_dis_line_entry): Likewise.
905         (dis_asm_print_address): Likewise.
906         (fprintf_disasm): Likewise.
907         (do_ui_file_delete): Likewise.
908         * doublest.c (convert_floatformat_to_doublest): Likewise.
909         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
910         (dummy_frame_prev_register): Likewise.
911         (dummy_frame_this_id): Likewise.
912         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
913         (cache_eq): Likewise.
914         (cache_find): Likewise.
915         (tailcall_frame_this_id): Likewise.
916         (dwarf2_tailcall_prev_register_first): Likewise.
917         (tailcall_frame_prev_register): Likewise.
918         (tailcall_frame_dealloc_cache): Likewise.
919         (tailcall_frame_prev_arch): Likewise.
920         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
921         (dwarf2_frame_set_init_reg): Likewise.
922         (dwarf2_frame_init_reg): Likewise.
923         (dwarf2_frame_set_signal_frame_p): Likewise.
924         (dwarf2_frame_signal_frame_p): Likewise.
925         (dwarf2_frame_set_adjust_regnum): Likewise.
926         (dwarf2_frame_adjust_regnum): Likewise.
927         (clear_pointer_cleanup): Likewise.
928         (dwarf2_frame_cache): Likewise.
929         (find_cie): Likewise.
930         (dwarf2_frame_find_fde): Likewise.
931         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
932         (free_dwarf_expr_context_cleanup): Likewise.
933         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
934         (locexpr_get_frame_base): Likewise.
935         (loclist_find_frame_base_location): Likewise.
936         (loclist_get_frame_base): Likewise.
937         (dwarf_expr_dwarf_call): Likewise.
938         (dwarf_expr_get_base_type): Likewise.
939         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
940         (dwarf_expr_get_obj_addr): Likewise.
941         (entry_data_value_coerce_ref): Likewise.
942         (entry_data_value_copy_closure): Likewise.
943         (entry_data_value_free_closure): Likewise.
944         (get_frame_address_in_block_wrapper): Likewise.
945         (dwarf2_evaluate_property): Likewise.
946         (dwarf2_compile_property_to_c): Likewise.
947         (needs_frame_read_addr_from_reg): Likewise.
948         (needs_frame_get_reg_value): Likewise.
949         (needs_frame_frame_base): Likewise.
950         (needs_frame_frame_cfa): Likewise.
951         (needs_frame_tls_address): Likewise.
952         (needs_frame_dwarf_call): Likewise.
953         (needs_dwarf_reg_entry_value): Likewise.
954         (get_ax_pc): Likewise.
955         (locexpr_read_variable): Likewise.
956         (locexpr_read_variable_at_entry): Likewise.
957         (locexpr_read_needs_frame): Likewise.
958         (locexpr_describe_location): Likewise.
959         (locexpr_tracepoint_var_ref): Likewise.
960         (locexpr_generate_c_location): Likewise.
961         (loclist_read_variable): Likewise.
962         (loclist_read_variable_at_entry): Likewise.
963         (loclist_describe_location): Likewise.
964         (loclist_tracepoint_var_ref): Likewise.
965         (loclist_generate_c_location): Likewise.
966         * dwarf2read.c (line_header_hash_voidp): Likewise.
967         (line_header_eq_voidp): Likewise.
968         (dwarf2_has_info): Likewise.
969         (dwarf2_get_section_info): Likewise.
970         (locate_dwz_sections): Likewise.
971         (hash_file_name_entry): Likewise.
972         (eq_file_name_entry): Likewise.
973         (delete_file_name_entry): Likewise.
974         (dw2_setup): Likewise.
975         (dw2_get_file_names_reader): Likewise.
976         (dw2_find_pc_sect_compunit_symtab): Likewise.
977         (hash_signatured_type): Likewise.
978         (eq_signatured_type): Likewise.
979         (add_signatured_type_cu_to_table): Likewise.
980         (create_debug_types_hash_table): Likewise.
981         (lookup_dwo_signatured_type): Likewise.
982         (lookup_dwp_signatured_type): Likewise.
983         (lookup_signatured_type): Likewise.
984         (hash_type_unit_group): Likewise.
985         (eq_type_unit_group): Likewise.
986         (get_type_unit_group): Likewise.
987         (process_psymtab_comp_unit_reader): Likewise.
988         (sort_tu_by_abbrev_offset): Likewise.
989         (process_skeletonless_type_unit): Likewise.
990         (psymtabs_addrmap_cleanup): Likewise.
991         (dwarf2_read_symtab): Likewise.
992         (psymtab_to_symtab_1): Likewise.
993         (die_hash): Likewise.
994         (die_eq): Likewise.
995         (load_full_comp_unit_reader): Likewise.
996         (reset_die_in_process): Likewise.
997         (free_cu_line_header): Likewise.
998         (handle_DW_AT_stmt_list): Likewise.
999         (hash_dwo_file): Likewise.
1000         (eq_dwo_file): Likewise.
1001         (hash_dwo_unit): Likewise.
1002         (eq_dwo_unit): Likewise.
1003         (create_dwo_cu_reader): Likewise.
1004         (create_dwo_unit_in_dwp_v1): Likewise.
1005         (create_dwo_unit_in_dwp_v2): Likewise.
1006         (lookup_dwo_unit_in_dwp): Likewise.
1007         (dwarf2_locate_dwo_sections): Likewise.
1008         (dwarf2_locate_common_dwp_sections): Likewise.
1009         (dwarf2_locate_v2_dwp_sections): Likewise.
1010         (hash_dwp_loaded_cutus): Likewise.
1011         (eq_dwp_loaded_cutus): Likewise.
1012         (lookup_dwo_cutu): Likewise.
1013         (abbrev_table_free_cleanup): Likewise.
1014         (dwarf2_free_abbrev_table): Likewise.
1015         (find_partial_die_in_comp_unit): Likewise.
1016         (free_line_header_voidp): Likewise.
1017         (follow_die_offset): Likewise.
1018         (follow_die_sig_1): Likewise.
1019         (free_heap_comp_unit): Likewise.
1020         (free_stack_comp_unit): Likewise.
1021         (dwarf2_free_objfile): Likewise.
1022         (per_cu_offset_and_type_hash): Likewise.
1023         (per_cu_offset_and_type_eq): Likewise.
1024         (get_die_type_at_offset): Likewise.
1025         (partial_die_hash): Likewise.
1026         (partial_die_eq): Likewise.
1027         (dwarf2_per_objfile_free): Likewise.
1028         (hash_strtab_entry): Likewise.
1029         (eq_strtab_entry): Likewise.
1030         (add_string): Likewise.
1031         (hash_symtab_entry): Likewise.
1032         (eq_symtab_entry): Likewise.
1033         (delete_symtab_entry): Likewise.
1034         (cleanup_mapped_symtab): Likewise.
1035         (add_indices_to_cpool): Likewise.
1036         (hash_psymtab_cu_index): Likewise.
1037         (eq_psymtab_cu_index): Likewise.
1038         (add_address_entry_worker): Likewise.
1039         (unlink_if_set): Likewise.
1040         (write_one_signatured_type): Likewise.
1041         (save_gdb_index_command): Likewise.
1042         * elfread.c (elf_symtab_read): Likewise.
1043         (elf_gnu_ifunc_cache_hash): Likewise.
1044         (elf_gnu_ifunc_cache_eq): Likewise.
1045         (elf_gnu_ifunc_record_cache): Likewise.
1046         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1047         (elf_get_probes): Likewise.
1048         (probe_key_free): Likewise.
1049         * f-lang.c (builtin_f_type): Likewise.
1050         * frame-base.c (frame_base_append_sniffer): Likewise.
1051         (frame_base_set_default): Likewise.
1052         (frame_base_find_by_frame): Likewise.
1053         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1054         (frame_unwind_append_unwinder): Likewise.
1055         (frame_unwind_find_by_frame): Likewise.
1056         * frame.c (frame_addr_hash): Likewise.
1057         (frame_addr_hash_eq): Likewise.
1058         (frame_stash_find): Likewise.
1059         (do_frame_register_read): Likewise.
1060         (unwind_to_current_frame): Likewise.
1061         (frame_cleanup_after_sniffer): Likewise.
1062         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1063         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1064         * ft32-tdep.c (ft32_frame_cache): Likewise.
1065         * gcore.c (do_bfd_delete_cleanup): Likewise.
1066         (gcore_create_callback): Likewise.
1067         * gdb_bfd.c (hash_bfd): Likewise.
1068         (eq_bfd): Likewise.
1069         (gdb_bfd_open): Likewise.
1070         (free_one_bfd_section): Likewise.
1071         (gdb_bfd_ref): Likewise.
1072         (gdb_bfd_unref): Likewise.
1073         (get_section_descriptor): Likewise.
1074         (gdb_bfd_map_section): Likewise.
1075         (gdb_bfd_crc): Likewise.
1076         (gdb_bfd_mark_parent): Likewise.
1077         (gdb_bfd_record_inclusion): Likewise.
1078         (gdb_bfd_requires_relocations): Likewise.
1079         (print_one_bfd): Likewise.
1080         * gdbtypes.c (type_pair_hash): Likewise.
1081         (type_pair_eq): Likewise.
1082         (builtin_type): Likewise.
1083         (objfile_type): Likewise.
1084         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1085         (vtable_address_point_offset): Likewise.
1086         (gnuv3_get_vtable): Likewise.
1087         (hash_value_and_voffset): Likewise.
1088         (eq_value_and_voffset): Likewise.
1089         (compare_value_and_voffset): Likewise.
1090         (compute_vtable_size): Likewise.
1091         (gnuv3_get_typeid_type): Likewise.
1092         * go-lang.c (builtin_go_type): Likewise.
1093         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1094         (bkscm_eq_block_smob): Likewise.
1095         (bkscm_objfile_block_map): Likewise.
1096         (bkscm_del_objfile_blocks): Likewise.
1097         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1098         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1099         (gdbscm_disasm_print_address): Likewise.
1100         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1101         (frscm_eq_frame_smob): Likewise.
1102         (frscm_inferior_frame_map): Likewise.
1103         (frscm_del_inferior_frames): Likewise.
1104         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1105         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1106         (ofscm_objfile_smob_from_objfile): Likewise.
1107         * guile/scm-ports.c (ioscm_write): Likewise.
1108         (ioscm_file_port_delete): Likewise.
1109         (ioscm_file_port_rewind): Likewise.
1110         (ioscm_file_port_put): Likewise.
1111         (ioscm_file_port_write): Likewise.
1112         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1113         (psscm_pspace_smob_from_pspace): Likewise.
1114         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1115         (scscm_recording_unwind_handler): Likewise.
1116         (gdbscm_with_catch): Likewise.
1117         (scscm_call_0_body): Likewise.
1118         (scscm_call_1_body): Likewise.
1119         (scscm_call_2_body): Likewise.
1120         (scscm_call_3_body): Likewise.
1121         (scscm_call_4_body): Likewise.
1122         (scscm_apply_1_body): Likewise.
1123         (scscm_eval_scheme_string): Likewise.
1124         (gdbscm_safe_eval_string): Likewise.
1125         (scscm_source_scheme_script): Likewise.
1126         (gdbscm_safe_source_script): Likewise.
1127         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1128         (gdbscm_call_scm_from_stringn): Likewise.
1129         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1130         (syscm_eq_symbol_smob): Likewise.
1131         (syscm_get_symbol_map): Likewise.
1132         (syscm_del_objfile_symbols): Likewise.
1133         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1134         (stscm_eq_symtab_smob): Likewise.
1135         (stscm_objfile_symtab_map): Likewise.
1136         (stscm_del_objfile_symtabs): Likewise.
1137         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1138         (tyscm_eq_type_smob): Likewise.
1139         (tyscm_type_map): Likewise.
1140         (tyscm_copy_type_recursive): Likewise.
1141         (save_objfile_types): Likewise.
1142         * guile/scm-utils.c (extract_arg): Likewise.
1143         * h8300-tdep.c (h8300_frame_cache): Likewise.
1144         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1145         * hppa-tdep.c (compare_unwind_entries): Likewise.
1146         (find_unwind_entry): Likewise.
1147         (hppa_frame_cache): Likewise.
1148         (hppa_stub_frame_unwind_cache): Likewise.
1149         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1150         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1151         (hppaobsd_supply_fpregset): Likewise.
1152         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1153         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1154         * i386-tdep.c (i386_frame_cache): Likewise.
1155         (i386_epilogue_frame_cache): Likewise.
1156         (i386_sigtramp_frame_cache): Likewise.
1157         (i386_supply_gregset): Likewise.
1158         (i386_collect_gregset): Likewise.
1159         (i386_gdbarch_init): Likewise.
1160         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1161         (i386obsd_trapframe_cache): Likewise.
1162         * i387-tdep.c (i387_supply_fsave): Likewise.
1163         (i387_collect_fsave): Likewise.
1164         (i387_supply_fxsave): Likewise.
1165         (i387_collect_fxsave): Likewise.
1166         (i387_supply_xsave): Likewise.
1167         (i387_collect_xsave): Likewise.
1168         * ia64-tdep.c (ia64_frame_cache): Likewise.
1169         (ia64_sigtramp_frame_cache): Likewise.
1170         * infcmd.c (attach_command_continuation): Likewise.
1171         (attach_command_continuation_free_args): Likewise.
1172         * inferior.c (restore_inferior): Likewise.
1173         (delete_thread_of_inferior): Likewise.
1174         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1175         (get_inflow_inferior_data): Likewise.
1176         (inflow_inferior_exit): Likewise.
1177         * infrun.c (displaced_step_clear_cleanup): Likewise.
1178         (restore_current_uiout_cleanup): Likewise.
1179         (release_stop_context_cleanup): Likewise.
1180         (do_restore_infcall_suspend_state_cleanup): Likewise.
1181         (do_restore_infcall_control_state_cleanup): Likewise.
1182         (restore_inferior_ptid): Likewise.
1183         * inline-frame.c (block_starting_point_at): Likewise.
1184         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1185         * jit.c (get_jit_objfile_data): Likewise.
1186         (get_jit_program_space_data): Likewise.
1187         (jit_object_close_impl): Likewise.
1188         (jit_find_objf_with_entry_addr): Likewise.
1189         (jit_breakpoint_deleted): Likewise.
1190         (jit_unwind_reg_set_impl): Likewise.
1191         (jit_unwind_reg_get_impl): Likewise.
1192         (jit_dealloc_cache): Likewise.
1193         (jit_frame_sniffer): Likewise.
1194         (jit_frame_prev_register): Likewise.
1195         (jit_prepend_unwinder): Likewise.
1196         (jit_inferior_exit_hook): Likewise.
1197         (free_objfile_data): Likewise.
1198         * jv-lang.c (jv_per_objfile_free): Likewise.
1199         (get_dynamics_objfile): Likewise.
1200         (get_java_class_symtab): Likewise.
1201         (builtin_java_type): Likewise.
1202         * language.c (language_string_char_type): Likewise.
1203         (language_bool_type): Likewise.
1204         (language_lookup_primitive_type): Likewise.
1205         (language_lookup_primitive_type_as_symbol): Likewise.
1206         * linespec.c (hash_address_entry): Likewise.
1207         (eq_address_entry): Likewise.
1208         (iterate_inline_only): Likewise.
1209         (iterate_name_matcher): Likewise.
1210         (decode_line_2_compare_items): Likewise.
1211         (collect_one_symbol): Likewise.
1212         (compare_symbols): Likewise.
1213         (compare_msymbols): Likewise.
1214         (add_symtabs_to_list): Likewise.
1215         (collect_symbols): Likewise.
1216         (compare_msyms): Likewise.
1217         (add_minsym): Likewise.
1218         (cleanup_linespec_result): Likewise.
1219         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1220         * linux-nat.c (delete_lwp_cleanup): Likewise.
1221         (count_events_callback): Likewise.
1222         (select_event_lwp_callback): Likewise.
1223         (resume_stopped_resumed_lwps): Likewise.
1224         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1225         (invalidate_linux_cache_inf): Likewise.
1226         (get_linux_inferior_data): Likewise.
1227         (linux_find_memory_regions_thunk): Likewise.
1228         (linux_make_mappings_callback): Likewise.
1229         (linux_corefile_thread_callback): Likewise.
1230         (find_mapping_size): Likewise.
1231         * linux-thread-db.c (find_new_threads_callback): Likewise.
1232         * lm32-tdep.c (lm32_frame_cache): Likewise.
1233         * m2-lang.c (builtin_m2_type): Likewise.
1234         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1235         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1236         (m32r_linux_supply_gregset): Likewise.
1237         (m32r_linux_collect_gregset): Likewise.
1238         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1239         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1240         * m68k-tdep.c (m68k_frame_cache): Likewise.
1241         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1242         (m68kbsd_supply_gregset): Likewise.
1243         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1244         * m88k-tdep.c (m88k_frame_cache): Likewise.
1245         (m88k_supply_gregset): Likewise.
1246
1247 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1248
1249         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1250         to allocation result assignment.
1251         * ada-exp.y (write_object_renaming): Likewise.
1252         (write_ambiguous_var): Likewise.
1253         (ada_nget_field_index): Likewise.
1254         (write_var_or_type): Likewise.
1255         * ada-lang.c (ada_decode_symbol): Likewise.
1256         (ada_value_assign): Likewise.
1257         (value_pointer): Likewise.
1258         (cache_symbol): Likewise.
1259         (add_nonlocal_symbols): Likewise.
1260         (ada_name_for_lookup): Likewise.
1261         (symbol_completion_add): Likewise.
1262         (ada_to_fixed_type_1): Likewise.
1263         (ada_get_next_arg): Likewise.
1264         (defns_collected): Likewise.
1265         * ada-lex.l (processId): Likewise.
1266         (processString): Likewise.
1267         * ada-tasks.c (read_known_tasks_array): Likewise.
1268         (read_known_tasks_list): Likewise.
1269         * ada-typeprint.c (decoded_type_name): Likewise.
1270         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1271         * amd64-tdep.c (amd64_push_arguments): Likewise.
1272         (amd64_displaced_step_copy_insn): Likewise.
1273         (amd64_classify_insn_at): Likewise.
1274         (amd64_relocate_instruction): Likewise.
1275         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1276         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1277         (initialize_current_architecture): Likewise.
1278         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1279         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1280         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1281         (arm_push_dummy_call): Likewise.
1282         (extend_buffer_earlier): Likewise.
1283         (arm_adjust_breakpoint_address): Likewise.
1284         (arm_skip_stub): Likewise.
1285         * auto-load.c (filename_is_in_pattern): Likewise.
1286         (maybe_add_script_file): Likewise.
1287         (maybe_add_script_text): Likewise.
1288         (auto_load_objfile_script_1): Likewise.
1289         * auxv.c (ld_so_xfer_auxv): Likewise.
1290         * ax-general.c (new_agent_expr): Likewise.
1291         (grow_expr): Likewise.
1292         (ax_reg_mask): Likewise.
1293         * bcache.c (bcache_full): Likewise.
1294         * breakpoint.c (program_breakpoint_here_p): Likewise.
1295         * btrace.c (parse_xml_raw): Likewise.
1296         * build-id.c (build_id_to_debug_bfd): Likewise.
1297         * buildsym.c (end_symtab_with_blockvector): Likewise.
1298         * c-exp.y (string_exp): Likewise.
1299         (qualified_name): Likewise.
1300         (write_destructor_name): Likewise.
1301         (operator_stoken): Likewise.
1302         (parse_number): Likewise.
1303         (scan_macro_expansion): Likewise.
1304         (yylex): Likewise.
1305         (c_print_token): Likewise.
1306         * c-lang.c (c_get_string): Likewise.
1307         (emit_numeric_character): Likewise.
1308         * charset.c (wchar_iterate): Likewise.
1309         * cli/cli-cmds.c (complete_command): Likewise.
1310         (make_command): Likewise.
1311         * cli/cli-dump.c (restore_section_callback): Likewise.
1312         (restore_binary_file): Likewise.
1313         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1314         * cli/cli-script.c (execute_control_command): Likewise.
1315         * cli/cli-setshow.c (do_set_command): Likewise.
1316         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1317         (read_pe_exported_syms): Likewise.
1318         * coffread.c (coff_read_struct_type): Likewise.
1319         (coff_read_enum_type): Likewise.
1320         * common/btrace-common.c (btrace_data_append): Likewise.
1321         * common/buffer.c (buffer_grow): Likewise.
1322         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1323         * common/format.c (parse_format_string): Likewise.
1324         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1325         * common/xml-utils.c (xml_escape_text): Likewise.
1326         * compile/compile-object-load.c (copy_sections): Likewise.
1327         (compile_object_load): Likewise.
1328         * compile/compile-object-run.c (compile_object_run): Likewise.
1329         * completer.c (filename_completer): Likewise.
1330         * corefile.c (read_memory_typed_address): Likewise.
1331         (write_memory_unsigned_integer): Likewise.
1332         (write_memory_signed_integer): Likewise.
1333         (complete_set_gnutarget): Likewise.
1334         * corelow.c (get_core_register_section): Likewise.
1335         * cp-name-parser.y (d_grab): Likewise.
1336         (allocate_info): Likewise.
1337         (cp_new_demangle_parse_info): Likewise.
1338         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1339         (cp_lookup_symbol_in_namespace): Likewise.
1340         (lookup_namespace_scope): Likewise.
1341         (find_symbol_in_baseclass): Likewise.
1342         (cp_lookup_nested_symbol): Likewise.
1343         (cp_lookup_transparent_type_loop): Likewise.
1344         * cp-support.c (copy_string_to_obstack): Likewise.
1345         (make_symbol_overload_list): Likewise.
1346         (make_symbol_overload_list_namespace): Likewise.
1347         (make_symbol_overload_list_adl_namespace): Likewise.
1348         (first_component_command): Likewise.
1349         * cp-valprint.c (cp_print_value): Likewise.
1350         * ctf.c (ctf_xfer_partial): Likewise.
1351         * d-exp.y (StringExp): Likewise.
1352         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1353         (lookup_module_scope): Likewise.
1354         (find_symbol_in_baseclass): Likewise.
1355         (d_lookup_nested_symbol): Likewise.
1356         * dbxread.c (find_stab_function_addr): Likewise.
1357         (read_dbx_symtab): Likewise.
1358         (dbx_end_psymtab): Likewise.
1359         (cp_set_block_scope): Likewise.
1360         * dcache.c (dcache_alloc): Likewise.
1361         * demangle.c (_initialize_demangler): Likewise.
1362         * dicos-tdep.c (dicos_load_module_p): Likewise.
1363         * dictionary.c (dict_create_hashed_expandable): Likewise.
1364         (dict_create_linear_expandable): Likewise.
1365         (expand_hashtable): Likewise.
1366         (add_symbol_linear_expandable): Likewise.
1367         * dwarf2-frame.c (add_cie): Likewise.
1368         (add_fde): Likewise.
1369         (dwarf2_build_frame_info): Likewise.
1370         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1371         (dwarf_expr_fetch_address): Likewise.
1372         (add_piece): Likewise.
1373         (execute_stack_op): Likewise.
1374         * dwarf2loc.c (chain_candidate): Likewise.
1375         (dwarf_entry_parameter_to_value): Likewise.
1376         (read_pieced_value): Likewise.
1377         (write_pieced_value): Likewise.
1378         * dwarf2read.c (dwarf2_read_section): Likewise.
1379         (add_type_unit): Likewise.
1380         (read_comp_units_from_section): Likewise.
1381         (fixup_go_packaging): Likewise.
1382         (dwarf2_compute_name): Likewise.
1383         (dwarf2_physname): Likewise.
1384         (create_dwo_unit_in_dwp_v1): Likewise.
1385         (create_dwo_unit_in_dwp_v2): Likewise.
1386         (read_func_scope): Likewise.
1387         (read_call_site_scope): Likewise.
1388         (dwarf2_attach_fields_to_type): Likewise.
1389         (process_structure_scope): Likewise.
1390         (mark_common_block_symbol_computed): Likewise.
1391         (read_common_block): Likewise.
1392         (abbrev_table_read_table): Likewise.
1393         (guess_partial_die_structure_name): Likewise.
1394         (fixup_partial_die): Likewise.
1395         (add_file_name): Likewise.
1396         (dwarf2_const_value_data): Likewise.
1397         (dwarf2_const_value_attr): Likewise.
1398         (build_error_marker_type): Likewise.
1399         (guess_full_die_structure_name): Likewise.
1400         (anonymous_struct_prefix): Likewise.
1401         (typename_concat): Likewise.
1402         (dwarf2_canonicalize_name): Likewise.
1403         (dwarf2_name): Likewise.
1404         (write_constant_as_bytes): Likewise.
1405         (dwarf2_fetch_constant_bytes): Likewise.
1406         (copy_string): Likewise.
1407         (parse_macro_definition): Likewise.
1408         * elfread.c (elf_symfile_segments): Likewise.
1409         (elf_rel_plt_read): Likewise.
1410         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1411         (elf_gnu_ifunc_resolve_by_got): Likewise.
1412         (elf_read_minimal_symbols): Likewise.
1413         (elf_gnu_ifunc_record_cache): Likewise.
1414         * event-top.c (top_level_prompt): Likewise.
1415         (command_line_handler): Likewise.
1416         * exec.c (resize_section_table): Likewise.
1417         * expprint.c (print_subexp_standard): Likewise.
1418         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1419         * findcmd.c (parse_find_args): Likewise.
1420         * findvar.c (address_from_register): Likewise.
1421         * frame.c (get_prev_frame_always): Likewise.
1422         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1423         (get_section_descriptor): Likewise.
1424         * gdb_obstack.c (obconcat): Likewise.
1425         (obstack_strdup): Likewise.
1426         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1427         (create_set_type): Likewise.
1428         (lookup_unsigned_typename): Likewise.
1429         (lookup_signed_typename): Likewise.
1430         (resolve_dynamic_union): Likewise.
1431         (resolve_dynamic_struct): Likewise.
1432         (add_dyn_prop): Likewise.
1433         (copy_dynamic_prop_list): Likewise.
1434         (arch_flags_type): Likewise.
1435         (append_composite_type_field_raw): Likewise.
1436         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1437         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1438         * go-exp.y (string_exp): Likewise.
1439         * go-lang.c (go_demangle): Likewise.
1440         * guile/guile.c (compute_scheme_string): Likewise.
1441         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1442         (gdbscm_canonicalize_command_name): Likewise.
1443         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1444         (ioscm_init_memory_port): Likewise.
1445         (ioscm_reinit_memory_port): Likewise.
1446         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1447         (gdbscm_gc_dup_argv): Likewise.
1448         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1449         * hppa-tdep.c (internalize_unwinds): Likewise.
1450         (read_unwind_info): Likewise.
1451         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1452         (windows_core_xfer_shared_libraries): Likewise.
1453         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1454         (i386_stap_parse_special_token_triplet): Likewise.
1455         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1456         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1457         * inf-child.c (inf_child_fileio_readlink): Likewise.
1458         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1459         (inf_ptrace_store_register): Likewise.
1460         * infrun.c (follow_exec): Likewise.
1461         (displaced_step_prepare_throw): Likewise.
1462         (save_stop_context): Likewise.
1463         (save_infcall_suspend_state): Likewise.
1464         * jit.c (jit_read_descriptor): Likewise.
1465         (jit_read_code_entry): Likewise.
1466         (jit_symtab_line_mapping_add_impl): Likewise.
1467         (finalize_symtab): Likewise.
1468         (jit_unwind_reg_get_impl): Likewise.
1469         * jv-exp.y (QualifiedName): Likewise.
1470         * jv-lang.c (get_java_utf8_name): Likewise.
1471         (type_from_class): Likewise.
1472         (java_demangle_type_signature): Likewise.
1473         (java_class_name_from_physname): Likewise.
1474         * jv-typeprint.c (java_type_print_base): Likewise.
1475         * jv-valprint.c (java_value_print): Likewise.
1476         * language.c (add_language): Likewise.
1477         * linespec.c (add_sal_to_sals_basic): Likewise.
1478         (add_sal_to_sals): Likewise.
1479         (decode_objc): Likewise.
1480         (find_linespec_symbols): Likewise.
1481         * linux-fork.c (fork_save_infrun_state): Likewise.
1482         * linux-nat.c (linux_nat_detach): Likewise.
1483         (linux_nat_fileio_readlink): Likewise.
1484         * linux-record.c (record_linux_sockaddr): Likewise.
1485         (record_linux_msghdr): Likewise.
1486         (Do): Likewise.
1487         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1488         (linux_collect_regset_section_cb): Likewise.
1489         (linux_get_siginfo_data): Likewise.
1490         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1491         (try_thread_db_load_from_dir): Likewise.
1492         (thread_db_load_search): Likewise.
1493         (info_auto_load_libthread_db): Likewise.
1494         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1495         (m32c_m16c_pointer_to_address): Likewise.
1496         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1497         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1498         * machoread.c (macho_check_dsym): Likewise.
1499         * macroexp.c (resize_buffer): Likewise.
1500         (gather_arguments): Likewise.
1501         (maybe_expand): Likewise.
1502         * macrotab.c (new_macro_key): Likewise.
1503         (new_source_file): Likewise.
1504         (new_macro_definition): Likewise.
1505         * mdebugread.c (parse_symbol): Likewise.
1506         (parse_type): Likewise.
1507         (parse_partial_symbols): Likewise.
1508         (psymtab_to_symtab_1): Likewise.
1509         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1510         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1511         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1512         (mi_cmd_data_read_memory_bytes): Likewise.
1513         (mi_cmd_data_write_memory_bytes): Likewise.
1514         (mi_cmd_trace_frame_collected): Likewise.
1515         * mi/mi-parse.c (mi_parse_argv): Likewise.
1516         (mi_parse): Likewise.
1517         * minidebug.c (lzma_open): Likewise.
1518         (lzma_pread): Likewise.
1519         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1520         (mips_print_fp_register): Likewise.
1521         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1522         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1523         * mt-tdep.c (mt_register_name): Likewise.
1524         (mt_registers_info): Likewise.
1525         (mt_push_dummy_call): Likewise.
1526         * namespace.c (add_using_directive): Likewise.
1527         * nat/linux-btrace.c (perf_event_read): Likewise.
1528         (linux_enable_bts): Likewise.
1529         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1530         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1531         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1532         (nto_parse_redirection): Likewise.
1533         * objc-lang.c (objc_demangle): Likewise.
1534         (find_methods): Likewise.
1535         * objfiles.c (get_objfile_bfd_data): Likewise.
1536         (set_objfile_main_name): Likewise.
1537         (allocate_objfile): Likewise.
1538         (objfile_relocate): Likewise.
1539         (update_section_map): Likewise.
1540         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1541         * p-exp.y (exp): Likewise.
1542         (yylex): Likewise.
1543         * p-valprint.c (pascal_object_print_value): Likewise.
1544         * parse.c (initialize_expout): Likewise.
1545         (mark_completion_tag): Likewise.
1546         (copy_name): Likewise.
1547         (parse_float): Likewise.
1548         (type_stack_reserve): Likewise.
1549         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1550         (ppu2spu_prev_register): Likewise.
1551         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1552         * printcmd.c (printf_wide_c_string): Likewise.
1553         (printf_pointer): Likewise.
1554         * probe.c (parse_probes): Likewise.
1555         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1556         (cmdpy_init): Likewise.
1557         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1558         * python/py-symtab.c (set_sal): Likewise.
1559         * python/py-unwind.c (pyuw_sniffer): Likewise.
1560         * python/python.c (python_interactive_command): Likewise.
1561         (compute_python_string): Likewise.
1562         * ravenscar-thread.c (get_running_thread_id): Likewise.
1563         * record-full.c (record_full_exec_insn): Likewise.
1564         (record_full_core_open_1): Likewise.
1565         * regcache.c (regcache_raw_read_signed): Likewise.
1566         (regcache_raw_read_unsigned): Likewise.
1567         (regcache_cooked_read_signed): Likewise.
1568         (regcache_cooked_read_unsigned): Likewise.
1569         * remote-fileio.c (remote_fileio_func_open): Likewise.
1570         (remote_fileio_func_rename): Likewise.
1571         (remote_fileio_func_unlink): Likewise.
1572         (remote_fileio_func_stat): Likewise.
1573         (remote_fileio_func_system): Likewise.
1574         * remote-mips.c (mips_xfer_memory): Likewise.
1575         (mips_load_srec): Likewise.
1576         (pmon_end_download): Likewise.
1577         * remote.c (new_remote_state): Likewise.
1578         (map_regcache_remote_table): Likewise.
1579         (remote_register_number_and_offset): Likewise.
1580         (init_remote_state): Likewise.
1581         (get_memory_packet_size): Likewise.
1582         (remote_pass_signals): Likewise.
1583         (remote_program_signals): Likewise.
1584         (remote_start_remote): Likewise.
1585         (remote_check_symbols): Likewise.
1586         (remote_query_supported): Likewise.
1587         (extended_remote_attach): Likewise.
1588         (process_g_packet): Likewise.
1589         (store_registers_using_G): Likewise.
1590         (putpkt_binary): Likewise.
1591         (read_frame): Likewise.
1592         (compare_sections_command): Likewise.
1593         (remote_hostio_pread): Likewise.
1594         (remote_hostio_readlink): Likewise.
1595         (remote_file_put): Likewise.
1596         (remote_file_get): Likewise.
1597         (remote_pid_to_exec_file): Likewise.
1598         (_initialize_remote): Likewise.
1599         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1600         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1601         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1602         (bfd_uses_spe_extensions): Likewise.
1603         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1604         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1605         * solib-dsbt.c (decode_loadmap): Likewise.
1606         (fetch_loadmap): Likewise.
1607         (scan_dyntag): Likewise.
1608         (enable_break): Likewise.
1609         (dsbt_relocate_main_executable): Likewise.
1610         * solib-frv.c (fetch_loadmap): Likewise.
1611         (enable_break2): Likewise.
1612         (frv_relocate_main_executable): Likewise.
1613         * solib-spu.c (spu_relocate_main_executable): Likewise.
1614         (spu_bfd_open): Likewise.
1615         * solib-svr4.c (lm_info_read): Likewise.
1616         (read_program_header): Likewise.
1617         (find_program_interpreter): Likewise.
1618         (scan_dyntag): Likewise.
1619         (elf_locate_base): Likewise.
1620         (open_symbol_file_object): Likewise.
1621         (read_program_headers_from_bfd): Likewise.
1622         (svr4_relocate_main_executable): Likewise.
1623         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1624         * solib.c (solib_find_1): Likewise.
1625         (exec_file_find): Likewise.
1626         (solib_find): Likewise.
1627         * source.c (openp): Likewise.
1628         (print_source_lines_base): Likewise.
1629         (forward_search_command): Likewise.
1630         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1631         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1632         (spu_get_overlay_table): Likewise.
1633         * stabsread.c (patch_block_stabs): Likewise.
1634         (define_symbol): Likewise.
1635         (again:): Likewise.
1636         (read_member_functions): Likewise.
1637         (read_one_struct_field): Likewise.
1638         (read_enum_type): Likewise.
1639         (common_block_start): Likewise.
1640         * stack.c (read_frame_arg): Likewise.
1641         (backtrace_command): Likewise.
1642         * stap-probe.c (stap_parse_register_operand): Likewise.
1643         * symfile.c (syms_from_objfile_1): Likewise.
1644         (find_separate_debug_file): Likewise.
1645         (load_command): Likewise.
1646         (load_progress): Likewise.
1647         (load_section_callback): Likewise.
1648         (reread_symbols): Likewise.
1649         (add_filename_language): Likewise.
1650         (allocate_compunit_symtab): Likewise.
1651         (read_target_long_array): Likewise.
1652         (simple_read_overlay_table): Likewise.
1653         * symtab.c (symbol_set_names): Likewise.
1654         (resize_symbol_cache): Likewise.
1655         (rbreak_command): Likewise.
1656         (completion_list_add_name): Likewise.
1657         (completion_list_objc_symbol): Likewise.
1658         (add_filename_to_list): Likewise.
1659         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1660         * target-memory.c (target_write_memory_blocks): Likewise.
1661         * target.c (target_read_string): Likewise.
1662         (read_whatever_is_readable): Likewise.
1663         (target_read_alloc_1): Likewise.
1664         (simple_search_memory): Likewise.
1665         (target_fileio_read_alloc_1): Likewise.
1666         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1667         * top.c (command_line_input): Likewise.
1668         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1669         * tracefile.c (tracefile_fetch_registers): Likewise.
1670         * tracepoint.c (add_memrange): Likewise.
1671         (init_collection_list): Likewise.
1672         (add_aexpr): Likewise.
1673         (trace_dump_actions): Likewise.
1674         (parse_trace_status): Likewise.
1675         (parse_tracepoint_definition): Likewise.
1676         (parse_tsv_definition): Likewise.
1677         (parse_static_tracepoint_marker_definition): Likewise.
1678         * tui/tui-file.c (tui_sfileopen): Likewise.
1679         (tui_file_adjust_strbuf): Likewise.
1680         * tui/tui-io.c (tui_expand_tabs): Likewise.
1681         * tui/tui-source.c (tui_set_source_content): Likewise.
1682         * typeprint.c (find_global_typedef): Likewise.
1683         * ui-file.c (do_ui_file_xstrdup): Likewise.
1684         (ui_file_obsavestring): Likewise.
1685         (mem_file_write): Likewise.
1686         * utils.c (make_hex_string): Likewise.
1687         (get_regcomp_error): Likewise.
1688         (puts_filtered_tabular): Likewise.
1689         (gdb_realpath_keepfile): Likewise.
1690         (ldirname): Likewise.
1691         (gdb_bfd_errmsg): Likewise.
1692         (substitute_path_component): Likewise.
1693         * valops.c (search_struct_method): Likewise.
1694         (find_oload_champ_namespace_loop): Likewise.
1695         * valprint.c (print_decimal_chars): Likewise.
1696         (read_string): Likewise.
1697         (generic_emit_char): Likewise.
1698         * varobj.c (varobj_delete): Likewise.
1699         (varobj_value_get_print_value): Likewise.
1700         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1701         * windows-tdep.c (display_one_tib): Likewise.
1702         * xcoffread.c (read_xcoff_symtab): Likewise.
1703         (process_xcoff_symbol): Likewise.
1704         (swap_sym): Likewise.
1705         (scan_xcoff_symtab): Likewise.
1706         (xcoff_initial_scan): Likewise.
1707         * xml-support.c (gdb_xml_end_element): Likewise.
1708         (xml_process_xincludes): Likewise.
1709         (xml_fetch_content_from_file): Likewise.
1710         * xml-syscall.c (xml_list_of_syscalls): Likewise.
1711         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1712
1713 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
1714
1715         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1716         instead of builtin_func_ptr.
1717         (ft32_pointer_to_address): New function.
1718         (ft32_address_class_type_flags): New function.
1719         (ft32_address_class_type_flags_to_name): New function.
1720         (ft32_address_class_name_to_type_flags): New function.
1721         (ft32_gdbarch_init): Set tdep->pc_type.  Call
1722         set_gdbarch_pointer_to_address,
1723         set_gdbarch_address_class_type_flags
1724         set_gdbarch_address_class_name_to_type_flags,
1725         and set_gdbarch_address_class_type_flags_to_name.
1726         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1727
1728 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
1729
1730         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1731         value is a reference, actually dereference it in order to get
1732         the underlying value.
1733
1734 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
1735
1736         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1737
1738 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
1739
1740         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1741         * linespec.c (linespec_lexer_lex_string): Same.
1742
1743 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1744
1745         * NEWS: Mention support for fast tracepoints on aarch64-linux.
1746
1747 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1748
1749         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1750         variable.  Call aarch64_decode_adr instead of
1751         aarch64_decode_adrp.
1752         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1753         (aarch64_decode_adr): New function declaration.
1754         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1755         (aarch64_decode_adr): New function, factored out from
1756         aarch64_decode_adrp to decode both adr and adrp instructions.
1757
1758 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1759
1760         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1761         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1762         (aarch64-insn.o): New rule.
1763         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1764         (aarch64*-*-linux*): Likewise.
1765         * arch/aarch64-insn.c: New file.
1766         * arch/aarch64-insn.h: New file.
1767         * aarch64-tdep.c: Include arch/aarch64-insn.h.
1768         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
1769         arch/aarch64-insn.h.
1770         (decode_add_sub_imm): Rename to ...
1771         (aarch64_decode_add_sub_imm): ... this.
1772         (decode_adrp): Rename to ...
1773         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
1774         Declare in arch/aarch64-insn.h.
1775         (decode_b): Rename to ...
1776         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
1777         Declare in arch/aarch64-insn.h.
1778         (decode_bcond): Rename to ...
1779         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
1780         Declare in arch/aarch64-insn.h.
1781         (decode_br): Rename to ...
1782         (aarch64_decode_br): ... this.
1783         (decode_cb): Rename to ...
1784         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
1785         Declare in arch/aarch64-insn.h.
1786         (decode_eret): Rename to ...
1787         (aarch64_decode_eret): ... this.
1788         (decode_movz): Rename to ...
1789         (aarch64_decode_movz): ... this.
1790         (decode_orr_shifted_register_x): Rename to ...
1791         (aarch64_decode_orr_shifted_register_x): ... this.
1792         (decode_ret): Rename to ...
1793         (aarch64_decode_ret): ... this.
1794         (decode_stp_offset): Rename to ...
1795         (aarch64_decode_stp_offset): ... this.
1796         (decode_stp_offset_wb): Rename to ...
1797         (aarch64_decode_stp_offset_wb): ... this.
1798         (decode_stur): Rename to ...
1799         (aarch64_decode_stur): ... this.
1800         (decode_tb): Rename to ...
1801         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
1802         Declare in arch/aarch64-insn.h.
1803         (aarch64_analyze_prologue): Adjust calls to renamed functions.
1804
1805 2015-09-20  Doug Evans  <xdje42@gmail.com>
1806
1807         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1808
1809 2015-09-20  Doug Evans  <xdje42@gmail.com>
1810
1811         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
1812         variable name that collides with a parameter.
1813
1814 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
1815
1816         * dwarf2loc.c (locexpr_get_frame_base): Renames
1817         block_op_get_frame_base.
1818         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1819         block_op_get_frame_base by reference to locexpr_get_frame_base.
1820         (loclist_get_frame_base): New function, near identical copy of
1821         locexpr_get_frame_base.
1822         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1823         block_op_get_frame_base by reference to loclist_get_frame_base.
1824
1825 2015-09-19  Doug Evans  <xdje42@gmail.com>
1826
1827         * ravenscar-thread.c (ravenscar_inferior_created): Replace
1828         current_inferior ()->gdbarch with its wrapper target_gdbarch.
1829
1830 2015-09-18  Doug Evans  <xdje42@gmail.com>
1831
1832         * linux-thread-db.c (record_thread): Return the created thread.
1833         (thread_from_lwp): Likewise.
1834         (thread_db_get_thread_local_address): Update.
1835
1836 2015-09-18  Doug Evans  <xdje42@gmail.com>
1837
1838         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1839         move only member demangled_name up.  All uses updated.
1840
1841 2015-09-18  Doug Evans  <xdje42@gmail.com>
1842
1843         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1844         kind of minimal symbol in the error message.
1845         * objfiles.c (objfile_flavour_name): New function.
1846         * objfiles.h (objfile_flavour_name): Declare.
1847
1848 2015-09-18  Yao Qi  <yao.qi@linaro.org>
1849
1850         * nat/aarch64-linux.c: Include elf/common.h,
1851         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1852         (aarch64_ps_get_thread_area): New function.
1853         * nat/aarch64-linux.h: Include gdb_proc_service.h.
1854         (aarch64_ps_get_thread_area): Declare.
1855         * aarch64-linux-nat.c (ps_get_thread_area): Call
1856         aarch64_ps_get_thread_area.
1857
1858 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1859
1860         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1861
1862 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1863
1864         * NEWS: Announce new scheduler-locking mode.
1865         * infrun.c (schedlock_replay): New.
1866         (scheduler_enums): Add schedlock_replay.
1867         (scheduler_mode): Change default to schedlock_replay.
1868         (user_visible_resume_ptid): Handle schedlock_replay.
1869         (clear_proceed_status_thread): Stop replaying if resumed thread is
1870         not replaying.
1871         (schedlock_applies): Handle schedlock_replay.
1872         (_initialize_infrun): Document new scheduler-locking mode.
1873         * record-btrace.c (record_btrace_resume): Remove code to stop other
1874         threads when not replaying the resumed thread.
1875
1876 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1877
1878         * record-btrace.c ((record_btrace_will_replay): New.
1879         (init_record_btrace_ops): Initialize to_record_will_replay.
1880         * record-full.c ((record_full_will_replay): New.
1881         (init_record_full_ops): Initialize to_record_will_replay.
1882         * target-delegates.c: Regenerated.
1883         * target.c (target_record_will_replay): New.
1884         * target.h (struct target_ops) <to_record_will_replay>: New.
1885         (target_record_will_replay): New.
1886
1887 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1888
1889         * record-btrace.c (record_btrace_resume): Call
1890         target_record_stop_replaying.
1891         (record_btrace_stop_replaying_all): New.
1892         (init_record_btrace_ops): Initialize to_record_stop_replaying.
1893         * record-full.c (record_full_stop_replaying): New.
1894         (init_record_full_ops ): Initialize to_record_stop_replaying.
1895         * target-delegates.c: Regenerated.
1896         * target.c (target_record_stop_replaying): New.
1897         * target.h (struct target_ops) <to_record_stop_replaying>: New.
1898         (target_record_stop_replaying): New.
1899
1900 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1901
1902         * record-btrace.c (record_btrace_xfer_partial)
1903         (record_btrace_store_registers, record_btrace_prepare_to_store):
1904         Call record_btrace_is_replaying with inferior_ptid instead of
1905         minus_one_ptid.
1906         (record_btrace_store_registers): Change error message.
1907
1908 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1909
1910         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1911         Update users to pass minus_one_ptid.
1912         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1913         * record.c (cmd_record_delete): Pass inferior_ptid to
1914         target_record_is_replaying.
1915         * target-delegates.c: Regenerated.
1916         * target.c (target_record_is_replaying): Add ptid argument.
1917         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1918         argument.
1919         (target_record_is_replaying): Add ptid argument.
1920
1921 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1922
1923         * record-btrace.c (record_btrace_open): Remove non_stop check.
1924         * NEWS: Announce that record btrace supports non-stop mode.
1925
1926 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1927
1928         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1929         in the TARKET_WAITKIND_NO_HISTORY case.
1930
1931 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1932
1933         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1934         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1935
1936 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1937
1938         * record-btrace.c (get_thread_current_frame): New.
1939         (record_btrace_start_replaying): Call get_thread_current_frame.
1940
1941 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1942
1943         * record-btrace.c (record_btrace_resume_thread): A move request
1944         overwrites a previous move request.
1945         (record_btrace_find_resume_thread): Removed.
1946         (record_btrace_resume): Resume all requested threads.
1947
1948 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1949
1950         * record-btrace.c: Include vec.h.
1951         (record_btrace_find_thread_to_move): Removed.
1952         (btrace_step_no_resumed, btrace_step_again)
1953         (record_btrace_stop_replaying_at_end): New.
1954         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1955         (record_btrace_single_step_forward): Remove calls to
1956         record_btrace_stop_replaying.
1957         (record_btrace_step_thread): Do only one step for BTHR_CONT and
1958         BTHR_RCONT.  Keep threads at the end of their history moving.
1959         (record_btrace_wait): Call record_btrace_step_thread for all threads
1960         until one reports an event.  Call record_btrace_stop_replaying_at_end
1961         for the eventing thread.
1962
1963 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1964
1965         * record-btrace.c (record_btrace_single_step_forward): Return
1966         NO_HISTORY if a step brings us to the end of the execution history.
1967
1968 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1969
1970         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1971         to ...
1972         (record_btrace_single_step_forward): ... here and
1973         (record_btrace_single_step_backward): ... here.
1974
1975 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1976
1977         * record-btrace.c (btrace_step_spurious)
1978         (record_btrace_single_step_forward)
1979         (record_btrace_single_step_backward): New.
1980         (record_btrace_step_thread): Call record_btrace_single_step_forward
1981         and record_btrace_single_step_backward.
1982
1983 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1984
1985         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1986         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1987
1988 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1989
1990         * record-btrace.c (btrace_thread_flag_to_str)
1991         (record_btrace_cancel_resume): New.
1992         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1993         (record_btrace_resume): Print execution direction.
1994         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1995         (record_btrace_wait): Call record_btrace_cancel_resume.
1996
1997 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1998
1999         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2000         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2001         (record_btrace_find_thread_to_move): Also accept threads that have
2002         BTHR_STOP set.
2003         (btrace_step_stopped_on_request, record_btrace_stop): New.
2004         (record_btrace_step_thread): Support BTHR_STOP.
2005         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2006         (init_record_btrace_ops): Initialize to_stop.
2007
2008 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2009
2010         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2011         target_is_non_stop_p ().
2012
2013 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2014
2015         * ada-typeprint.c (print_array_type): Do not describe arrays as
2016         packed when they embed dynamic elements.
2017
2018 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2019
2020         * symtab.h (address_class): Document that TLS variables
2021         are handled by LOC_UNRESOLVED.
2022         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2023         * printcmd.c (address_info): Don't relocate TLS variables.
2024
2025 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2026
2027         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2028         (decode_adrp): Likewise.
2029         (decode_b): Likewise.
2030         (decode_bcond): Likewise.
2031         (decode_br): Likewise.
2032         (decode_cb): Likewise.
2033         (decode_eret): Likewise.
2034         (decode_movz): Likewise.
2035         (decode_orr_shifted_register_x): Likewise.
2036         (decode_ret): Likewise.
2037         (decode_stp_offset): Likewise.
2038         (decode_stp_offset_wb): Likewise.
2039         (decode_stur): Likewise.
2040         (decode_tb): Likewise.
2041         (aarch64_analyze_prologue): Likewise.
2042         (pass_in_x): Likewise.
2043         (pass_in_v): Likewise.
2044         (pass_on_stack): Likewise.
2045         (aarch64_push_dummy_call): Likewise.
2046         (aarch64_extract_return_value): Likewise.
2047         (aarch64_store_return_value): Likewise.
2048         (aarch64_return_value): Likewise.
2049         (aarch64_record_asimd_load_store): Likewise.
2050         (aarch64_record_load_store): Likewise.
2051         (aarch64_record_data_proc_simd_fp): Likewise.
2052
2053 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2054
2055         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2056         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2057         (ppc64_skip_trampoline_code_1): ... here.
2058         (ppc64_skip_trampoline_code): New wrapper function.
2059         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2060
2061 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2062
2063         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2064         function.
2065         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2066         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2067         if target_can_do_single_step returns 1.
2068         * remote.c (struct vCont_action_support) <s, S>: New fields.
2069         (PACKET_vContSupported): New enum.
2070         (remote_protocol_features): New element for vContSupported.
2071         (remote_query_supported): Append "vContSupported+".
2072         (remote_vcont_probe): Remove support_s and support_S, use
2073         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2074         vCont packet if c and C actions are not supported.
2075         (remote_can_do_single_step): New function.
2076         (init_remote_ops): Install it to to_can_do_single_step.
2077         (_initialize_remote): Call add_packet_config_cmd.
2078         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2079         (target_can_do_single_step): New macro.
2080         * target-delegates.c: Re-generated.
2081
2082 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2083
2084         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2085         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2086         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2087         New function.
2088         (aarch64_siginfo_from_compat_siginfo): New function.
2089         * nat/aarch64-linux.h: Include signal.h.
2090         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2091         (compat_timer_t, compat_clock_t): Likewise.
2092         (struct compat_timeval): New.
2093         (union compat_sigval): New.
2094         (struct compat_siginfo): New.
2095         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2096         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2097         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2098         (cpt_si_band, cpt_si_fd): Likewise.
2099
2100 2015-09-14  Pedro Alves  <palves@redhat.com>
2101
2102         * infrun.c (current_stop_id): New global.
2103         (get_stop_id, new_stop_id): New functions.
2104         (fetch_inferior_event): Handle normal_stop proceeding the target.
2105         (struct stop_context): New.
2106         (save_stop_context, release_stop_context_cleanup)
2107         (stop_context_changed): New functions.
2108         (normal_stop): Return true if the hook-stop changes the stop
2109         context.
2110         * infrun.h (get_stop_id): Declare.
2111         (normal_stop): Now returns int.  Add documentation.
2112
2113 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2114
2115         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2116         comment.  Handle packed arrays.
2117
2118 2015-09-14  Pedro Alves  <palves@redhat.com>
2119
2120         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2121         mention of maint set/show target-non-stop.
2122
2123 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2124
2125         * NEWS: Announce new remote packets for the exec-events
2126         feature and the exec-events feature and associated commands.
2127
2128 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2129
2130         * remote.c (remote_exec_event_p): New function.
2131         (remote_insert_exec_catchpoint): New function.
2132         (remote_remove_exec_catchpoint): New function.
2133         (init_extended_remote_ops): Initialize extended_remote_ops
2134         members to_insert_exec_catchpoint and
2135         to_remove_exec_catchpoint.
2136
2137 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2138             Luis Machado  <lgustavo@codesourcery.com>
2139
2140         * infrun.c (follow_exec): Use process-style ptid for
2141         exec message.  Call add_inferior_with_spaces and
2142         target_follow_exec.
2143         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2144         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2145         * remote.c (remote_pspace_data): New static variable.
2146         (remote_pspace_data_cleanup): New function.
2147         (get_remote_exec_file): New function.
2148         (set_remote_exec_file_1): New function.
2149         (set_remote_exec_file): New function.
2150         (show_remote_exec_file): New function.
2151         (remote_exec_file): Delete static variable.
2152         (anonymous enum) <PACKET_exec_event_feature>: New
2153         enumeration constant.
2154         (remote_protocol_features): Add entry for exec-events feature.
2155         (remote_query_supported): Add client side of qSupported query
2156         for exec-events feature.
2157         (remote_follow_exec): New function.
2158         (remote_parse_stop_reply): Handle 'exec' stop reason.
2159         (extended_remote_run, extended_remote_create_inferior): Call
2160         get_remote_exec_file and set_remote_exec_file_1.
2161         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2162         member.
2163         (_initialize_remote): Call
2164         register_program_space_data_with_cleanup.  Call
2165         add_packet_config_cmd for remote exec-events feature.
2166         Modify call to add_setshow_string_noescape_cmd for exec-file
2167         to use new functions set_remote_exec_file and
2168         show_remote_exec_file.
2169         * target-debug.h, target-delegates.c: Regenerated.
2170         * target.c (target_follow_exec): New function.
2171         * target.h (struct target_ops) <to_follow_exec>: New member.
2172         (target_follow_exec): Declare new function.
2173
2174 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2175
2176         * aarch64-tdep.c (decode_cb): Move up comment describing the
2177         encoding.
2178         (decode_tb): Fix a typo in comment above the function.  Move up
2179         comment describing the encoding.
2180
2181 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2182
2183         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2184
2185 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2186
2187         PR gdb/18947
2188         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2189         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2190
2191 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2192
2193         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2194         operations.
2195
2196 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2197
2198         * ada-lang.c (ada_search_struct_field): Constify parameters
2199         and/or variables..
2200         (xget_renaming_scope): Likewise.
2201         (ada_is_redundant_range_encoding): Likewise.
2202         (scan_discrim_bound): Likewise.
2203         (to_fixed_range_type): Likewise.
2204
2205 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2206
2207         * breakpoint.c (download_tracepoint_locations): New local
2208         can_download_tracepoint.  Check the result of
2209         target_can_download_tracepoint and save it in
2210         can_download_tracepoint if there are tracepoints to download.
2211         * linux-nat.h (enum tribool): Move it to ...
2212         * common/common-types.h: ... here.
2213
2214 2015-09-09  Pedro Alves  <palves@redhat.com>
2215
2216         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2217         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2218
2219 2015-09-09  Pedro Alves  <palves@redhat.com>
2220
2221         * continuations.c (add_continuation, restore_thread_cleanup)
2222         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2223         (do_all_continuations_thread, do_all_continuations)
2224         (discard_all_continuations_thread_callback)
2225         (discard_all_continuations_thread, discard_all_continuations)
2226         (add_intermediate_continuation)
2227         (do_all_intermediate_continuations_thread_callback)
2228         (do_all_intermediate_continuations_thread)
2229         (do_all_intermediate_continuations)
2230         (discard_all_intermediate_continuations_thread_callback)
2231         (discard_all_intermediate_continuations_thread)
2232         (discard_all_intermediate_continuations): Delete.
2233         * continuations.h (add_continuation, do_all_continuations)
2234         (do_all_continuations_thread, discard_all_continuations)
2235         (discard_all_continuations_thread, add_intermediate_continuation)
2236         (do_all_intermediate_continuations)
2237         (do_all_intermediate_continuations_thread)
2238         (discard_all_intermediate_continuations)
2239         (discard_all_intermediate_continuations_thread): Delete
2240         declarations.
2241         * event-top.c (stdin_event_handler): Delete references to
2242         continuations.
2243         * gdbthread.h (struct thread_info): Delete continuations and
2244         intermediate_continuations fields.
2245         * inf-loop.c (inferior_event_handler): Remove references to
2246         continuations.
2247         * infrun.c (infrun_thread_stop_requested_callback): Remove
2248         references to continuations.
2249         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2250         * thread.c: Don't include "continuations.h".
2251         (clear_thread_inferior_resources): Remove references to
2252         continuations.
2253
2254 2015-09-09  Pedro Alves  <palves@redhat.com>
2255
2256         * infcall.c (struct dummy_frame_context_saver): Delete.
2257         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2258         (dummy_frame_context_saver_drop)
2259         (dummy_frame_context_saver_cleanup)
2260         (dummy_frame_context_saver_get_regs)
2261         (dummy_frame_context_saver_setup): Delete.
2262         * infcall.h (dummy_frame_context_saver_drop)
2263         (dummy_frame_context_saver_cleanup)
2264         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2265         Delete.
2266         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2267         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2268         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2269
2270 2015-09-09  Pedro Alves  <palves@redhat.com>
2271
2272         * breakpoint.c: Include "thread-fsm.h".
2273         (struct until_break_command_continuation_args): Delete.
2274         (struct until_break_fsm): New.
2275         (until_break_fsm_ops): New global.
2276         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2277         (until_break_command_continuation): Delete.
2278         (until_break_fsm_clean_up): New function.
2279         (until_break_fsm_async_reply_reason): New function.
2280         (until_break_command): Adjust to create an until_break_fsm instead
2281         of a continuation.
2282         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2283         here.
2284         * infcmd.c (struct until_next_fsm): New.
2285         (until_next_fsm_ops): New global.
2286         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2287         (until_next_continuation): Delete.
2288         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2289         functions.
2290         (until_next_command): Adjust to create a new until_next_fsm
2291         instead of a continuation.
2292
2293 2015-09-09  Pedro Alves  <palves@redhat.com>
2294
2295         * infcall.c: Include thread_fsm.h.
2296         (struct call_return_meta_info): New.
2297         (get_call_return_value): New function, factored out from
2298         call_function_by_hand_dummy.
2299         (struct call_thread_fsm): New.
2300         (call_thread_fsm_ops): New global.
2301         (new_call_thread_fsm, call_thread_fsm_should_stop)
2302         (call_thread_fsm_should_notify_stop): New functions.
2303         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2304         the thread.
2305         (call_function_by_hand_dummy): Create a new call_thread_fsm
2306         instance, associate it with the thread, and wait for the FSM to
2307         finish.  If finished successfully, fetch the function's result
2308         value out of the FSM.
2309         * infrun.c (fetch_inferior_event): If the FSM says the stop
2310         shouldn't be notified, don't call normal_stop.
2311         (maybe_remove_breakpoints): New function, factored out from ...
2312         (normal_stop): ... here.  Simplify.
2313         * infrun.h (maybe_remove_breakpoints): Declare.
2314         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2315         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2316         (thread_fsm_should_notify_stop): Declare.
2317
2318 2015-09-09  Pedro Alves  <palves@redhat.com>
2319
2320         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2321         * breakpoint.c (handle_jit_event): Print debug output.
2322         (bpstat_what): Split event callback handling to ...
2323         (bpstat_run_callbacks): ... this new function.
2324         (momentary_bkpt_print_it): No longer handle bp_finish here.
2325         * breakpoint.h (bpstat_run_callbacks): Declare.
2326         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2327         <thread_fsm>: New field.
2328         (thread_cancel_execution_command): Declare.
2329         * infcmd.c: Include thread-fsm.h.
2330         (struct step_command_fsm): New.
2331         (step_command_fsm_ops): New global.
2332         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2333         (step_1): Adjust to use step_command_fsm_prepare and
2334         prepare_one_step.
2335         (struct step_1_continuation_args): Delete.
2336         (step_1_continuation): Delete.
2337         (step_command_fsm_should_stop): New function.
2338         (step_once): Delete.
2339         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2340         (prepare_one_step): New function, based on step_once.
2341         (until_next_command): Remove step_multi reference.
2342         (struct return_value_info): New.
2343         (print_return_value): Rename to ...
2344         (print_return_value_1): ... this.  New struct return_value_info
2345         parameter.  Adjust.
2346         (print_return_value): Reimplement as wrapper around
2347         print_return_value_1.
2348         (struct finish_command_fsm): New.
2349         (finish_command_continuation): Delete.
2350         (finish_command_fsm_ops): New global.
2351         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2352         functions.
2353         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2354         New.
2355         (finish_command_continuation_free_arg): Delete.
2356         (finish_command_fsm_async_reply_reason): New.
2357         (finish_backward, finish_forward): Change symbol parameter to a
2358         finish_command_fsm.  Adjust.
2359         (finish_command): Create a finish_command_fsm.  Adjust.
2360         * infrun.c: Include "thread-fsm.h".
2361         (clear_proceed_status_thread): Delete the thread's FSM.
2362         (infrun_thread_stop_requested_callback): Cancel the thread's
2363         execution command.
2364         (clean_up_just_stopped_threads_fsms): New function.
2365         (fetch_inferior_event): Handle the event_thread's should_stop
2366         method saying the command isn't done yet.
2367         (process_event_stop_test): Run breakpoint callbacks here.
2368         (print_stop_event): Rename to ...
2369         (print_stop_location): ... this.
2370         (restore_current_uiout_cleanup): New function.
2371         (print_stop_event): Reimplement.
2372         (normal_stop): No longer notify the end_stepping_range observers
2373         here handle "step N" nor "finish" here.  No longer call
2374         print_stop_event here.
2375         * infrun.h (struct return_value_info): Forward declare.
2376         (print_return_value): Declare.
2377         (print_stop_event): Change prototype.
2378         * thread-fsm.c: New file.
2379         * thread-fsm.h: New file.
2380         * thread.c: Include "thread-fsm.h".
2381         (thread_cancel_execution_command): New function.
2382         (clear_thread_inferior_resources): Call it.
2383         * cli/cli-interp.c (cli_on_normal_stop): New function.
2384         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2385         observer.
2386         * mi/mi-interp.c: Include "thread-fsm.h".
2387         (restore_current_uiout_cleanup): Delete.
2388         (mi_on_normal_stop): If the thread has an FSM associated, and it
2389         finished, ask it for the async-reply-reason to print.  Always call
2390         print_stop_event here, regardless of the top-level interpreter.
2391         Check bpstat_what to tell whether an asynchronous breakpoint hit
2392         triggered.
2393         * tui/tui-interp.c (tui_on_normal_stop): New function.
2394         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2395
2396 2015-09-09  Pedro Alves  <palves@redhat.com>
2397
2398         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2399         check whether the target can async.
2400         * inf-loop.c (inferior_event_handler): Only call target_async if
2401         the target can async.
2402         * infcall.c: Include top.h and interps.h.
2403         (run_inferior_call): For the interpreter to sync mode while
2404         running the infcall.  Call wait_sync_command_done instead of
2405         wait_for_inferior plus normal_stop.
2406         * infcmd.c (prepare_execution_command): Don't check whether the
2407         target can async when running in the foreground.
2408         (step_1): Delete synchronous case handling.
2409         (step_once): Always install a continuation, even in sync mode.
2410         (until_next_command, finish_forward): Don't check whether the
2411         target can async.
2412         (attach_command_post_wait, notice_new_inferior): Always install a
2413         continuation, even in sync mode.
2414         * infrun.c (mark_infrun_async_event_handler): New function.
2415         (proceed): In sync mode, mark infrun's event source instead of
2416         waiting for events here.
2417         (fetch_inferior_event): If the target can't async, do a blocking
2418         wait.
2419         (prepare_to_wait): In sync mode, mark infrun's event source.
2420         (infrun_async_inferior_event_handler): No longer bail out if the
2421         target can't async.
2422         * infrun.h (mark_infrun_async_event_handler): New declaration.
2423         * linux-nat.c (linux_nat_wait_1): Remove calls to
2424         set_sigint_trap/clear_sigint_trap.
2425         (linux_nat_terminal_inferior): No longer check whether the target
2426         can async.
2427         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2428         comment.
2429         (mi_execute_command_input_handler): No longer check whether the
2430         target is async.  Update and simplify comment.
2431         * target.c (default_target_wait): New function.
2432         * target.h (struct target_ops) <to_wait>: Now defaults to
2433         default_target_wait.
2434         (default_target_wait): Declare.
2435         * top.c (wait_sync_command_done): New function, factored out from
2436         ...
2437         (maybe_wait_sync_command_done): ... this.
2438         * top.h (wait_sync_command_done): Declare.
2439         * target-delegates.c: Regenerate.
2440
2441 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2442
2443         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2444         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2445         Remove include of sys/utsname.h.
2446         (linux_determine_kernel_ptr_bits): Remove.
2447         (linux_determine_kernel_start): New.
2448         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2449         Update check.
2450         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2451         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2452         initialization.
2453         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2454         assignment.
2455
2456 2015-09-07  Pedro Alves  <palves@redhat.com>
2457
2458         * guile/guile-internal.h (as_a_scm_t_subr): New.
2459         * guile/guile.c (misc_guile_functions): Use it.
2460         * guile/scm-arch.c (arch_functions): Use it.
2461         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2462         Use it.
2463         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2464         * guile/scm-cmd.c (command_functions): Use it.
2465         * guile/scm-disasm.c (disasm_functions): Use it.
2466         * guile/scm-exception.c (exception_functions)
2467         (private_exception_functions): Use it.
2468         * guile/scm-frame.c (frame_functions)
2469         * guile/scm-gsmob.c (gsmob_functions): Use it.
2470         * guile/scm-iterator.c (iterator_functions): Use it.
2471         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2472         * guile/scm-math.c (math_functions): Use it.
2473         * guile/scm-objfile.c (objfile_functions): Use it.
2474         * guile/scm-param.c (parameter_functions): Use it.
2475         * guile/scm-ports.c (port_functions, private_port_functions): Use
2476         it.
2477         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2478         * guile/scm-progspace.c (pspace_functions): Use it.
2479         * guile/scm-string.c (string_functions): Use it.
2480         * guile/scm-symbol.c (symbol_functions): Use it.
2481         * guile/scm-symtab.c (symtab_functions): Use it.
2482         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2483         it.
2484         * guile/scm-value.c (value_functions): Use it.
2485
2486 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2487
2488         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2489         (tui_next_win): Likewise.
2490         (tui_prev_win): Likewise.
2491         (tui_partial_win_by_name): Likewise.
2492         (tui_init_generic_part): Likewise.
2493         (init_content_element): Likewise.
2494         (tui_del_window): Likewise.
2495         (tui_free_window): Likewise.
2496         (tui_del_data_windows): Likewise.
2497         (tui_free_data_content): Likewise.
2498         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2499         * tui/tui-regs.c (tui_show_register_group): Likewise.
2500         * tui/tui-win.c (tui_resize_all): Likewise.
2501         (tui_set_focus): Likewise.
2502         (tui_set_win_height): Likewise.
2503         (make_invisible_and_set_new_height): Likewise.
2504         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2505         * tui/tui-wingeneral.c (make_visible): Likewise.
2506
2507 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2508
2509         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2510
2511 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2512
2513         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2514         pointer.
2515         * dbxread.c (dbx_end_psymtab): Likewise.
2516         * gnu-nat.c (gnu_write_inferior): Likewise.
2517         * mdebugread.c (cross_ref): Likewise.
2518         * p-valprint.c (pascal_val_print): Likewise.
2519         * xcoffread.c (xcoff_end_psymtab): Likewise.
2520
2521 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2522
2523         * NEWS: Mention the aarch64 multi-arch debugging support.
2524
2525 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2526
2527         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2528         type instead of a TYPE_CODE_INT one for the string_char_type
2529         and the ada_primitive_type_char types.
2530
2531 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2532
2533         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2534         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2535         aarch64_linux_region_ok_for_watchpoint.
2536         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2537         New function.
2538         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2539         Declare it.
2540
2541 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2542
2543         * gdb_obstack.h (obstack_strdup): Declare.
2544         * gdb_obstack.c (obstack_strdup): Define.
2545         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2546         * gdbarch.c: Regenerate.
2547         * gdbarch.h: Regenerate.
2548         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2549
2550 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2551
2552         * gdbtypes.c (copy_type_recursive): Update documentation.
2553
2554 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2555
2556         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2557         as zero.
2558
2559 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2560
2561         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2562
2563 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2564
2565         * solib-svr4.c (solib_event_probe_action): Call
2566         get_probe_argument_count using TRY...CATCH.
2567         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2568
2569 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2570
2571         * probe.h (struct probe_ops) <get_probe_argument_count,
2572         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2573         the comment that the function can throw an exception.
2574         (get_probe_argument_count): Likewise.
2575         (evaluate_probe_argument): Likewise.
2576         * stap-probe.c (stap_get_opcode): Call error instead of
2577         internal_error.
2578         (stap_get_expected_argument_type): Likewise.  Add argument
2579         'probe'.  Improve error message by mentioning the probe's name.
2580         (stap_parse_probe_arguments): Adjust call to
2581         stap_get_expected_argument_type.
2582         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2583         not zero.  Call internal_error if GDB requests an argument but the
2584         probe has no arguments.
2585
2586 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2587
2588         * ada-lang.c (ada_resolve_function): Do not ask the user what
2589         match to use when in completion mode.
2590
2591 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2592
2593         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2594         cast of NULL.
2595
2596 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2597
2598         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2599         call_abi using XSHAL_ABI macro.
2600
2601 2015-08-29  Doug Evans  <xdje42@gmail.com>
2602
2603         * symtab.h (struct symbol): Tweak comment.
2604
2605 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2606
2607         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2608         gdbarch obstack instead of on the heap.  Update commentary
2609         accordingly.
2610
2611 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2612
2613         GDB 7.10 released.
2614
2615 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2616
2617         * NEWS: Update entry about non-8-bits addressable memory.
2618
2619 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2620
2621         Revert:
2622         2014-11-06  Doug Evans  <xdje42@gmail.com>
2623         * solib.c (solib_global_lookup): Fetch arch from objfile,
2624         not target_gdbarch.
2625
2626 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2627
2628         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2629         attempt to relocate a TLS variable offset.
2630
2631 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2632
2633         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2634         registered yet.  Set inferior_ptid while calling target_read_memory.
2635
2636 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2637
2638         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2639         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2640         * linux-nat.c (check_stopped_by_breakpoint): Use
2641         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2642
2643 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2644
2645         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2646         thread was not yet discovered, use thread_from_lwp instead of
2647         calling thread_db_find_new_threads_1.
2648
2649 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2650
2651         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2652         statements.
2653
2654 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2655
2656         * NEWS: Document support for non-8-bits addressable memory.
2657
2658 2015-08-27  Pedro Alves  <palves@redhat.com>
2659
2660         * configure.ac: Remove AC_TYPE_SIGNAL call.
2661         * configure, config.in: Regenerate.
2662
2663 2015-08-27  Pedro Alves  <palves@redhat.com>
2664
2665         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2666         * extension-priv.h: Include signal.h.
2667         (struct signal_handler) <handler>: Change type to sighandler_t.
2668         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2669         * inflow.c (sigint_ours, sigquit_ours): Change type to
2670         sighandler_t.
2671         (child_terminal_inferior): Remove casts.
2672         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
2673         (osig): Change type to sighandler_t.
2674         * nto-procfs.c (ofunc): Change type to sighandler_t.
2675         (procfs_wait): Remove casts.
2676         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2677         * remote-sim.c (gdbsim_wait): Use sighandler_t.
2678         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2679
2680 2015-08-27  Pedro Alves  <palves@redhat.com>
2681
2682         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2683         * gnulib/aclocal.m4: Renegerate.
2684         * gnulib/config.in: Renegerate.
2685         * gnulib/configure: Renegerate.
2686         * gnulib/import/Makefile.am: Update.
2687         * gnulib/import/Makefile.in: Regenerate.
2688         * gnulib/import/m4/gnulib-cache.m4: Update.
2689         * gnulib/import/m4/gnulib-comp.m4: Update.
2690         * gnulib/import/m4/signal_h.m4: New file.
2691         * gnulib/import/signal.in.h: New file.
2692
2693 2015-08-27  Pedro Alves  <palves@redhat.com>
2694
2695         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2696         (MIN_MEMORY_PACKET_SIZE): New.
2697         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2698         (get_memory_packet_size): Adjust.  No longer limit the max packet
2699         size.
2700         (set_memory_packet_size): Adjust, and remove dead code.
2701         (remote_check_symbols): Use xmalloc and a cleanup instead of
2702         alloca.
2703         (remote_packet_size): No longer cap the packet size.
2704         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2705
2706 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
2707
2708         * compile/compile.c (compile_to_object): Mention language in
2709         error message.
2710
2711 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
2712
2713         * target.c (target_pre_inferior): Unset attach_flag.
2714
2715 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2716
2717         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2718         * gdbarch.c: Re-generate.
2719
2720 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2721
2722         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2723         function with the XNEW-family equivalent.
2724         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2725         * ada-exp.y (write_ambiguous_var): Likewise.
2726         * ada-lang.c (resolve_subexp): Likewise.
2727         (user_select_syms): Likewise.
2728         (assign_aggregate): Likewise.
2729         (ada_evaluate_subexp): Likewise.
2730         (cache_symbol): Likewise.
2731         * addrmap.c (allocate_key): Likewise.
2732         (addrmap_create_mutable): Likewise.
2733         * aix-thread.c (sync_threadlists): Likewise.
2734         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2735         (alpha_gdbarch_init): Likewise.
2736         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2737         * arm-linux-nat.c (arm_linux_add_process): Likewise.
2738         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2739         * arm-tdep.c (push_stack_item): Likewise.
2740         (arm_displaced_step_copy_insn): Likewise.
2741         (arm_gdbarch_init): Likewise.
2742         (_initialize_arm_tdep): Likewise.
2743         * avr-tdep.c (push_stack_item): Likewise.
2744         * ax-general.c (new_agent_expr): Likewise.
2745         * block.c (block_initialize_namespace): Likewise.
2746         * breakpoint.c (alloc_counted_command_line): Likewise.
2747         (update_dprintf_command_list): Likewise.
2748         (parse_breakpoint_sals): Likewise.
2749         (decode_static_tracepoint_spec): Likewise.
2750         (until_break_command): Likewise.
2751         (clear_command): Likewise.
2752         (update_global_location_list): Likewise.
2753         (get_breakpoint_objfile_data) Likewise.
2754         * btrace.c (ftrace_new_function): Likewise.
2755         (btrace_set_insn_history): Likewise.
2756         (btrace_set_call_history): Likewise.
2757         * buildsym.c (add_symbol_to_list): Likewise.
2758         (record_pending_block): Likewise.
2759         (start_subfile): Likewise.
2760         (start_buildsym_compunit): Likewise.
2761         (push_subfile): Likewise.
2762         (end_symtab_get_static_block): Likewise.
2763         (buildsym_init): Likewise.
2764         * cli/cli-cmds.c (source_command): Likewise.
2765         * cli/cli-decode.c (add_cmd): Likewise.
2766         * cli/cli-script.c (build_command_line): Likewise.
2767         (setup_user_args): Likewise.
2768         (realloc_body_list): Likewise.
2769         (process_next_line): Likewise.
2770         (copy_command_lines): Likewise.
2771         * cli/cli-setshow.c (do_set_command): Likewise.
2772         * coff-pe-read.c (read_pe_exported_syms): Likewise.
2773         * coffread.c (coff_locate_sections): Likewise.
2774         (coff_symtab_read): Likewise.
2775         (coff_read_struct_type): Likewise.
2776         * common/cleanups.c (make_my_cleanup2): Likewise.
2777         * common/common-exceptions.c (throw_it): Likewise.
2778         * common/filestuff.c (make_cleanup_close): Likewise.
2779         * common/format.c (parse_format_string): Likewise.
2780         * common/queue.h (DEFINE_QUEUE_P): Likewise.
2781         * compile/compile-object-load.c (munmap_list_add): Likewise.
2782         (compile_object_load): Likewise.
2783         * compile/compile-object-run.c (compile_object_run): Likewise.
2784         * compile/compile.c (append_args): Likewise.
2785         * corefile.c (specify_exec_file_hook): Likewise.
2786         * cp-support.c (make_symbol_overload_list): Likewise.
2787         * cris-tdep.c (push_stack_item): Likewise.
2788         (cris_gdbarch_init): Likewise.
2789         * ctf.c (ctf_trace_file_writer_new): Likewise.
2790         * dbxread.c (init_header_files): Likewise.
2791         (add_new_header_file): Likewise.
2792         (init_bincl_list): Likewise.
2793         (dbx_end_psymtab): Likewise.
2794         (start_psymtab): Likewise.
2795         (dbx_end_psymtab): Likewise.
2796         * dcache.c (dcache_init): Likewise.
2797         * dictionary.c (dict_create_hashed): Likewise.
2798         (dict_create_hashed_expandable): Likewise.
2799         (dict_create_linear): Likewise.
2800         (dict_create_linear_expandable): Likewise.
2801         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2802         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2803         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2804         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2805         (decode_frame_entry_1): Likewise.
2806         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2807         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2808         * dwarf2read.c (dwarf2_has_info): Likewise.
2809         (create_signatured_type_table_from_index): Likewise.
2810         (dwarf2_read_index): Likewise.
2811         (dw2_get_file_names_reader): Likewise.
2812         (create_all_type_units): Likewise.
2813         (read_cutu_die_from_dwo): Likewise.
2814         (init_tu_and_read_dwo_dies): Likewise.
2815         (init_cutu_and_read_dies): Likewise.
2816         (create_all_comp_units): Likewise.
2817         (queue_comp_unit): Likewise.
2818         (inherit_abstract_dies): Likewise.
2819         (read_call_site_scope): Likewise.
2820         (dwarf2_add_field): Likewise.
2821         (dwarf2_add_typedef): Likewise.
2822         (dwarf2_add_member_fn): Likewise.
2823         (attr_to_dynamic_prop): Likewise.
2824         (abbrev_table_alloc_abbrev): Likewise.
2825         (abbrev_table_read_table): Likewise.
2826         (add_include_dir): Likewise.
2827         (add_file_name): Likewise.
2828         (dwarf_decode_line_header): Likewise.
2829         (dwarf2_const_value_attr): Likewise.
2830         (dwarf_alloc_block): Likewise.
2831         (parse_macro_definition): Likewise.
2832         (set_die_type): Likewise.
2833         (write_psymtabs_to_index): Likewise.
2834         (create_cus_from_index): Likewise.
2835         (dwarf2_create_include_psymtab): Likewise.
2836         (process_psymtab_comp_unit_reader): Likewise.
2837         (build_type_psymtab_dependencies): Likewise.
2838         (read_comp_units_from_section): Likewise.
2839         (compute_compunit_symtab_includes): Likewise.
2840         (create_dwo_unit_in_dwp_v1): Likewise.
2841         (create_dwo_unit_in_dwp_v2): Likewise.
2842         (read_func_scope): Likewise.
2843         (process_structure_scope): Likewise.
2844         (mark_common_block_symbol_computed): Likewise.
2845         (load_partial_dies): Likewise.
2846         (dwarf2_symbol_mark_computed): Likewise.
2847         * elfread.c (elf_symfile_segments): Likewise.
2848         (elf_read_minimal_symbols): Likewise.
2849         * environ.c (make_environ): Likewise.
2850         * eval.c (evaluate_subexp_standard): Likewise.
2851         * event-loop.c (create_file_handler): Likewise.
2852         (create_async_signal_handler): Likewise.
2853         (create_async_event_handler): Likewise.
2854         (create_timer): Likewise.
2855         * exec.c (build_section_table): Likewise.
2856         * fbsd-nat.c (fbsd_remember_child): Likewise.
2857         * fork-child.c (fork_inferior): Likewise.
2858         * frv-tdep.c (new_variant): Likewise.
2859         * gdbarch.sh (gdbarch_alloc): Likewise.
2860         (append_name): Likewise.
2861         * gdbtypes.c (rank_function): Likewise.
2862         (copy_type_recursive): Likewise.
2863         (add_dyn_prop): Likewise.
2864         * gnu-nat.c (make_proc): Likewise.
2865         (make_inf): Likewise.
2866         (gnu_write_inferior): Likewise.
2867         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2868         (build_std_type_info_type): Likewise.
2869         * guile/scm-param.c (compute_enum_list): Likewise.
2870         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2871         * guile/scm-value.c (gdbscm_value_call): Likewise.
2872         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2873         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2874         (read_unwind_info): Likewise.
2875         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2876         * infcall.c (dummy_frame_context_saver_setup): Likewise.
2877         (call_function_by_hand_dummy): Likewise.
2878         * infcmd.c (step_once): Likewise.
2879         (finish_forward): Likewise.
2880         (attach_command): Likewise.
2881         (notice_new_inferior): Likewise.
2882         * inferior.c (add_inferior_silent): Likewise.
2883         * infrun.c (add_displaced_stepping_state): Likewise.
2884         (save_infcall_control_state): Likewise.
2885         (save_inferior_ptid): Likewise.
2886         (_initialize_infrun): Likewise.
2887         * jit.c (bfd_open_from_target_memory): Likewise.
2888         (jit_gdbarch_data_init): Likewise.
2889         * language.c (add_language): Likewise.
2890         * linespec.c (decode_line_2): Likewise.
2891         * linux-nat.c (add_to_pid_list): Likewise.
2892         (add_initial_lwp): Likewise.
2893         * linux-thread-db.c (add_thread_db_info): Likewise.
2894         (record_thread): Likewise.
2895         (info_auto_load_libthread_db): Likewise.
2896         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2897         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2898         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2899         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2900         * macrocmd.c (macro_define_command): Likewise.
2901         * macroexp.c (gather_arguments): Likewise.
2902         * macroscope.c (sal_macro_scope): Likewise.
2903         * macrotab.c (new_macro_table): Likewise.
2904         * mdebugread.c (push_parse_stack): Likewise.
2905         (parse_partial_symbols): Likewise.
2906         (parse_symbol): Likewise.
2907         (psymtab_to_symtab_1): Likewise.
2908         (new_block): Likewise.
2909         (new_psymtab): Likewise.
2910         (mdebug_build_psymtabs): Likewise.
2911         (add_pending): Likewise.
2912         (elfmdebug_build_psymtabs): Likewise.
2913         * mep-tdep.c (mep_gdbarch_init): Likewise.
2914         * mi/mi-main.c (mi_execute_command): Likewise.
2915         * mi/mi-parse.c (mi_parse_argv): Likewise.
2916         * minidebug.c (lzma_open): Likewise.
2917         * minsyms.c (terminate_minimal_symbol_table): Likewise.
2918         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2919         * mips-tdep.c (mips_gdbarch_init): Likewise.
2920         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2921         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2922         * mt-tdep.c (mt_registers_info): Likewise.
2923         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2924         * nat/linux-btrace.c (linux_enable_bts): Likewise.
2925         (linux_enable_pt): Likewise.
2926         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2927         (linux_xfer_osdata_processgroups): Likewise.
2928         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2929         * nto-procfs.c (procfs_meminfo): Likewise.
2930         * objc-lang.c (start_msglist): Likewise.
2931         (selectors_info): Likewise.
2932         (classes_info): Likewise.
2933         (find_methods): Likewise.
2934         * objfiles.c (allocate_objfile): Likewise.
2935         (update_section_map): Likewise.
2936         * osabi.c (gdbarch_register_osabi): Likewise.
2937         (gdbarch_register_osabi_sniffer): Likewise.
2938         * parse.c (start_arglist): Likewise.
2939         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2940         (hwdebug_insert_point): Likewise.
2941         * printcmd.c (display_command): Likewise.
2942         (ui_printf): Likewise.
2943         * procfs.c (create_procinfo): Likewise.
2944         (load_syscalls): Likewise.
2945         (proc_get_LDT_entry): Likewise.
2946         (proc_update_threads): Likewise.
2947         * prologue-value.c (make_pv_area): Likewise.
2948         (pv_area_store): Likewise.
2949         * psymtab.c (extend_psymbol_list): Likewise.
2950         (init_psymbol_list): Likewise.
2951         (allocate_psymtab): Likewise.
2952         * python/py-inferior.c (add_thread_object): Likewise.
2953         * python/py-param.c (compute_enum_values): Likewise.
2954         * python/py-value.c (valpy_call): Likewise.
2955         * python/py-varobj.c (py_varobj_iter_next): Likewise.
2956         * python/python.c (ensure_python_env): Likewise.
2957         * record-btrace.c (record_btrace_start_replaying): Likewise.
2958         * record-full.c (record_full_reg_alloc): Likewise.
2959         (record_full_mem_alloc): Likewise.
2960         (record_full_end_alloc): Likewise.
2961         (record_full_core_xfer_partial): Likewise.
2962         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2963         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2964         * remote-notif.c (remote_notif_state_allocate): Likewise.
2965         * remote.c (demand_private_info): Likewise.
2966         (remote_notif_stop_alloc_reply): Likewise.
2967         (remote_enable_btrace): Likewise.
2968         * reverse.c (save_bookmark_command): Likewise.
2969         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2970         * rx-tdep.c (rx_gdbarch_init): Likewise.
2971         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2972         * ser-go32.c (dos_get_tty_state): Likewise.
2973         (dos_copy_tty_state): Likewise.
2974         * ser-mingw.c (ser_windows_open): Likewise.
2975         (ser_console_wait_handle): Likewise.
2976         (ser_console_get_tty_state): Likewise.
2977         (make_pipe_state): Likewise.
2978         (net_windows_open): Likewise.
2979         * ser-unix.c (hardwire_get_tty_state): Likewise.
2980         (hardwire_copy_tty_state): Likewise.
2981         * solib-aix.c (solib_aix_new_lm_info): Likewise.
2982         * solib-dsbt.c (dsbt_current_sos): Likewise.
2983         (dsbt_relocate_main_executable): Likewise.
2984         * solib-frv.c (frv_current_sos): Likewise.
2985         (frv_relocate_main_executable): Likewise.
2986         * solib-spu.c (spu_bfd_fopen): Likewise.
2987         * solib-svr4.c (lm_info_read): Likewise.
2988         (svr4_copy_library_list): Likewise.
2989         (svr4_default_sos): Likewise.
2990         * source.c (find_source_lines): Likewise.
2991         (line_info): Likewise.
2992         (add_substitute_path_rule): Likewise.
2993         * spu-linux-nat.c (spu_bfd_open): Likewise.
2994         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2995         * stabsread.c (dbx_lookup_type): Likewise.
2996         (read_type): Likewise.
2997         (read_member_functions): Likewise.
2998         (read_struct_fields): Likewise.
2999         (read_baseclasses): Likewise.
3000         (read_args): Likewise.
3001         (_initialize_stabsread): Likewise.
3002         * stack.c (func_command): Likewise.
3003         * stap-probe.c (handle_stap_probe): Likewise.
3004         * symfile.c (addrs_section_sort): Likewise.
3005         (addr_info_make_relative): Likewise.
3006         (load_section_callback): Likewise.
3007         (add_symbol_file_command): Likewise.
3008         (init_filename_language_table): Likewise.
3009         * symtab.c (create_filename_seen_cache): Likewise.
3010         (sort_search_symbols_remove_dups): Likewise.
3011         (search_symbols): Likewise.
3012         * target.c (make_cleanup_restore_target_terminal): Likewise.
3013         * thread.c (new_thread): Likewise.
3014         (enable_thread_stack_temporaries): Likewise.
3015         (make_cleanup_restore_current_thread): Likewise.
3016         (thread_apply_all_command): Likewise.
3017         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3018         * top.c (gdb_readline_wrapper): Likewise.
3019         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3020         * tracepoint.c (trace_find_line_command): Likewise.
3021         (all_tracepoint_actions_and_cleanup): Likewise.
3022         (make_cleanup_restore_current_traceframe): Likewise.
3023         (get_uploaded_tp): Likewise.
3024         (get_uploaded_tsv): Likewise.
3025         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3026         (tui_alloc_win_info): Likewise.
3027         (tui_alloc_content): Likewise.
3028         (tui_add_content_elements): Likewise.
3029         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3030         (tui_set_disassem_content): Likewise.
3031         * ui-file.c (ui_file_new): Likewise.
3032         (stdio_file_new): Likewise.
3033         (tee_file_new): Likewise.
3034         * utils.c (make_cleanup_restore_integer): Likewise.
3035         (add_internal_problem_command): Likewise.
3036         * v850-tdep.c (v850_gdbarch_init): Likewise.
3037         * valops.c (find_oload_champ): Likewise.
3038         * value.c (allocate_value_lazy): Likewise.
3039         (record_latest_value): Likewise.
3040         (create_internalvar): Likewise.
3041         * varobj.c (install_variable): Likewise.
3042         (new_variable): Likewise.
3043         (new_root_variable): Likewise.
3044         (cppush): Likewise.
3045         (_initialize_varobj): Likewise.
3046         * windows-nat.c (windows_make_so): Likewise.
3047         * x86-nat.c (x86_add_process): Likewise.
3048         * xcoffread.c (arrange_linetable): Likewise.
3049         (allocate_include_entry): Likewise.
3050         (process_linenos): Likewise.
3051         (SYMBOL_DUP): Likewise.
3052         (xcoff_start_psymtab): Likewise.
3053         (xcoff_end_psymtab): Likewise.
3054         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3055         * xtensa-tdep.c (xtensa_register_type): Likewise.
3056         * gdbarch.c: Regenerate.
3057         * gdbarch.h: Regenerate.
3058
3059 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3060
3061         * infrun.c (follow_exec): Re-order operations for
3062         handling follow-exec-mode "new".
3063         (handle_inferior_event_1): Assign ecs->event_thread
3064         to the current thread.
3065         * remote.c (get_remote_arch_state): Add an assertion.
3066
3067 2015-08-26  Pedro Alves  <palves@redhat.com>
3068
3069         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3070
3071 2015-08-25  Pedro Alves  <palves@redhat.com>
3072
3073         PR gdb/18804
3074         * defs.h (maybe_quit): Declare.
3075         (QUIT): Now calls maybe_quit.
3076         * event-loop.c (clear_async_signal_handler)
3077         (async_signal_handler_is_marked): New functions.
3078         * event-loop.h (async_signal_handler_is_marked)
3079         (clear_async_signal_handler): New declarations.
3080         * remote.c (remote_check_pending_interrupt): New function.
3081         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3082         longer check whether the target is async.  If waiting for a stop
3083         reply, and a Ctrl-C as been sent to the target, offer to
3084         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3085         Otherwise do not disconnect and throw a quit.
3086         (_initialize_remote): Install remote_check_pending_interrupt as
3087         to_check_pending_interrupt.
3088         * target.c (target_check_pending_interrupt): New function.
3089         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3090         field.
3091         (target_check_pending_interrupt): New declaration.
3092         * utils.c (maybe_quit): New function.
3093         * target-delegates.c: Regenerate.
3094
3095 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3096
3097         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3098         Rename local variable pid to tid, and get lwpid of lwp.  Update
3099         debug output.
3100
3101 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3102
3103         * ada-lang.c (ada_read_var_value): Add a var_block argument
3104         and pass it to default_read_var_value.
3105         * block.c (block_static_link): New accessor.
3106         * block.h (block_static_link): Declare it.
3107         * buildsym.c (finish_block_internal): Add a static_link
3108         argument.  If there is a static link, associate it to the new
3109         block.
3110         (finish_block): Add a static link argument and pass it to
3111         finish_block_internal.
3112         (end_symtab_get_static_block): Update calls to finish_block and
3113         to finish_block_internal.
3114         (end_symtab_with_blockvector): Update call to
3115         finish_block_internal.
3116         * buildsym.h: Forward-declare struct dynamic_prop.
3117         (struct context_stack): Add a static_link field.
3118         (finish_block): Add a static link argument.
3119         * c-exp.y: Remove an obsolete comment (evaluation of variables
3120         already start from the selected frame, and now they climb *up*
3121         the call stack) and propagate the block information to the
3122         produced expression.
3123         * d-exp.y: Likewise.
3124         * f-exp.y: Likewise.
3125         * go-exp.y: Likewise.
3126         * jv-exp.y: Likewise.
3127         * m2-exp.y: Likewise.
3128         * p-exp.y: Likewise.
3129         * coffread.c (coff_symtab_read): Update calls to finish_block.
3130         * dbxread.c (process_one_symbol): Likewise.
3131         * xcoffread.c (read_xcoff_symtab): Likewise.
3132         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3133         "sym" parameter to struct block_symbol, update its uses and pass
3134         its block to calls to read_var_value.
3135         (convert_symbol_sym): Update the calls to convert_one_symbol.
3136         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3137         call to read_var_value.
3138         * dwarf2loc.c (block_op_get_frame_base): New.
3139         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3140         get_frame_base method.
3141         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3142         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3143         instead of the selected frame in order to evaluate the
3144         expression.
3145         (dwarf2_evaluate_property): Add a frame argument.  Update call
3146         to dwarf2_locexpr_baton_eval to provide a frame in available and
3147         to handle the absence of address stack.
3148         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3149         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3150         declaration.
3151         (read_func_scope): Record any available static link description.
3152         Update call to finish_block.
3153         (read_lexical_block_scope): Update call to finish_block.
3154         * findvar.c (follow_static_link): New.
3155         (get_hosting_frame): New.
3156         (default_read_var_value): Add a var_block argument.  Use
3157         get_hosting_frame to handle non-local references.
3158         (read_var_value): Add a var_block argument and pass it to the
3159         LA_READ_VAR_VALUE method.
3160         * gdbtypes.c (resolve_dynamic_range): Update calls to
3161         dwarf2_evaluate_property.
3162         (resolve_dynamic_type_internal): Likewise.
3163         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3164         read_var_value, passing it the block coming from symbol lookup.
3165         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3166         read_var_value (TODO).
3167         * infcmd.c (finish_command_continuation): Update call to
3168         read_var_value, passing it the block coming from symbol lookup.
3169         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3170         * language.h (struct language_defn): Add a var_block argument to
3171         the LA_READ_VAR_VALUE method.
3172         * objfiles.c (struct static_link_htab_entry): New.
3173         (static_link_htab_entry_hash): New.
3174         (static_link_htab_entry_eq): New.
3175         (objfile_register_static_link): New.
3176         (objfile_lookup_static_link): New.
3177         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3178         * objfiles.h: Include hashtab.h.
3179         (struct objfile): Add a static_links field.
3180         (objfile_register_static_link): New.
3181         (objfile_lookup_static_link): New.
3182         * printcmd.c (print_variable_and_value): Update call to
3183         read_var_value.
3184         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3185         * python/py-frame.c (frapy_read_var): Update call to
3186         read_var_value, passing it the block coming from symbol lookup.
3187         * python/py-framefilter.c (extract_sym): Add a sym_block
3188         parameter and set the pointed value to NULL (TODO).
3189         (enumerate_args): Update call to extract_sym.
3190         (enumerate_locals): Update calls to extract_sym and to
3191         read_var_value.
3192         * python/py-symbol.c (sympy_value): Update call to
3193         read_var_value (TODO).
3194         * stack.c (read_frame_local): Update call to read_var_value.
3195         (read_frame_arg): Likewise.
3196         (return_command): Likewise.
3197         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3198         method.
3199         (struct symbol): Add a block field.
3200         (SYMBOL_BLOCK): New accessor.
3201         * valops.c (value_of_variable): Remove frame/block handling and
3202         pass the block argument to read_var_value, which does this job
3203         now.
3204         (value_struct_elt_for_reference): Update calls to
3205         read_var_value.
3206         (value_of_this): Pass the block found to read_var_value.
3207         * value.h (read_var_value): Add a var_block argument.
3208         (default_read_var_value): Likewise.
3209
3210 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3211
3212         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3213         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3214         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3215
3216 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3217
3218         * Makefile.in (aarch64-liunx.o): New rule.
3219         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3220         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3221         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3222         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3223         extern.
3224         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3225         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3226         * nat/aarch64-linux.c: New file.
3227         * nat/aarch64-linux.h: New file.
3228
3229 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3230
3231         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3232         lwp_arch_private_info and ptid_of_lwp.
3233
3234 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3235
3236         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3237         Move it to nat/aarch64-linux-hw-point.c.
3238         (debug_reg_change_callback): Likewise.
3239         (aarch64_notify_debug_reg_change): :Likewise.
3240         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3241         (aarch64_dr_update_callback_param): New.
3242         (debug_reg_change_callback): New function.
3243         (aarch64_notify_debug_reg_change): Likewise.
3244         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3245         Remove the declaration.
3246
3247 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3248
3249         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3250         Call current_lwp_ptid.
3251
3252 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3253
3254         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3255         debug_printf.
3256
3257 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3258
3259         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3260         ptid_get_pid rather than ptid_get_lwp.
3261
3262 2015-08-24  Pedro Alves  <palves@redhat.com>
3263
3264         * NEWS (New commands): Mention set/show remote
3265         multiprocess-extensions-packet.
3266         * remote.c (remote_query_supported): Only tell the server to use
3267         the multiprocess extensions if the user hasn't force-disabled them
3268         with "set remote multiprocess-extensions-packet off".
3269
3270 2015-08-24  Pedro Alves  <palves@redhat.com>
3271
3272         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3273         1029a8112290f6eee9d7878a391c49db42c999bd.
3274         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3275         Regenerate.
3276         * gnulib/import/Makefile.am: Update.
3277         * gnulib/import/Makefile.in: Update.
3278         * gnulib/import/alloca.in.h: Update.
3279         * gnulib/import/basename-lgpl.c: Update.
3280         * gnulib/import/canonicalize-lgpl.c: Update.
3281         * gnulib/import/config.charset: Update.
3282         * gnulib/import/dirent.in.h: Update.
3283         * gnulib/import/dirfd.c: Update.
3284         * gnulib/import/dirname-lgpl.c: Update.
3285         * gnulib/import/dirname.h: Update.
3286         * gnulib/import/dosname.h: Update.
3287         * gnulib/import/errno.in.h: Update.
3288         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3289         * gnulib/import/extra/snippet/c++defs.h: Update.
3290         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3291         * gnulib/import/extra/update-copyright: Update.
3292         * gnulib/import/float+.h: Update.
3293         * gnulib/import/float.c: Update.
3294         * gnulib/import/float.in.h: Update.
3295         * gnulib/import/fnmatch.c: Update.
3296         * gnulib/import/fnmatch.in.h: Update.
3297         * gnulib/import/fnmatch_loop.c: Update.
3298         * gnulib/import/fpucw.h: Update.
3299         * gnulib/import/frexp.c: Update.
3300         * gnulib/import/frexpl.c: Update.
3301         * gnulib/import/gettimeofday.c: Update.
3302         * gnulib/import/inttypes.in.h: Update.
3303         * gnulib/import/isnan.c: Update.
3304         * gnulib/import/isnand-nolibm.h: Update.
3305         * gnulib/import/isnand.c: Update.
3306         * gnulib/import/isnanl-nolibm.h: Update.
3307         * gnulib/import/isnanl.c: Update.
3308         * gnulib/import/itold.c: Update.
3309         * gnulib/import/localcharset.c: Update.
3310         * gnulib/import/localcharset.h: Update.
3311         * gnulib/import/lstat.c: Update.
3312         * gnulib/import/m4/00gnulib.m4: Update.
3313         * gnulib/import/m4/absolute-header.m4: Update.
3314         * gnulib/import/m4/alloca.m4: Update.
3315         * gnulib/import/m4/canonicalize.m4: Update.
3316         * gnulib/import/m4/codeset.m4: Update.
3317         * gnulib/import/m4/configmake.m4: Update.
3318         * gnulib/import/m4/dirent_h.m4: Update.
3319         * gnulib/import/m4/dirfd.m4: Update.
3320         * gnulib/import/m4/dirname.m4: Update.
3321         * gnulib/import/m4/double-slash-root.m4: Update.
3322         * gnulib/import/m4/eealloc.m4: Update.
3323         * gnulib/import/m4/errno_h.m4: Update.
3324         * gnulib/import/m4/exponentd.m4: Update.
3325         * gnulib/import/m4/exponentl.m4: Update.
3326         * gnulib/import/m4/extensions.m4: Update.
3327         * gnulib/import/m4/extern-inline.m4: Update.
3328         * gnulib/import/m4/fcntl-o.m4: Update.
3329         * gnulib/import/m4/float_h.m4: Update.
3330         * gnulib/import/m4/fnmatch.m4: Update.
3331         * gnulib/import/m4/fpieee.m4: Update.
3332         * gnulib/import/m4/frexp.m4: Update.
3333         * gnulib/import/m4/frexpl.m4: Update.
3334         * gnulib/import/m4/gettimeofday.m4: Update.
3335         * gnulib/import/m4/glibc21.m4: Update.
3336         * gnulib/import/m4/gnulib-cache.m4: Update.
3337         * gnulib/import/m4/gnulib-common.m4: Update.
3338         * gnulib/import/m4/gnulib-comp.m4: Update.
3339         * gnulib/import/m4/gnulib-tool.m4: Update.
3340         * gnulib/import/m4/include_next.m4: Update.
3341         * gnulib/import/m4/inttypes-pri.m4: Update.
3342         * gnulib/import/m4/inttypes.m4: Update.
3343         * gnulib/import/m4/isnand.m4: Update.
3344         * gnulib/import/m4/isnanl.m4: Update.
3345         * gnulib/import/m4/largefile.m4: Update.
3346         * gnulib/import/m4/localcharset.m4: Update.
3347         * gnulib/import/m4/locale-fr.m4: Update.
3348         * gnulib/import/m4/locale-ja.m4: Update.
3349         * gnulib/import/m4/locale-zh.m4: Update.
3350         * gnulib/import/m4/longlong.m4: Update.
3351         * gnulib/import/m4/lstat.m4: Update.
3352         * gnulib/import/m4/malloc.m4: Update.
3353         * gnulib/import/m4/malloca.m4: Update.
3354         * gnulib/import/m4/math_h.m4: Update.
3355         * gnulib/import/m4/mbrtowc.m4: Update.
3356         * gnulib/import/m4/mbsinit.m4: Update.
3357         * gnulib/import/m4/mbsrtowcs.m4: Update.
3358         * gnulib/import/m4/mbstate_t.m4: Update.
3359         * gnulib/import/m4/memchr.m4: Update.
3360         * gnulib/import/m4/memmem.m4: Update.
3361         * gnulib/import/m4/mmap-anon.m4: Update.
3362         * gnulib/import/m4/multiarch.m4: Update.
3363         * gnulib/import/m4/nocrash.m4: Update.
3364         * gnulib/import/m4/off_t.m4: Update.
3365         * gnulib/import/m4/pathmax.m4: Update.
3366         * gnulib/import/m4/readlink.m4: Update.
3367         * gnulib/import/m4/rename.m4: Update.
3368         * gnulib/import/m4/rmdir.m4: Update.
3369         * gnulib/import/m4/ssize_t.m4: Update.
3370         * gnulib/import/m4/stat.m4: Update.
3371         * gnulib/import/m4/stdbool.m4: Update.
3372         * gnulib/import/m4/stddef_h.m4: Update.
3373         * gnulib/import/m4/stdint.m4: Update.
3374         * gnulib/import/m4/stdio_h.m4: Update.
3375         * gnulib/import/m4/stdlib_h.m4: Update.
3376         * gnulib/import/m4/string_h.m4: Update.
3377         * gnulib/import/m4/strstr.m4: Update.
3378         * gnulib/import/m4/strtok_r.m4: Update.
3379         * gnulib/import/m4/sys_socket_h.m4: Update.
3380         * gnulib/import/m4/sys_stat_h.m4: Update.
3381         * gnulib/import/m4/sys_time_h.m4: Update.
3382         * gnulib/import/m4/sys_types_h.m4: Update.
3383         * gnulib/import/m4/time_h.m4: Update.
3384         * gnulib/import/m4/unistd_h.m4: Update.
3385         * gnulib/import/m4/warn-on-use.m4: Update.
3386         * gnulib/import/m4/wchar_h.m4: Update.
3387         * gnulib/import/m4/wchar_t.m4: Update.
3388         * gnulib/import/m4/wctype_h.m4: Update.
3389         * gnulib/import/m4/wint_t.m4: Update.
3390         * gnulib/import/malloc.c: Update.
3391         * gnulib/import/malloca.c: Update.
3392         * gnulib/import/malloca.h: Update.
3393         * gnulib/import/math.in.h: Update.
3394         * gnulib/import/mbrtowc.c: Update.
3395         * gnulib/import/mbsinit.c: Update.
3396         * gnulib/import/mbsrtowcs-impl.h: Update.
3397         * gnulib/import/mbsrtowcs-state.c: Update.
3398         * gnulib/import/mbsrtowcs.c: Update.
3399         * gnulib/import/memchr.c: Update.
3400         * gnulib/import/memmem.c: Update.
3401         * gnulib/import/pathmax.h: Update.
3402         * gnulib/import/readlink.c: Update.
3403         * gnulib/import/ref-add.sin: Update.
3404         * gnulib/import/ref-del.sin: Update.
3405         * gnulib/import/rename.c: Update.
3406         * gnulib/import/rmdir.c: Update.
3407         * gnulib/import/same-inode.h: Update.
3408         * gnulib/import/stat.c: Update.
3409         * gnulib/import/stdbool.in.h: Update.
3410         * gnulib/import/stddef.in.h: Update.
3411         * gnulib/import/stdint.in.h: Update.
3412         * gnulib/import/stdio.c: Update.
3413         * gnulib/import/stdio.in.h: Update.
3414         * gnulib/import/stdlib.in.h: Update.
3415         * gnulib/import/str-two-way.h: Update.
3416         * gnulib/import/streq.h: Update.
3417         * gnulib/import/string.in.h: Update.
3418         * gnulib/import/stripslash.c: Update.
3419         * gnulib/import/strnlen1.c: Update.
3420         * gnulib/import/strnlen1.h: Update.
3421         * gnulib/import/strstr.c: Update.
3422         * gnulib/import/strtok_r.c: Update.
3423         * gnulib/import/sys_stat.in.h: Update.
3424         * gnulib/import/sys_time.in.h: Update.
3425         * gnulib/import/sys_types.in.h: Update.
3426         * gnulib/import/time.in.h: Update.
3427         * gnulib/import/unistd.in.h: Update.
3428         * gnulib/import/verify.h: Update.
3429         * gnulib/import/wchar.in.h: Update.
3430         * gnulib/import/wctype.in.h: Update.
3431         * gnulib/import/gettimeofday.c: New file.
3432         * gnulib/import/m4/absolute-header.m4: New file.
3433         * gnulib/import/m4/gettimeofday.m4: New file.
3434         * gnulib/import/m4/sys_socket_h.m4: New file.
3435         * gnulib/import/m4/sys_time_h.m4: New file.
3436         * gnulib/import/stdio.c: Delete file.
3437         * gnulib/import/sys_time.in.h: New file.
3438
3439 2015-08-24  Pedro Alves  <palves@redhat.com>
3440
3441         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3442         * common/gdb_sys_time.h: New file.
3443         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3444         * gdb_select.h: Likewise.
3445         * gdb_usleep.c: Likewise.
3446         * maint.c: Likewise.
3447         * mi/mi-main.c: Likewise.
3448         * mi/mi-parse.h: Likewise.
3449         * remote-fileio.c: Likewise.
3450         * remote-m32r-sdi.c: Likewise.
3451         * remote.c: Likewise.
3452         * ser-base.c: Likewise.
3453         * ser-pipe.c: Likewise.
3454         * ser-tcp.c: Likewise.
3455         * ser-unix.c: Likewise.
3456         * symfile.c: Likewise.
3457         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3458         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3459         * utils.c: Likewise.
3460
3461 2015-08-24  Pedro Alves  <palves@redhat.com>
3462
3463         * NEWS: Mention removed support for the various ROM monitors.
3464         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3465         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3466         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3467         gdb_target_obs.
3468         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3469         gdb_target_obs.
3470         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3471         dsrec.o from gdb_target_obs.
3472         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3473         from gdb_target_obs.
3474         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3475         gdb_target_obs.
3476         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3477         dink32-rom.o from gdb_target_obs.
3478         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3479         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3480         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3481         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3482
3483 2015-08-21  Pedro Alves  <palves@redhat.com>
3484
3485         * frame.c (null_frame_id): Explicitly zero-initialize.
3486
3487 2015-08-21  Tom Tromey  <tromey@redhat.com>
3488
3489         * dwarf2read.c (struct dwarf2_section_info): Rename field
3490         'asection' to 'section'.
3491         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3492         (dwarf2_locate_sections, dwarf2_locate_sections)
3493         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3494         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3495         (dwarf2_locate_v2_dwp_sections): Adjust.
3496
3497 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3498
3499         * top.h (gdb_in_secondary_prompt_p): Declare.
3500         * top.c (gdb_secondary_prompt_depth): Define.
3501         (gdb_in_secondary_prompt_p): Define.
3502         (gdb_readline_wrapper_cleanup): Decrement
3503         gdb_secondary_prompt_depth.
3504         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3505         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3506         are in a secondary prompt.
3507
3508 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3509
3510         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3511         emit the newline.
3512
3513 2015-08-21  Gary Benson  <gbenson@redhat.com>
3514
3515         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3516
3517 2015-08-21  Gary Benson  <gbenson@redhat.com>
3518
3519         * target.h (struct target_ops) <to_fileio_open>: New argument
3520         warn_if_slow.  Update comment.  All implementations updated.
3521         (target_fileio_open_warn_if_slow): New declaration.
3522         * target.c (target_fileio_open): Renamed as...
3523         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3524         Pass warn_if_slow to implementation.  Update debug printing.
3525         (target_fileio_open): New function.
3526         (target_fileio_open_warn_if_slow): Likewise.
3527         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3528         target_fileio_open_warn_if_slow.
3529
3530 2015-08-21  Gary Benson  <gbenson@redhat.com>
3531
3532         * nat/linux-namespaces.c (linux_mntns_access_fs):
3533         Do not overwrite old_chain.
3534
3535 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3536
3537         * arch/xtensa.h: New file.
3538         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3539         (ps_get_thread_area): New function.
3540         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3541         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3542         * xtensa-tdep.c (osabi.h): New #include.
3543         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3544         xtensa-specific hooks.
3545         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3546         member and move the structure to arch/xtensa.h.
3547
3548 2015-08-21  Pedro Alves  <palves@redhat.com>
3549
3550         * remote.c (struct readahead_cache): New.
3551         (struct remote_state) <readahead_cache>: New field.
3552         (remote_open_1): Invalidate the cache.
3553         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3554         functions.
3555         (remote_hostio_pwrite): Invalidate the readahead cache.
3556         (remote_hostio_pread): Rename to ...
3557         (remote_hostio_pread_vFile): ... this.
3558         (remote_hostio_pread_from_cache): New function.
3559         (remote_hostio_pread): Reimplement.
3560         (remote_hostio_close): Invalidate the readahead cache.
3561
3562 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3563
3564         PR build/18843
3565         * procfs.c: Include "filestuff.h".
3566
3567 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3568
3569         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3570         curch.
3571         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3572         cur_line or curch, instead call wmove().
3573         (init_win_info) [CMD_WIN]: Likewise.
3574         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3575         instead call getcury().
3576         (tui_redisplay_readline): Don't set cur_line or curch.
3577         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3578         getcury().
3579         (tui_cont_sig): Remove call to wmove.
3580         (tui_getc): Don't read cur_line or curch, instead call getcury()
3581         or getyx().  Don't set curch.
3582         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3583         set cur_line or curch.  Always move cursor to (0,0).
3584
3585 2015-08-20  Pedro Alves  <palves@redhat.com>
3586
3587         * infrun.c (print_target_wait_results): Make extern.
3588         * infrun.h (print_target_wait_results): Declare.
3589         * remote.c (set_stop_requested_callback): Delete.
3590         (process_initial_stop_replies): New function.
3591         (remote_start_remote): Use it.
3592         (stop_reply_queue_length): New function.
3593
3594 2015-08-20  Pedro Alves  <palves@redhat.com>
3595
3596         * dwarf2read.c (process_full_comp_unit): To tell whether
3597         start_subfile managed to deduce a language, test for
3598         language_unknown instead of language_c.
3599
3600 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3601
3602         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3603         matches attributes.
3604
3605 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3606
3607         * dwarf2read.c (dwarf2_string_attr): New function.
3608         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3609         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3610         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3611         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3612         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3613
3614 2015-08-18  Doug Evans  <dje@google.com>
3615             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3616
3617         PR mi/18833
3618         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3619         if MI-like.
3620         * mi/mi-out.c: #include "vec.h".
3621         (ui_filep): New type.
3622         (DEV_VEC_P (ui_filep)): New type.
3623         (struct ui_out_data) <buffer, original_buffer>: Delete.
3624         (struct ui_out_data) <streams>: New member.
3625         (mi_ui_out_impl): Add data_destroy field.
3626         (mi_field_string, mi_field_fmt): Update.
3627         (mi_flush, mi_redirect, field_separator): Update.
3628         (mi_open, mi_close): Update.
3629         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3630         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3631         (mi_out_new): Call mi_out_data_ctor.
3632
3633 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3634
3635         * remote.c (strprefix): New.
3636         (remote_parse_stop_reply): Use strprefix instead of strncmp
3637         to ensure exact match of keyword.
3638
3639 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3640
3641         * gdb_bfd.c (debug_bfd_cache): New variable.
3642         (show_bfd_cache_debug): New function.
3643         (gdb_bfd_open): Add debug logging.
3644         (gdb_bfd_ref): Likewise.
3645         (gdb_bfd_unref): Likewise.
3646         (_initialize_gdb_bfd): Add new set/show command.
3647         * NEWS: Mention new command.
3648
3649 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3650
3651         * gdb_bfd.c (bfd_sharing): New variable.
3652         (show_bfd_sharing): New function.
3653         (gdb_bfd_open): Check bfd_sharing variable.
3654         (_initialize_gdb_bfd): Add new set/show command.
3655         * NEWS: Mention new command.
3656
3657 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3658
3659         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3660         field.
3661         (struct gdb_bfd_cache_search): Likewise.
3662         (eq_bfd): Compare the size, inode, and device id fields.
3663         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3664         (gdb_bfd_ref): Likewise.
3665         (gdb_bfd_unref): Likewise.
3666
3667 2015-08-18  Pedro Alves  <palves@redhat.com>
3668
3669         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3670         target implements to_always_non_stop_p, call it.
3671         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3672         (x86_linux_create_target): Install it as to_always_non_stop_p
3673         method.
3674
3675 2015-08-17  Doug Evans  <dje@google.com>
3676
3677         * ui-out.c (default_ui_out_impl): Add comment.
3678
3679 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
3680
3681         * d-exp.y (type_aggregate_p): New function.
3682         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3683         (classify_inner_name): Likewise.
3684         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3685
3686 2015-08-15  Doug Evans  <xdje42@gmail.com>
3687
3688         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
3689         updated.
3690         (add_psymbol_to_list): Ditto.
3691
3692 2015-08-15  Doug Evans  <xdje42@gmail.com>
3693
3694         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
3695         updated.  Call end_psymtab_common.
3696         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3697         end_psymtab_common.
3698         (build_type_psymtabs_reader): Ditto.
3699         * psympriv.h (sort_pst_symbols): Delete.
3700         (end_psymtab_common): Declare.
3701         * psymtab.c (sort_pst_symbols): Make static.
3702         (end_psymtab_common): New function.
3703         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3704
3705 2015-08-15  Doug Evans  <xdje42@gmail.com>
3706
3707         * defs.h (LANGUAGE_BITS): Define.
3708         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3709         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3710         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3711         (minimal_symbol_type): Add nr_minsym_types.
3712         (MINSYM_TYPE_BITS): Define.
3713         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3714         (domain_enum_tag): Add NR_DOMAINS.
3715         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3716         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3717
3718 2015-08-15  Doug Evans  <xdje42@gmail.com>
3719
3720         * objfiles.h: Whitespace cleanup.
3721         * psympriv.h: Whitespace cleanup.
3722         * psymtab.c: Whitespace/coding convention cleanup.
3723
3724 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
3725
3726         * inferior.c (detach_inferior_command): Don't call
3727         any_thread_of_process when pid is 0.
3728         (kill_inferior_command): Likewise.
3729
3730 2015-08-14  Doug Evans  <xdje42@gmail.com>
3731
3732         PR gdb/11833
3733         * NEWS: Document new /s modifier for the disassemble command.
3734         * cli/cli-cmds.c (disassemble_command): Add support for /s.
3735         (_initialize_cli_cmds): Update online docs of disassemble command.
3736         * disasm.c: #include "source.h".
3737         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3738         All uses updated.
3739         (dis_line_entry): New struct.
3740         (hash_dis_line_entry, eq_dis_line_entry): New functions.
3741         (allocate_dis_line_table): New functions.
3742         (maybe_add_dis_line_entry, line_has_code_p): New functions.
3743         (dump_insns): New arg end_pc.  All callers updated.
3744         (do_mixed_source_and_assembly_deprecated): Renamed from
3745         do_mixed_source_and_assembly.  All callers updated.
3746         (do_mixed_source_and_assembly): New function.
3747         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3748         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3749         DISASSEMBLY_SOURCE.  All uses updated.
3750         (DISASSEMBLY_SOURCE): New macro.
3751         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3752
3753 2015-08-14  Keith Seitz  <keiths@redhat.com>
3754
3755         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3756         `typename' to `type_name' to avoid C++ reserved word.
3757
3758 2015-08-14  Keith Seitz  <keiths@redhat.com>
3759
3760         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3761         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3762         silence ARI errors.
3763
3764 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3765
3766         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3767         xstrprintf instead of malloc and sprintf.
3768         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3769         (lex_one_token): Likewise.
3770
3771 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3772
3773         * solib-svr4.c (read_program_header): Add base_addr argument to
3774         report the runtime address of the segment.
3775         (find_program_interpreter): Update read_program_header call to pass
3776         a NULL pointer for the new argument.
3777         (scan_dyntag): Add ptr_addr argument to report the runtime address
3778         of the tag payload.
3779         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3780         read_program_header to get the base address of the dynamic segment.
3781         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3782         read_program_header.
3783         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3784
3785 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3786
3787         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3788
3789 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3790
3791         * d-exp.y (%union): Add voidval.
3792         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3793         name in the lexing stage.
3794         (PostfixExpression): Move symbol completion handling in grammar here
3795         from PrimaryExpression.
3796         (PrimaryExpression): Move routines to handle resolving identifier
3797         tokens in the grammar here from push_expression_name.
3798         (IdentifierExp): Remove the handling of alternating '.' and identifier
3799         tokens.
3800         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3801         (BasicType): Remove C-style typename rules.
3802         (d_type_from_name, d_module_from_name, push_variable)
3803         (push_fieldnames, push_type_name, push_module_name)
3804         (push_expression_name): Remove.
3805         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
3806         (token_and_value): New type.
3807         (token_fifo, popping, name_obstack): New globals.
3808         (classify_name): New function.
3809         (classify_inner_name): Likewise.
3810         (yylex): Likewise.
3811         (d_parse): Initialize token_fifo, popping and name_obstack.
3812
3813 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3814
3815         * Makefile.in (SFILES): Add d-namespace.c.
3816         (COMMON_OBS): Add d-namespace.o.
3817         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3818         la_lookup_symbol_nonlocal callback function pointer.
3819         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3820         (d_lookup_nested_symbol): New declaration.
3821         * d-namespace.c: New file.
3822
3823 2015-08-13  Pedro Alves  <palves@redhat.com>
3824
3825         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3826         cleanup after the decref cleanup, not before.
3827
3828 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
3829
3830         * ada-lang.c: Include namespace.h
3831         (aux_add_nonlocal_symbols): Fix a function name in comment.
3832         (ada_add_block_renamings): New.
3833         (add_nonlocal_symbols): Add global renamings handling.
3834         (ada_lookup_symbol_list_worker): Move the symbol lookup part
3835         to...
3836         (ada_add_all_symbols): ... this new function.
3837         (ada_add_block_symbols): Try to match the input name against the
3838         "using directives list", perform a recursive symbol lookup on
3839         the matched declarations.
3840         * block.h (struct block): Move the_namespace to top-level as
3841         namespace_info. Remove the language_specific field.
3842         (BLOCK_NAMESPACE): Update access to the namespace_info field.
3843         * buildsym.h (using_directives): Rename into...
3844         (local_using_directives): ... this.
3845         (global_using_directives): New.
3846         (struct context_stack): Rename the using_directives field into
3847         local_using_directives.
3848         * buildsym.c (finish_block_internal): Deal with the proper
3849         using directives repository (local or global).
3850         (prepare_for_building): Reset local_using_directives. Assert
3851         that there is no pending global using directive.
3852         (reset_symtab_globals): Reset global_using_directives and
3853         local_using_directives.
3854         (end_symtab_get_static_block): Don't ignore symtabs that have
3855         only using directives.
3856         (push_context): Update references to local_using_directives.
3857         (buildsym_init): Do not reset using_directives.
3858         * cp-support.c: Include namespace.h.
3859         * cp-support.h (struct using_direct): Move to namespace.h.
3860         (cp_add_using_directives): Move to namespace.h.
3861         * cp-namespace.c: Include namespace.h
3862         (cp_add_using_directive): Move to namespace.c, rename it to
3863         add_using_directive, add a "using_directives" argument and use
3864         it as the pending using directives repository.  All callers
3865         updated.
3866         * dwarf2read.c (using_directives): New.
3867         (read_import_statement): Call using_directives.
3868         (read_func_scope): Update references to local_using_directives.
3869         (read_lexical_block_scope): Likewise.
3870         (read_namespace): Update the heading comment, call
3871         using_directives.
3872         * namespace.h: New file.
3873         * namespace.c: New file.
3874         * Makefile.in (SFILES): Add namespace.c.
3875         (COMMON_OBS): Add namespace.o
3876
3877 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
3878
3879         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3880         compute RETADDR.
3881
3882 2015-08-12  Keith Seitz  <keiths@redhat.com>
3883
3884         * break-catch-throw.c (re_set_exception_catchpoint) Rename
3885         reserved C++ keyword "explicit" to "explicit_loc".
3886         * breakpoint.c (create_overlay_event_breakpoint)
3887         (create_longjmp_master_breakpoint)
3888         (create_std_terminate_master_breakpoint)
3889         (create_exception_master_breakpoint, update_static_tracepoint):
3890         Rename reserved C++ keyword "explicit" to "explicit_loc".
3891         * completer.c (collect_explicit_location_matches)
3892         (explicit_location_completer): Rename reserved C++ keyword
3893         "explicit" to "explicit_loc".
3894         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3895         (canonicalize_linespec, create_sals_line_offset)
3896         (convert_linespec_to_sals, convert_explicit_location_to_sals)
3897         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3898         "explicit" to "explicit_loc".
3899         * location.c (struct event_location) <explicit>: Rename to
3900         "explicit_loc".
3901         (initialize_explicit_location, new_explicit_location)
3902         (explicit_location_to_string_internal, explicit_location_to_linespec):
3903         Rename reserved C++ keyword "explicit" to "explicit_loc".
3904         * location.h (explicit_location_to_string)
3905         (explicit_location_to_linespec, initialize_explicit_location)
3906         (new_explicit_location): Rename reserved C++ keyword "explicit"
3907         to "explicit_loc".
3908         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3909         keyword "explicit" to "explicit_loc".
3910
3911 2015-08-12  Keith Seitz  <keiths@redhat.com>
3912
3913         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3914         and only call decode_line_1 when it is non-NULL.
3915
3916 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
3917
3918         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3919         location address is not meaningful.
3920         (breakpoint_address_is_meaningful): Update comment.
3921
3922 2015-08-11  Keith Seitz  <keiths@redhat.com>
3923
3924         * NEWS: Mention explicit locations.
3925         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3926         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3927         (_initialize_breakpoint): Update documentation for
3928         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3929
3930 2015-08-11  Keith Seitz  <keiths@redhat.com>
3931
3932         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3933         explicit locations, options "--source", "--function",
3934         "--label", and "--line".
3935
3936 2015-08-11  Keith Seitz  <keiths@redhat.com>
3937
3938         * completer.c: Include location.h.
3939         (enum match_type): New enum.
3940         (location_completer): Rename to ...
3941         (linespec_completer): ... this.
3942         (collect_explicit_location_matches, backup_text_ptr)
3943         (explicit_location_completer): New functions.
3944         (location_completer): "New" function; handle linespec
3945         and explicit location completions.
3946         (complete_line_internal): Remove all location completer-specific
3947         handling.
3948         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3949         (find_toplevel_char): Export.
3950         (linespec_parse_line_offset): Export.
3951         Issue error if STRING is not numerical.
3952         (gdb_get_linespec_parser_quote_characters): New function.
3953         * linespec.h (linespec_parse_line_offset): Declare.
3954         (get_gdb_linespec_parser_quote_characters): Declare.
3955         (is_ada_operator): Declare.
3956         (find_toplevel_char): Declare.
3957         (linespec_lexer_lex_keyword): Declare.
3958         * location.c (explicit_to_event_location): New function.
3959         (explicit_location_lex_one): New function.
3960         (string_to_explicit_location): New function.
3961         (string_to_event_location): Handle explicit locations.
3962         * location.h (explicit_to_event_location): Declare.
3963         (string_to_explicit_location): Declare.
3964
3965 2015-08-11  Keith Seitz  <keiths@redhat.com>
3966
3967         * break-catch-throw.c (re_set_exception_catchpoint): Convert
3968         linespec into explicit location.
3969         * breakpoint.c (create_overlay_breakpoint)
3970         (create_longjmp_master_breakpoint)
3971         (create_std_terminate_master_breakpoint)
3972         (create_exception_master_breakpoint): Convert linespec into explicit
3973         location.
3974         (update_static_tracepoint): Convert linespec into explicit location.
3975         * linespec.c (enum offset_relative_sign, struct line_offset): Move
3976         location.h.
3977         (struct linespec) <expression, expr_pc, source_filename>
3978         <function_name, label_name, line_offset>: Replace with ...
3979         <explicit>: ... this.
3980         <is_linespec>: New member.
3981         (PARSER_EXPLICIT): New accessor macro.
3982         (undefined_label_error): New function.
3983         (source_file_not_found_error): New function.
3984         (linespec_parse_basic): The parser result is now an explicit location.
3985         Use PARSER_EXPLICIT to access it.
3986         Use undefined_label_error.
3987         (canonicalize_linespec): Convert canonical linespec into explicit
3988         location.
3989         Move string representation of location to explicit_location_to_linespec
3990         and use it and explicit_location_to_string to save string
3991         representations of the canonical location.
3992         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3993         explicit location.  Update all references.
3994         (convert_explicit_location_to_sals): New function.
3995         (parse_linespec): Use PARSER_EXPLICIT to access the parser
3996         result's explicit location.
3997         (linespec_state_constructor): Initialize is_linespec.
3998         Use PARSER_EXPLICIT.
3999         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4000         result.
4001         (event_location_to_sals): For linespec locations, set is_linespec.
4002         Handle explicit locations.
4003         (decode_objc): 'ls' contains an explicit location now. Update all
4004         references.
4005         (symtabs_from_filename): Use source_file_not_found_error.
4006         * location.c (struct event_location.u) <explicit>: New member.
4007         (initialize_explicit_location): New function.
4008         (initialize_event_location): Initialize explicit locations.
4009         (new_explicit_location, get_explicit_location)
4010         (get_explicit_location_const): New functions.
4011         (explicit_to_string_internal): New function; most of contents moved
4012         from canonicalize_linespec.
4013         (explicit_location_to_string): New function.
4014         (explicit_location_to_linespec): New function.
4015         (copy_event_location, delete_event_location)
4016         (event_location_to_string_const, event_location_empty_p): Handle
4017         explicit locations.
4018         * location.h (enum offset_relative_sign, struct line_offset): Move
4019         here from linespec.h.
4020         (enum event_location_type): Add EXPLICIT_LOCATION.
4021         (struct explicit_location): New structure.
4022         (explicit_location_to_string): Declare.
4023         (explicit_location_to_linespec): Declare.
4024         (new_explicit_location, get_explicit_locationp
4025         (get_explicit_location_const, initialize_explicit_location): Declare.
4026
4027 2015-08-11  Keith Seitz  <keiths@redhat.com>
4028
4029         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4030         linespec for stap probe to probe location.
4031         * breakpoint.c (create_longjmp_master_breakpoint)
4032         (create_exception_master_breakpoint): Likewise.
4033         (break_command_1): Remove local variable `arg_cp'.
4034         Check location type to set appropriate breakpoint ops methods.
4035         (trace_command): Likewise.
4036         * linespec.c (event_location_to_sals): Assert on probe locations.
4037         * location.c (EL_PROBE): Add macro definition.
4038         (new_probe_location, get_probe_location): New functions.
4039         (copy_event_location, delete_event_location, event_location_to_string)
4040         (string_to_event_location, event_location_empty_p): Handle probe
4041         locations.
4042         * location.h (enum event_location_type): Add PROBE_LOCATION.
4043         (new_probe_location, get_probe_location): Declare.
4044         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4045         Convert linespec into probe location.
4046
4047 2015-08-11  Keith Seitz  <keiths@redhat.com>
4048
4049         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4050         Convert linespec to address location.
4051         * linespec.c (canonicalize_linespec): Do not handle address
4052         locations here.
4053         (convert_address_location_to_sals): New function; contents moved
4054         from ...
4055         (convert_linespc_to_sals): ... here.
4056         (parse_linespec): Remove address locations from linespec grammar.
4057         Remove handling of address locations.
4058         (linespec_lex_to_end): Remove handling of address linespecs.
4059         (event_location_to_sals): Handle ADDRESS_LOCATION.
4060         (linespec_expression_to_pc): Export.
4061         * linespec.h (linespec_expression_to_pc): Add declaration.
4062         * location.c (struct event_location.u) <address>: New member.
4063         (new_address_location, get_address_location): New functions.
4064         (copy_event_location, delete_event_location, event_location_to_string)
4065         (string_to_event_location, event_location_empty_p): Handle address
4066         locations.
4067         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4068         (new_address_location, get_address_location): Declare.
4069         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4070         to address location.
4071         * spu-tdep.c (spu_catch_start): Likewise.
4072
4073 2015-08-11  Keith Seitz  <keiths@redhat.com>
4074
4075         * ax-gdb.c: Include location.h.
4076         (agent_command_1) Use linespec location instead of address
4077         string.
4078         * break-catch-throw.c: Include location.h.
4079         (re_set_exception_catchpoint): Use linespec locations instead
4080         of address strings.
4081         * breakpoint.c: Include location.h.
4082         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4083         (create_std_terminate_master_breakpoint)
4084         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4085         Use linespec location instead of address string.
4086         (print_breakpoint_location):  Use locations and
4087         event_location_to_string.
4088         Print extra_string for pending locations for non-MI streams.
4089         (print_one_breakpoint_location): Use locations and
4090         event_location_to_string.
4091         (init_raw_breakpoint_without_location): Initialize b->location.
4092         (create_thread_event_breakpoint): Use linespec location instead of
4093         address string.
4094         (init_breakpoint_sal): Likewise.
4095         Only save extra_string if it is non-NULL and not the empty string.
4096         Use event_location_to_string instead of `addr_string'.
4097         Constify `p' and `endp'.
4098         Use skip_spaces_const/skip_space_const instead of non-const versions.
4099         Copy the location into the breakpoint.
4100         If LOCATION is NULL, save the breakpoint address as a linespec location
4101         instead of an address string.
4102         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4103         event_location. All uses updated.
4104         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4105         (parse_breakpoint_sals): Use locations instead of address strings.
4106         Remove check for empty linespec with conditional.
4107         Refactor.
4108         (decode_static_tracepoint_spec): Make argument const and update
4109         function.
4110         (create_breakpoint): Change `arg' to a struct event_location and
4111         rename.
4112         Remove `copy_arg' and `addr_start'.
4113         If EXTRA_STRING is empty, set it to NULL.
4114         Don't populate `canonical' for pending breakpoints.
4115         Pass `extra_string' to find_condition_and_thread.
4116         Clear `extra_string' if `rest' was NULL.
4117         Do not error with "garbage after location" if setting a dprintf
4118         breakpoint.
4119         Copy the location into the breakpoint instead of an address string.
4120         (break_command_1): Use string_to_event_location and pass this to
4121         create_breakpoint instead of an address string.
4122         Check against `arg_cp' for a probe linespec.
4123         (dprintf_command): Use string_to_event_location and pass this to
4124         create_breakpoint instead of an address string.
4125         Throw an exception if no format string was specified.
4126         (print_recreate_ranged_breakpoint): Use event_location_to_string
4127         instead of address strings.
4128         (break_range_command, until_break_command)
4129         (init_ada_exception_breakpoint): Use locations instead
4130         of address strings.
4131         (say_where): Print out extra_string for pending locations.
4132         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4133         the breakpoint.
4134         (base_breakpoint_create_sals_from_location): Use struct event_location
4135         instead of address string.
4136         Remove `addr_start' and `copy_arg' parameters.
4137         (base_breakpoint_decode_location): Use struct event_location instead of
4138         address string.
4139         (bkpt_re_set): Use locations instead of address strings.
4140         Use event_location_empty_p to check for unset location.
4141         (bkpt_print_recreate): Use event_location_to_string instead of
4142         an address string.
4143         Print out extra_string for pending locations.
4144         (bkpt_create_sals_from_location, bkpt_decode_location)
4145         (bkpt_probe_create_sals_from_location): Use struct event_location
4146         instead of address string.
4147         (bkpt_probe_decode_location): Use struct event_location instead of
4148         address string.
4149         (tracepoint_print_recreate): Use event_location_to_string to
4150         recreate the tracepoint.
4151         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4152         (tracepoint_probe_create_sals_from_location)
4153         (tracepoint_probe_decode_location): Use struct event_location
4154         instead of address string.
4155         (dprintf_print_recreate): Use event_location_to_string to recreate
4156         the dprintf.
4157         (dprintf_re_set): Remove check for valid/missing format string.
4158         (strace_marker_create_sals_from_location)
4159         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4160         (update_static_tracepoint): Use struct event_location instead of
4161         address string.
4162         (location_to_sals): Likewise.
4163         Pass `extra_string' to find_condition_and_thread.
4164         For newly resolved pending breakpoint locations, clear the location's
4165         string representation.
4166         Assert that the breakpoint's condition string is NULL when
4167         condition_not_parsed.
4168         (breakpoint_re_set_default, create_sals_from_location_default)
4169         (decode_location_default, trace_command, ftrace_command)
4170         (strace_command, create_tracepoint_from_upload): Use locations
4171         instead of address strings.
4172         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4173         Use struct event_location instead of address string.
4174         Update all uses.
4175         <decode_location>: Likewise.
4176         (struct breakpoint) <addr_string>: Change to struct event_location
4177         and rename `location'.
4178         <addr_string_range_end>: Change to struct event_location and rename
4179         `location_range_end'.
4180         (create_breakpoint): Use struct event_location instead of address
4181         string.
4182         * cli/cli-cmds.c: Include location.h.
4183         (edit_command, list_command): Use locations instead of address strings.
4184         * elfread.c: Include location.h.
4185         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4186         * guile/scm-breakpoint.c: Include location.h.
4187         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4188         (gdbscm_register_breakpoint): Use locations instead of address
4189         strings.
4190         * linespec.c: Include location.h.
4191         (struct ls_parser) <stream>: Change to const char *.
4192         (PARSER_STREAM): Update.
4193         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4194         keywords must be followed by whitespace.
4195         (canonicalize_linespec): Save a linespec location into `canonical'.
4196         Save a canonical linespec into `canonical'.
4197         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4198         All uses updated.
4199         Update function description.
4200         (linespec_parser_new): Initialize `parser'.
4201         Update initialization of  parsing stream.
4202         (event_location_to_sals): New function.
4203         (decode_line_full): Change `argptr' to a struct event_location and
4204         rename it `location'.
4205         Use locations instead of address strings.
4206         Call event_location_to_sals instead of parse_linespec.
4207         (decode_line_1): Likewise.
4208         (decode_line_with_current_source, decode_line_with_last_displayed)
4209         Use locations instead of address strings.
4210         (decode_objc): Likewise.
4211         Change `argptr' to const char * and rename `arg'.
4212         (destroy_linespec_result): Delete the linespec result's location
4213         instead of freeing the address string.
4214         * linespec.h (struct linespec_result) <addr_string>: Change to
4215         struct event_location and rename to ...
4216         <location>: ... this.
4217         (decode_line_1, decode_line_full): Change `argptr' to struct
4218         event_location.  All callers updated.
4219         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4220         (mi_cmd_break_insert_1): Use locations instead of address strings.
4221         Throw an error if there was "garbage" at the end of the specified
4222         linespec.
4223         * probe.c: Include location.h.
4224         (parse_probes): Change `argptr' to struct event_location.
4225         Use event locations instead of address strings.
4226         * probe.h (parse_probes): Change `argptr' to struct event_location.
4227         * python/py-breakpoint.c: Include location.h.
4228         (bppy_get_location): Constify local variable `str'.
4229         Use event_location_to_string.
4230         (bppy_init): Use locations instead of address strings.
4231         * python/py-finishbreakpoint.c: Include location.h.
4232         (bpfinishpy_init): Remove local variable `addr_str'.
4233         Use locations instead of address strings.
4234         * python/python.c: Include location.h.
4235         (gdbpy_decode_line): Use locations instead of address strings.
4236         * remote.c: Include location.h.
4237         (remote_download_tracepoint): Use locations instead of address
4238         strings.
4239         * spu-tdep.c: Include location.h.
4240         (spu_catch_start): Remove local variable `buf'.
4241         Use locations instead of address strings.
4242         * tracepoint.c: Include location.h.
4243         (scope_info): Use locations instead of address strings.
4244         (encode_source_string): Constify parameter `src'.
4245         * tracepoint.h (encode_source_string): Likewise.
4246
4247 2015-08-11  Keith Seitz  <keiths@redhat.com>
4248
4249         * Makefile.in (SFILES): Add location.c.
4250         (HFILES_NO_SRCDIR): Add location.h.
4251         (COMMON_OBS): Add location.o.
4252         * linespec.c (linespec_lex_to_end): New function.
4253         * linespec.h (linespec_lex_to_end): Declare.
4254         * location.c: New file.
4255         * location.h: New file.
4256
4257 2015-08-11  Keith Seitz  <keiths@redhat.com>
4258
4259         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4260         Renamed to create_sals_from_location.
4261         <decode_linespec>: Renamed to decode_location.
4262         Update all callers.
4263         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4264         (create_sals_from_location_default): ... this.
4265         (addr_string_to_sals): Renamed to ...
4266         (location_to_sals): ... this.
4267         (decode_linespec_default): Renamed to ...
4268         (decode_location_default): ... this.
4269         (base_breakpoint_create_sals_from_address): Renamed to ...
4270         (base_breakpoint_create_sals_from_location): ... this.
4271         (bkpt_create_sals_from_address): Renamed to ...
4272         (bkpt_create_sals_from_location): ... this.
4273         (bkpt_decode_linespec): Renamed to ...
4274         (bkpt_decode_location): ... this.
4275         (bkpt_probe_create_sals_from_address): Renamed to ...
4276         (bkpt_probe_create_sals_from_location): ... this.
4277         (tracepoint_create_sals_from_address): Renamed to ...
4278         (tracepoint_create_sals_from_location): ... this.
4279         (tracepoint_decode_linespec): Renamed to ...
4280         (tracepoint_decode_location): ... this.
4281         (tracepoint_probe_create_sals_from_address): Renamed to ...
4282         (tracepoint_probe_create_sals_from_location): ... this.
4283         (tracepoint_probe_decode_linespec): Renamed to ...
4284         (tracepoint_probe_decode_location): ... this.
4285         (strace_marker_create_sals_from_address): Renamed to ...
4286         (strace_marker_create_sals_from_location): ... this.
4287         (decode_linespec_default): Renamed to ...
4288         (decode_location_default): ... this.
4289
4290 2015-08-10  Doug Evans  <dje@google.com>
4291             Keith Seitz  <keiths@redhat.com>
4292
4293         PR gdb/17960
4294         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4295         make_file_symbol_completion_list and made static.
4296         (make_file_symbol_completion_list): New function.
4297
4298 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4299
4300         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4301         trailing new-line at end of warning message.
4302         (proceed): Add i18n marker to error messages.
4303
4304 2015-08-07  Pedro Alves  <palves@redhat.com>
4305
4306         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4307
4308 2015-08-07  Pedro Alves  <palves@redhat.com>
4309
4310         * s390-linux-tdep.c (is_non_branch_ril)
4311         (s390_displaced_step_copy_insn): New functions.
4312         (s390_displaced_step_fixup): Update comment.
4313         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4314         gdbarch_displaced_step_copy_insn hook.
4315
4316 2015-08-07  Pedro Alves  <palves@redhat.com>
4317
4318         * infrun.c (displaced_step_prepare_throw): Return -1 if
4319         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4320         comment.
4321         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4322         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4323         in file.
4324         (ppc_displaced_step_copy_insn): New function.
4325         (ppc_displaced_step_fixup): Update comment.
4326         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4327         gdbarch_displaced_step_copy_insn hook.
4328         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4329         NULL return.
4330         * gdbarch.h: Regenerate.
4331
4332 2015-08-07  Pedro Alves  <palves@redhat.com>
4333
4334         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4335         field.
4336         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4337         Return false if dispaced stepping failed before.
4338         (resume): Pass the current inferior to
4339         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4340         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4341         displaced_stepping_failed flag, and fall back to an in-line
4342         step-over.
4343
4344 2015-08-07  Pedro Alves  <palves@redhat.com>
4345
4346         * darwin-nat.c (darwin_stop): Rename to ...
4347         (darwin_interrupt): ... this.
4348         (_initialize_darwin_inferior): Adjust.
4349         * gnu-nat.c (gnu_stop): Delete.
4350         (gnu_target): Don't install gnu_stop.
4351         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4352         (inf_ptrace_interrupt): ... this.
4353         (inf_ptrace_target): Adjust.
4354         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4355         target_stop.
4356         * linux-nat (linux_nat_stop): Rename to ...
4357         (linux_nat_interrupt): ... this.
4358         (linux_nat_stop): Reimplement.
4359         (linux_nat_add_target): Install linux_nat_interrupt.
4360         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4361         (nto_handle_sigint_twice): ... this.
4362         (nto_interrupt): Rename to ...
4363         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4364         target_stop.
4365         (procfs_wait): Adjust.
4366         (procfs_stop): Rename to ...
4367         (procfs_interrupt): ... this.
4368         (init_procfs_targets): Adjust.
4369         * procfs.c (procfs_stop): Rename to ...
4370         (procfs_interrupt): ... this.
4371         (procfs_target): Adjust.
4372         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4373         (m32r_interrupt): ... this.
4374         (init_m32r_ops): Adjust.
4375         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4376         (gdbsim_interrupt_inferior): ... this.
4377         (gdbsim_stop): Rename to ...
4378         (gdbsim_interrupt): ... this.
4379         (gdbsim_cntrl_c): Adjust.
4380         (init_gdbsim_ops): Adjust.
4381         * remote.c (sync_remote_interrupt): Adjust comments.
4382         (remote_stop_as): Rename to ...
4383         (remote_interrupt_as): ... this.
4384         (remote_stop): Adjust comment.
4385         (remote_interrupt): New function.
4386         (init_remote_ops): Install remote_interrupt.
4387         * target.c (target_interrupt): New function.
4388         * target.h (struct target_ops) <to_interrupt>: New field.
4389         (target_interrupt): New declaration.
4390         * windows-nat.c (windows_stop): Rename to ...
4391         (windows_interrupt): ... this.
4392         * target-delegates.c: Regenerate.
4393
4394 2015-08-07  Pedro Alves  <palves@redhat.com>
4395
4396         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4397         threads" as alternative to "switching back to stepped thread".
4398
4399 2015-08-07  Pedro Alves  <palves@redhat.com>
4400
4401         * NEWS: Mention "maint set/show target-non-stop".
4402         * breakpoint.c (update_global_location_list): Check
4403         target_is_non_stop_p instead of non_stop.
4404         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4405         * infrun.c (show_can_use_displaced_stepping)
4406         (can_use_displaced_stepping_p, start_step_over_inferior):
4407         Likewise.
4408         (internal_resume_ptid): New function.
4409         (resume): Use it.
4410         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4411         all-stop mode but the target is always in non-stop mode, start all
4412         the other threads that are implicitly resumed too.
4413         (for_each_just_stopped_thread, fetch_inferior_event)
4414         (adjust_pc_after_break, stop_all_threads): Check
4415         target_is_non_stop_p instead of non_stop.
4416         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4417         with the target always in non-stop mode.
4418         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4419         instead of non_stop.
4420         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4421         instead of non_stop.
4422         (keep_going_stepped_thread): Use internal_resume_ptid.
4423         (stop_waiting): If in all-stop mode, and the target is in non-stop
4424         mode, stop all threads.
4425         (keep_going_pass): Likewise, when starting a new in-line step-over
4426         sequence.
4427         * linux-nat.c (get_pending_status, select_event_lwp)
4428         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4429         target_is_non_stop_p instead of non_stop.
4430         (linux_nat_always_non_stop_p): New function.
4431         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4432         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4433         * target-delegates.c: Regenerate.
4434         * target.c (target_is_non_stop_p): New function.
4435         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4436         (maint_set_target_non_stop_command)
4437         (maint_show_target_non_stop_command): New functions.
4438         (_initilize_target): Install "maint set/show target-non-stop"
4439         commands.
4440         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4441         (target_non_stop_enabled): New declaration.
4442         (target_is_non_stop_p): New declaration.
4443
4444 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4445
4446         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4447         has a pending status, return true.
4448         * gdbthread.h: Include target/waitstatus.h.
4449         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4450         stop_pc>: New fields.
4451         (struct thread_info) <resumed>: New field.
4452         (set_resumed): Declare.
4453         * infrun.c: Include "event-loop.h".
4454         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4455         (infrun_async): New function.
4456         (clear_step_over_info): Add debug output.
4457         (displaced_step_in_progress_any_inferior): New function.
4458         (displaced_step_fixup): New returns int.
4459         (start_step_over): Handle in-line step-overs too.  Assert the
4460         thread is marked resumed.
4461         (resume_cleanups): Clear the thread's resumed flag.
4462         (resume): Set the thread's resumed flag.  Return early if the
4463         thread has a pending status.  Allow stepping a breakpoint with no
4464         signal.
4465         (proceed): Adjust to check 'resumed' instead of 'executing'.
4466         (clear_proceed_status_thread): If the thread has a pending status,
4467         and that status is a finished step, discard the pending status.
4468         (clear_proceed_status): Don't clear step_over_info here.
4469         (random_pending_event_thread, do_target_wait): New functions.
4470         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4471         do_target_wait.
4472         (wait_one): New function.
4473         (THREAD_STOPPED_BY): New macro.
4474         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4475         (thread_stopped_by_hw_breakpoint): New functions.
4476         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4477         functions.
4478         (handle_inferior_event): Also call set_resumed(false) on all
4479         threads implicitly stopped by the event.
4480         (restart_threads, resumed_thread_with_pending_status): New
4481         functions.
4482         (finish_step_over): If we were doing an in-line step-over before,
4483         and no longer are after trying to start a new step-over, restart
4484         all threads.  If we have multiple threads with pending events,
4485         save the current event and go through the event loop again.
4486         (handle_signal_stop): Return early if finish_step_over returns
4487         false.
4488         <random signal>: If we get a signal while stepping over a
4489         breakpoint in-line in non-stop mode, restart all threads.  Clear
4490         step_over_info before delivering the signal.
4491         (keep_going_stepped_thread): Use internal_error instead of
4492         gdb_assert.  Mark the thread as resumed.
4493         (keep_going_pass_signal): Assert the thread isn't already resumed.
4494         If some other thread is doing an in-line step-over, defer the
4495         resume.  If we just started a new in-line step-over, stop all
4496         threads.  Don't clear step_over_info.
4497         (infrun_async_inferior_event_handler): New function.
4498         (_initialize_infrun): Create async event handler with
4499         infrun_async_inferior_event_handler as callback.
4500         (infrun_async): New declaration.
4501         * target.c (target_async): New function.
4502         * target.h (target_async): Declare macro and readd as function
4503         declaration.
4504         * target/waitstatus.h (enum target_stop_reason)
4505         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4506         * thread.c (new_thread): Clear the new waitstatus field.
4507         (set_resumed): New function.
4508
4509 2015-08-07  Pedro Alves  <palves@redhat.com>
4510
4511         * infrun.c (keep_going_stepped_thread): New function, factored out
4512         from ...
4513         (switch_back_to_stepped_thread): ... here.
4514
4515 2015-08-07  Pedro Alves  <palves@redhat.com>
4516
4517         * infrun.c (currently_stepping): Extend intro comment.
4518         * target.h (target_resume): Extend intro comment.
4519
4520 2015-08-07  Pedro Alves  <palves@redhat.com>
4521
4522         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4523         of inferior_ptid.  If the stepped thread vanished, return 0
4524         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4525         the current stop_pc in log message.  Clear trap_expected if the
4526         thread advanced.  Don't pass currently_stepping to
4527         do_target_resume.
4528
4529 2015-08-07  Pedro Alves  <palves@redhat.com>
4530
4531         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4532         * infrun.c (struct execution_control_state): Move higher up in the
4533         file.
4534         (reset_ecs): New function.
4535         (start_step_over): Now returns int.  Rewrite to use
4536         keep_going_pass_signal instead of manually starting a displaced step.
4537         (resume): Don't call set_running here.  If displaced stepping
4538         can't start now, clear trap_expected.
4539         (find_thread_needs_step_over): Delete function.
4540         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4541         If the current thread needs a step over, push it in the step-over
4542         chain.  Don't set insert breakpoints nor call resume directly
4543         here.  Instead rewrite to use start_step_over and
4544         keep_going_pass_signal.
4545         (finish_step_over): New function.
4546         (handle_signal_stop): Call finish_step_over instead of
4547         start_step_over.
4548         (switch_back_to_stepped_thread): If the event thread needs another
4549         step-over do that first.  Use start_step_over.
4550         (keep_going_pass_signal): New function, factored out from ...
4551         (keep_going): ... here.
4552         (_initialize_infrun): Comment moved here.
4553         * thread.c (set_running_thread): New function.
4554         (set_running, finish_thread_state): Use set_running_thread.
4555
4556 2015-08-07  Pedro Alves  <palves@redhat.com>
4557
4558         * gdbthread.h (struct thread_info) <step_over_prev,
4559         step_over_next>: New fields.
4560         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4561         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4562         declarations.
4563         * infrun.c (struct displaced_step_request): Delete.
4564         (struct displaced_step_inferior_state) <step_request_queue>:
4565         Delete field.
4566         (displaced_step_prepare): Assert that trap_expected is set.  Use
4567         thread_step_over_chain_enqueue.  Split starting a new displaced
4568         step to ...
4569         (start_step_over): ... this new function.
4570         (resume): Assert the thread isn't waiting for a step over already.
4571         (proceed): Assert the thread isn't waiting for a step over
4572         already.
4573         (infrun_thread_stop_requested): Adjust to remove threads from the
4574         embedded step-over chain.
4575         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4576         displaced_step_fixup.
4577         (handle_signal_stop): Call start_step_over after
4578         displaced_step_fixup.
4579         * infrun.h (step_over_queue_head): New declaration.
4580         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4581         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4582         (thread_step_over_chain_enqueue)
4583         (thread_step_over_chain_remove): New functions.
4584         (delete_thread_1): Remove thread from the step-over chain.
4585
4586 2015-08-07  Pedro Alves  <palves@redhat.com>
4587
4588         * infrun.c (thread_still_needs_step_over): Rename to ...
4589         (thread_still_needs_step_over_bp): ... this.
4590         (enum step_over_what): New.
4591         (thread_still_needs_step_over): Reimplement.
4592
4593 2015-08-07  Pedro Alves  <palves@redhat.com>
4594
4595         * remote.c (remote_wait_as): If not waiting for a stop reply,
4596         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4597         requested, don't block waiting forever.
4598
4599 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4600
4601         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4602         waitstatus pointers instead of an ecs.  Adjust.
4603         (handle_inferior_event): Adjust caller.
4604
4605 2015-08-07  Pedro Alves  <palves@redhat.com>
4606
4607         * infrun.c (handle_inferior_event): If we get
4608         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4609         mode, mark all threads of the exiting process as not-executing.
4610         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4611         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4612         exiting process, if inferior_ptid still points at a process.
4613         * thread.c (struct current_thread_cleanup) <next>: New field.
4614         (current_thread_cleanup_chain): New global.
4615         (restore_current_thread_ptid_changed): New function.
4616         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4617         current_thread_cleanup_chain list.
4618         (make_cleanup_restore_current_thread): Add the cleanup data to the
4619         current_thread_cleanup_chain list.
4620         (_initialize_thread): Install restore_current_thread_ptid_changed
4621         as thread_ptid_changed observer.
4622
4623 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4624
4625         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4626         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4627         smaller than expected.
4628
4629 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4630
4631         * stack.c (get_frame_language): Moved ...
4632         * frame.c (get_frame_language): ... to here.
4633         * language.h (get_frame_language): Declaration moved to frame.h.
4634         * frame.h: Add language.h include, for language enum.
4635         (get_frame_language): Declaration moved from language.h.
4636         * language.c: Add frame.h include.
4637         * top.c: Add frame.h include.
4638         * symtab.h (struct obj_section): Declare.
4639         (struct cmd_list_element): Declare.
4640
4641 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4642
4643         * language.c (show_language_command): Find selected frame before
4644         asking for the language of that frame.
4645         (set_language_command): Likewise.
4646         * language.h (get_frame_language): Add frame parameter.
4647         * stack.c (get_frame_language): Add frame parameter, assert
4648         parameter is not NULL, update comment and reindent.
4649         * top.c (check_frame_language_change): Pass the selected frame
4650         into get_frame_language.
4651
4652 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4653
4654         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4655         (pt_btrace_insn_flags): New.
4656         (ftrace_add_pt): Call pt_btrace_insn_flags.
4657         * btrace.h (btrace_insn_flag): New.
4658         (btrace_insn) <flags>: New.
4659         * record-btrace.c (btrace_insn_history): Print insn prefix.
4660         * NEWS: Announce it.
4661
4662 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4663
4664         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4665         * configure: Regenerate.
4666
4667 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4668
4669         * Makefile.in (LIBICONV): Define.
4670         (CLIBS): Add LIBICONV.
4671         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4672         * configure: Regenerate.
4673
4674 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4675             Pedro Alves  <palves@redhat.com>
4676
4677         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4678         (arm_set_abi): Likewise.
4679         * ax-general.c (ax_print): Likewise.
4680         * c-exp.y (exp : string_exp): Likewise.
4681         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4682         (do_compile_dwarf_expr_to_c): Likewise.
4683         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4684         Likewise.
4685         * dwarf2expr.c (execute_stack_op): Likewise.
4686         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4687         (disassemble_dwarf_expression): Likewise.
4688         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4689         (read_array_order): Likewise.
4690         (abbrev_table_read_table): Likewise.
4691         (read_attribute_value): Likewise.
4692         (skip_unknown_opcode): Likewise.
4693         (dwarf_decode_macro_bytes): Likewise.
4694         (dwarf_decode_macros): Likewise.
4695         * eval.c (value_f90_subarray): Likewise.
4696         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4697         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4698         * infrun.c (handle_command): Likewise.
4699         * memory-map.c (memory_map_start_memory): Likewise.
4700         * osabi.c (set_osabi): Likewise.
4701         * parse.c (operator_length_standard): Likewise.
4702         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4703         single return point.
4704         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4705         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4706         (gdbpy_lookup_global_symbol): Likewise.
4707         * record-full.c (record_full_restore): Likewise.
4708         * regcache.c (regcache_register_status): Likewise.
4709         (regcache_raw_read): Likewise.
4710         (regcache_cooked_read): Likewise.
4711         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4712         * symtab.c (initialize_ordinary_address_classes): Likewise.
4713         * target-debug.h (target_debug_print_signals): Likewise.
4714         * utils.c (do_restore_current_language): Likewise.
4715
4716 2015-08-06  Clem Dickey  <clemd@acm.org>
4717
4718         PR python/17136
4719         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4720
4721 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4722
4723         * complaints.c (enum complaint_series): Add newlines and remove
4724         out of date comment.
4725         (struct complaints) <series>: Change type to enum
4726         complaint_series and remove out of date comment.
4727         (symfile_complaint_hook): Use equivalent enum value
4728         ISOLATED_MESSAGE instead of 0.
4729
4730 2015-08-06  Pedro Alves  <palves@redhat.com>
4731
4732         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4733         returned > 0.
4734
4735 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
4736
4737         * common/agent.c (symbol_list) <required>: Remove.
4738
4739 2015-08-06  Pedro Alves  <palves@redhat.com>
4740
4741         * target/waitstatus.h (enum target_stop_reason)
4742         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4743
4744 2015-08-05  Pedro Alves  <palves@redhat.com>
4745             Joel Brobecker  <brobecker@adacore.com>
4746
4747         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4748         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4749         case where BS->STOP is not set.
4750
4751 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
4752
4753         * nat/gdb_thread_db.h: Add copyright header.
4754         Protect against multiple inclusion.
4755
4756 2015-08-05  Yao Qi  <yao.qi@linaro.org>
4757
4758         * aarch64-linux-nat.c (get_thread_id): Remove.
4759         (debug_reg_change_callback): Call ptid_get_lwp instead of
4760         get_thread_id.
4761         (fetch_gregs_from_thread): Likewise.
4762         (store_gregs_to_thread): Likewise.
4763         (fetch_fpregs_from_thread): Likewise.
4764         (store_fpregs_to_thread): Likewise.
4765         (aarch64_linux_get_debug_reg_capacity): Likewise.
4766         * arm-linux-nat.c (get_thread_id): Remove.
4767         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4768         * xtensa-linux-nat.c (get_thread_id): Remove.
4769         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4770         * arm-linux-nat.c (get_thread_id): Remove.
4771         (GET_THREAD_ID): Remove.
4772         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4773         (store_fpregs, fetch_regs, store_regs): Likewise.
4774         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4775         (fetch_vfp_regs, store_vfp_regs): Likewise.
4776         (arm_linux_read_description): Likewise.
4777         (arm_linux_get_hwbp_cap): Likewise.
4778         * xtensa-linux-nat.c (get_thread_id): Remove.
4779         (GET_THREAD_ID): Remove.
4780         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4781         GET_THREAD_ID.
4782
4783 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
4784
4785         * python/py-linetable.c: Fix case of Linetable to LineTable
4786         in docstrings and code comments.
4787         * python/py-symtab.c: Same.
4788
4789 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4790
4791         * infcmd.c (signal_command): Call do_cleanups for args_chain.
4792
4793 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4794
4795         PR gdb/18767
4796         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4797         use.
4798
4799 2015-08-04  Pedro Alves  <palves@redhat.com>
4800
4801         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4802         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4803         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4804         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4805         (td_thr_validate_ftype, td_thr_get_info_ftype)
4806         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4807         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4808         New typedefs.
4809         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4810         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4811         local macros and use them instead of verbose_dlsym and dlsym
4812         calls.
4813
4814 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
4815
4816         * nios2-tdep.h: Include opcode/nios2.h here.
4817         (NIOS2_CDX_OPCODE_SIZE): New.
4818         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4819         * nios2-tdep.c: Don't include opcode/nios2.h here.
4820         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4821         4-byte read fails.
4822         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4823         (nios2_match_addi, nios2_match_orhi): Likewise.
4824         (nios2_match_stw, nios2_match_ldw): Likewise.
4825         (nios2_match_rdctl): Likewise.
4826         (nios2_match_stwm, nios2_match_ldwm): New.
4827         (nios2_match_branch): Add cases for R2 encodings.
4828         (nios2_match_jmpi, nios2_match_calli): Likewise.
4829         (nios2_match_jmpr, nios2_match_callr): Likewise.
4830         (nios2_match_break, nios2_match_trap): Likewise.
4831         (nios2_in_epilogue_p): Add R2 support.
4832         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
4833         prologues.
4834         (nios2_breakpoint_from_pc): Handle R2 instructions.
4835         (nios2_get_next_pc): Likewise.  Adjust call to
4836         tdep->syscall_next_pc.
4837         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4838         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
4839         instruction field macros instead of literal hex values.
4840         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4841         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4842         Use size field from OP instead of assuming all instructions
4843         are the same size.
4844         (nios2_linux_init_abi): Register appropriate unwinder for mach.
4845
4846 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
4847
4848         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4849         variable warning with some compilers.
4850
4851 2015-08-03  Yao Qi  <yao.qi@linaro.org>
4852
4853         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4854         in comment.  Replace "rw" with "type".
4855         (arm_linux_remove_watchpoint): Change type of "rw" to
4856         "enum target_hw_bp_type".
4857
4858 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
4859
4860         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4861         lookup_symbol.
4862         * ft32-tdep.c (ft32_skip_prologue): Likewise.
4863         * moxie-tdep.c (moxie_skip_prologue): Likewise.
4864         * mt-tdep.c (mt_skip_prologue): Likewise.
4865         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4866
4867 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4868
4869         * ada-exp.y (write_object_renaming): Replace struct
4870         ada_symbol_info with struct block_symbol.  Update field
4871         references accordingly.
4872         (block_lookup, select_possible_type_sym): Likewise.
4873         (find_primitive_type): Likewise.  Also update call to
4874         ada_lookup_symbol to extract the symbol itself.
4875         (write_var_or_type, write_name_assoc): Likewise.
4876         * ada-lang.h (struct ada_symbol_info): Remove.
4877         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4878         struct block_symbol.
4879         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4880         (ada_lookup_symbol): Return struct block_symbol instead of a
4881         mere symbol.
4882         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4883         with struct block_symbol.
4884         (resolve_subexp, ada_resolve_function, sort_choices,
4885         user_select_syms, is_nonfunction, add_defn_to_vec,
4886         num_defns_collected, defns_collected,
4887         symbols_are_identical_enums, remove_extra_symbols,
4888         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4889         ada_lookup_symbol_list, ada_iterate_over_symbols,
4890         ada_lookup_encoded_symbol, get_var_value): Likewise.
4891         (ada_lookup_symbol): Return a block_symbol instead of a mere
4892         symbol.  Replace struct ada_symbol_info with struct
4893         block_symbol.
4894         (ada_lookup_symbol_nonlocal): Likewise.
4895         (standard_lookup): Make block passing explicit through
4896         lookup_symbol_in_language.
4897         * ada-tasks.c (get_tcb_types_info): Update the calls to
4898         lookup_symbol_in_language to extract the mere symbol out of the
4899         returned value.
4900         (ada_tasks_inferior_data_sniffer): Likewise.
4901         * ax-gdb.c (gen_static_field): Likewise for the call to
4902         lookup_symbol.
4903         (gen_maybe_namespace_elt): Deal with struct block_symbol from
4904         lookup functions.
4905         (gen_expr): Likewise.
4906         * c-exp.y: Likewise.  Remove uses of block_found.
4907         (lex_one_token, classify_inner_name, c_print_token): Likewise.
4908         (classify_name): Likewise.  Rename the "sym" local variable to
4909         "bsym".
4910         * c-valprint.c (print_unpacked_pointer): Likewise.
4911         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4912         "sym" parameter from struct symbol * to struct block_symbol.
4913         Use it to remove uses of block_found.  Deal with struct
4914         block_symbol from lookup functions.
4915         (gcc_convert_symbol): Likewise.  Update the call to
4916         convert_symbol_sym.
4917         * compile/compile-object-load.c (compile_object_load): Deal with
4918         struct block_symbol from lookup functions.
4919         * cp-namespace.c (cp_lookup_nested_symbol_1,
4920         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4921         cp_search_static_and_baseclasses,
4922         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4923         cp_lookup_symbol_imports_or_template,
4924         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4925         lookup_namespace_scope, cp_lookup_nonlocal,
4926         find_symbol_in_baseclass): Return struct block_symbol instead of
4927         mere symbols and deal with struct block_symbol from lookup
4928         functions.
4929         * cp-support.c (inspect_type, replace_typedefs,
4930         cp_lookup_rtti_type): Deal with struct block_symbol from
4931         lookup functions.
4932         * cp-support.h (cp_lookup_symbol_nonlocal,
4933         cp_lookup_symbol_from_namespace,
4934         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4935         Return struct block_symbol instead of mere symbols.
4936         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4937         push_module_name):
4938         Deal with struct block_symbol from lookup functions.  Remove
4939         uses of block_found.
4940         * eval.c (evaluate_subexp_standard): Update call to
4941         cp_lookup_symbol_namespace.
4942         * f-exp.y: Deal with struct block_symbol from lookup functions.
4943         Remove uses of block_found.
4944         (yylex): Likewise.
4945         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4946         lookup_enum, lookup_template_type, check_typedef): Deal with
4947         struct block_symbol from lookup functions.
4948         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4949         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4950         (gdbscm_lookup_global_symbol): Likewise.
4951         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4952         * go-exp.y: Likewise.  Remove uses of block_found.
4953         (package_name_p, classify_packaged_name, classify_name):
4954         Likewise.
4955         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4956         * jv-exp.y (push_variable): Likewise.
4957         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4958         * language.c (language_bool_type): Likewise.
4959         * language.h (struct language_defn): Update
4960         la_lookup_symbol_nonlocal to return a struct block_symbol rather
4961         than a mere symbol.
4962         * linespec.c (find_label_symbols): Deal with struct block_symbol
4963         from lookup functions.
4964         * m2-exp.y: Likewise.  Remove uses of block_found.
4965         (yylex): Likewise.
4966         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4967         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4968         * p-exp.y: Likewise.  Remove uses of block_found.
4969         (yylex): Likewise.
4970         * p-valprint.c (pascal_val_print): Likewise.
4971         * parse.c (write_dollar_variable): Likewise.  Remove uses of
4972         block_found.
4973         * parser-defs.h (struct symtoken): Turn the SYM field into a
4974         struct block_symbol.
4975         * printcmd.c (address_info): Deal with struct block_symbol from
4976         lookup functions.
4977         * python/py-frame.c (frapy_read_var): Likewise.
4978         * python/py-symbol.c (gdbpy_lookup_symbol,
4979         gdbpy_lookup_global_symbol): Likewise.
4980         * skip.c (skip_function_command): Likewise.
4981         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4982         block_symbol instead of a mere symbol.
4983         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4984         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4985         * solib.c (solib_global_lookup): Likewise.
4986         * solist.h (solib_global_lookup): Likewise.
4987         (struct target_so_ops): Update lookup_lib_global_symbol to
4988         return a struct block_symbol rather than a mere symbol.
4989         * source.c (select_source_symtab): Deal with struct block_symbol
4990         from lookup functions.
4991         * stack.c (print_frame_args, iterate_over_block_arg_vars):
4992         Likewise.
4993         * symfile.c (set_initial_language): Likewise.
4994         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4995         block_symbol.
4996         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4997         (struct symbol_cache_slot): Turn the FOUND field into a struct
4998         block_symbol.
4999         (block_found): Remove.
5000         (eq_symbol_entry): Update to deal with struct block_symbol in
5001         cache slots.
5002         (symbol_cache_lookup): Return a struct block_symbol rather than
5003         a mere symbol.
5004         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5005         appropriately the cache slots.  Update callers.
5006         (symbol_cache_dump): Update cache slots handling to the type
5007         change.
5008         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5009         lookup_symbol_aux, lookup_local_symbol,
5010         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5011         lookup_symbol_in_objfile_symtabs,
5012         lookup_symbol_in_objfile_from_linkage_name,
5013         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5014         lookup_symbol_in_static_block, lookup_static_symbol,
5015         lookup_global_symbol):
5016         Return a struct block_symbol rather than a mere symbol.  Deal
5017         with struct block_symbol from other lookup functions.  Remove
5018         uses of block_found.
5019         (lookup_symbol_in_block): Remove uses of block_found.
5020         (struct global_sym_lookup_data): Turn the RESULT field into a
5021         struct block_symbol.
5022         (lookup_symbol_global_iterator_cb): Update references to the
5023         RESULT field.
5024         (search_symbols): Deal with struct block_symbol from lookup
5025         functions.
5026         * symtab.h (struct block_symbol): New structure.
5027         (block_found): Remove.
5028         (lookup_symbol_in_language, lookup_symbol,
5029         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5030         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5031         lookup_global_symbol_from_objfile): Return a struct block_symbol
5032         rather than just a mere symbol.  Update comments to remove
5033         mentions of block_found.
5034         * valops.c (find_function_in_inferior,
5035         value_struct_elt_for_reference, value_maybe_namespace_elt,
5036         value_of_this):  Deal with struct block_symbol from lookup
5037         functions.
5038         * value.c (value_static_field, value_fn_field): Likewise.
5039
5040 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5041
5042         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5043         instead of integer.
5044
5045 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5046             Pedro Alves  <palves@redhat.com>
5047
5048         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5049         type or value instead of integer.
5050         (aarch64_linux_insert_watchpoint): Likewise.
5051         (aarch64_linux_remove_watchpoint): Likewise.
5052         * ada-lang.c (ada_op_print_tab): Likewise.
5053         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5054         (amd64_linux_syscall_record_common): Likewise.
5055         * arch-utils.c (target_byte_order_user): Likewise.
5056         (default_byte_order): Likewise.
5057         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5058         (arm_linux_get_hwbp_type): Likewise.
5059         (arm_linux_hw_watchpoint_initialize): Likewise.
5060         (arm_linux_insert_watchpoint): Likewise.
5061         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5062         (arm_linux_syscall_record): Likewise.
5063         * breakpoint.c (update_watchpoint): Likewise.
5064         (breakpoint_here_p): Likewise.
5065         (bpstat_print): Likewise.
5066         (enable_breakpoint_disp): Likewise.
5067         * c-lang.c (c_op_print_tab): Likewise.
5068         * cli/cli-decode.c (add_info_alias): Likewise.
5069         * d-lang.c (d_op_print_tab): Likewise.
5070         * eval.c (evaluate_subexp_standard): Likewise.
5071         * f-exp.y (dot_ops): Likewise.
5072         (f77_keywords): Likewise.
5073         * f-lang.c (f_op_print_tab): Likewise.
5074         * go-lang.c (go_op_print_tab): Likewise.
5075         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5076         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5077         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5078         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5079         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5080         (struct scm_from_stringn_data): Likewise.
5081         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5082         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5083         (ia64_linux_remove_watchpoint): Likewise.
5084         (ia64_linux_can_use_hw_breakpoint): Likewise.
5085         * infrun.c (print_stop_event): Likewise.
5086         * jv-lang.c (java_op_print_tab): Likewise.
5087         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5088         * linux-nat.h (struct lwp_info): Likewise.
5089         * linux-thread-db.c (enable_thread_event): Likewise.
5090         * m2-lang.c (m2_op_print_tab): Likewise.
5091         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5092         (mi_cmd_stack_list_variables): Likewise.
5093         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5094         * mi/mi-out.c (mi_table_begin): Likewise.
5095         (mi_table_header): Likewise.
5096         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5097         (mips_linux_insert_watchpoint): Likewise.
5098         (mips_linux_remove_watchpoint): Likewise.
5099         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5100         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5101         (mips_linux_watch_type_to_irw): Likewise.
5102         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5103         (procfs_insert_hw_watchpoint): Likewise.
5104         (procfs_remove_hw_watchpoint): Likewise.
5105         (procfs_hw_watchpoint): Likewise.
5106         (procfs_can_use_hw_breakpoint): Likewise.
5107         (procfs_remove_hw_watchpoint): Likewise.
5108         (procfs_insert_hw_watchpoint): Likewise.
5109         * p-lang.c (pascal_op_print_tab): Likewise.
5110         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5111         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5112         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5113         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5114         (procfs_insert_watchpoint): Likewise.
5115         (procfs_remove_watchpoint): Likewise.
5116         * psymtab.c (recursively_search_psymtabs): Likewise.
5117         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5118         (m32r_insert_watchpoint): Likewise.
5119         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5120         (mips_insert_watchpoint): Likewise.
5121         (mips_remove_watchpoint): Likewise.
5122         * remote.c (watchpoint_to_Z_packet): Likewise.
5123         (remote_insert_watchpoint): Likewise.
5124         (remote_remove_watchpoint): Likewise.
5125         (remote_check_watch_resources): Likewise.
5126         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5127         (s390_remove_watchpoint): Likewise.
5128         (s390_can_use_hw_breakpoint): Likewise.
5129         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5130         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5131         * target.h (struct target_ops): Likewise.
5132         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5133         * ui-out.c (struct ui_out_hdr): Likewise.
5134         (append_header_to_list): Likewise.
5135         (get_next_header): Likewise.
5136         (verify_field): Likewise.
5137         (ui_out_begin): Likewise.
5138         (ui_out_field_int): Likewise.
5139         (ui_out_field_fmt_int): Likewise.
5140         (ui_out_field_skip): Likewise.
5141         (ui_out_field_string): Likewise.
5142         (ui_out_field_fmt): Likewise.
5143         * varobj.c (new_variable): Likewise.
5144         * x86-nat.c (x86_insert_watchpoint): Likewise.
5145         (x86_remove_watchpoint): Likewise.
5146         (x86_can_use_hw_breakpoint): Likewise.
5147         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5148         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5149         previously anonymous enumeration type..
5150         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5151         value.
5152         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5153         (target_debug_print_enum_bptype): New.
5154         * target-delegates.c: Regenerate.
5155
5156 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5157
5158         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5159         already says and disallow non-stack memory writes in the prologue.
5160
5161 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5162
5163         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5164         reflect how current GCC emits stack overflow checks.  Match
5165         both trap and break instructions for backward compatbility.
5166         Disallow other trap and break instructions in the prologue.
5167
5168 2015-07-30  Pedro Alves  <palves@redhat.com>
5169
5170         PR threads/18600
5171         * linux-nat.c (wait_lwp): Report to the core when thread group
5172         leader exits.
5173
5174 2015-07-30  Pedro Alves  <palves@redhat.com>
5175             Simon Marchi  <simon.marchi@ericsson.com>
5176
5177         PR threads/18600
5178         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5179         mark the new thread as resumed.  Remove STOPPING parameter.
5180         (wait_lwp): Adjust call to linux_handle_extended_wait.
5181         (linux_nat_filter_event): Adjust call to
5182         linux_handle_extended_wait.
5183         (resume_stopped_resumed_lwps): Add debug output.
5184
5185 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5186
5187         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5188         isize argument.
5189         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5190         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5191         gdbarch_fast_tracepoint_valid_at.
5192         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5193         * gdbarch.h: Regenerate.
5194         * gdbarch.c: Regenerate.
5195         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5196         argument.  Do not set it.
5197         * remote.c (remote_download_tracepoint): Adjust call to
5198         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5199         the instruction length.
5200
5201 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5202
5203         * arm-tdep.h (enum gdb_regnum): Move it to ...
5204         * arch/arm.h: ... here.  New file.
5205         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5206
5207 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5208
5209         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5210         Change its type to int *.
5211         (decode_br): Rename link argument to is_blr.  Change its type to
5212         int *.
5213         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5214         int *.
5215         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5216         int *.  Set is_tbnz to either 1 or 0.
5217         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5218         new variables is_cbnz and is_tbnz.  Adjust call to
5219         aarch64_decode_cb and aarch64_decode_tb.
5220
5221 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5222
5223         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5224         parameter.
5225         (mips_linux_new_thread): Likewise.
5226         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5227
5228 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5229
5230         * top.c: Include "tui/tui.h".
5231         (undo_terminal_modifications_before_exit): New static function.
5232         (quit_force): Use it.
5233
5234 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5235
5236         * target.c (terminal_state): Initialize to terminal_is_ours.
5237
5238 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5239
5240         PR record/18691
5241         * dcache.c (dcache_read_memory_partial): Call
5242         raw_memory_xfer_partial.
5243         * target.c (raw_memory_xfer_partial): Make it non-static.
5244         * target.h (raw_memory_xfer_partial): Declare.
5245
5246 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5247
5248         * c-valprint.c (c_val_print_array): Consider addressable memory
5249         unit size.
5250         (c_val_print_ptr): Likewise.
5251         (c_val_print_int): Likewise.
5252         * findvar.c (read_frame_register_value): Likewise.
5253         * valarith.c (find_size_for_pointer_math): Likewise.
5254         (value_ptrdiff): Likewise.
5255         (value_subscripted_rvalue): Likewise.
5256         * valops.c (read_value_memory): Likewise (and rename variables).
5257         (value_assign): Likewise.
5258         (value_repeat): Likewise.
5259         (value_array): Likewise.
5260         (value_slice): Likewise.
5261         * valprint.c (generic_val_print_ptr): Likewise.
5262         (generic_val_print_enum): Likewise.
5263         (generic_val_print_bool): Likewise.
5264         (generic_val_print_int): Likewise.
5265         (generic_val_print_char): Likewise.
5266         (generic_val_print_float): Likewise.
5267         (generic_val_print_decfloat): Likewise.
5268         (generic_val_print_complex): Likewise.
5269         (val_print_scalar_formatted): Likewise.
5270         (val_print_array_elements): Likewise.
5271         * value.c (set_value_parent): Likewise.
5272         (value_contents_copy_raw): Likewise.
5273         (set_internalvar_component): Likewise.
5274         (value_primitive_field): Likewise.
5275         (value_fetch_lazy): Likewise.
5276         * value.h (read_value_memory): Update comment.
5277
5278 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5279
5280         * value.c (get_value_arch): New function.
5281         * value.h (get_value_arch): New declaration.
5282
5283 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5284
5285         * value.c (struct value): Update comments.
5286
5287 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5288
5289         * gdbtypes.c (type_length_units): New function.
5290         * gdbtypes.h (type_length_units): New declaration.
5291         (struct type) <length>: Update comment.
5292
5293 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5294
5295         * valprint.c (generic_val_print): Factor out complex
5296         printing code to ...
5297         (generic_val_print_complex): ... this new function.
5298
5299 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5300
5301         * valprint.c (generic_val_print): Factor out decfloat
5302         printing code to ...
5303         (generic_val_print_decfloat): ... this new function.
5304
5305 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5306
5307         * valprint.c (generic_val_print): Factor out float
5308         printing code to ...
5309         (generic_val_print_float): ... this new function.
5310
5311 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5312
5313         * valprint.c (generic_val_print): Factor out char
5314         printing code to ...
5315         (generic_val_print_char): ... this new function.
5316
5317 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5318
5319         * valprint.c (generic_val_print): Factor out integer
5320         printing code to ...
5321         (generic_val_print_int): ... this new function.
5322
5323 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5324
5325         * valprint.c (generic_val_print): Factor out bool
5326         printing code to ...
5327         (generic_val_print_bool): ... this new function.
5328
5329 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5330
5331         * valprint.c (generic_val_print): Factor out function/method
5332         printing code to ...
5333         (generic_val_print_func): ... this new function.
5334
5335 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5336
5337         * valprint.c (generic_val_print): Factor out flags
5338         printing code to ...
5339         (generic_val_print_flags): ... this new function.
5340
5341 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5342
5343         * valprint.c (generic_val_print): Factor out enum
5344         printing code to ...
5345         (generic_val_print_enum): ... this new function.
5346
5347 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5348
5349         * valprint.c (generic_val_print): Factor out reference
5350         printing code to ...
5351         (generic_val_print_ref): ... this new function.
5352
5353 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5354
5355         * valprint.c (generic_val_print): Factor out memberptr
5356         printing code to ...
5357         (generic_val_print_memberptr): ... this new function.
5358
5359 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5360
5361         * valprint.c (generic_val_print): Factor out pointer
5362         printing code to ...
5363         (generic_val_print_ptr): ... this new function.
5364
5365 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5366
5367         * valprint.c (generic_val_print): Factor out array
5368         printing code to ...
5369         (generic_val_print_array): ... this new function.
5370
5371 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5372
5373         * valprint.c (generic_val_print): Factor out
5374         print_unpacked_pointer code to ...
5375         (print_unpacked_pointer): ... this new function.
5376
5377 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5378
5379         * event-top.c (handle_sigterm): Don't inspect
5380         target_can_async_p.  Always set the quit flag and always mark
5381         the async signal handler.
5382
5383 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5384
5385         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5386
5387 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5388
5389         * remote.c (read_ptid): Return null_ptid when no thread id
5390         is found.
5391         (remote_current_thread): Add log warning for malformed
5392         qC reply.
5393         (remote_start_remote): Add log warning when current thread
5394         not found.
5395
5396 2015-07-24  Pedro Alves  <palves@redhat.com>
5397
5398         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5399         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5400         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5401
5402 2015-07-24  Pedro Alves  <palves@redhat.com>
5403
5404         PR gdb/18717
5405         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5406         is resumed, and extend the debug log.
5407
5408 2015-07-24  Pedro Alves  <palves@redhat.com>
5409
5410         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5411
5412 2015-07-24  Pedro Alves  <palves@redhat.com>
5413
5414         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5415         sys/ptrace.h.
5416         * alpha-linux-nat.c: Likewise.
5417         * amd64-linux-nat.c: Likewise.
5418         * arm-linux-nat.c: Likewise.
5419         * hppa-linux-nat.c: Likewise.
5420         * i386-linux-nat.c: Likewise.
5421         * ia64-linux-nat.c: Likewise.
5422         * linux-fork.c: Likewise.
5423         * linux-nat.c: Likewise.
5424         * m32r-linux-nat.c: Likewise.
5425         * m68klinux-nat.c: Likewise.
5426         * mips-linux-nat.c: Likewise.
5427         * nat/linux-btrace.c: Likewise.
5428         * nat/linux-ptrace.c: Likewise.
5429         * nat/linux-ptrace.h
5430         * nat/mips-linux-watch.c: Likewise.
5431         * nat/x86-linux-dregs.c: Likewise.
5432         * ppc-linux-nat.c: Likewise.
5433         * s390-linux-nat.c: Likewise.
5434         * spu-linux-nat.c: Likewise.
5435         * tilegx-linux-nat.c: Likewise.
5436         * x86-linux-nat.c: Likewise.
5437         * xtensa-linux-nat.c: Likewise.
5438
5439 2015-07-24  Pedro Alves  <palves@redhat.com>
5440
5441         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5442         __ptrace_request as first parameter type instead of int.
5443         (PTRACE_TYPE_ARG1): Define.
5444         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5445         that casts first argument to PTRACE_TYPE_ARG1.
5446         * config.in: Regenerate.
5447         * configure: Regenerate.
5448
5449 2015-07-24  Pedro Alves  <palves@redhat.com>
5450
5451         * gdb_ptrace.h: Move ...
5452         * nat/gdb_ptrace.h: ... here.
5453         * inf-ptrace.c: Adjust.
5454
5455 2015-07-24  Pedro Alves  <palves@redhat.com>
5456
5457         * acinclude.m4: Include ptrace.m4.
5458         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5459         * ptrace.m4: ... to this new file.
5460
5461 2015-07-23  Doug Evans  <dje@google.com>
5462
5463         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5464         (load_cu): Handle dummy CUs.
5465         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5466         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5467
5468 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5469
5470         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5471         documentation to say that it returns a list rather than
5472         a FrozenSet.
5473         (linetable_object_methods): Update the docstring of the
5474         "source_line" entry.
5475
5476 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5477
5478         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5479         type to the recursive call instead of the original (maybe
5480         TYPE_CODE_TYPEDEF) type.
5481
5482 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5483
5484         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5485         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5486         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5487
5488 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5489
5490         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5491         Move it to nat/aarch64-linux-hw-point.c.
5492         (aarch64_linux_child_post_startup_inferior): Update.
5493         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5494         New function.
5495         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5496         Declare it.
5497
5498 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5499
5500         * common/btrace-common.c (btrace_data_append): Change case label.
5501
5502 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5503
5504         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5505         Re-indent the code.
5506         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5507         "unsigned long long".
5508
5509 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5510
5511         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5512         to be set for SEC_ALLOC sections too.
5513
5514 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5515
5516         * Makefile.in (HFILES_NO_SRCDIR): Add
5517         nat/aarch64-linux-hw-point.h.
5518         (aarch64-linux-hw-point.o): New rule.
5519         * nat/aarch64-linux-hw-point.h: New file.
5520         * nat/aarch64-linux-hw-point.c: New file.
5521         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5522         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5523         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5524         (AARCH64_HWP_ALIGNMENT): Likewise.
5525         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5526         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5527         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5528         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5529         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5530         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5531         (struct aarch64_debug_reg_state): Likewise.
5532         (struct arch_lwp_info): Likewise.
5533         (aarch64_linux_set_debug_regs): Likewise.
5534         (aarch64_notify_debug_reg_change): Remove static.
5535         (aarch64_align_watchpoint): Likewise.
5536         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5537         (aarch64_watchpoint_length): Likewise.
5538         (aarch64_point_encode_ctrl_reg): Likewise
5539         (aarch64_point_is_aligned): Likewise.
5540         (aarch64_dr_state_insert_one_point): Likewise.
5541         (aarch64_dr_state_remove_one_point): Likewise.
5542         (aarch64_handle_breakpoint): Likewise.
5543         (aarch64_handle_aligned_watchpoint): Likewise.
5544         (aarch64_handle_unaligned_watchpoint): Likewise.
5545         (aarch64_handle_watchpoint): Likewise.
5546         * config/aarch64/linux.mh (NAT_FILE): Add
5547         aarch64-linux-hw-point.o.
5548
5549 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5550
5551         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5552         state and don't call aarch64_get_debug_reg_state.  All callers
5553         update.
5554         (aarch64_linux_insert_hw_breakpoint): Call
5555         aarch64_get_debug_reg_state earlier.
5556         (aarch64_linux_remove_hw_breakpoint): Likewise.
5557         (aarch64_handle_aligned_watchpoint): Add argument state and
5558         don't call aarch64_get_debug_reg_state.  All callers update.
5559         (aarch64_handle_unaligned_watchpoint): Likewise.
5560         (aarch64_handle_watchpoint): Add argument state.
5561         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5562         earlier.
5563         (aarch64_linux_remove_watchpoint): Likewise.
5564
5565 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5566
5567         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5568         debug_printf.
5569         (aarch64_handle_unaligned_watchpoint): Likewise.
5570
5571 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5572
5573         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5574         argument type's type to 'enum target_hw_bp_type'.
5575         (aarch64_dr_state_remove_one_point): Likewise.
5576         (aarch64_handle_breakpoint): Likewise.
5577         (aarch64_linux_insert_hw_breakpoint): Likewise.
5578         (aarch64_linux_remove_hw_breakpoint): Likewise.
5579         (aarch64_handle_aligned_watchpoint): Likewise.
5580
5581 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5582
5583         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5584         ptid_get_pid instead of get_thread_id.
5585
5586 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5587
5588         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5589         (add_current_inferior_and_thread): Don't initialise ptid.
5590
5591 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5592
5593         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5594         unavailable if invalid.
5595
5596 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5597
5598         Revert the previous 6 commits:
5599         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5600         Move gdb_regex* to common/
5601         Prepare linux_find_memory_regions_full & co. for move
5602         Move linux_find_memory_regions_full & co.
5603         gdbserver build-id attribute generator
5604         Validate symbol file using build-id
5605
5606 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5607             Jan Kratochvil  <jan.kratochvil@redhat.com>
5608
5609         Validate symbol file using build-id.
5610         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5611         and 'show validate-build-id'.  Add build-id attribute.
5612         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5613         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5614         * solib-frv.c (_initialize_frv_solib): Ditto.
5615         * solib-spu.c (set_spu_solib_ops): Ditto.
5616         * solib-svr4.c: Include rsp-low.h.
5617         (NOTE_GNU_BUILD_ID_NAME): New define.
5618         (svr4_validate): New function.
5619         (svr4_copy_library_list): Duplicate field build_id.
5620         (library_list_start_library): Parse 'build-id' attribute.
5621         (svr4_library_attributes): Add 'build-id' attribute.
5622         (_initialize_svr4_solib): Assign validate value.
5623         * solib-target.c (solib.h): Include.
5624         (_initialize_solib_target): Assign validate value.
5625         * solib.c (validate_build_id, show_validate_build_id): New.
5626         (solib_map_sections): Use ops->validate.
5627         (clear_so): Free build_id.
5628         (default_solib_validate): New function.
5629         (_initialize_solib): Add "validate-build-id".
5630         * solib.h (default_solib_validate): New declaration.
5631         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5632         (target_so_ops): New field 'validate'.
5633
5634 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5635             Jan Kratochvil  <jan.kratochvil@redhat.com>
5636
5637         gdbserver build-id attribute generator.
5638         * features/library-list-svr4.dtd (library-list-svr4): New
5639         'build-id' attribute.
5640
5641 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5642             Jan Kratochvil  <jan.kratochvil@redhat.com>
5643
5644         Move linux_find_memory_regions_full & co.
5645         * linux-tdep.c (nat/linux-maps.h): Include.
5646         (gdb_regex.h): Remove the include.
5647         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5648         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5649         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5650         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5651         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5652         and target/target.h.
5653         (struct smaps_vmflags, read_mapping, decode_vmflags)
5654         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5655         (linux_find_memory_regions_full): Move from linux-tdep.c.
5656         * nat/linux-maps.h (read_mapping): New declaration.
5657         (linux_find_memory_region_ftype, enum filterflags): Moved from
5658         linux-tdep.c.
5659         (linux_find_memory_regions_full): New declaration.
5660         * target.c (target/target-utils.h): Include.
5661         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5662         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5663         definitions to target/target-utils.c.
5664         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5665         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5666         from target.c.
5667         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5668         (read_alloc): New declaration.
5669         (read_stralloc_func_ftype): New typedef.
5670         (read_stralloc): New declaration.
5671         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5672
5673 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5674             Jan Kratochvil  <jan.kratochvil@redhat.com>
5675
5676         Prepare linux_find_memory_regions_full & co. for move.
5677         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5678         (linux_find_memory_regions_full): Change signature and prepare
5679         for moving to linux-maps.
5680         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5681         (linux_find_memory_regions_thunk): New.
5682         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5683         (linux_find_memory_regions_gdb): New.
5684         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5685         (linux_make_mappings_corefile_notes): Use
5686         linux_find_memory_regions_gdb.
5687         * target.c (read_alloc_pread_ftype): New typedef.
5688         (target_fileio_read_alloc_1_pread): New function.
5689         (read_alloc): Refactor from target_fileio_read_alloc_1.
5690         (read_stralloc_func_ftype): New typedef.
5691         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5692         (read_stralloc): Refactored from target_fileio_read_stralloc.
5693         (target_fileio_read_stralloc): New implementation, use read_stralloc.
5694
5695 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5696
5697         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5698         common/gdb_regex.h.
5699         (COMMON_OBS): Add gdb_regex.o.
5700         (gdb_regex.o): New.
5701         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5702         --without-included-regex and USE_INCLUDED_REGEX.
5703         * common/gdb_regex.c: New file from utils.c functions.
5704         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5705         file wrapping define name.
5706         * configure: Rebuilt.
5707         * configure.ac (gdb_use_included_regex, --without-included-regex)
5708         (USE_INCLUDED_REGEX): Move them to common/common.m4.
5709         * gdb_regex.h: Move it to common/gdb_regex.h.
5710         * utils.c: Remove include gdb_regex.h.
5711         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5712         (compile_rx_or_error): Move them to common/gdb_regex.c.
5713
5714 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5715             Jan Kratochvil  <jan.kratochvil@redhat.com>
5716
5717         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5718         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5719         common/target-utils.h.
5720         (COMMON_OBS): Add target-utils.o.
5721         (linux-maps.o, target-utils.o): New.
5722         * target/target-utils.c: New file.
5723         * target/target-utils.h: New file.
5724         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5725         * config/i386/linux64.mh (NATDEPFILES): Ditto.
5726         * nat/linux-maps.c: New file.
5727         * nat/linux-maps.h: New file.
5728
5729 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
5730             Pedro Alves <palves@redhat.com>
5731
5732         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5733         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5734         (perf_event_read_bts): Change the type of SIZE and READ.
5735         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5736         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
5737         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
5738         mmap page.
5739         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
5740         buffer size to UINT_MAX.
5741         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5742         DATA_TAIL.
5743         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5744         <last_head>: Change type.
5745         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5746         * common/btrace-common.c (btrace_data_append): Change the type of
5747         SIZE.
5748         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
5749         check.
5750
5751 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
5752
5753         * gdbtypes.h (CHECK_TYPEDEF): Remove.
5754         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5755         with check_typedef.
5756         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5757         (ada_array_length): Likewise.
5758         (find_parallel_type_by_descriptive_type): Likewise.
5759         (ada_check_typedef): Likewise.
5760         * arm-tdep.c (arm_return_in_memory): Likewise.
5761         * ax-gdb.c (gen_trace_static_fields): Likewise.
5762         (gen_struct_ref_recursive): Likewise.
5763         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5764         (variable: block COLONCOLON name): Likewise.
5765         (qualified_name: TYPENAME COLONCOLON name): Likewise.
5766         * c-lang.c (classify_type): Likewise.
5767         * c-typeprint.c (c_print_type): Likewise.
5768         (c_print_typedef): Likewise.
5769         (c_type_print_base): Likewise.
5770         * c-valprint.c (c_val_print): Likewise.
5771         * compile/compile-c-types.c (convert_type): Likewise.
5772         * compile/compile-object-load.c (get_out_value_type): Likewise.
5773         * completer.c (add_struct_fields): Likewise.
5774         (expression_completer): Likewise.
5775         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5776         (cp_lookup_nested_symbol_1): Likewise.
5777         (cp_lookup_nested_symbol): Likewise.
5778         * cp-valprint.c (cp_print_value_fields): Likewise.
5779         (cp_print_static_field): Likewise.
5780         * d-valprint.c (d_val_print): Likewise.
5781         * eval.c (evaluate_subexp_standard): Likewise.
5782         (evaluate_subexp_for_sizeof): Likewise.
5783         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5784         * f-typeprint.c (f_type_print_base): Likewise.
5785         * f-valprint.c (f_val_print): Likewise.
5786         * gdbtypes.c (get_discrete_bounds): Likewise.
5787         (create_array_type_with_stride): Likewise.
5788         (type_name_no_tag_or_error): Likewise.
5789         (lookup_struct_elt_type): Likewise.
5790         (get_unsigned_type_max): Likewise.
5791         (internal_type_vptr_fieldno): Likewise.
5792         (set_type_vptr_fieldno): Likewise.
5793         (internal_type_vptr_basetype): Likewise.
5794         (set_type_vptr_basetype): Likewise.
5795         (get_vptr_fieldno): Likewise.
5796         (is_integral_type): Likewise.
5797         (is_scalar_type): Likewise.
5798         (is_scalar_type_recursive): Likewise.
5799         (distance_to_ancestor): Likewise.
5800         (is_unique_ancestor_worker): Likewise.
5801         (check_types_equal): Likewise.
5802         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5803
5804 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5805
5806         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5807         also test for language_d.
5808         (dwarf2_compute_name): Likewise.
5809         (read_func_scope): Likewise.
5810         (read_structure_type): Likewise.
5811         (new_symbol_full): Likewise.
5812         (determine_prefix): Likewise.
5813         (read_import_statement): Use dot as the separator for language_d.
5814         (typename_concat): Likewise, but don't prefix the D main function.
5815
5816 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
5817
5818         * nat/linux-namespaces.c (setns): Rename from this ...
5819         (do_setns): ... to this.  Support calling setns if it exists.
5820         (mnsh_handle_setns): Call do_setns.
5821
5822 2015-07-13  Yao Qi  <yao.qi@linaro.org>
5823
5824         * exec.c (exec_file_attach): Add period at the end of error
5825         message.
5826
5827 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
5828
5829         * tui/tui-win.c (window_name_completer): New function.
5830         (focus_completer): Call window_name_completer.  All old content
5831         moved into window_name_completer.
5832         (winheight_completer): New function.
5833         (_initialize_tui_win): Rename variable.  Add completer to
5834         winheight command.  Update doc string on winheight.
5835
5836 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
5837
5838         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5839         all nios2 mach variants.
5840
5841 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
5842
5843         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5844         of target_read_memory.
5845
5846 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5847
5848         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5849         string copy.
5850         (parse_scrolling_args): Likewise.
5851
5852 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5853
5854         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5855         names in this function.
5856
5857 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5858
5859         * tui/tui-data.h (SRC_NAME): Convert to lower case.
5860         (CMD_NAME): Likewise.
5861         (DATA_NAME): Likewise.
5862         (DISASSEM_NAME): Likewise.
5863         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5864         (tui_set_win_height): Likewise.
5865         (parse_scrolling_args): Likewise.
5866
5867 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
5868
5869         * record-btrace.c (record_btrace_goto_begin)
5870         (record_btrace_goto_end, record_btrace_goto): Move call to
5871         print_stack_frame ...
5872         (record_btrace_set_replay): ... here.  Set stop_pc.
5873         * record-full.c (record_full_goto_entry): Set stop_pc.
5874
5875 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5876
5877         * NEWS: Mention support for tracepoints on aarch64-linux.
5878
5879 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5880
5881         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5882         function.  Return 1.
5883         (the_low_target): Install it.
5884
5885 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5886
5887         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5888         * gdb.trace/collection.exp: Likewise.
5889         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5890         * gdb.trace/mi-trace-unavailable.exp: Likewise.
5891         * gdb.trace/report.exp: Likewise.
5892         * gdb.trace/trace-break.exp: Likewise.
5893         * gdb.trace/unavailable.exp: Likewise.
5894         * gdb.trace/while-dyn.exp: Likewise.
5895
5896 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5897
5898         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5899         (aarch64_gen_return_address): New function.
5900         (aarch64_gdbarch_init): Hook it.
5901
5902 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5903
5904         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5905         swallow NOT_AVAILABLE_ERROR.
5906         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5907         available_p is not set.
5908         (aarch64_stub_frame_unwind_stop_reason): New function.
5909         (aarch64_stub_unwind): Install it.
5910
5911 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5912
5913         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5914         field.
5915         (aarch64_make_prologue_cache_1): New function, factored out from
5916         aarch64_make_prologue_cache.  Do not allocate cache.  Set
5917         available_p.
5918         (aarch64_make_prologue_cache): Reimplement wrapping
5919         aarch64_make_prologue_cache_1, and swallowing
5920         NOT_AVAILABLE_ERROR.
5921         (aarch64_prologue_frame_unwind_stop_reason): New function.
5922         Return UNWIND_UNAVAILABLE if available_p is not set.
5923         (aarch64_prologue_unwind): Install it.
5924         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5925         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
5926         frame_id_build_unavailable_stack if available_p is not set.
5927
5928 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5929
5930         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5931         fields.
5932         (aarch64_scan_prologue): Set prev_pc.
5933         (aarch64_make_prologue_cache): Set func.
5934         (aarch64_make_stub_cache): Set prev_pc.
5935         (aarch64_prologue_this_id): Remove local variables id, pc and
5936         func.  Read prev_pc and func from cache.
5937         (aarch64_stub_this_id): Read prev_pc from cache.
5938
5939 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5940
5941         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
5942         argument this_cache.  Remove unused local variables reg and
5943         unwound_fp.  Return early if this_cache is already set.  Set
5944         this_cache.
5945         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5946
5947 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5948
5949         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5950         New argument this_cache.  Return early if this_cache is already
5951         set.  Set this_cache.
5952         (aarch64_prologue_this_id): Update call to
5953         aarch64_make_prologue_cache.
5954         (aarch64_prologue_prev_register): Likewise.
5955         (aarch64_normal_frame_base): Likewise.
5956
5957 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5958
5959         * c-valprint.c (c_val_print): Factor out memberptr printing code
5960         from c_val_print to ...
5961         (c_val_print_memberptr): ... this new function.
5962
5963 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5964
5965         * c-valprint.c (c_val_print): Factor out int printing code to ...
5966         (c_val_print_int): ... this new function.
5967
5968 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5969
5970         * c-valprint.c (c_val_print): Factor out struct and union
5971         printing code to ...
5972         (c_val_print_struct): ... this new function ...
5973         (c_val_print_union): ... and this new function.
5974
5975 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5976
5977         * c-valprint.c (c_val_print): Factor out pointer printing code
5978         to ...
5979         (c_val_print_ptr): ... this new function.
5980
5981 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5982
5983         * c-valprint.c (c_valprint): Factor our array printing code from
5984         c_val_print to ...
5985         (c_val_print_array): ... this new function.
5986
5987 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5988
5989         * c-valprint.c (c_val_print): Factor out pointer printing code
5990         to ...
5991         (print_unpacked_pointer): ... this new function.
5992
5993 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5994
5995         * c-valprint.c (c_val_print): Remove an assignment to i and move
5996         its declaration.
5997
5998 2015-07-09  Yao Qi  <yao.qi@linaro.org>
5999
6000         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6001         argument ptid.  Update comments.  Caller update.
6002
6003 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6004
6005         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6006         mnt packets.
6007
6008 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6009
6010         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6011
6012 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6013
6014         * progspace.c (delete_program_space): Add missing spaces.
6015
6016 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6017
6018         * inferior.c (delete_inferior_1): Rename to ...
6019         (delete_inferior): ..., remove 'silent' parameter, delete
6020         program space when unused and remove call to prune_program_spaces.
6021         Remove the old, unused, delete_inferior.
6022         (delete_inferior_silent): Remove.
6023         (prune_inferiors): Change call from delete_inferior_1 to
6024         delete_inferior and remove 'silent' parameter. Remove call to
6025         prune_program_spaces.
6026         (remove_inferior_command): Idem.
6027         * inferior.h (delete_inferior_1): Rename to...
6028         (delete_inferior): ..., remove 'silent' parameter and remove the
6029         original delete_inferior.
6030         (delete_inferior_silent): Remove.
6031         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6032         delete_inferior_1 to delete_inferior and remove 'silent'
6033         parameter.
6034         * progspace.c (prune_program_spaces): Remove.
6035         (pspace_empty_p): Rename to...
6036         (program_space_empty_p): ... and make non-static.
6037         (delete_program_space): New.
6038         * progspace.h (prune_program_spaces): Remove declaration.
6039         (program_space_empty_p): New declaration.
6040         (delete_program_space): New declaration.
6041         * monitor.c (monitor_close): Replace call to
6042         delete_thread_silent and delete_inferior_silent with
6043         discard_all_inferiors.
6044
6045 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6046
6047         * defs.h (deprecated_register_changed_hook): Remove prototype.
6048         * interps.c (clear_iterpreter_hooks): Remove reference to
6049         deprecated_register_changed_hook.
6050         * top.c (deprecated_register_changed_hook): Remove prototype.
6051         * valops.c (value_assign): Remove reference to
6052         deprecated_register_changed_hook.
6053         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6054         Add comment documenting the function.
6055         (tui_register_changed_observer): Define.
6056         (tui_install_hooks): Remove reference to
6057         deprecated_register_changed_hook.  Set
6058         tui_register_changed_observer.
6059         (tui_remove_hooks): Remove reference to
6060         deprecated_register_changed_hook.  Unset
6061         tui_register_changed_observer.
6062
6063 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6064
6065         PR compile/18484
6066         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6067
6068 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6069
6070         PR exp/18617
6071         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6072
6073 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6074
6075         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6076
6077 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6078
6079         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6080         Use safe_strerror() instead of strerror().
6081
6082 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6083
6084         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6085         * features/arm-with-m-fpa-layout.c: Regenerated.
6086         * features/arm-with-m-vfp-d16.xml: Likewise.
6087         * features/arm-with-m-vfp-d16.c: Regenerated.
6088         * features/arm-with-m.xml: Likewise.
6089         * features/arm-with-m.c: Regenerated.
6090         * features/arm-with-neon.xml: Likewise.
6091         * features/arm-with-neon.c: Regenerated.
6092         * features/arm-with-vfpv2.xml: Likewise.
6093         * features/arm-with-vfpv2.c: Regenerated.
6094         * features/arm-with-vfpv3.xml: Likewise.
6095         * features/arm-with-vfpv3.c: Regenerated.
6096
6097 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6098
6099         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6100         arm-linux-nat.c.
6101         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6102         elf/external.h.
6103         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6104         if target is 32-bit.
6105         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6106         if target is 32-bit.
6107         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6108         if target is 32-bit.
6109         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6110         if target is 32-bit.
6111         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6112         (aarch64_linux_read_description): Return the right target
6113         description.
6114         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6115         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6116         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6117         arm-linux-tdep.o.
6118
6119 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6120
6121         * aarch32-linux-nat.c: New file.
6122         * aarch32-linux-nat.h: New file.
6123         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6124         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6125         aarch32_gp_regcache_supply.
6126         (store_regs): Move code to aarch32-linux-nat.c.  Call
6127         aarch32_gp_regcache_collect.
6128         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6129         aarch32_vfp_regcache_supply.
6130         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6131         aarch32_vfp_regcache_collect.
6132         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6133
6134 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6135
6136         * arm-linux-nat.c (store_fpregister): Remove.
6137         (store_register): Likewise.
6138         (fetch_fpregister): Likewise.
6139         (fetch_register): Likewise.
6140         (arm_linux_store_inferior_registers): Call store_regs and
6141         store_fpregs instead.
6142         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6143         fetch_regs instead.
6144
6145 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6146
6147         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6148         and focus commands.
6149
6150 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6151
6152         * NEWS: Create a new section for the next release branch.
6153         Rename the section of the current branch, now that it has
6154         been cut.
6155
6156 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6157
6158         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6159         * version.in: Bump version to 7.10.50.DATE-cvs.
6160
6161 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6162
6163         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6164         breakpoints in a special way.
6165         (remove_breakpoint): Likewise.
6166         (mark_breakpoints_out): Likewise.
6167
6168 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6169
6170         * doc/gdb.texinfo (TUI): Add comma after @xref.
6171
6172 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6173
6174         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6175         instead of casting the structure type.
6176
6177 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6178
6179         * valops.c (search_struct_field): Remove OFFSET parameter.
6180         (value_cast_structs): Adjust calls to search_struct_field.
6181         (value_struct_elt): Same.
6182         (find_overload_match): Same.
6183
6184 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6185
6186         * value.c (value_fetch_lazy): Update comment, change return
6187         value to void.
6188         * value.h (value_fetch_lazy): Change return value to void.
6189
6190 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6191
6192         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6193         (tui_win_name): Make parameter and result const.
6194         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6195
6196 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6197
6198         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6199         use printf_unfiltered.
6200         (set_mpx_cmd): Add missing trailing space to command string
6201         literal.
6202         (_initialize_i386_tdep): Give the "mpx" prefix command its
6203         correct name.
6204
6205 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6206
6207         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6208         (enum rx_frame_type): New.
6209         (struct rx_prologue): Add new field `frame_type'.
6210         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6211         parameter in the prologue struct.  Add code for recording
6212         locations of PC and PSW for fast interrupt and exception frames.
6213         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6214         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6215         (rx_frame_type): New function.
6216         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6217         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6218         `this_cache'.
6219         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6220         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6221         RX_FRAME_TYPE_FAST_INTERRUPT.
6222         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6223         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6224         (rx_frame_unwind): Use rx_frame_sniffer instead of
6225         default_frame_sniffer.
6226         (rx_frame_unwind): New unwinder.
6227         (rx_gdbarch_init): Register new unwinder.
6228
6229 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6230
6231         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6232         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6233         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6234         and RX_FPSW_REGNUM.
6235         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6236
6237 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6238
6239         Fix GCC false warning.
6240         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6241
6242 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6243
6244         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6245         typo in the debugging message.
6246
6247 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6248
6249         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6250         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6251         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6252         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6253         (btrace_maint_clear): New.
6254         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6255         (pt_print_packet, btrace_maint_decode_pt)
6256         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6257         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6258         (maint_btrace_packet_history_cmd)
6259         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6260         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6261         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6262         (maint_info_btrace_cmd, _initialize_btrace): New.
6263         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6264         (btrace_maint_packet_history, btrace_maint_info): New.
6265         (btrace_thread_info) <maint>: New.
6266         * NEWS: Announce it.
6267
6268 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6269
6270         * btrace.c (btrace_fetch): Append the new trace data.
6271         (btrace_clear): Clear the stored trace data.
6272         * btrace.h (btrace_thread_info) <data>: New.
6273         * common/btrace-common.h (btrace_data_clear)
6274         (btrace_data_append): New.
6275         * common/btrace-common.c (btrace_data_clear)
6276         (btrace_data_append): New.
6277
6278 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6279
6280         * nat/linux-btrace.c (linux_enable_bts): Check for
6281         PERF_ATTR_SIZE_VER5.
6282         Check for data_offset and data_size fields.  Use them.
6283
6284 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6285
6286         * NEWS: Announce new commands "record btrace pt" and "record pt".
6287         Announce new options "set|show record btrace pt buffer-size".
6288         * btrace.c: Include "rsp-low.h".
6289         Include "inttypes.h".
6290         (btrace_add_pc): Add forward declaration.
6291         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6292         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6293         (btrace_compute_ftrace_pt): New.
6294         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6295         (check_xml_btrace_version): Update version check.
6296         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6297         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6298         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6299         (btrace_pt_children): New.
6300         (btrace_children): Add support for "pt".
6301         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6302         (btrace_conf_children): Add support for "pt".
6303         * btrace.h: Include "intel-pt.h".
6304         (btrace_pt_error): New.
6305         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6306         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6307         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6308         (struct btrace_config_pt): New.
6309         (struct btrace_config)<pt>: New.
6310         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6311         (struct btrace_data)<pt>: New.
6312         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6313         (pt): New.
6314         * features/btrace.dtd (btrace)<pt>: New.
6315         (pt, pt-config, cpu): New.
6316         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6317         (perf_event_pt_event_type, kernel_supports_pt)
6318         (linux_supports_pt): New.
6319         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6320         (linux_enable_bts): Free tinfo on error.
6321         (linux_enable_pt): New.
6322         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6323         (linux_disable_pt): New.
6324         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6325         (linux_fill_btrace_pt_config, linux_read_pt): New.
6326         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6327         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6328         (struct btrace_target_info)<pt>: New.
6329         * record-btrace.c (set_record_btrace_pt_cmdlist)
6330         (show_record_btrace_pt_cmdlist): New.
6331         (record_btrace_print_pt_conf): New.
6332         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6333         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6334         (cmd_record_btrace_pt_start): New.
6335         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6336         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6337         (_initialize_record_btrace): Add new commands.
6338         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6339         (remote_protocol_features): Add "Qbtrace:pt".
6340         Add "Qbtrace-conf:pt:size".
6341         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6342         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6343         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6344         (_initialize_remote): Add new commands.
6345
6346 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6347
6348         * configure.ac: check for libipt
6349         * configure: Regenerate.
6350         * config.in: Regenerate.
6351         * Makefile.in (LIBIPT): New.
6352         (CLIBS): Add $LIBIPT.
6353         * NEWS: document new configure options
6354
6355 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6356
6357         * compile/compile-object-load.c (compile_object_load): Replace debug
6358         message "lookup undefined ELF symbol" by 3 more specific messages.
6359
6360 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6361
6362         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6363         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6364         (rl78_gdbarch_init): Initialize rl78_psw_type.
6365
6366 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6367
6368         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6369         Update commentary.  Always refresh the registers when frame
6370         information has changed.
6371         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6372         Change return type to int.  Return 1 if frame information has
6373         changed, 0 otherwise.
6374         (tui_before_prompt): Update commentary.
6375         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6376         int.
6377
6378 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6379
6380         PR tui/13378
6381         * frame.c (select_frame): Remove reference to
6382         deprecated_selected_frame_level_changed_hook.
6383         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6384         declaration.
6385         * stack.c (deprecated_selected_frame_level_changed_hook):
6386         Likewise.
6387         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6388         Rename to ...
6389         (tui_refresh_frame_and_register_information): ... this.  Bail
6390         out if there is no stack.  Don't update register information
6391         unless registers_too_p is true.
6392         (tui_print_frame_info_listing_hook): Rename to ...
6393         (tui_dummy_print_frame_info_listing_hook): ... this.
6394         (tui_before_prompt): New function.
6395         (tui_normal_stop): New function.
6396         (tui_before_prompt_observer): New observer.
6397         (tui_normal_stop_observer): New observer.
6398         (tui_install_hooks): Set
6399         deprecated_print_frame_info_listing_hook to
6400         tui_dummy_print_frame_info_listing_hook.  Register
6401         tui_before_prompt_observer to call tui_before_prompt and
6402         tui_normal_stop_observer to call tui_normal_stop.  Remove
6403         reference to deprecated_selected_frame_level_changed_hook.
6404         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6405         and tui_normal_stop_observer.  Remove reference to
6406         deprecated_selected_frame_level_changed_hook.
6407
6408 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6409
6410         PR tui/13378
6411         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6412         return an int instead of void.  Return whether the locator
6413         window has changed.
6414         (tui_show_frame_info): If the locator info has not changed, then
6415         bail out early to avoid refreshing the windows.
6416
6417 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6418
6419         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6420         LOCATOR_WIN to tui_alloc_content.
6421
6422 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6423
6424         PR tdep/18605
6425         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6426         instructions.
6427
6428 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6429
6430         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6431         (rx_dwarf_reg_to_regnum): New function.
6432         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6433         unwinding.
6434
6435 2015-06-29  Pedro Alves  <palves@redhat.com>
6436
6437         PR threads/18127
6438         * infcall.c (run_inferior_call): On infcall success, if the thread
6439         was marked stopped before, reset it back to stopped.
6440         * infrun.c (resume): Don't suppress the set_running calls when
6441         doing an infcall.
6442         (normal_stop): Only discard the finish_thread_state cleanup if the
6443         infcall succeeded.
6444
6445 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6446
6447         * MAINTAINERS (Write After Approval): Update my email address.
6448
6449 2015-06-26  Keith Seitz  <keiths@redhat.com>
6450             Doug Evans  <dje@google.com>
6451
6452         PR 16253
6453         * block.c (block_lookup_symbol): For non-function blocks,
6454         continue to search for a symbol with an exact domain match
6455         Otherwise, return any previously found "best domain" symbol.
6456         (block_lookup_symbol_primary): Likewise.
6457
6458 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6459
6460         * NEWS: Mention the new option "history remove-duplicates".
6461         * top.c (history_remove_duplicates): New static variable.
6462         (show_history_remove_duplicates): New static function.
6463         (gdb_add_history): Conditionally remove duplicate history
6464         entries.
6465         (init_main): Add "history remove-duplicates" option.
6466
6467 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6468
6469         * tui/tui-win.c (focus_completer): New static function.
6470         (_initialize_tui_win): Set the completion function of the
6471         "focus" command to focus_completer.
6472
6473 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6474
6475         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6476         and language_asm..
6477         * symtab.c (find_function_start_sal): Likewise.
6478
6479 2015-06-25  Gary Benson  <gbenson@redhat.com>
6480
6481         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6482         it is the empty string after trailing slashes have been stripped.
6483
6484 2015-06-25  Gary Benson  <gbenson@redhat.com>
6485
6486         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6487         * infrun.c (follow_exec): Likewise.
6488         * remote.c (remote_filesystem_is_local): Likewise.
6489         * solib.c (solib_find_1): Likewise.
6490
6491 2015-06-24  Keith Seitz  <keiths@redhat.com>
6492
6493         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6494         return value from lrealpath.
6495
6496 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6497
6498         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6499
6500 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6501
6502         * remote-sim.c: Include gdb_bfd.h.
6503         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6504         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6505
6506 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6507
6508         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6509         set_gdbarch_get_siginfo_type.
6510         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6511         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6512         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6513         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6514         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6515         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6516         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6517         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6518         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6519         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6520
6521 2015-06-24  Gary Benson  <gbenson@redhat.com>
6522
6523         * common/buffer.c (stdint.h): Do not include.
6524         * common/print-utils.c (stdint.h): Likewise.
6525         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6526         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6527         * ft32-tdep.c (gdb_assert.h): Likewise.
6528         * guile/scm-utils.c (stdint.h): Likewise.
6529         * i386-linux-tdep.c (stdint.h): Likewise.
6530         * i386-tdep.c (stdint.h): Likewise.
6531         * nat/linux-btrace.c (stdint.h): Likewise.
6532         * nat/linux-btrace.h (stdint.h): Likewise.
6533         * nat/linux-ptrace.c (stdint.h): Likewise.
6534         * nat/mips-linux-watch.h (stdint.h): Likewise.
6535         * ppc-linux-nat.c (stdint.h): Likewise.
6536         * python/python-internal.h (stdint.h): Likewise.
6537         * stub-termcap.c (stdlib.h): Likewise.
6538         * target/target.h (stdint.h): Likewise.
6539         * xtensa-linux-nat.c (stdint.h): Likewise.
6540
6541 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6542
6543         * top.c (init_history): Look at errno after calling strtol to
6544         properly map large GDBHISTSIZE values to infinity.
6545
6546 2015-06-23  Doug Evans  <dje@google.com>
6547
6548         * inferior.h (struct inferior_suspend_state): Delete, unused.
6549         All references deleted.
6550
6551 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6552
6553         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6554         (microblaze_push_dummy_call): Likewise.
6555         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6556         and set_gdbarch_push_dummy_call.
6557
6558 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6559
6560         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6561         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6562         (amd64_linux_store_inferior_registers): Likewise.
6563         * arm-linux-nat.c (fetch_fpregister): Likewise.
6564         (fetch_fpregs, store_fpregister): Likewise.
6565         (store_fpregister, store_fpregs): Likewise.
6566         (fetch_register, fetch_regs): Likewise.
6567         (store_register, store_regs): Likewise.
6568         (fetch_vfp_regs, store_vfp_regs): Likewise.
6569         (arm_linux_read_description): Check have_ptrace_getregset is
6570         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6571         or TRIBOOL_FALSE.
6572         * i386-linux-nat.c (fetch_xstateregs): Check
6573         have_ptrace_getregset is not TRIBOOL_TRUE.
6574         (store_xstateregs): Likewise.
6575         * linux-nat.c (have_ptrace_getregset): Change its type to
6576         enum tribool.
6577         * linux-nat.h (tribool): New enum.
6578         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6579         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6580
6581 2015-06-19  Doug Evans  <dje@google.com>
6582
6583         * NEWS: Mention Sun's version of stabs is no longer supported.
6584         * elfread.c (free_elfinfo): Delete.  All uses updated.
6585         (elfstab_offset_sections): Delete.  All uses updated.
6586         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6587         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6588         All uses updated.
6589         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6590         All callers updated.
6591
6592 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6593
6594         * common/rsp-low.c (needs_escaping): New.
6595         (remote_escape_output): Add unit_size parameter. Refactor to
6596         support multi-byte addressable units.  Rename parameters.
6597         * common/rsp-low.h (remote_escape_output): Add unit_size
6598         parameter and rename others. Update doc.
6599         * remote.c (align_for_efficient_write): New.
6600         (remote_write_bytes_aux): Add unit_size parameter and use it.
6601         Rename some variables.  Update doc.
6602         (remote_xfer_partial): Get unit size and use it.
6603         (remote_read_bytes_1): Add unit_size parameter and use it.
6604         Rename some variables. Update doc.
6605         (remote_write_bytes): Same.
6606         (remote_xfer_live_readonly_partial): Same.
6607         (remote_read_bytes): Same.
6608         (remote_flash_write): Update call to remote_write_bytes_aux.
6609         (remote_write_qxfer): Update call to remote_escape_output.
6610         (remote_search_memory): Same.
6611         (remote_hostio_pwrite): Same.
6612
6613 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6614
6615         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6616         locations as inserted.
6617         Update and expand comment about permanent locations.
6618         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6619         Move comment to add_location_to_breakpoint.
6620         (update_global_location_list): Don't error out if a permanent
6621         breakpoint is not marked inserted.
6622         Don't error out if a non-permanent breakpoint location is inserted on
6623         top of a permanent breakpoint.
6624
6625 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6626
6627         * breakpoint.c (make_breakpoint_permanent): Remove unused
6628         function.
6629         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6630
6631 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6632
6633         PR gdb/16999
6634         * NEWS: Mention new GDBHISTSIZE behavior.
6635         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6636         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6637
6638 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6639
6640         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6641         * top.c (init_history): Read from GDBHISTSIZE instead of
6642         HISTSIZE.
6643         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6644
6645 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6646
6647         * top.c (gdb_safe_append_history): Do not call
6648         history_truncate_file if the history is not stifled.
6649
6650 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6651
6652         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6653         * syscalls/s390x-linux.xml: Likewise.
6654
6655 2015-06-16  Michael Eager  <eager@eagercon.com>
6656
6657         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6658
6659 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6660
6661         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6662         target_terminal_ours_for_output() before calling
6663         tui_show_frame_info(), and restore the original terminal
6664         settings afterwards.
6665
6666 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6667
6668         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6669
6670 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6671
6672         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6673         memory unit size.
6674         (mi_cmd_data_write_memory_bytes): Same.
6675
6676 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6677
6678         * corefile.c (write_memory): Update doc.
6679         * gdbcore.h (write_memory): Same.
6680
6681 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6682
6683         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6684         (dump_mapping_p): Use it for parameter filterflags.
6685         (linux_find_memory_regions_full): Use it for variable filterflags.
6686
6687 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6688             Jan Kratochvil  <jan.kratochvil@redhat.com>
6689
6690         Merge multiple hex conversions.
6691         * monitor.c: Include rsp-low.h.
6692         (fromhex): Remove definition.
6693
6694 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6695             Jan Kratochvil  <jan.kratochvil@redhat.com>
6696
6697         Move utility functions to common/.
6698         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6699         Move defs to common/common-utils.c.
6700         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6701         (skip_to_space_const): Move decls to common/common-utils.h.
6702         * common/common-defs.h: Move include of common-types.h before
6703         common-utils.h.
6704         * common/common-utils.c: Include host-defs.h and ctype.h.
6705         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6706         from utils.c.
6707         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6708         cli/cli-utils.c.
6709         * common/common-utils.h (strtoulst): Move decl from utils.h.
6710         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6711         Move from cli/cli-utils.h.
6712         * common/host-defs.h: Include limits.h.
6713         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6714         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6715         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6716         common/common-utils.h.
6717         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6718         (strtoulst): Move to common/common-utils.c.
6719         * utils.h (strtoulst): Moved decl to common/common-utils.h.
6720
6721 2015-06-15  Yao Qi  <yao.qi@linaro.org>
6722
6723         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6724
6725 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
6726
6727         * build-id.c: Don't include elf-bfd.h.
6728         (build_id_bfd_get): Use bfd_build_id.
6729         (build_id_verify): Ditto.
6730         * build-id.h: Ditto.
6731         (find_separate_debug_file_by_buildid): Ditto.
6732         * python/py-objfile.c: Don't include elf-bfd.h.
6733         (objfpy_get_build_id) Use bfd_build_id.
6734         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6735         * coffread.c: Include build-id.h.
6736         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6737
6738 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6739
6740         * windows-nat.c (do_windows_fetch_inferior_registers)
6741         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6742         conditional with __CYGWIN__.
6743
6744 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6745
6746         * completer.c: Add arch-utils.h include.
6747         (enum reg_completer_targets): New enum.
6748         (reg_or_group_completer_1): New function containing old
6749         reg_or_group_completer, add and use new parameter to control what
6750         is completed on.  Use get_current_arch rather than architecture of
6751         currently selected frame.
6752         (reg_or_group_completer): Call new reg_or_group_completer_1.
6753         (reggroup_completer): Call new reg_or_group_completer_1.
6754         * completer.h (reggroup_completer): Add declaration.
6755         * tui/tui-regs.c: Add 'completer.h' include.
6756         (tui_reg_next_command): Renamed to...
6757         (tui_reg_next): ...this.  Adjust parameters and return rather than
6758         display new group.
6759         (tui_reg_prev_command): Renamed to...
6760         (tui_reg_prev): ...this.  Adjust parameters and return rather than
6761         display new group.
6762         (tui_reg_float_command): Delete.
6763         (tui_reg_general_command): Delete.
6764         (tui_reg_system_command): Delete.
6765         (tui_reg_command): Rewrite to perform switching of register group.
6766         Add header comment.
6767         (tuireglist): Remove.
6768         (tui_reggroup_completer): New function.
6769         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6770         creation of 'tui reg' command.
6771         * NEWS: Add comment about 'tui reg' changes.
6772
6773 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6774
6775         * target.c (target_read): Consider addressable unit size when
6776         reading from a memory object.
6777         (read_memory_robust): Same.
6778         (read_whatever_is_readable): Same.
6779         (target_write_with_progress): Consider addressable unit size
6780         when writing to a memory object.
6781         * target.h (target_read): Update documentation.
6782         (target_write): Add documentation.
6783
6784 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6785
6786         * arch-utils.h (default_addressable_memory_unit_size): New.
6787         * arch-utils.c (default_addressable_memory_unit_size): New.
6788         * gdbarch.sh (addressable_memory_unit_size): New.
6789         * gdbarch.h: Re-generate.
6790         * gdbarch.c: Re-generate.
6791
6792 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6793
6794         * target.c (target_read): Rename variables and use
6795         TARGET_XFER_E_IO.
6796         (target_read_with_progress): Same.
6797         (read_memory_robust): Constify parameters and rename
6798         variables.
6799         (read_whatever_is_readable): Constify parameters,
6800         rename variables, adjust formatting.
6801         * target.h (read_memory_robust): Constify parameters.
6802
6803 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6804
6805         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6806         synthetic (non-AltiVec) vector types.
6807         (ppc64_sysv_abi_return_value): Likewise.
6808
6809 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6810
6811         PR breakpoints/16465
6812         * breakpoint.c (create_breakpoint): Save extra_string for
6813         pending breakpoints.
6814
6815 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6816
6817         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6818         and bt_mask to CORE_ADDR.
6819
6820 2015-06-11  Gary Benson <gbenson@redhat.com>
6821
6822         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6823         (mnsh_recv_message): Likewise.
6824
6825 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6826
6827         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6828         long long int and plongest instead of %ll.
6829
6830 2015-06-11  Gary Benson <gbenson@redhat.com>
6831
6832         * nat/linux-namespaces.c (gdb_wait.h): New include.
6833         (sys/wait.h): Do not include.
6834
6835 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
6836
6837         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6838         end_sequence is true.
6839
6840 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6841
6842         Code cleanup.
6843         * solib-target.c (library_list_start_list): Use explicit NULL
6844         comparison.
6845
6846 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6847
6848         * solib-target.c (library_list_start_list): Do not dereference
6849         variable version in its initialization.  Make the VERSION check handle
6850         NULL.
6851         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6852
6853 2015-06-10  Gary Benson <gbenson@redhat.com>
6854
6855         * NEWS: Announce support for direct access of executable and
6856         shared library files when attaching to inferiors in containers
6857         on GNU/Linux systems.
6858
6859 2015-06-10  Gary Benson <gbenson@redhat.com>
6860
6861         * remote.c (struct remote_state) <fs_pid>: New field.
6862         (new_remote_state): Initialize the above.
6863         (PACKET_vFile_setfs): New enum value.
6864         (remote_hostio_set_filesystem): New function.
6865         (remote_hostio_open): Call the above.
6866         (remote_hostio_unlink): Likewise.
6867         (remote_hostio_readlink): Likewise.
6868         (_initialize_remote): Register new "set/show remote
6869         hostio-setfs-packet" command.
6870         * NEWS: Announce new vFile:setfs packet.
6871
6872 2015-06-10  Gary Benson <gbenson@redhat.com>
6873
6874         * linux-nat.c (nat/linux-namespaces.h): New include.
6875         (fileio.h): Likewise.
6876         (linux_nat_filesystem_is_local): New function.
6877         (linux_nat_fileio_pid_of): Likewise.
6878         (linux_nat_fileio_open): Likewise.
6879         (linux_nat_fileio_readlink): Likewise.
6880         (linux_nat_fileio_unlink): Likewise.
6881         (linux_nat_add_target): Initialize to_filesystem_is_local,
6882         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6883         (_initialize_linux_nat): New "set/show debug linux-namespaces"
6884         commands.
6885         * NEWS: Mention new "set/show debug linux-namespaces" commands.
6886
6887 2015-06-10  Gary Benson <gbenson@redhat.com>
6888
6889         * target.h (struct inferior): New forward declaration.
6890         (struct target_ops) <to_filesystem_is_local>: Update comment.
6891         (struct target_ops) <to_fileio_open>: New argument inf.
6892         Update comment.  All implementations updated.
6893         (struct target_ops) <to_fileio_unlink>: Likewise.
6894         (struct target_ops) <to_fileio_readlink>: Likewise.
6895         (target_filesystem_is_local): Update comment.
6896         (target_fileio_open): New argument inf.  Update comment.
6897         (target_fileio_unlink): Likewise.
6898         (target_fileio_readlink): Likewise.
6899         (target_fileio_read_alloc): Likewise.
6900         (target_fileio_read_stralloc): Likewise.
6901         * target.c (target_fileio_open): New argument inf.
6902         Pass inf to implementation.  Update debug printing.
6903         (target_fileio_unlink): Likewise.
6904         (target_fileio_readlink): Likewise.
6905         (target_fileio_read_alloc_1): New argument inf. Pass inf
6906         to target_fileio_open.
6907         (target_fileio_read_alloc): New argument inf. Pass inf to
6908         target_fileio_read_alloc_1.
6909         (target_fileio_read_stralloc): Likewise.
6910         * gdb_bfd.c (inferior.h): New include.
6911         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6912         argument with new argument "inferior".  Pass inferior to
6913         target_fileio_open.
6914         (gdb_bfd_open): Supply inferior argument to
6915         gdb_bfd_iovec_fileio_open.
6916         * linux-tdep.c (linux_info_proc): Supply inf argument to
6917         relevant target_fileio calls.
6918         (linux_find_memory_regions_full): Likewise.
6919         (linux_fill_prpsinfo): Likewise.
6920         * remote.c (remote_filesystem_is_local): Supply inf
6921         argument to remote_hostio_open.
6922         (remote_file_put): Likewise.
6923         (remote_file_get): Likewise.
6924         (remote_file_delete): Supply inf argument to
6925         remote_hostio_unlink.
6926
6927 2015-06-10  Gary Benson <gbenson@redhat.com>
6928
6929         * inf-child.c (inf_child_fileio_open): Replace comment.
6930         (inf_child_fileio_pwrite): Likewise.
6931         (inf_child_fileio_pread): Likewise.
6932         (inf_child_fileio_fstat): Insert blank line before comment.
6933         (inf_child_fileio_close): Replace comment.
6934         (inf_child_fileio_unlink): Likewise.
6935         (inf_child_fileio_readlink): Likewise.
6936         * remote.c (remote_hostio_open): Likewise.
6937         (remote_hostio_pread): Likewise.
6938         (remote_hostio_pwrite): Likewise.
6939         (remote_hostio_close): Likewise.
6940         (remote_hostio_unlink): Likewise.
6941         (remote_hostio_readlink): Likewise.
6942         (remote_hostio_fstat): Likewise.
6943         (remote_filesystem_is_local): Likewise.
6944         * target.c (target_fileio_open): Likewise.
6945         (target_fileio_pwrite): Likewise.
6946         (target_fileio_pread): Likewise.
6947         (target_fileio_fstat): Insert blank line before comment.
6948         (target_fileio_close): Replace comment.
6949         (target_fileio_unlink): Likewise.
6950         (target_fileio_readlink): Likewise.
6951         (target_fileio_read_alloc): Likewise.
6952         (target_fileio_read_stralloc): Likewise.
6953
6954 2015-06-10  Gary Benson <gbenson@redhat.com>
6955
6956         * linux-thread-db.c (nat/linux-namespaces.h): New include.
6957         (check_pid_namespace_match): Use linux_ns_same rather than
6958         linux_proc_pid_get_ns to spot PID namespace mismatches.
6959         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6960         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6961
6962 2015-06-10  Gary Benson <gbenson@redhat.com>
6963
6964         * configure.ac (AC_CHECK_FUNCS): Add setns.
6965         * config.in: Regenerate.
6966         * configure: Likewise.
6967         * nat/linux-namespaces.h: New file.
6968         * nat/linux-namespaces.c: Likewise.
6969         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6970         (linux-namespaces.o): New rule.
6971         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6972         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6973         * config/arm/linux.mh (NATDEPFILES): Likewise.
6974         * config/i386/linux.mh (NATDEPFILES): Likewise.
6975         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6976         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6977         * config/m32r/linux.mh (NATDEPFILES): Likewise.
6978         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6979         * config/mips/linux.mh (NATDEPFILES): Likewise.
6980         * config/pa/linux.mh (NATDEPFILES): Likewise.
6981         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6982         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6983         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6984         * config/s390/linux.mh (NATDEPFILES): Likewise.
6985         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6986         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6987         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6988         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6989
6990 2015-06-10  Gary Benson <gbenson@redhat.com>
6991
6992         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6993         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6994         (make_cleanup_close): Likewise.
6995         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6996         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6997         (make_cleanup_close): Likewise.
6998
6999 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7000
7001         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7002         from SuspendThread().
7003
7004 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7005
7006         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7007         from OutputDebugString.
7008
7009 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7010                         Mircea Gherzan  <mircea.gherzan@intel.com>
7011
7012         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7013         MPX_BT_MASK_32): New macros.
7014         (i386_mpx_set_bounds): New function that implements
7015         the command "set-mpx-bound".
7016         (i386_mpx_enabled): Helper function to test MPX availability.
7017         (i386_mpx_bd_base): Helper function to calculate the base directory
7018         address.
7019         (i386_mpx_get_bt_entry): Helper function to access a bound
7020         table entry.
7021         (i386_mpx_print_bounds): Effectively display bound information.
7022         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7023         "show mpx".
7024         (_initialize_i386_tdep):
7025         Add "bound" to the commands "show mpx" and "set mpx" commands.
7026         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7027         and "show mpx" commands.
7028         * NEWS: List new commands for MPX support.
7029
7030 2015-06-09  Gary Benson <gbenson@redhat.com>
7031
7032         * common/fileio.h (fileio_to_host_mode): New declaration.
7033         * common/fileio.c (fileio_to_host_mode): New Function.
7034         * inf-child.c (inf_child_fileio_open): Process mode argument
7035         with fileio_to_host_mode.
7036
7037 2015-06-09  Gary Benson <gbenson@redhat.com>
7038
7039         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7040         conditional.
7041
7042 2015-06-05  Gary Benson <gbenson@redhat.com>
7043
7044         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7045         * remote.c (remote_filesystem_is_local): ...here.
7046
7047 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7048
7049         * gdbarch.c: Regenerate it.
7050
7051 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7052
7053         * arch-utils.c (default_infcall_munmap): New.
7054         * arch-utils.h (default_infcall_munmap): New declaration.
7055         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7056         (munmap_list_free, munmap_listp_free_cleanup): New.
7057         (struct setup_sections_data): Add field munmap_list_headp.
7058         (setup_sections): Call munmap_list_add.
7059         (compile_object_load): New variable munmap_list_head, initialize
7060         setup_sections_data.munmap_list_headp, return munmap_list_head.
7061         * compile/compile-object-load.h (struct munmap_list): New declaration.
7062         (struct compile_module): Add field munmap_list_head.
7063         (munmap_list_free): New declaration.
7064         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7065         munmap_list_head.
7066         (do_module_cleanup): Call munmap_list_free.
7067         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7068         * gdbarch.c: Regenerate.
7069         * gdbarch.h: Regenerate.
7070         * gdbarch.sh (infcall_munmap): New.
7071         * linux-tdep.c (linux_infcall_munmap): New.
7072         (linux_init_abi): Install it.
7073
7074 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7075
7076         PR gdb/15564
7077         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7078
7079 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7080
7081         * i386-linux-nat.c: Include linux-nat.h.
7082
7083 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7084             Jan Kratochvil  <jan.kratochvil@redhat.com>
7085
7086         PR symtab/18392
7087         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7088         assertion.
7089         * dwarf2loc.c (chain_candidate): Likewise.
7090
7091 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7092
7093         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7094         (store_vfp_regs): Use PTRACE_SETREGSET.
7095
7096 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7097
7098         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7099         (fetch_fpregs): Likewise.
7100         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7101         (store_fpregs): Likewise.
7102
7103 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7104
7105         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7106         (fetch_regs): Likewise.
7107         (store_regs): Use PTRACE_SETREGSET.
7108         (store_register): Likewise.
7109
7110 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7111
7112         * arm-linux-nat.c (arm_linux_read_description): Check whether
7113         kernel supports PTRACE_GETREGSET.
7114
7115 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7116
7117         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7118         * linux-nat.c: ... here.
7119         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7120         to ...
7121         * linux-nat.h: ... here.
7122
7123 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7124
7125         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7126         * i386-linux-nat.c: Likewise.
7127         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7128         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7129         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7130         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7131         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7132
7133 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7134
7135         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7136         compatible to what read_child and write_child return.  This
7137         unbreaks that DJGPP build of GDB which was broken since v7.7.
7138
7139 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7140
7141         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7142
7143 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7144
7145         PR gdb/18464
7146         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7147         rather than internal_error for an unrecognized value.
7148
7149 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7150
7151         * xtensa-tdep.c (xtensa_pseudo_register_read)
7152         (xtensa_pseudo_register_write): Don't alias last pseudo register
7153         to a1.
7154
7155 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7156
7157         * infrun.c (follow_fork_inferior): Ensure the use of
7158         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7159         messages.
7160
7161 2015-05-28  Doug Evans  <dje@google.com>
7162
7163         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7164
7165 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7166
7167         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7168         (arm_linux_fetch_inferior_registers): Use
7169         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7170         (arm_linux_store_inferior_registers): Likewise.
7171         (arm_linux_read_description): Don't set
7172         arm_linux_has_wmmx_registers.
7173         * arm-tdep.c (arm_gdbarch_init): Set
7174         tdep->have_wmmx_registers according target descriptions.
7175         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7176         field.
7177
7178 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7179
7180         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7181         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7182         instead of arm_linux_vfp_register_count.
7183         (store_vfp_regs): Likewise.
7184         (arm_linux_fetch_inferior_registers): Likewise.
7185         (arm_linux_store_inferior_registers): Likewise.
7186         (arm_linux_read_description): Don't set
7187         arm_linux_vfp_register_count.
7188         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7189         Adjust.
7190         * arm-tdep.c (arm_gdbarch_init): Add assert on
7191         vfp_register_count.
7192         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7193         field to vfp_register_count.  All users updated.
7194
7195 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7196
7197         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7198         ELFOSABI_GNU binaries.
7199
7200 2015-05-27  Doug Evans  <dje@google.com>
7201
7202         * dwarf2read.c (lnp_state_machine): New typedef.
7203         (lnp_reader_state): New typedef.
7204         (dwarf_record_line_1): Renamed from dwarf_record_line.
7205         All callers updated.
7206         (dwarf_record_line): New function.
7207         (init_lnp_state_machine): New function.
7208         (check_line_address): Replace p_record_line parameter with state.
7209         All callers updated.
7210         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7211         Update to record state in lnp_state_machine.
7212
7213 2015-05-27  Doug Evans  <dje@google.com>
7214
7215         * dwarf2read.c (record_line_ftype): New typedef.
7216         (check_line_address): New function.
7217         (dwarf_decode_lines_1): Call it.
7218
7219 2015-05-27  Doug Evans  <dje@google.com>
7220
7221         * NEWS: Mention "set debug dwarf-line".
7222         * dwarf2read.c (dwarf_line_debug): New static global.
7223         (add_include_dir): Add debug dwarf-line support.
7224         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7225         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7226
7227 2015-05-27  Doug Evans  <dje@google.com>
7228
7229         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7230         All callers updated.
7231         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7232         * cp-support.h (cp_lookup_nested_symbol): Update.
7233
7234 2015-05-27  Doug Evans  <dje@google.com>
7235
7236         PR symtab/18258
7237         * block.c (block_find_symbol): New function.
7238         (block_find_non_opaque_type): Ditto.
7239         (block_find_non_opaque_type_preferred): Ditto.
7240         * block.h (block_symbol_matcher_ftype): New typedef.
7241         (block_find_symbol): Declare.
7242         (block_find_non_opaque_type): Ditto.
7243         (block_find_non_opaque_type_preferred): Ditto.
7244         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7245         * psymtab.c (psym_lookup_symbol): Ditto.
7246         * symtab.c (basic_lookup_transparent_type_1): New function.
7247         (basic_lookup_transparent_type): Call it.
7248
7249 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7250
7251         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7252         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7253
7254 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7255
7256         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7257         before operator &&.
7258         (aarch64_record_load_store): Likewise.
7259
7260 2015-05-26  Doug Evans  <dje@google.com>
7261
7262         PR c++/18141, c++/18417.
7263         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7264         a typedef.
7265
7266 2015-05-26  Doug Evans  <dje@google.com>
7267
7268         * NEWS: Add entries for command renamings.
7269         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7270         All uses updated.
7271         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7272         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7273         All uses updated.
7274         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7275         All callers updated.  Fix spelling of DWARF in help text.
7276         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7277         All uses updated.
7278         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7279         All uses updated.
7280         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7281         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7282         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7283         All uses updated.
7284         (show_dwarf_always_disassemble): Renamed from
7285         show_dwarf2_always_disassemble.  All callers updated.
7286         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7287         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7288         "set/show dwarf max-cache-age".  Rename
7289         "set/show dwarf2 always-disassemble" to
7290         "set/show dwarf always-disassemble".  Rename
7291         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7292         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7293
7294 2015-05-26  Doug Evans  <dje@google.com>
7295
7296         PR python/18438
7297         * python/py-lazy-string.c (stpy_convert_to_value): Use
7298         gdbpy_gdb_memory_error not PyExc_MemoryError.
7299         (gdbpy_create_lazy_string_object): Ditto.
7300
7301 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7302
7303         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7304
7305 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7306
7307         * tui/tui-regs.c (tui_reg_prev_command): New function.
7308         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7309         * reggroups.c (reggroup_prev): New function.
7310         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7311
7312 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7313             Yao Qi  <yao.qi@linaro.org>
7314
7315         * aarch64-linux-tdep.c: Include linux-record.h and
7316         record-full.h.
7317         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7318         (aarch64_syscall): New enum.
7319         (aarch64_canonicalize_syscall): New function.
7320         (aarch64_all_but_pc_registers_record): New function.
7321         (aarch64_linux_syscall_record): New function.
7322         (aarch64_linux_init_abi): Install AArch64 process record
7323         handler.  Update to handle syscall recording.
7324         * aarch64-tdep.c: Include record.h and record-full.h.
7325         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7326         (struct aarch64_mem_r): Define.
7327         (aarch64_record_result): New enum.
7328         (struct insn_decode_record): Define.
7329         (insn_decode_record): New typedef.
7330         (aarch64_record_data_proc_reg): New function.
7331         (aarch64_record_data_proc_imm): New function.
7332         (aarch64_record_branch_except_sys): New function.
7333         (aarch64_record_load_store): New function.
7334         (aarch64_record_data_proc_simd_fp): New function.
7335         (aarch64_record_asimd_load_store): New function.
7336         (aarch64_record_decode_insn_handler): New function.
7337         (deallocate_reg_mem): New function.
7338         (aarch64_process_record): New function.
7339         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7340         New field.
7341         (aarch64_process_record): New extern declaration.
7342         * configure.tgt: Add linux-record.o to gdb_target_obs.
7343         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7344
7345 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7346
7347         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7348         targets.
7349
7350 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7351
7352         * amd64-tdep.c: Replace in_function_epilogue_p with
7353         stack_frame_destroyed_p throughout.
7354         * arch-utils.c: Ditto.
7355         * arch-utils.h: Ditto.
7356         * arm-tdep.c: Ditto.
7357         * breakpoint.c: Ditto.
7358         * gdbarch.sh: Ditto.
7359         * hppa-tdep.c: Ditto.
7360         * i386-tdep.c: Ditto.
7361         * mips-tdep.c: Ditto.
7362         * nios2-tdep.c: Ditto.
7363         * rs6000-tdep.c: Ditto.
7364         * s390-linux-tdep.c: Ditto.
7365         * score-tdep.c: Ditto.
7366         * sh-tdep.c: Ditto.
7367         * sparc-tdep.c: Ditto.
7368         * sparc-tdep.h: Ditto.
7369         * sparc64-tdep.c: Ditto.
7370         * spu-tdep.c: Ditto.
7371         * tic6x-tdep.c: Ditto.
7372         * tilegx-tdep.c: Ditto.
7373         * xstormy16-tdep.c: Ditto.
7374         * gdbarch.c, gdbarch.h: Re-generated.
7375
7376 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7377
7378         * NEWS: Mention 'tui enable' and 'tui disable'.
7379         * tui/tui.c (tui_enable_command): New function.
7380         (tui_disable_command): New function.
7381         (_initialize_tui): New function.
7382
7383 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7384
7385         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7386
7387 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7388
7389         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7390         buf_ptr is freed.
7391
7392 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7393
7394         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7395         into ...
7396         (tui_set_layout_for_display_command): ...here, before calling
7397         tui_set_layout.  Only set the layout if gdb has not already
7398         entered the TUI_FAILURE state.
7399
7400 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7401
7402         * tui/tui-layout.c (layout_completer): New function.
7403         (_initialize_tui_layout): Set completer on layout command.
7404
7405 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7406
7407         * tui/tui-layout.c (tui_set_layout): Remove
7408         tui_register_display_type parameter.  Remove all checking of this
7409         parameter, and reindent function.  Update header comment.
7410         (tui_set_layout_for_display_command): Rename to...
7411         (tui_set_layout_by_name): ...this, and don't check for different
7412         register class types, don't pass a tui_register_display_type to
7413         tui_set_layout.  Update header comment.
7414         (layout_names): Remove register set specific names.
7415         * tui/tui-layout.h (tui_set_layout): Remove
7416         tui_register_display_type parameter.
7417         * tui/tui.c (tui_rl_change_windows): Don't pass a
7418         tui_register_display_type to tui_set_layout.
7419         (tui_rl_delete_other_windows): Likewise.
7420         (tui_enable): Likewise.
7421         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7422         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7423         (TUI_GENERAL_REGS_NAME): Remove.
7424         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7425         (TUI_SPECIAL_REGS_NAME): Remove.
7426         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7427         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7428         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7429         (enum tui_register_display_type): Remove.
7430         (struct tui_layout_def): Remove regs_display_type and
7431         float_regs_display_type fields.
7432         (struct tui_data_info): Remove regs_display_type field.
7433         (tui_layout_command): Use new name for
7434         tui_set_layout_for_display_command.
7435         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7436         (tui_clear_win_detail): Don't initialise removed fields of
7437         win_info.
7438         * tui/tui-regs.c (tui_show_registers): Use new name for
7439         tui_set_layout_for_display_command.
7440         * tui/tui.h (tui_set_layout_for_display_command): Rename
7441         declaration to...
7442         (tui_set_layout_by_name): ...this.
7443         * printcmd.c (display_command): Remove tui related layout call,
7444         and reindent.
7445
7446 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7447
7448         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7449         (handle_inferior_event): New function.
7450
7451 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7452
7453         * ada-lang.c (to_fixed_array_type): Rename local variable
7454         typename into type_name.
7455
7456 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7457
7458         Fix ASAN crash for gdb.compile/compile.exp.
7459         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7460
7461 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7462
7463         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7464         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7465         * compile/compile-object-load.c (setup_sections, compile_object_load):
7466         Likewise.
7467         * compile/compile.c (compile_to_object): Likewise.
7468
7469 2015-05-16  Doug Evans  <xdje42@gmail.com>
7470
7471         * NEWS: Mention support for unbuffered Guile memory ports.
7472         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7473         (ioscm_lseek_address): Improve overflow calculation.
7474         (gdbscm_memory_port_fill_input): Add assert.
7475         (gdbscm_memory_port_write): Handle unbuffered ports.
7476         Handle large writes identical to Guile's fport_write.
7477         (gdbscm_memory_port_seek): Fix seeking past end check.
7478         (gdbscm_memory_port_close): Handle closing unbuffered port.
7479         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7480         (ioscm_init_memory_port): Handle unbuffered ports.
7481         (ioscm_reinit_memory_port): Ditto.
7482         (ioscm_init_memory_port): Update size calculation.
7483         (gdbscm_open_memory): Support zero sized ports.
7484
7485 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7486
7487         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7488         variable compiler warnings.
7489
7490 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7491
7492         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7493
7494 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7495             Phil Muldoon  <pmuldoon@redhat.com>
7496
7497         * NEWS (Changes since GDB 7.9): Add compile print.
7498         * compile/compile-c-support.c (add_code_header, add_code_footer)
7499         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7500         COMPILE_I_PRINT_VALUE_SCOPE.
7501         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7502         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7503         New.
7504         * compile/compile-object-load.c: Include block.h.
7505         (get_out_value_type): New function.
7506         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7507         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7508         OUT_VALUE_TYPE.
7509         * compile/compile-object-load.h (struct compile_module): Add fields
7510         out_value_addr and out_value_type.
7511         * compile/compile-object-run.c: Include valprint.h and compile.h.
7512         (struct do_module_cleanup): Add fields out_value_addr and
7513         out_value_type.
7514         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7515         COMPILE_I_PRINT_VALUE_SCOPE.
7516         (compile_object_run): Propagate out_value_addr and out_value_type.
7517         Pass OUT_VALUE_ADDR.
7518         * compile/compile.c: Include valprint.h.
7519         (compile_print_value, compile_print_command): New functions.
7520         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7521         (_initialize_compile): Update compile code help text.  Install
7522         compile_print_command.
7523         * compile/compile.h (compile_print_value): New prototype.
7524         * defs.h (enum compile_i_scope_types): Add
7525         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7526
7527 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7528
7529         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7530         Rely on its parameter count.
7531         (compile_object_load): Replace lookup_minimal_symbol_text by
7532         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7533         return value.
7534         * compile/compile-object-load.h (struct compile_module): Replace
7535         func_addr by func_sym.
7536         * compile/compile-object-run.c: Include block.h.
7537         (compile_object_run): Reset module variable after it is freed.  Use
7538         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7539
7540 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7541
7542         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7543         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7544         (c_compute_program): Call generate_register_struct after typedefs.
7545         * compile/compile-loc2c.c (push, pushf_register_address)
7546         (pushf_register): Cast to GCC_UINTPTR.
7547         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7548         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7549         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7550         * compile/compile.c (_initialize_compile): Enable warnings for
7551         COMPILE_ARGS.
7552
7553 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7554
7555         * cli/cli-script.c (execute_control_command): Update
7556         eval_compile_command caller.
7557         * compile/compile-object-load.c (compile_object_load): Add parameters
7558         scope and scope_data.  Set them.
7559         * compile/compile-object-load.h (struct compile_module): Add fields
7560         scope and scope_data.
7561         (compile_object_load): Add parameters scope and scope_data.
7562         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7563         scope and scope_data.
7564         (compile_object_run): Propagate the fields scope and scope_data.
7565         * compile/compile.c (compile_file_command, compile_code_command):
7566         Update eval_compile_command callers.
7567         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7568         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7569         * defs.h (struct command_line): Add field scope_data.
7570
7571 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7572
7573         * printcmd.c (struct format_data): Move it to valprint.h.
7574         (print_command_parse_format, print_value): New functions from ...
7575         (print_command_1): ... here.  Call them.
7576         * valprint.h (struct format_data): Move it here from printcmd.c.
7577         (print_command_parse_format, print_value): New declarations.
7578
7579 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7580
7581         * compile/compile-object-load.c (compile_object_load): Add
7582         COMPILE_DEBUG message.
7583
7584 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7585
7586         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7587         index to get element instead of enum value.
7588         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7589         of index to compute length, but enum values to compute bounds.
7590         (ada_array_length): Use enum position of index instead of enum value.
7591         (pos_atr): Move position computation to...
7592         (ada_evaluate_subexp): Use enum values to compute bounds.
7593         * gdbtypes.c (discrete_position): ...this new function.
7594         * gdbtypes.h (discrete_position): New function declaration.
7595         * valprint.c (val_print_array_elements): Call discrete_position
7596         to handle array indexed by non-contiguous enumeration types.
7597
7598 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7599
7600         * ada-lang.c (find_parallel_type_by_descriptive_type):
7601         Go through typedefs during lookup.
7602         (to_fixed_array_type): Add support for non-bit packed arrays
7603         as variable-length fields.
7604
7605 2015-05-15  Pedro Alves  <palves@redhat.com>
7606             Simon Marchi  <simon.marchi@ericsson.com>
7607
7608         * event-loop.c (gdb_notifier) <next_file_handler,
7609         next_poll_fds_index>: New fields.
7610         (get_next_file_handler_to_handle_and_advance): New function.
7611         (delete_file_handler): If deleting the next file handler to
7612         handle, advance to the next file handler.
7613         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7614         handlers in round-robin fashion.
7615
7616 2015-05-15  Pedro Alves  <palves@redhat.com>
7617
7618         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7619         'private' to 'priv'.
7620
7621 2015-05-15  Pedro Alves  <palves@redhat.com>
7622
7623         * nat/linux-nat.h: Include "target/waitstatus.h".
7624
7625 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7626
7627         * python/py-unwind.c (struct reg_info): Move out of ...
7628         (struct cached_frame_info): ... this scope.
7629         (pending_frame_object_type, unwind_info_object_type): Make extern.
7630
7631 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7632
7633         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7634         accumSize is never negative.
7635
7636 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7637
7638         * tui/tui-command.c: Remove include of <ctype.h>.
7639         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7640
7641 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7642
7643         * dwarf2read.c (die_needs_namespace): Return 1 for
7644         DW_TAG_inlined_subroutine.
7645
7646 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7647
7648         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7649         (regcache_cpy_no_passthrough): Make it static, add function comment.
7650         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7651         (regcache_cpy_no_passthrough): Remove declaration.
7652
7653 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7654
7655         * gdbthread.h (struct thread_control_state): Update comment for
7656         proceed_to_finish.
7657         * infcall.c (run_inferior_call): Update comment about
7658         proceed_to_finish.
7659         * infcmd.c (get_return_value): Update comment about stop_registers.
7660         (finish_forward): Update comment about proceed_to_finish.
7661         * infrun.c (stop_registers): Remove.
7662         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7663         * infrun.h (stop_registers): Remove.
7664
7665 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7666
7667         * infcall.c (struct dummy_frame_context_saver)
7668         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7669         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7670         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7671         New.
7672         (call_function_by_hand_dummy): Move discard_cleanups of
7673         inf_status_cleanup before dummy_frame_push.  Call
7674         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7675         Use dummy_frame_context_saver_get_regs instead of stop_registers.
7676         * infcall.h (struct dummy_frame_context_saver)
7677         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7678         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7679         New declarations.
7680         * infcmd.c: Include infcall.h.
7681         (get_return_value): Add parameter ctx_saver, use it instead of
7682         stop_registers.
7683         (print_return_value): Add parameter ctx_saver, pass it.
7684         (struct finish_command_continuation_args): Add field ctx_saver.
7685         (finish_command_continuation): Update print_return_value caller.
7686         (finish_command_continuation_free_arg): Free also ctx_saver.
7687         (finish_forward): Call dummy_frame_context_saver_setup.
7688         * inferior.h (struct dummy_frame_context_saver): New declaration.
7689         (get_return_value): Add parameter ctx_saver.
7690         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7691         get_return_value caller.
7692
7693 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7694
7695         * dummy-frame.c (struct dummy_frame_dtor_list): New.
7696         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7697         (remove_dummy_frame): Process dtor_list.
7698         (pop_dummy_frame): Process dtor_list.
7699         (register_dummy_frame_dtor): Maintain dtor_list.
7700         (find_dummy_frame_dtor): Handle dtor_list.
7701         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7702         Update comments.
7703
7704 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7705
7706         * compile/compile-object-run.c (do_module_cleanup): Add parameter
7707         registers_valid.
7708         (compile_object_run): Update do_module_cleanup caller.
7709         * dummy-frame.c: Include infcall.h.
7710         (struct dummy_frame): Update dtor comment.
7711         (remove_dummy_frame): Call dtor.
7712         (pop_dummy_frame): Update dtor caller.
7713         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7714         registers_valid.
7715
7716 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7717
7718         GDB 7.9.1 released.
7719
7720 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7721
7722         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
7723         Xmethods now being able to specify a result type to that new
7724         sectioin.
7725
7726 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7727
7728         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7729         first before resizing the window.
7730         * tui/tui.c (tui_enable): Likewise.
7731
7732 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7733
7734         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7735         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7736         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7737         dummy_dtor parameter.
7738         * infcall.h: Include dummy-frame.h.
7739         (call_function_by_hand_dummy_dtor_ftype): Remove.
7740         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7741         parameter.
7742
7743 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7744
7745         PR gdb/17820
7746         * top.c (history_size_setshow_var): Change type to signed.
7747         Initialize to -2.  Update documentation.
7748         (set_readline_history_size): Define.
7749         (set_history_size_command): Use it.  Remove logic for handling
7750         out-of-range sizes.
7751         (init_history): Use set_readline_history_size().  Test for a
7752         value of -2 instead of 0 when determining whether to set a
7753         default history size.
7754         (init_main): Decode the argument of the "size" command as a
7755         zuinteger_unlimited.
7756
7757 2015-05-12  Doug Evans  <dje@google.com>
7758
7759         * dwarf2read.c (struct file_entry): Tweak comments.
7760         (get_debug_line_section): Tweak comments.
7761
7762 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7763
7764         * NEWS: Announce fork support in the RSP and support
7765         for fork debugging in extended mode.
7766
7767 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7768
7769         * remote.c (remote_insert_fork_catchpoint): New function.
7770         (remote_remove_fork_catchpoint): New function.
7771         (remote_insert_vfork_catchpoint): New function.
7772         (remote_remove_vfork_catchpoint): New function.
7773         (pending_fork_parent_callback): New function.
7774         (remove_new_fork_child): New function.
7775         (remote_update_thread_list): Call remote_notif_get_pending_events
7776         and remove_new_fork_child.
7777         (extended_remote_kill): Kill fork child when killing the
7778         parent before follow_fork completes.
7779         (init_extended_remote_ops): Initialize target vector with
7780         new fork catchpoint functions.
7781
7782 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7783
7784         * remote.c (remove_vfork_event_p): New function.
7785         (remote_follow_fork): Add vfork event type to event checking.
7786         (remote_parse_stop_reply): New stop reasons "vfork" and
7787         "vforkdone" for RSP 'T' Stop Reply Packet.
7788
7789 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7790
7791         * linux-nat.c (linux_nat_ptrace_options): New function.
7792         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7793         Call linux_nat_ptrace_options and use different argument to
7794         linux_enable_event_reporting.
7795         (_initialize_linux_nat): Delete call to
7796         linux_ptrace_set_additional_flags.
7797         * nat/linux-ptrace.c (current_ptrace_options): Rename to
7798         supported_ptrace_options.
7799         (additional_flags): Delete variable.
7800         (linux_check_ptrace_features): Use supported_ptrace_options.
7801         (linux_test_for_tracesysgood, linux_test_for_tracefork):
7802         Likewise, and remove additional_flags check.
7803         (linux_enable_event_reporting): Change 'attached' argument to
7804         'options'.  Use supported_ptrace_options.
7805         (ptrace_supports_feature): Change comment.  Use
7806         supported_ptrace_options.
7807         (linux_ptrace_set_additional_flags): Delete function.
7808         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7809         Delete function prototype.
7810         * remote.c (remote_fork_event_p): New function.
7811         (remote_detach_pid): New function.
7812         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7813         if doing detach-on-fork.
7814         (remote_follow_fork): New function.
7815         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7816         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7817         (init_extended_remote_ops): Initialize to_follow_fork.
7818
7819 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7820
7821         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7822         from static to extern.
7823         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7824         * remote.c (anonymous enum): <PACKET_fork_event_feature,
7825         * PACKET_vfork_event_feature>: New enumeration constants.
7826         (remote_protocol_features): Add table entries for new packets.
7827         (remote_query_supported): Add new feature queries to qSupported
7828         packet.
7829
7830 2015-05-12  Gary Benson <gbenson@redhat.com>
7831
7832         * remote.c (remote_add_inferior): Call exec_file_locate_attach
7833         for fake PIDs as well as real ones.
7834         (remote_pid_to_exec_file): Send empty annex if PID is fake.
7835
7836 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
7837
7838         * NEWS (Python Scripting): Mention the new gdb.Value methods.
7839         * python/py-value.c (valpy_reference_value): New function.
7840         (valpy_const_value): Likewise.
7841         (value_object_methods): Add new methods.
7842         * value.c (make_cv_value): New function.
7843         * value.h (make_cv_value): Declare.
7844
7845 2015-05-08  Yao Qi  <yao@codesourcery.com>
7846             Sandra Loosemore  <sandra@codesourcery.com>
7847
7848         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7849         to 'lh->include_dirs' before accessing to it.
7850         (psymtab_include_file_name): Likewise.
7851         (dwarf_decode_lines_1): Likewise.
7852         (dwarf_decode_lines): Likewise.
7853         (file_file_name): Likewise.
7854
7855 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7856
7857         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7858         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7859         (nios2_linux_rt_sigreturn_init): Adjust base address of
7860         register save area.
7861
7862 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7863
7864         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7865         "trap 31" as the breakpoint instruction on all targets.
7866
7867 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7868
7869         * infcmd.c (print_return_value): Remove unused declaration.
7870
7871 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7872
7873         * dwarf2read.c (attr_to_dynamic_prop)
7874         <DW_AT_data_member_location>: Use read_type_die isntead of
7875         get_die_type.
7876
7877 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7878
7879         * ada-lang.c (ada_convert_actual): Add handling of formals
7880         passed inside an aligner type.
7881
7882 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7883
7884         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7885
7886 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
7887
7888         PR python/18291
7889         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7890         Print xmethod matcher status.
7891
7892 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7893
7894         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7895         register in the regcache when treating the PSWM register, and vice
7896         versa.
7897
7898 2015-05-07  Gary Benson <gbenson@redhat.com>
7899
7900         * linux-thread-db.c (struct thread_db_info)
7901         <td_ta_map_id2thr_p>: Remove field.
7902         (try_thread_db_load_1): Remove initialization for the above.
7903
7904 2015-05-07  Gary Benson <gbenson@redhat.com>
7905
7906         * linux-thread-db.c (struct thread_db_info)
7907         <td_thr_validate_p>: Remove field.
7908         (try_thread_db_load_1): Remove initialization for the above.
7909
7910 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7911
7912         * compile/compile-object-load.c (compile_object_load): Support
7913         mst_text_gnu_ifunc.
7914
7915 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7916
7917         * compile/compile.c (compile_to_object): Make the cmd_string parameter
7918         const.  Use new variables for the const compatibility.
7919         (eval_compile_command): Make the cmd_string parameter const.
7920         * compile/compile.h (eval_compile_command): Make the cmd_string
7921         parameter const.
7922
7923 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7924
7925         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
7926         comment.
7927         * top.c (deprecated_init_ui_hook): Delete.
7928         (gdb_init): Remove handling of deprecated_init_ui_hook.
7929         * interps.c (clear_interpreter_hooks): Remove handling of
7930         deprecated_init_ui_hook.
7931         * main.c (captured_main): Update comment.
7932
7933 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7934
7935         * solib.c (_initialize_solib): Add "info dll" alias creation.
7936         * windows-nat.c (set_windows_aliases): Delete.
7937         (_initialize_windows_nat): Remove deprecated_init_ui_hook
7938         assignment.
7939         * NEWS: Add news entry about "info dll" now being available
7940         on all platforms.
7941
7942 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7943
7944         * ada-lang.c (value_assign_to_component): Reformat and improve
7945         documentation. Remove all trailing spaces.
7946
7947 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7948
7949         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7950         Stop counting inlined frames as soon as an out-of-line function
7951         is found.
7952
7953 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
7954
7955         * dwarf2read.c (inherit_abstract_dies): Skip
7956         DW_TAG_GNU_call_site dies while inheriting children of an
7957         abstract DIE into a scope.
7958         (read_lexical_block_scope): Inherit abstract DIE's for
7959         lexical scopes.
7960
7961 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7962
7963         * ada-valprint.c (val_print_packed_array_elements): Delete
7964         variable "len".  Add a type-length check when comparing two
7965         consecutive elements of the array.  Use the element's actual
7966         length in call to value_contents_eq.
7967         * ada-lang.c (ada_value_primitive_packed_val): Always return
7968         a value whose type has been resolved.
7969
7970 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7971
7972         * ada-lang.c (ada_value_primitive_packed_val): Recompute
7973         BIT_SIZE and LEN if the size of the resolved type is smaller
7974         than BIT_SIZE * HOST_CHAR_BIT.
7975
7976 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7977
7978         * ada-lang.c (ada_value_primitive_packed_val): Use a more
7979         correct address in call to value_at.  Adjust call to
7980         value_address accordingly.
7981
7982 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7983
7984         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7985         to print it.
7986
7987 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7988
7989         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7990         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7991         pinfo->valaddr.
7992         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7993         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7994         (resolve_dynamic_type_internal): Set pinfo.valaddr.
7995         Add handling of addr_stack->valaddr.
7996         (resolve_dynamic_type): Add "valaddr" parameter.
7997         Set pinfo.valaddr field.
7998         * ada-lang.c (ada_discrete_type_high_bound): Update call to
7999         resolve_dynamic_type.
8000         (ada_discrete_type_low_bound): Likewise.
8001         * findvar.c (default_read_var_value): Likewise.
8002         * value.c (value_from_contents_and_address): Likewise.
8003
8004 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8005
8006         * gdbtypes.c (resolve_dynamic_array): Use
8007         create_array_type_with_stride instead of create_array_type.
8008
8009 2015-04-30  DJ Delorie  <dj@redhat.com>
8010
8011         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8012         rl78_decode_opcode
8013
8014 2015-04-29  Doug Evans  <dje@google.com>
8015
8016         PR python/18285
8017         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8018         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8019         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8020         * extension-priv.h (struct extension_language_ops)
8021         <get_xmethod_result_type>: New member.
8022         * extension.c (get_xmethod_result_type): New function.
8023         * extension.h (get_xmethod_result_type): Declare.
8024         * python/py-xmethods.c (get_result_type_method_name): New static
8025         global.
8026         (py_get_result_type_method_name): Ditto.
8027         (gdbpy_get_xmethod_result_type): New function.
8028         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8029         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8030         * python/python.c (python_extension_ops): Add
8031         gdbpy_get_xmethod_result_type.
8032         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8033         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8034         xmethods.
8035         (value_x_unop): Ditto.
8036         * value.c (result_type_of_xmethod): New function.
8037         * value.h (result_type_of_xmethod): Declare.
8038
8039 2015-04-29  Gary Benson <gbenson@redhat.com>
8040
8041         * solib.c (solib_find_1): Allow fd argument to be NULL.
8042         (exec_file_find): Update comment.
8043         (solib_find): Likewise.
8044         * exec.c (exec_file_locate_attach): Use NULL as fd
8045         argument to exec_file_find to avoid having to close
8046         the opened file.
8047         * infrun.c (follow_exec): Likewise.
8048
8049 2015-04-28  Doug Evans  <dje@google.com>
8050
8051         PR python/18299
8052         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8053         name or __name__ attributes.  Handle gdb module as first argument.
8054
8055 2015-04-28  Doug Evans  <dje@google.com>
8056
8057         PR python/18089
8058         * python/py-prettyprint.c (print_children): Verify result of children
8059         iterator.  Provide better error message.
8060         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8061         * python/python.c (gdbpy_print_python_errors_p): New function.
8062
8063 2015-04-28  Doug Evans  <dje@google.com>
8064
8065         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8066
8067 2015-04-28  Sasha Smundak  <asmundak@google.com>
8068
8069         * NEWS: Mention gdb.Type.optimized_out method.
8070         * python/py-type.c (typy_optimized_out):  New function.
8071
8072 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8073
8074         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8075
8076 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8077
8078         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8079         (initialize_utils): Move call of init_page_info() to ...
8080         * top.c (gdb_init): ... here.
8081
8082 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8083
8084         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8085         (tui_sigwinch_handler): Still update our idea of
8086         the terminal's width and height even when TUI is not active.
8087
8088 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8089
8090         * utils.h (set_screen_width_and_height): Declare.
8091         * utils.c (set_screen_width_and_height): Define.
8092         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8093
8094 2015-04-28  Gary Benson <gbenson@redhat.com>
8095
8096         * infrun.c (solist.h): New include.
8097         (follow_exec): Use exec_file_find to prefix execd_pathname
8098         with gdb_sysroot.
8099
8100 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8101
8102         * tui/tui-source.c (tui_set_source_content): Avoid calling
8103         strcpy() when offset is 0.
8104
8105 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8106
8107         PR gdb/18155
8108         * tui/tui-data.c (tui_free_window): Don't free the locator
8109         window when passed an SRC_WIN or a DISASSEM_WIN.
8110
8111 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8112
8113         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8114         (tui_win_content): Move declaration.
8115         (struct tui_gen_win_info): Give 'content' field the
8116         type tui_win_content.
8117         * tui/tui-data.c (init_content_element): Remove redundant and
8118         erroneous casts.
8119         (tui_add_content_elements): Remove erroneous cast.
8120         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8121         casts.
8122         (tui_get_begin_asm_address): Likewise.
8123         * tui/tui-regs.c (tui_show_registers): Likewise.
8124         (tui_show_register_group): Likewise.
8125         (tui_display_registers_from): Likewise.
8126         (tui_check_register_values): Likewise.
8127         * tui/tui-source.c (tui_set_source_content): Likewise.
8128         (tui_set_source_content_nil): Likewise.
8129         (tui_source_is_displayed): Likewise.
8130         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8131         (tui_set_locator_fullname): Likewise.
8132         (tui_set_locator_info): Likewise.
8133         (tui_show_frame_info): Likewise.
8134         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8135         (tui_show_source_line): Likewise.
8136         (tui_horizontal_source_scroll): Likewise.
8137         (tui_update_breakpoint_info): Likewise.
8138         (tui_set_exec_info_content): Likewise.
8139         (tui_show_exec_info_content): Likewise.
8140         (tui_alloc_source_buffer): Likewise.
8141         (tui_line_is_displayed): Likewise.
8142         (tui_addr_is_displayed): Likewise.
8143
8144 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8145
8146         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8147         event if PL_FLAG_EXEC is set.
8148         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8149         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8150         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8151         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8152         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8153
8154 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8155
8156         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8157         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8158         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8159         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8160         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8161         [PT_LWPINFO] (fbsd_wait): New function.
8162         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8163         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8164         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8165         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8166         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8167         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8168         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8169         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8170         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8171         "fbsd_wait".
8172         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8173         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8174         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8175         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8176         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8177         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8178         Set "to_post_attach" to "fbsd_post_attach".
8179
8180 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8181
8182         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8183         (fbsd_find_memory_regions): Mark static.
8184         (fbsd_nat_add_target): New function.
8185         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8186         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8187         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8188         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8189         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8190         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8191
8192 2015-04-27  Gary Benson <gbenson@redhat.com>
8193
8194         * objfiles.c (allocate_objfile): Do not attempt to expand name
8195         if name is a "target:" filename.
8196         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8197         to load auto-load scripts for objfiles with "target:" filenames.
8198
8199 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8200
8201         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8202         (enum s390_vector_abi_kind): New enum.
8203         (struct gdbarch_tdep)<vector_abi>: New field.
8204         (s390_effective_inner_type): Add parameter min_size.  Stop
8205         unwrapping if the inner type is smaller than min_size.
8206         (s390_function_arg_float): Adjust call to
8207         s390_effective_inner_type.
8208         (s390_function_arg_vector): New function.
8209         (s390_function_arg_integer): Adjust comment.
8210         (struct s390_arg_state)<vr>: New field.
8211         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8212         arguments according to vector ABI when appropriate.
8213         (s390_push_dummy_call): Initialize the argument state's field
8214         'vr'.  Adjust calls to s390_handle_arg.
8215         (s390_register_return_value): Handle vector return values.
8216         (s390_return_value): Apply the "register" return value convention
8217         to a vector when appropriate.
8218         (s390_gdbarch_init): Initialize tdep->vector_abi.
8219         * NEWS: Announce S390 vector ABI support.
8220
8221 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8222
8223         * s390-linux-tdep.c (s390_return_value_convention): Remove
8224         function.  Inline its logic...
8225         (s390_return_value): ...here.  Instead, move the handling of the
8226         "register" return value convention...
8227         (s390_register_return_value): ...here.  New function.
8228
8229 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8230
8231         * s390-linux-tdep.c
8232         (is_float_singleton): Remove function.  Move the "singleton" part
8233         of the logic...
8234         (s390_effective_inner_type): ...here.  New function.
8235         (is_float_like): Remove function.  Inline its logic...
8236         (s390_function_arg_float): ...here.
8237         (is_pointer_like, is_integer_like, is_struct_like): Remove
8238         functions.  Inline their logic...
8239         (s390_function_arg_integer): ...here.
8240         (s390_function_arg_pass_by_reference): Remove function.
8241         (extend_simple_arg): Remove function.
8242         (alignment_of): Remove function.
8243         (struct s390_arg_state): New structure.
8244         (s390_handle_arg): New function.
8245         (s390_push_dummy_call): Move parameter placement logic to the new
8246         function s390_handle_arg.  Call it for calculating the stack area
8247         sizes first, and again for actually writing the parameters.
8248
8249 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8250
8251         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8252           false if the argument is zero.
8253
8254 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8255
8256         * ada-lang.c (template_to_static_fixed_type): Return input type
8257         when it is already fixed.  Cache the input type itself when not
8258         creating a static fixed copy.  Make it explicit that we never
8259         molestate the input type.
8260         * gdbtypes.c (resolve_dynamic_struct): Reset the
8261         TYPE_TARGET_TYPE field for resolved copies.
8262
8263 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8264
8265         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8266         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8267         (template_to_static_fixed_type): Call ada_check_typedef only
8268         when necessary.
8269
8270 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8271
8272         * cli/cli-dump.c (srec_dump_command): Add internationalization
8273         mark ups.
8274         (ihex_dump_command): Likewise.
8275         (tekhex_dump_command): Likewise.
8276         (binary_dump_command): Likewise.
8277         (binary_append_command): Likewise.
8278
8279 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8280
8281         * cli/cli-dump.c (verilog_cmdlist): New variable.
8282         (dump_verilog_memory): New function.
8283         (dump_verilog_value): New function.
8284         (verilog_dump_command): New function.
8285         (_initialize_cli_dump): Add new commands to support verilog dump
8286         format.
8287         * NEWS: Add entry for "dump verilog".
8288
8289 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8290
8291         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8292         descriptive type when there is none.
8293
8294 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8295
8296         * tui/tui-win.c (tui_async_resize_screen): Call
8297         rl_resize_terminal().
8298
8299 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8300
8301         * windows-nat.c (handle_output_debug_string): Don't change
8302         current_event.dwThreadId.
8303         (get_windows_debug_event): Use thread_id, rather than relying on
8304         current_event.dwThreadId being changed.
8305
8306 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8307
8308         * windows-nat.c (windows_continue): Report an error if
8309         ContinueDebugEvent() fails.
8310
8311 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8312
8313         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8314
8315 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8316
8317         * windows-nat.c (get_windows_debug_event): Replace retval with
8318         thread_id throughout.  Update stale comment.
8319
8320 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8321
8322         * windows-nat.c (get_windows_debug_event): Don't use ternary
8323         conditional operator.
8324
8325 2015-04-21  Pierre Muller  <muller@sourceware.org>
8326
8327         PR pascal/17815
8328         p-exp.y (yylex): Reorganize code to return the matched pattern
8329         for a field of this.
8330
8331 2015-04-21  Gary Benson <gbenson@redhat.com>
8332
8333         * common/fileio.h (fileio_to_host_openflags): New declaration.
8334         * common/fileio.c (fcntl.h): New include.
8335         (fileio_to_host_openflags): New function, factored out from...
8336         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8337         Single use updated.
8338
8339 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8340
8341         * rl78-tdep.c (RL78_SP_ADDR): Define.
8342         (opc_reg_to_gdb_regnum): New static function.
8343         (rl78_analyze_prologue): Recognize instructions forming slightly
8344         more interesting prologues.
8345
8346 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8347
8348         Revert:
8349         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8350         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8351         TYPE_CODE_REF types so that they are not considered as dynamic
8352         depending on the referenced type.
8353         (resolve_dynamic_type_internal): Likewise.
8354
8355 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8356
8357         Revert:
8358         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8359         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8360         "top_level" parameter.
8361         (resolve_dynamic_type_internal): Remove the unused "top_level"
8362         parameter.  Update call to is_dynamic_type_internal.
8363         (is_dynamic_type): Update call to is_dynamic_type_internal.
8364         (resolve_dynamic_range): Update call to
8365         resolve_dynamic_type_internal.
8366         (resolve_dynamic_union): Likewise.
8367         (resolve_dynamic_struct): Likewise.
8368         (resolve_dynamic_type): Likewise.
8369
8370 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8371
8372         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8373         xmalloc.
8374
8375 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8376
8377         * reply_mig_hack.awk: Robustify parsing.
8378
8379         * reply_mig_hack.awk: Don't bother to declare an intermediate
8380         function pointer variable.
8381
8382 2015-04-17  Doug Evans  <dje@google.com>
8383
8384         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8385         to "exec_displacement" to avoid confusion with inner use of the name.
8386
8387 2015-04-17  Pedro Alves  <palves@redhat.com>
8388
8389         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8390         if HW point of TYPE isn't supported.
8391
8392 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8393             Pedro Alves  <palves@redhat.com>
8394
8395         * target.h (target_can_use_hardware_watchpoint): Update comments.
8396         Remove trailing ";".
8397
8398 2015-04-17  Gary Benson <gbenson@redhat.com>
8399
8400         * remote.c (remote_add_inferior): New argument try_open_exec.
8401         If nonzero, attempt to open the inferior's executable file as
8402         the main executable if no main executable is open already.
8403         All callers updated.
8404         * NEWS: Mention that GDB now supports automatic location and
8405         retrieval of executable + files from remote targets.
8406
8407 2015-04-17  Gary Benson <gbenson@redhat.com>
8408
8409         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8410         * remote.c (PACKET_qXfer_exec_file): Likewise.
8411         (remote_protocol_features): Register the
8412         "qXfer:exec-file:read" feature.
8413         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8414         (remote_pid_to_exec_file): New function.
8415         (init_remote_ops): Initialize to_pid_to_exec_file.
8416         (_initialize_remote): Register new "set/show remote
8417         pid-to-exec-file-packet" command.
8418         * NEWS: Announce new qXfer:exec-file:read packet.
8419
8420 2015-04-17  Gary Benson <gbenson@redhat.com>
8421
8422         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8423         New declaration.
8424         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8425         New function, factored out from...
8426         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8427
8428 2015-04-17  Gary Benson <gbenson@redhat.com>
8429
8430         * exec.c (solist.h): New include.
8431         (exec_file_locate_attach): Prefix absolute executable
8432         paths with gdb_sysroot if set.
8433         * NEWS: Mention that executable paths may be prepended
8434         with sysroot.
8435
8436 2015-04-17  Gary Benson <gbenson@redhat.com>
8437
8438         * solist.h (exec_file_find): New declaration.
8439         * solib.c (solib_find_1): New function, factored out from...
8440         (solib_find): ...here.
8441         (exec_file_find): New function.
8442
8443 2015-04-17  Gary Benson <gbenson@redhat.com>
8444
8445         * gdbcore.h (exec_file_locate_attach): New declaration.
8446         * exec.c (exec_file_locate_attach): New function, factored
8447         out from...
8448         * infcmd.c (attach_command_post_wait): ...here.
8449
8450 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8451
8452         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8453
8454 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8455
8456         * infrun.c (maybe_software_singlestep): Declare.
8457         (displaced_step_fixup): Call maybe_software_singlestep.
8458
8459 2015-04-15  Doug Evans  <dje@google.com>
8460
8461         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8462
8463 2015-04-15  Doug Evans  <dje@google.com>
8464
8465         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8466
8467 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8468
8469         * python/lib/gdb/command/unwinders.py: Add parentheses.
8470
8471 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8472
8473         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8474
8475 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8476
8477         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8478
8479 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8480
8481         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8482         dsc->insn_size instead of 4.
8483
8484 2015-04-14  Gary Benson <gbenson@redhat.com>
8485
8486         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8487         * minidebug.c (lzma_stat): Likewise.
8488         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8489         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8490
8491 2015-04-13  Stan Shebs  <stanshebs@google.com>
8492
8493         * MAINTAINERS: Update my email address.
8494
8495 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8496
8497         * amd64-tdep.c (amd64_target_description): New function.
8498         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8499         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8500         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8501         x86 extended save area.
8502         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8503         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8504         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8505         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8506         "amd64fbsd_read_description".
8507         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8508         (amd64fbsd_supply_xstateregset): New function.
8509         (amd64fbsd_collect_xstateregset): New function.
8510         Add "amd64fbsd_xstateregset".
8511         (amd64fbsd_iterate_over_regset_sections): New function.
8512         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8513         "I386_FBSD_XSAVE_XCR0_OFFSET".
8514         Add "iterate_over_regset_sections" gdbarch method.
8515         Add "core_read_description" gdbarch method.
8516         * i386-tdep.c (i386_target_description): New function.
8517         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8518         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8519         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8520         x86 extended save area.
8521         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8522         * i386bsd-nat.h: Export i386bsd_xsave_len.
8523         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8524         (_initialize_i386fbsd_nat): Set "to_read_description" to
8525         "i386fbsd_read_description".
8526         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8527         (i386fbsd_core_read_description): New function.
8528         (i386fbsd_supply_xstateregset): New function.
8529         (i386fbsd_collect_xstateregset): New function.
8530         Add "i386fbsd_xstateregset".
8531         (i386fbsd_iterate_over_regset_sections): New function.
8532         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8533         "I386_FBSD_XSAVE_XCR0_OFFSET".
8534         Add "iterate_over_regset_sections" gdbarch method.
8535         Add "core_read_description" gdbarch method.
8536         * i386fbsd-tdep.h: New file.
8537
8538 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8539
8540         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8541         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8542         conditional.
8543         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8544         and lb.
8545         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8546         va.
8547         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8548         conditional.
8549         * defs.h (xdb_commands): Remove declaration.
8550         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8551         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8552         * infcmd.c (run_no_args_command, go_command): Remove.
8553         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8554         * infrun.c (xdb_handle_command): Remove.
8555         (_initialize_infrun): Remove xdb_commands for lz and z.
8556         * main.c (xdb_commands): Remove variable.
8557         (captured_main): Remove "xdb" from long_options.
8558         (print_gdb_help): Remove --xdb from help.
8559         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8560         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8561         * stack.c (backtrace_full_command, args_plus_locals_info)
8562         (current_frame_command): Remove.
8563         (_initialize_stack): Remove xdb_commands for t, T and l.
8564         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8565         * thread.c (_initialize_thread): Remove xdb_commands condition.
8566         * tui/tui-layout.c (tui_toggle_layout_command)
8567         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8568         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8569         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8570         (tui_scroll_regs_backward_command): Remove.
8571         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8572         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8573         (_initialize_tui_win): Remove xdb_commands for U and w.
8574         * utils.c (pagination_on_command, pagination_off_command): Remove.
8575         (initialize_utils): Remove xdb_commands for am and sm.
8576
8577 2015-04-10  Pedro Alves  <palves@redhat.com>
8578
8579         * infrun.c (displaced_step_fixup): Switch to the event ptid
8580         earlier.  If the thread stopped for a watchpoint and the
8581         target/arch has non-continuable watchpoints, cancel the displaced
8582         step.
8583         (resume): Don't start a displaced step if in-line step-over info
8584         is valid.
8585
8586 2015-04-10  Pedro Alves  <palves@redhat.com>
8587
8588         * infrun.c (displaced_step_in_progress): New function.
8589         (do_target_resume): Advise target to report all signals if
8590         displaced stepping.
8591
8592 2015-04-10  Pedro Alves  <palves@redhat.com>
8593
8594         PR gdb/18216
8595         * infrun.c (process_event_stop_test): Don't assume a step-resume
8596         is set if tp->stepped_breakpoint is true.
8597
8598 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8599
8600         * arm-tdep.c (install_alu_reg): Update comment.
8601         (thumb_copy_alu_reg): Remove local variable rn.  Update
8602         debugging message.  Use r2 instead of r1 in the modified
8603         instruction.
8604
8605 2015-04-10  Pedro Alves  <palves@redhat.com>
8606
8607         PR gdb/13858
8608         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8609         linux_displaced_step_location as gdbarch_displaced_step_location
8610         hook.
8611         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8612         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8613         * linux-tdep.c (linux_displaced_step_location): New function,
8614         based on ppc_linux_displaced_step_location.
8615         * linux-tdep.h (linux_displaced_step_location): New declaration.
8616         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8617         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8618         Delete.
8619         (ppc_linux_init_abi): Install linux_displaced_step_location as
8620         gdbarch_displaced_step_location hook, even without Cell/B.E..
8621         (_initialize_ppc_linux_tdep): Don't install
8622         ppc_linux_inferior_created as inferior_created observer.
8623         * s390-linux-tdep.c (s390_gdbarch_init): Install
8624         linux_displaced_step_location as gdbarch_displaced_step_location
8625         hook.
8626
8627 2015-04-09  Gary Benson <gbenson@redhat.com>
8628
8629         * common/common-remote-fileio.h: Rename to...
8630         * common/fileio.h: ...this.  Update all references.
8631         (remote_fileio_to_fio_error): Rename to...
8632         (host_to_fileio_error): ...this.
8633         (remote_fileio_to_be): Rename to...
8634         (host_to_bigendian): ...this.  Update all callers.
8635         (remote_fileio_to_fio_uint): Rename to...
8636         (host_to_fileio_uint): ...this.  Update all callers.
8637         (remote_fileio_to_fio_time): Rename to...
8638         (host_to_fileio_time): ...this.  Update all callers.
8639         (remote_fileio_to_fio_stat): Rename to...
8640         (host_to_fileio_stat): ...this.
8641         Update all references.
8642         * common/common-remote-fileio.c: Rename to...
8643         * common/fileio.c: ...this.  Update all references.
8644         (remote_fileio_to_fio_error): Rename to...
8645         (host_to_fileio_error): ...this.  Update all callers.
8646         (remote_fileio_mode_to_target): Rename to...
8647         (fileio_mode_pack): ...this.  Update all callers.
8648         (remote_fileio_to_fio_mode): Rename to...
8649         (host_to_fileio_mode): ...this.  Update all callers.
8650         (remote_fileio_to_fio_ulong): Rename to...
8651         (host_to_fileio_ulong): ...this.  Update all callers.
8652         (remote_fileio_to_fio_stat): Rename to...
8653         (host_to_fileio_stat): ...this.  Update all callers.
8654
8655 2015-04-09  Andy Wingo  <wingo@igalia.com>
8656
8657         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8658         (frame_functions): Bind gdbscm_frame_read_register to
8659         frame-read-register.
8660         * guile/lib/gdb.scm (frame-read-register): Export.
8661
8662 2015-04-09  Gary Benson <gbenson@redhat.com>
8663
8664         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8665         New declaration.
8666         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8667         New function, factored out the named functions below.
8668         * inf-child.c (gdb/fileio.h): Remove include.
8669         (common-remote-fileio.h): New include.
8670         (inf_child_errno_to_fileio_error): Remove function.  Update
8671         all callers to use remote_fileio_to_fio_error.
8672         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8673
8674 2015-04-09  Andy Wingo  <wingo@igalia.com>
8675
8676         * MAINTAINERS (Write After Approval): Add Andy Wingo.
8677
8678 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8679
8680         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8681         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8682         * configure: Regenerated.
8683
8684 2015-04-09  Pedro Alves  <palves@redhat.com>
8685
8686         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8687         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8688         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8689         * gnulib/import/Makefile.am: Update.
8690         * gnulib/import/Makefile.in: Update.
8691         * gnulib/import/m4/gnulib-cache.m4: Update.
8692         * gnulib/import/m4/gnulib-comp.m4: Update.
8693         * gnulib/import/m4/strtok_r.m4: New file.
8694         * gnulib/import/strtok_r.c: New file.
8695
8696 2015-04-09  Pedro Alves  <palves@redhat.com>
8697
8698         * gnulib/update-gnulib.sh (aclocal version check): Filter out
8699         "called too early to check prototype".
8700
8701 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
8702
8703         PR python/16699
8704         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8705         use a caching mechanism.  Adjust comments and code to reflect
8706         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8707         (cmdpy_completer_handle_brkchars): Adjust call to
8708         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
8709         (cmdpy_completer): Likewise.
8710
8711 2015-04-08  Yao Qi  <yao.qi@linaro.org>
8712
8713         * spu-tdep.c (spu_gdbarch_init): Don't call
8714         set_gdbarch_cannot_step_breakpoint.
8715
8716 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
8717
8718         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8719
8720 2015-04-07  Pedro Alves  <palves@redhat.com>
8721
8722         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8723         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8724         (delete_exited_threads): New declaration.
8725         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8726         * linux-nat.c (linux_nat_update_thread_list): New function.
8727         (linux_nat_add_target): Install it.
8728         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8729         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8730         (delete_exited_threads): New function.
8731
8732 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
8733
8734         * infrun.c (resume) <displaced stepping debug output>: Get the
8735         leader thread's regcache, not resume_ptid's.
8736
8737 2015-04-06  Doug Evans  <xdje42@gmail.com>
8738
8739         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8740         VAR_DOMAIN.
8741         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8742         Include symbol domain in debugging output.
8743
8744 2015-04-06  Pedro Alves  <palves@redhat.com>
8745             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8746
8747         * configure.ac: Remove the mingw32-specific stub-termcap.o
8748         fallback, and instead fallback to the stub termcap on all hosts.
8749         * configure: Regenerate.
8750         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8751         symbols.
8752
8753 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8754
8755         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8756         "top_level" parameter.
8757         (resolve_dynamic_type_internal): Remove the unused "top_level"
8758         parameter.  Update call to is_dynamic_type_internal.
8759         (is_dynamic_type): Update call to is_dynamic_type_internal.
8760         (resolve_dynamic_range): Update call to
8761         resolve_dynamic_type_internal.
8762         (resolve_dynamic_union): Likewise.
8763         (resolve_dynamic_struct): Likewise.
8764         (resolve_dynamic_type): Likewise.
8765
8766 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8767
8768         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8769         TYPE_CODE_REF types so that they are not considered as dynamic
8770         depending on the referenced type.
8771         (resolve_dynamic_type_internal): Likewise.
8772
8773 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8774
8775         * Makefile.in (top_srcdir): New.
8776         * configure: Regenerated.
8777
8778 2015-04-02  Gary Benson <gbenson@redhat.com>
8779
8780         * NEWS: Announce the new default sysroot of "target:".
8781
8782 2015-04-02  Gary Benson <gbenson@redhat.com>
8783
8784         * main.c (captured_main): Set gdb_sysroot to "target:"
8785         if not otherwise set.
8786
8787 2015-04-02  Gary Benson <gbenson@redhat.com>
8788
8789         * exec.c (exec_file_attach): Support "target:" filenames.
8790
8791 2015-04-02  Gary Benson <gbenson@redhat.com>
8792
8793         * solib.c (solib_find): Strip "target:" prefix from sysroot
8794         if accessing local files.
8795
8796 2015-04-02  Gary Benson <gbenson@redhat.com>
8797
8798         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8799         checks and error messages.
8800
8801 2015-04-02  Gary Benson <gbenson@redhat.com>
8802
8803         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8804         (remote_filename_p): Remove declaration.
8805         (remote_bfd_open): Likewise.
8806         * remote.c (remote_bfd_iovec_open): Remove function.
8807         (remote_bfd_iovec_close): Likewise.
8808         (remote_bfd_iovec_pread): Likewise.
8809         (remote_bfd_iovec_stat): Likewise.
8810         (remote_filename_p): Likewise.
8811         (remote_bfd_open): Likewise.
8812         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8813         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8814         (gdb_bfd_open_maybe_remote): Remove function.
8815         (symfile_bfd_open):  Replace remote filename check with
8816         target filename check.
8817         (reread_symbols): Use gdb_bfd_open.
8818         * build-id.c (gdbcore.h): New include.
8819         (build_id_to_debug_bfd): Use gdb_bfd_open.
8820         * infcmd.c (attach_command_post_wait): Remove remote filename
8821         check.
8822         * solib.c (solib_find): Replace remote-specific handling with
8823         target-specific handling.  Update comments where necessary.
8824         (solib_bfd_open): Replace remote-specific handling with
8825         target-specific handling.
8826         (gdb_sysroot_changed): New function.
8827         (_initialize_solib): Call the above when gdb_sysroot changes.
8828         * windows-tdep.c (gdbcore.h): New include.
8829         (windows_xfer_shared_library): Use gdb_bfd_open.
8830
8831 2015-04-02  Gary Benson <gbenson@redhat.com>
8832
8833         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8834         (is_target_filename): New declaration.
8835         (gdb_bfd_has_target_filename): Likewise.
8836         (gdb_bfd_open): Update documentation comment.
8837         * gdb_bfd.c (target.h): New include.
8838         (gdb/fileio.h): Likewise.
8839         (is_target_filename): New function.
8840         (gdb_bfd_has_target_filename): Likewise.
8841         (fileio_errno_to_host): Likewise.
8842         (gdb_bfd_iovec_fileio_open): Likewise.
8843         (gdb_bfd_iovec_fileio_pread): Likewise.
8844         (gdb_bfd_iovec_fileio_close): Likewise.
8845         (gdb_bfd_iovec_fileio_fstat): Likewise.
8846         (gdb_bfd_open): Use target fileio to access paths prefixed
8847         with "target:" where necessary.
8848
8849 2015-04-02  Gary Benson <gbenson@redhat.com>
8850
8851         * target.h (struct target_ops) <to_filesystem_is_local>:
8852         New field.
8853         (target_filesystem_is_local): New macro.
8854         * target-delegates.c: Regenerate.
8855         * remote.c (remote_filesystem_is_local): New function.
8856         (init_remote_ops): Initialize to_filesystem_is_local.
8857
8858 2015-04-02  Gary Benson <gbenson@redhat.com>
8859
8860         * target.h (struct target_ops) <to_fileio_fstat>: New field.
8861         (target_fileio_fstat): New declaration.
8862         * target.c (target_fileio_fstat): New function.
8863         * inf-child.c (inf_child_fileio_fstat): Likewise.
8864         (inf_child_target): Initialize to_fileio_fstat.
8865         * remote.c (init_remote_ops): Likewise.
8866
8867 2015-04-01  Sasha Smundak  <asmundak@google.com>
8868
8869         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8870         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8871         (py-unwind.o): New recipe.
8872         * NEWS: mention Python frame unwinding.
8873         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8874         gdb/unwinder.py and gdb/command/unwinder.py
8875         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8876         list.
8877         (execute_unwinders): New function.
8878         * python/lib/gdb/command/unwinders.py: New file.
8879         * python/lib/gdb/unwinder.py: New file.
8880         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8881         (objfpy_dealloc): Decrement frame_unwinders reference count.
8882         (objfpy_initialize): Create frame_unwinders list.
8883         (objfpy_get_frame_unwinders): New function.
8884         (objfpy_set_frame_unwinders): Ditto.
8885         (objfile_getset): Add frame_unwinders attribute to Objfile.
8886         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8887         (pspy_dealloc): Decrement frame_unwinders reference count.
8888         (pspy_initialize): Create frame_unwinders list.
8889         (pspy_get_frame_unwinders): New function.
8890         (pspy_set_frame_unwinders): Ditto.
8891         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8892         * python/py-unwind.c: New file.
8893         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8894         (objpy_get_frame_unwinders): New prototype.
8895         (gdbpy_initialize_unwind): New prototype.
8896         * python/python.c (gdbpy_apply_type_printers): Call
8897         gdbpy_initialize_unwind.
8898
8899 2015-04-01  Pedro Alves  <palves@redhat.com>
8900
8901         * infrun.c (resume): Check currently_stepping after clearing
8902         stepped_breakpoint, not before.
8903
8904 2015-04-01  Pedro Alves  <palves@redhat.com>
8905
8906         * infrun.c (print_target_wait_results): Print all the ptid
8907         elements.
8908
8909 2015-04-01  Pedro Alves  <palves@redhat.com>
8910
8911         * infrun.c (keep_going): Also discard cleanups if inserting
8912         breakpoints fails.
8913
8914 2015-04-01  Pedro Alves  <palves@redhat.com>
8915
8916         * infrun.c (wait_for_inferior): Install the
8917         finish_thread_state_cleanup cleanup across the whole function, not
8918         just around handle_inferior_event.
8919
8920 2015-04-01  Pedro Alves  <palves@redhat.com>
8921
8922         * infrun.c (resume) <step past permanent breakpoint>: Use
8923         do_target_resume.
8924
8925 2015-04-01  Pedro Alves  <palves@redhat.com>
8926
8927         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8928
8929 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
8930
8931         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8932
8933 2015-04-01  Pedro Alves  <palves@redhat.com>
8934
8935         * linux-thread-db.c (record_thread): Readd the thread to gdb's
8936         list if it was marked exited.
8937
8938 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
8939
8940         * configure: Regenerated.
8941
8942 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8943             Jan Kratochvil  <jan.kratochvil@redhat.com>
8944             Oleg Nesterov  <oleg@redhat.com>
8945
8946         PR corefiles/16092
8947         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8948         New enum identifying the various options of the coredump_filter
8949         file.
8950         (struct smaps_vmflags): New struct.
8951         (use_coredump_filter): New variable.
8952         (decode_vmflags): New function.
8953         (mapping_is_anonymous_p): Likewise.
8954         (dump_mapping_p): Likewise.
8955         (linux_find_memory_regions_full): New variables
8956         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8957         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
8958         parsing of its information.  Implement memory mapping filtering
8959         based on its contents.
8960         (show_use_coredump_filter): New function.
8961         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8962         * NEWS: Mention the possibility of using the
8963         '/proc/PID/coredump_filter' file when generating a corefile.
8964         Mention new command 'set use-coredump-filter'.
8965
8966 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8967
8968         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8969         read_memory_unsigned_integer.
8970
8971 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8972
8973         * Makefile.in (ZLIB): New.
8974         (ZLIBINC): Likewise.
8975         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8976         (CLIBS): Add $(ZLIB).
8977         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8978         Add -lz to LIBS.
8979         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8980         * top.c (print_gdb_configuration): Remove --with-zlib and
8981         --without-zlib.
8982         * config.in: Regenerated.
8983         * configure: Likewise.
8984
8985 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8986
8987         * NEWS: Mention info os cpus support.
8988         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8989         (struct osdata_type): Add cpus entry, reorder the entries in
8990         alphabetical order.
8991
8992 2015-03-31  Matthias Klose  <doko@ubuntu.com>
8993
8994         * compile/compile.c (compile_to_object): Allow triplets with or
8995         without vendor set.
8996
8997 2015-03-30  Doug Evans  <dje@google.com>
8998
8999         PR c++/18141
9000         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9001         klass in VAR_DOMAIN.
9002
9003 2015-03-30  Gary Benson <gbenson@redhat.com>
9004
9005         * remote.c (remote_mourn_1): Remove function.  Update all callers
9006         to use remote_mourn.
9007         (extended_remote_mourn_1): Remove function.  Update all callers
9008         to use extended_remote_mourn.
9009         (extended_remote_attach_1): Remove function.  Update all callers
9010         to use extended_remote_attach.
9011
9012 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9013
9014         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9015         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9016         (ALLDEPFILES): Add ft32-tdep.c.
9017         * configure.tgt: Add FT32 entry.
9018         * ft32-tdep.c: New file, FT32 target-dependent code.
9019         * ft32-tdep.h: New file, FT32 target-dependent code.
9020
9021 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9022
9023         Revert:
9024         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9025         Code cleanup.
9026         * printcmd.c (print_command_1): Move expr variable scope.
9027
9028 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9029
9030         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9031
9032 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9033
9034         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9035         sections.
9036
9037 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9038
9039         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9040         exception raised while parsing the probe arguments.
9041         Force parsing to be done using the C language parser.
9042         * expression.h (parse_expression_with_language): Declare.
9043         * parse.c (parse_expression_with_language): New function.
9044
9045 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9046
9047         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9048
9049 2015-03-26  Andy Wingo  <wingo@igalia.com>
9050
9051         PR symtab/18148
9052         * dwarf2read.c (struct partial_die_info): Add has_const_value
9053         member.
9054         (add_partial_symbol): Don't punt on symbols that have const_value
9055         attributes.
9056         (read_partial_die): Detect DW_AT_const_value.
9057
9058 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9059
9060         Code cleanup.
9061         * printcmd.c (print_command_1): Move expr variable scope.
9062
9063 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9064
9065         Code cleanup.
9066         * printcmd.c (validate_format): Make the parameter cmdname const.
9067
9068 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9069
9070         * remote.c (_initialize_remote): Update comment.
9071
9072 2015-03-26  Pedro Alves  <palves@redhat.com>
9073             Jon TURNEY  <jon.turney@dronecode.org.uk>
9074
9075         * coffread.c (coff_symfile_read): When constructing the name of an
9076         import stub symbol from import symbol for amd64, only skip the
9077         char after _imp_ if the target is underscored (like i386) and the
9078         char is indeed the target's leading char.
9079
9080 2015-03-25  Pedro Alves  <palves@redhat.com>
9081
9082         * target.h <to_async>: Replace 'callback' and 'context' parameters
9083         with boolean 'enable' parameter.
9084         (target_async): Replace CALLBACK and CONTEXT parameters with
9085         boolean ENABLE parameter.
9086         * inf-loop.c (inferior_event_handler): Adjust.
9087         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9088         (linux_nat_resume): Adjust.
9089         (async_client_callback, async_client_context): Delete.
9090         (handle_target_event): Call inferior_event_handler directly.
9091         (linux_nat_async): Replace 'callback' and 'context' parameters
9092         with boolean 'enable' parameter.  Adjust.  Remove references to
9093         async_client_callback and async_client_context.
9094         (linux_nat_close): Adjust.
9095         * record-btrace.c (record_btrace_async): Replace 'callback' and
9096         'context' parameters with boolean 'enable' parameter.  Adjust.
9097         (record_btrace_resume): Adjust.
9098         * record-full.c (record_full_async): Replace 'callback' and
9099         'context' parameters with boolean 'enable' parameter.  Adjust.
9100         (record_full_resume, record_full_core_resume): Adjust.
9101         * remote.c (struct remote_state) <async_client_callback,
9102         async_client_context>: Delete fields.
9103         (remote_start_remote, extended_remote_attach_1, remote_resume)
9104         (extended_remote_create_inferior): Adjust.
9105         (remote_async_serial_handler): Call inferior_event_handler
9106         directly.
9107         (remote_async): Replace 'callback' and 'context' parameters with
9108         boolean 'enable' parameter.  Adjust.
9109         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9110         Adjust.
9111         * target-delegates.c: Regenerate.
9112
9113 2015-03-25  Gary Benson <gbenson@redhat.com>
9114             Pedro Alves  <palves@redhat.com>
9115
9116         * target.c (fileio_ft_t): New typedef, define object vector.
9117         (fileio_fhandles): New static variable.
9118         (is_closed_fileio_fh): New macro.
9119         (lowest_closed_fd): New static variable.
9120         (acquire_fileio_fd): New function.
9121         (release_fileio_fd): Likewise.
9122         (fileio_fd_to_fh): New macro.
9123         (target_fileio_open): Wrap the file descriptor on success.
9124         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9125         (target_fileio_pread): Likewise.
9126         (target_fileio_close): Likewise.
9127
9128 2015-03-24  Pedro Alves  <palves@redhat.com>
9129
9130         * thread.c (thread_apply_all_command): Take exited threads into
9131         account.
9132
9133 2015-03-24  Pedro Alves  <palves@redhat.com>
9134
9135         * infrun.c (resume, proceed): Mention
9136         switch_back_to_stepped_thread, not switch_back_to_stepping.
9137
9138 2015-03-24  Pedro Alves  <palves@redhat.com>
9139
9140         * infrun.c (user_visible_resume_ptid): Rewrite going from
9141         most-locked to unlocked instead of the opposite.  Move comment ...
9142         * infrun.h (user_visible_resume_ptid): ... here.
9143
9144 2015-03-24  Pedro Alves  <palves@redhat.com>
9145
9146         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9147         to resume the event lwp.  Use the lwp's ptid instead of the passed
9148         in (maybe wildcard) ptid.
9149         (stop_wait_callback): Tweak debug log output.
9150         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9151         TRAP_TRACE.
9152         (linux_nat_filter_event): In debug output, distinguish a
9153         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9154         before trying to resume the lwp.
9155
9156 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9157
9158         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9159         pointer indirection.
9160         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9161         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9162
9163 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9164
9165         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9166         Renames DYN_ATTR_DATA_LOCATION.
9167         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9168         DYN_ATTR_DATA_LOCATION.
9169         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9170         instead of DYN_ATTR_DATA_LOCATION.
9171
9172 2015-03-24  Pedro Alves  <palves@redhat.com>
9173
9174         * breakpoint.c (until_break_command): Adjust call to proceed.
9175         * gdbthread.h (struct thread_control_state) <stepping_command>:
9176         New field.
9177         * infcall.c (run_inferior_call): Adjust call to proceed.
9178         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9179         Adjust calls to proceed.
9180         (set_step_frame): Set the current thread's step_start_function
9181         here.
9182         (step_once): Adjust calls to proceed.
9183         (jump_command, signal_command, until_next_command)
9184         (finish_backward, finish_forward, proceed_after_attach_callback)
9185         (attach_command_post_wait): Adjust calls to proceed.
9186         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9187         (do_target_resume): New function, factored out from ...
9188         (resume): ... here.  Remove 'step' parameter.  Instead, check
9189         currently_stepping to determine whether the thread should be
9190         single-stepped.
9191         (proceed): Remove 'step' parameter and don't set the thread's
9192         step_start_function here.  Adjust call to 'resume'.
9193         (handle_inferior_event): Adjust calls to 'resume'.
9194         (switch_back_to_stepped_thread): Use do_target_resume instead of
9195         'resume'.
9196         (keep_going): Adjust calls to 'resume'.
9197         * infrun.h (proceed): Remove 'step' parameter.
9198         (resume): Likewise.
9199         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9200         'resume'.
9201         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9202
9203 2015-03-24  Pedro Alves  <palves@redhat.com>
9204
9205         * gdbthread.h (struct thread_control_state) <stepping_command>:
9206         New field.
9207         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9208         the thread's stepping_command field.
9209         * infrun.c (resume): Check the thread's stepping_command flag to
9210         determine which threads should be resumed.  Rename 'entry_step'
9211         local to user_step.
9212         (clear_proceed_status_thread): Clear 'stepping_command'.
9213         (schedlock_applies): Change parameter type to struct thread_info
9214         pointer.  Adjust.
9215         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9216         (switch_back_to_stepped_thread): Adjust calls to
9217         'schedlock_applies'.
9218         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9219
9220 2015-03-24  Pedro Alves  <palves@redhat.com>
9221
9222         * infrun.c (step_start_function): Delete and ...
9223         * gdbthread.h (struct thread_control_state) <step_start_function>:
9224         ... now a field here.
9225         * infrun.c (clear_proceed_status_thread): Clear the thread's
9226         step_start_function.
9227         (proceed, process_event_stop_test, print_stop_event): Adjust.
9228
9229 2015-03-24  Pedro Alves  <palves@redhat.com>
9230
9231         * infrun.c (proceed): No longer handle negative step.
9232
9233 2015-03-24  Gary Benson  <gbenson@redhat.com>
9234
9235         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9236         (x86_linux_prepare_to_resume): Likewise.
9237         * x86-linux-nat.c (x86_linux_new_thread):
9238         Moved to nat/x86-linux.c.
9239         (x86_linux_prepare_to_resume): Likewise.
9240         * nat/x86-linux.c (x86_linux_new_thread): New function.
9241         (x86_linux_prepare_to_resume): Likewise.
9242
9243 2015-03-24  Gary Benson  <gbenson@redhat.com>
9244
9245         * nat/x86-linux-dregs.h: New file.
9246         * nat/x86-linux-dregs.c: Likewise.
9247         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9248         (x86-linux-dregs.o): New rule.
9249         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9250         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9251         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9252         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9253         (x86_linux_dr_get): Likewise.
9254         (x86_linux_dr_set): Likewise.
9255         (x86_linux_dr_get_addr): Likewise.
9256         (x86_linux_dr_get_control): Likewise.
9257         (x86_linux_dr_get_status): Likewise.
9258         (update_debug_registers_callback): Likewise.
9259         (x86_linux_dr_set_control): Likewise.
9260         (x86_linux_dr_set_addr): Likewise.
9261         (x86_linux_update_debug_registers): Likewise.
9262
9263 2015-03-24  Gary Benson  <gbenson@redhat.com>
9264
9265         * x86-linux-nat.c (x86_linux_update_debug_registers):
9266         New function, factored out from...
9267         (x86_linux_prepare_to_resume): ...this.
9268
9269 2015-03-24  Gary Benson  <gbenson@redhat.com>
9270
9271         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9272         (x86_linux_dr_set): Likewise.
9273         (x86_linux_dr_get_addr): Likewise.
9274         (x86_linux_dr_get_control): Likewise.
9275         (x86_linux_dr_get_status): Likewise.
9276         (update_debug_registers_callback): Likewise.
9277         (x86_linux_dr_set_control): Likewise.
9278         (x86_linux_dr_set_addr): Likewise.
9279         (x86_linux_prepare_to_resume): Likewise.
9280         (x86_linux_new_thread): Likewise.
9281
9282 2015-03-24  Gary Benson  <gbenson@redhat.com>
9283
9284         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9285         (x86_linux_new_thread): Rename argument.
9286
9287 2015-03-24  Gary Benson  <gbenson@redhat.com>
9288
9289         * nat/x86-linux.h: New file.
9290         * nat/x86-linux.c: Likewise.
9291         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9292         (x86-linux.o): New rule.
9293         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9294         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9295         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9296         (lwp_set_arch_private_info): New declaration.
9297         (lwp_arch_private_info): Likewise.
9298         * linux-nat.c (lwp_set_arch_private_info): New function.
9299         (lwp_arch_private_info): Likewise.
9300         * x86-linux-nat.c: Include nat/x86-linux.h.
9301         (arch_lwp_info): Removed structure.
9302         (update_debug_registers_callback):
9303         Use lwp_set_debug_registers_changed.
9304         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9305         and lwp_set_debug_registers_changed.
9306         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9307
9308 2015-03-24  Gary Benson  <gbenson@redhat.com>
9309
9310         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9311         (lwp_is_stopped): Likewise.
9312         (lwp_stop_reason): Likewise.
9313         * linux-nat.c (ptid_of_lwp): New function.
9314         (lwp_is_stopped): Likewise.
9315         (lwp_is_stopped_by_watchpoint): Likewise.
9316         * x86-linux-nat.c (update_debug_registers_callback):
9317         Use lwp_is_stopped.
9318         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9319         lwp_stop_reason.
9320
9321 2015-03-24  Gary Benson  <gbenson@redhat.com>
9322
9323         * linux-nat.h (linux_stop_lwp): Move declaration to...
9324         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9325
9326 2015-03-24  Gary Benson  <gbenson@redhat.com>
9327
9328         * linux-nat.h: Include nat/linux-nat.h.
9329         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9330         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9331         (iterate_over_lwps_ftype): New typedef.
9332         (iterate_over_lwps): New declaration.
9333         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9334         iterate_over_lwps_ftype.  Update callback return value check.
9335
9336 2015-03-24  Gary Benson  <gbenson@redhat.com>
9337
9338         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9339         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9340
9341 2015-03-24  Gary Benson  <gbenson@redhat.com>
9342
9343         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9344         * linux-nat.c (current_lwp_ptid): New function.
9345         * x86-linux-nat.c: Include nat/linux-nat.h.
9346         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9347         (x86_linux_dr_get_control): Likewise.
9348         (x86_linux_dr_get_status): Likewise.
9349         (x86_linux_dr_set_control): Likewise.
9350         (x86_linux_dr_set_addr): Likewise.
9351
9352 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9353
9354         PR breakpoints/16466
9355         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9356
9357 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9358
9359         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9360         * ser-unix.c (hardwire_setparity): Likewise.
9361
9362 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9363
9364         * NEWS: Mention set/show serial parity command.
9365         * monitor.c (monitor_open): Call serial_setparity.
9366         * remote.c (remote_open_1): Likewise.
9367         * ser-base.c (ser_base_serparity): New function.
9368         * ser-base.h (ser_base_setparity): Add  declaration.
9369         * ser-go32.c (dos_ops): Set "setparity" field.
9370         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9371         state.Parity.
9372         (ser_windows_setparity): New function.
9373         (hardwire_ops): Add ser_windows_setparity.
9374         (tty_ops): Add NULL for setparity field.
9375         (pipe_ops): Add ser_base_setparity.
9376         (tcp_ops): Likewise.
9377         * ser-pipe.c (pipe_ops): Likewise.
9378         * ser-tcp.c (tcp_ops): Likewise.
9379         * ser-unix.c (hardwire_setparity): Add declaration.
9380         (hardwire_raw): Don't reset PARENB flag.
9381         (hardwire_setparity): New function.
9382         (hardwire_ops): Add hardwire_setparity.
9383         * serial.c (serial_setparity): New function.
9384         (serial_parity): New global.
9385         (parity_none, parity_odd, parity_even, parity_enums, parity):
9386         New static globals.
9387         (set_parity): New function.
9388         (_initialize_serial): Add set/show serial parity commands.
9389         * serial.h (GDBPARITY_NONE): Define.
9390         (GDBPARITY_ODD): Define.
9391         (GDBPARITY_EVEN): Define.
9392         (serial_setparity) Add declaration.
9393         (struct serial_ops): Add setparity field.
9394         * target.h (serial_parity): Add declaration.
9395
9396 2015-03-23  Keith Seitz  <keiths@redhat.com>
9397
9398         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9399
9400 2015-03-23  Keith Seitz  <keiths@redhat.com>
9401
9402         * breakpoint.c (parse_breakpoint_sals): Use
9403         linespec_lexer_lex_keyword to ascertain if the user specified
9404         a NULL location.
9405         * linespec.c [IF_KEYWORD_INDEX]: Define.
9406         (linespec_lexer_lex_keyword): Export.
9407         (struct ls_parser) <keyword_ok>: Remove.
9408         A keyword is only a keyword if not followed by another keyword.
9409         (linespec_lexer_lex_one): Remove keyword_ok handling.
9410         Add comment explaining why the parsing stream is not advanced
9411         when a keyword is seen.
9412         (parse_linespec): Remove parser->keyword_ok.
9413         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9414
9415 2015-03-23  Keith Seitz  <keiths@redhat.com>
9416
9417         PR gdb/18021
9418         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9419         if we find a static method with DW_AT_vtable_elem_location.
9420
9421 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9422
9423         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9424         before the second loop, to avoid undefined behavior.  Reported by
9425         Anton Blanchard <anton@samba.org>.
9426
9427 2015-03-20  Keven Boell  <keven.boell@intel.com>
9428
9429         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9430         data_location usage to linked list.
9431         (resolve_dynamic_type_internal): Adapt data_location to
9432         linked list.
9433         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9434         (copy_type_recursive, copy_type): Add copy of linked list.
9435         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9436         (struct dynamic_prop_list): New struct.
9437         * dwarf2read.c (set_die_type): Set data_location data.
9438
9439 2015-03-20  Pedro Alves  <palves@redhat.com>
9440
9441         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9442         inner block and make it const.
9443         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9444
9445 2015-03-20  Pedro Alves  <palves@redhat.com>
9446
9447         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9448         * breakpoint.h (set_breakpoint_condition): Update declaration.
9449
9450 2015-03-20  Pedro Alves  <palves@redhat.com>
9451
9452         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9453
9454 2015-03-20  Pedro Alves  <palves@redhat.com>
9455
9456         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9457
9458 2015-03-20  Pedro Alves  <palves@redhat.com>
9459
9460         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9461
9462 2015-03-20  Pedro Alves  <palves@redhat.com>
9463
9464         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9465         (nto_init_solib_absolute_prefix): Likewise.
9466
9467 2015-03-20  Pedro Alves  <palves@redhat.com>
9468
9469         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9470         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9471
9472 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9473
9474         * config/djgpp/README: Remove gdb.hp.
9475
9476 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9477
9478         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9479         set_gdbarch_cannot_step_breakpoint.
9480
9481 2015-03-19  Pedro Alves  <palves@redhat.com>
9482
9483         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9484         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9485         instead call perror_with_name.
9486         (check_ptrace_stopped_lwp_gone): New function.
9487         (linux_resume_one_lwp): Reimplement as wrapper around
9488         linux_resume_one_lwp_throw that swallows errors if the LWP is
9489         gone.
9490         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9491         swallows errors if the LWP is gone.  Use
9492         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9493
9494 2015-03-19  Pedro Alves  <palves@redhat.com>
9495
9496         * linux-nat.c (status_callback): Return early if the LWP has no
9497         status pending.
9498
9499 2015-03-19  Pedro Alves  <palves@redhat.com>
9500
9501         * linux-nat.c (select_event_lwp_callback): Update comment to no
9502         longer mention SIGTRAP.
9503
9504 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9505
9506         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9507         redirection code to ...
9508         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9509         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9510
9511 2015-03-18  Gary Benson <gbenson@redhat.com>
9512
9513         (remote_protocol_features): Remove the "vFile:fstat" feature.
9514         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9515
9516 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9517
9518         PR tdep/18107
9519         * aarch64-linux-tdep.c: Include xml-syscall.h
9520         (aarch64_linux_get_syscall_number): New function.
9521         (aarch64_linux_init_abi): Call
9522         set_gdbarch_get_syscall_number.
9523         * syscalls/aarch64-linux.xml: New file.
9524
9525 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9526
9527         * ser-base.h (ser_base_setstopbits): Change second argument name
9528         from "rate" to "num".
9529
9530 2015-03-17  Gary Benson <gbenson@redhat.com>
9531             Luke Allardyce <lukeallardyce@gmail.com>
9532
9533         PR gdb/18131
9534         * common/common-remote-fileio.h (sys/stat.h): New include.
9535         (stuct stat): Remove forward declaration.
9536
9537 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9538
9539         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9540         before writing core register notes.
9541
9542 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9543             Pedro Alves  <palves@redhat.com>
9544
9545         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9546         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9547         (tgoto): Wrap with extern "C".
9548
9549 2015-03-16  Pedro Alves  <palves@redhat.com>
9550             Yuanhui Zhang  <asmwarrior@gmail.com>
9551
9552         * stub-termcap.c (tputs): Change prototype.
9553
9554 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9555             Pedro Alves  <palves@redhat.com>
9556
9557         * windows-nat.c (struct thread_info_struct): Rename to ...
9558         (struct windows_thread_info_struct): ... this.
9559         (thread_info): Rename to ...
9560         (windows_thread_info): ... this.
9561         All users updated.
9562
9563 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9564             Pedro Alves  <palves@redhat.com>
9565
9566         * NEWS: New Removed targets and native configurations.
9567
9568 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9569
9570         Remove HPUX.
9571         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9572         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9573         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9574         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9575         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9576         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9577         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9578         hppa-hpux-tdep.c.
9579         * config/ia64/hpux.mh: Remove file.
9580         * config/pa/hpux.mh: Remove file.
9581         * configure: Rebuilt.
9582         * configure.ac (dlgetmodinfo, somread.o): Remove.
9583         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9584         (ia64-*-hpux*): Remove its float format exception.
9585         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9586         * hppa-hpux-nat.c: Remove file.
9587         * hppa-hpux-tdep.c: Remove file.
9588         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9589         Move them here from hppa-tdep.h
9590         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9591         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9592         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9593         Move them to hppa-tdep.c.
9594         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9595         declarations.
9596         * ia64-hpux-nat.c: Remove file.
9597         * ia64-hpux-tdep.c: Remove file.
9598         * ia64-hpux-tdep.h: Remove file.
9599         * inf-ttrace.c: Remove file.
9600         * inf-ttrace.h: Remove file.
9601         * solib-ia64-hpux.c: Remove file.
9602         * solib-ia64-hpux.h: Remove file.
9603         * solib-pa64.c: Remove file.
9604         * solib-pa64.h: Remove file.
9605         * solib-som.c: Remove file.
9606         * solib-som.h: Remove file.
9607         * somread.c: Remove file.
9608
9609 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9610
9611         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9612         * config.in: Regenerate.
9613         * configure: Regenerate.
9614         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9615         define.
9616         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9617         enumerate memory regions if present.
9618
9619 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9620
9621         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9622         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9623         expressions.
9624         (i386fbsd_sigtramp_p): Likewise.
9625
9626 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9627
9628         * MAINTAINERS (Write After Approval): Add John Baldwin.
9629
9630 2015-03-12  Gary Benson <gbenson@redhat.com>
9631
9632         * solib.c (_initialize_solib): Make "set/show sysroot" use
9633         add_setshow_optional_filename_cmd so it can be restored to
9634         empty after being set.
9635
9636 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9637
9638         * Makefile.in (SFILES): New source break-catch-syscall.c.
9639         (COMMON_OBS): New object break-catch-syscall.o.
9640         * break-catch-syscall.c: New file.
9641         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9642         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9643         (struct syscall_catchpoint): Likewise.
9644         (dtor_catch_syscall): Likewise.
9645         (catch_syscall_inferior_data): Likewise.
9646         (struct catch_syscall_inferior_data): Likewise.
9647         (get_catch_syscall_inferior_data): Likewise.
9648         (catch_syscall_inferior_data_cleanup): Likewise.
9649         (insert_catch_syscall): Likewise.
9650         (remove_catch_syscall): Likewise.
9651         (breakpoint_hit_catch_syscall): Likewise.
9652         (print_it_catch_syscall): Likewise.
9653         (print_one_catch_syscall): Likewise.
9654         (print_mention_catch_syscall): Likewise.
9655         (print_recreate_catch_syscall): Likewise.
9656         (catch_syscall_breakpoint_ops): Likewise.
9657         (syscall_catchpoint_p): Likewise.
9658         (create_syscall_event_catchpoint): Likewise.
9659         (catch_syscall_split_args): Likewise.
9660         (catch_syscall_command_1): Likewise.
9661         (is_syscall_catchpoint_enabled): Likewise.
9662         (catch_syscall_enabled): Likewise.
9663         (catching_syscall_number): Likewise.
9664         (catch_syscall_completer): Likewise.
9665         (clear_syscall_counts): Likewise.
9666         (initialize_breakpoint_ops): Move initialization of syscall
9667         catchpoints to break-catch-syscall.c.
9668         (_initialize_breakpoint): Move code related to syscall catchpoints
9669         to break-catch-syscall.c.
9670
9671 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9672
9673         * breakpoint.c (breakpoint_find_if): New function.
9674         * breakpoint.h (breakpoint_find_if): New prototype.
9675
9676 2015-03-11  Gary Benson <gbenson@redhat.com>
9677
9678         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9679         * remote-fileio.c (remote_fileio_to_host_uint): New function.
9680         (remote_fileio_to_host_ulong): Likewise.
9681         (remote_fileio_to_host_mode): Likewise.
9682         (remote_fileio_to_host_time): Likewise.
9683         (remote_fileio_to_host_stat): Likewise.
9684         * remote.c (PACKET_vFile_fstat): New enum value.
9685         (remote_protocol_features): Register the "vFile:fstat" feature.
9686         (remote_hostio_fstat): New function.
9687         (remote_bfd_iovec_stat): Use the above.
9688         (_initialize_remote): Register new "set/show remote
9689         hostio-fstat-packet" command.
9690         * symfile.c (separate_debug_file_exists): Update comment.
9691         * NEWS: Announce new vFile:fstat packet.
9692
9693 2015-03-11  Gary Benson <gbenson@redhat.com>
9694
9695         * common/common-remote-fileio.h: New file.
9696         * common/common-remote-fileio.c: Likewise.
9697         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9698         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9699         (COMMON_OBS): Add common-remote-fileio.o.
9700         (common-remote-fileio.o): New rule.
9701         * remote-fileio.h (common-remote-fileio.h): New include.
9702         * remote-fileio.c (gdb/fileio.h): Do not include.
9703         (remote_fileio_to_be): Moved to common-remote-fileio.h.
9704         (remote_fileio_to_fio_uint): Likewise.
9705         (remote_fileio_to_fio_time): Likewise.
9706         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9707         (remote_fileio_to_fio_mode): Likewise.
9708         (remote_fileio_to_fio_ulong): Likewise.
9709         (remote_fileio_to_fio_stat): Likewise.
9710
9711 2015-03-11  Andy Wingo  <wingo@igalia.com>
9712
9713         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9714         we were checking the cached type, not the cached dynamic type.
9715
9716 2015-03-11  Andy Wingo  <wingo@igalia.com>
9717
9718         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9719         other strings, as these are on the GC'd heap, and will be
9720         collected along with the smob.
9721
9722 2015-03-11  Andy Wingo  <wingo@igalia.com>
9723
9724         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9725         (objfile_functions): Bind gdbscm_objfile_progspace to
9726         objfile-progspace.
9727         * guile/lib/gdb.scm: Add objfile-progspace to exports.
9728
9729 2015-03-11  Andy Wingo  <wingo@igalia.com>
9730
9731         * guile/guile.c (_initialize_guile): Disable automatic
9732         finalization, if Guile offers us that possibility.
9733         * guile/guile.c (call_initialize_gdb_module):
9734         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9735         finalizers in appropriate places.
9736         * configure.ac (AC_TRY_LIBGUILE): Add a check for
9737         scm_set_automatic_finalization_enabled.
9738         * configure: Regenerated.
9739
9740 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9741
9742         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9743         SAL, if possible.
9744
9745 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9746
9747         * s390-linux-nat.c (struct arch_lwp_info): New.
9748         (s390_fix_watch_points): Rename to...
9749         (s390_prepare_to_resume): ...this.  Skip the PER info update
9750         unless the watch points have changed.
9751         (s390_refresh_per_info, s390_new_thread): New functions.
9752         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9753         s390_fix_watch_points.
9754         (s390_remove_watchpoint): Likewise.
9755         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9756         Register s390_prepare_to_resume.
9757
9758 2015-03-09  Pedro Alves  <palves@redhat.com>
9759
9760         Revert:
9761         2015-03-07  Pedro Alves  <palves@redhat.com>
9762         * common/gdb_socket.h: New file.
9763         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9764         sys/socket.h.
9765         (net_open): Use union gdb_sockaddr_u.
9766
9767 2015-03-07  Pedro Alves  <palves@redhat.com>
9768
9769         * configure.ac (build_warnings): Move -Wmissing-prototypes
9770         -Wdeclaration-after-statement -Wmissing-parameter-type
9771         -Wold-style-declaration -Wold-style-definition to the C-specific
9772         set.
9773         * configure: Regenerate.
9774
9775 2015-03-07  Pedro Alves  <palves@redhat.com>
9776
9777         * common/gdb_socket.h: New file.
9778         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9779         sys/socket.h.
9780         (net_open): Use union gdb_sockaddr_u.
9781
9782 2015-03-07  Pedro Alves  <palves@redhat.com>
9783
9784         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9785         (exceptions_state_mc_action_iter)
9786         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9787         Don't define.
9788         [__cplusplus] (try_scope_depth): New global.
9789         [__cplusplus] (exception_try_scope_entry)
9790         (exception_try_scope_exit, gdb_exception_sliced_copy)
9791         (exception_rethrow): New functions.
9792         (throw_exception): In C++ mode, throw
9793         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9794         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9795         (throw_it): In C++ mode, use try_scope_depth.
9796         * common/common-exceptions.h [!__cplusplus]
9797         (exceptions_state_mc_action_iter)
9798         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9799         Don't declare.
9800         [__cplusplus] (exception_try_scope_entry)
9801         (exception_try_scope_exit, exception_rethrow): Declare.
9802         [__cplusplus] (struct exception_try_scope): New struct.
9803         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9804         C++ exceptions.
9805         (struct gdb_exception_RETURN_MASK_ALL)
9806         (struct gdb_exception_RETURN_MASK_ERROR)
9807         (struct gdb_exception_RETURN_MASK_QUIT): New types.
9808
9809 2015-03-07  Pedro Alves  <palves@redhat.com>
9810
9811         * main.c (handle_command_errors): Remove volatile qualifier from
9812         parameter.
9813
9814 2015-03-07  Pedro Alves  <palves@redhat.com>
9815
9816         * breakpoint.c (save_breakpoints): Adjust to avoid code between
9817         TRY and CATCH.
9818         * gdbtypes.c (safe_parse_type): Remove empty line.
9819         (types_deeply_equal):
9820         * guile/scm-frame.c (gdbscm_frame_name):
9821         * linux-thread-db.c (find_new_threads_once):
9822         * python/py-breakpoint.c (bppy_get_commands):
9823         * record-btrace.c (record_btrace_insert_breakpoint)
9824         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9825         (record_btrace_start_replaying): Adjust to avoid code between TRY
9826         and CATCH.
9827
9828 2015-03-07  Pedro Alves  <palves@redhat.com>
9829
9830         * common/common-exceptions.c (struct catcher) <exception>: No
9831         longer a pointer to volatile exception.  Now an exception value.
9832         <mask>: Delete field.
9833         (exceptions_state_mc_init): Remove all parameters.  Adjust.
9834         (exceptions_state_mc): No longer pop the catcher here.
9835         (exceptions_state_mc_catch): New function.
9836         (throw_exception): Adjust.
9837         * common/common-exceptions.h (exceptions_state_mc_init): Remove
9838         all parameters.
9839         (exceptions_state_mc_catch): Declare.
9840         (TRY_CATCH): Rename to ...
9841         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
9842         (CATCH, END_CATCH): New.
9843         All callers adjusted.
9844
9845 2015-03-07  Tom Tromey  <tromey@redhat.com>
9846
9847         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9848
9849 2015-03-07  Pedro Alves  <palves@redhat.com>
9850
9851         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9852         (amd64_epilogue_frame_cache): Normal exception handling code.
9853         * break-catch-throw.c (check_status_exception_catchpoint)
9854         (re_set_exception_catchpoint): Ditto.
9855         * cli/cli-interp.c (safe_execute_command):
9856         * cli/cli-script.c (script_from_file): Ditto.
9857         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9858         Ditto.
9859         * compile/compile-object-run.c (compile_object_run): Ditto.
9860         * cp-abi.c (baseclass_offset): Ditto.
9861         * cp-valprint.c (cp_print_value): Ditto.
9862         * exceptions.c (catch_exceptions_with_msg):
9863         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9864         * frame.c (get_frame_address_in_block_if_available): Ditto.
9865         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9866         (i386_sigtramp_frame_cache): Ditto.
9867         * infcmd.c (post_create_inferior): Ditto.
9868         * linespec.c (parse_linespec, find_linespec_symbols):
9869         * p-valprint.c (pascal_object_print_value): Ditto.
9870         * parse.c (parse_expression_for_completion): Ditto.
9871         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9872         * remote.c (remote_get_noisy_reply): Ditto.
9873         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9874         * solib-svr4.c (solib_svr4_r_map): Ditto.
9875
9876 2015-03-06  Gary Benson  <gbenson@redhat.com>
9877
9878         * common/common-utils.h (startswith): New inline function.
9879         All places where this logic was used updated to use the above.
9880
9881 2015-03-05  Pedro Alves  <palves@redhat.com>
9882
9883         PR gdb/18002
9884         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9885         after reading the breakpoint's shadow memory.
9886
9887 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
9888
9889         * hppabsd-nat.c: Remove file.
9890         * hppaobsd-nat.c: New file.
9891         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
9892         hppaobsd-nat.c.
9893         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9894         hppaobsd-nat.o.
9895
9896 2015-03-04  Pedro Alves  <palves@redhat.com>
9897
9898         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9899         (target_decr_pc_after_break): Delete declaration.
9900         * target.c (default_target_decr_pc_after_break)
9901         (target_decr_pc_after_break): Delete.
9902         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9903         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9904         * linux-thread-db.c (check_event): Likewise.
9905         * infrun.c (adjust_pc_after_break): Likewise.
9906         * darwin-nat.c (cancel_breakpoint): Likewise.
9907         * aix-thread.c (aix_thread_wait): Likewise.
9908         * target-delegates.c: Regenerate.
9909
9910 2015-03-04  Pedro Alves  <palves@redhat.com>
9911
9912         * linux-nat.c (save_sigtrap): Check for breakpoints before
9913         checking watchpoints.
9914         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9915         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9916         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9917         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9918         (linux_nat_stopped_by_sw_breakpoint)
9919         (linux_nat_supports_stopped_by_sw_breakpoint)
9920         (linux_nat_stopped_by_hw_breakpoint)
9921         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9922         (linux_nat_wait_1): Don't re-increment the PC if relying on
9923         SIGTRAP's siginfo->si_code.
9924         (linux_nat_add_target): Install new target methods.
9925         * linux-thread-db.c (check_event): Don't account for breakpoint PC
9926         offset if the target already adjusted the PC.
9927         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9928         (GDB_ARCH_TRAP_BRKPT): New.
9929         (TRAP_HWBKPT): Define if not already defined.
9930
9931 2015-03-04  Pedro Alves  <palves@redhat.com>
9932
9933         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9934         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9935         Delete field.
9936         <stop_reason>: New field.
9937         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9938         (packet_set_cmd_state): New function.
9939         (remote_protocol_features): Register the "swbreak" and "hwbreak"
9940         features.
9941         (remote_query_supported): If not disabled with the corresponding
9942         "set remote foo-packet" command, report support for the swbreak
9943         and hwbreak features.
9944         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9945         field.
9946         <stop_reason>: New field.
9947         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9948         (remote_wait_as): Adjust.
9949         (remote_stopped_by_sw_breakpoint)
9950         (remote_supports_stopped_by_sw_breakpoint)
9951         (remote_stopped_by_hw_breakpoint)
9952         (remote_supports_stopped_by_hw_breakpoint): New functions.
9953         (remote_stopped_by_watchpoint): New function.
9954         (init_remote_ops): Install them.
9955         (_initialize_remote): Register new "set/show remote
9956         swbreak-feature-packet" and "set/show remote
9957         swbreak-feature-packet" commands.
9958
9959 2015-03-04  Pedro Alves  <palves@redhat.com>
9960
9961         * btrace.h: Include target/waitstatus.h.
9962         (struct btrace_thread_info) <stop_reason>: New field.
9963         * record-btrace.c (record_btrace_step_thread): Use
9964         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9965         (record_btrace_decr_pc_after_break): Delete.
9966         (record_btrace_stopped_by_sw_breakpoint)
9967         (record_btrace_supports_stopped_by_sw_breakpoint)
9968         (record_btrace_stopped_by_hw_breakpoint)
9969         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9970         (init_record_btrace_ops): Install them.
9971         * record-full.c (record_full_hw_watchpoint): Delete and replace
9972         with ...
9973         (record_full_stop_reason): ... this throughout.
9974         (record_full_exec_insn): Adjust.
9975         (record_full_wait_1): Adjust.  No longer re-increment the PC.
9976         (record_full_wait_1): Adjust.  Use
9977         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9978         (record_full_stopped_by_watchpoint): Adjust.
9979         (record_full_stopped_by_sw_breakpoint)
9980         (record_full_supports_stopped_by_sw_breakpoint)
9981         (record_full_supports_stopped_by_sw_breakpoint)
9982         (record_full_stopped_by_hw_breakpoint)
9983         (record_full_supports_stopped_by_hw_breakpoint): New functions.
9984         (init_record_full_ops, init_record_full_core_ops): Install them.
9985         * record.c (record_check_stopped_by_breakpoint): New function.
9986         * record.h: Include target/waitstatus.h.
9987         (record_check_stopped_by_breakpoint): New declaration.
9988
9989 2015-03-04  Pedro Alves  <palves@redhat.com>
9990
9991         enum lwp_stop_reason -> enum target_stop_reason
9992         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9993         (linux_nat_stopped_by_watchpoint, status_callback)
9994         (linux_nat_wait_1): Adjust.
9995         * linux-nat.h (enum lwp_stop_reason): Delete.
9996         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9997         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9998         * target/waitstatus.h (enum target_stop_reason): New.
9999
10000 2015-03-04  Pedro Alves  <palves@redhat.com>
10001
10002         * breakpoint.c (need_moribund_for_location_type): New function.
10003         (bpstat_stop_status): Don't skipping checking moribund locations
10004         of breakpoint types which the target tell caused a stop.
10005         (program_breakpoint_here_p): New function, factored out from ...
10006         (bp_loc_is_permanent): ... this.
10007         (update_global_location_list): Don't create a moribund location if
10008         the target supports reporting stops of the type of the removed
10009         breakpoint.
10010         * breakpoint.h (program_breakpoint_here_p): New declaration.
10011         * infrun.c (adjust_pc_after_break): Return early if the target has
10012         already adjusted the PC.  Add comments.
10013         (handle_signal_stop): If nothing explains a signal, and the target
10014         tells us the stop was caused by a software breakpoint, check if
10015         there's a breakpoint instruction in the memory.  If so, adjust the
10016         PC before presenting the stop to the user.  Otherwise, ignore the
10017         trap.  If nothing explains a signal, and the target tells us the
10018         stop was caused by a hardware breakpoint, ignore the trap.
10019         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10020         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10021         to_supports_stopped_by_hw_breakpoint>: New fields.
10022         (target_stopped_by_sw_breakpoint)
10023         (target_supports_stopped_by_sw_breakpoint)
10024         (target_stopped_by_hw_breakpoint)
10025         (target_supports_stopped_by_hw_breakpoint): Define.
10026         * target-delegates.c: Regenerate.
10027
10028 2015-03-04  Pedro Alves  <palves@redhat.com>
10029
10030         * infrun.c (follow_fork_inferior): Use the whole of the
10031         inferior_ptid and pending_follow.related_pid ptids instead of
10032         building ptids from the process components.  Adjust verbose output
10033         to use target_pid_to_str.
10034         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10035         inferior_ptid and pending_follow.related_pid ptids instead of
10036         building ptids from the process components.
10037
10038 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10039
10040         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10041         (inf_ptrace_insert_fork_catchpoint): New function.
10042         (inf_ptrace_remove_fork_catchpoint): New function.
10043         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10044
10045 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10046
10047         * s390-linux-tdep.c (s390_register_name): Return empty string
10048         instead of NULL for registers that shouldn't be visible.
10049
10050 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10051
10052         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10053         XML file for 64-bit targets.
10054
10055 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10056
10057         * target.h (find_default_create_inferior): Remove declaration.
10058         (find_default_attach): Likewise.
10059
10060 2015-03-03  Pedro Alves  <palves@redhat.com>
10061
10062         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10063         Use ptid_get_pid to get the overall process id when resuming all
10064         threads.
10065
10066 2015-03-03  Pedro Alves  <palves@redhat.com>
10067
10068         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10069         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10070         * inf-ptrace.c (get_ptrace_pid): New function.
10071         (inf_ptrace_resume): Use it.
10072         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10073         to the lower layer.
10074
10075 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10076
10077         * nat/linux-btrace.c: Include sys/utsname.h.
10078         (linux_determine_kernel_ptr_bits): New.
10079         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10080         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10081         ptr_bits.
10082
10083 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10084
10085         * btrace.c (ftrace_update_function): Treat return as tailcall for
10086         "_dl_runtime_resolve".
10087
10088 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10089
10090         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10091         * btrace.c (ftrace_debug): Do not print the line range.
10092         (ftrace_skip_file, ftrace_update_lines): Remove.
10093         (ftrace_new_function): Remove lbegin and lend initialization.
10094         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10095         * record-btrace.c (btrace_compute_src_line_range): New.
10096         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10097
10098 2015-03-02  Pedro Alves  <palves@redhat.com>
10099
10100         * infrun.c (follow_exec): Delete all threads of the process except
10101         the event thread.  Extended comments.
10102
10103 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10104
10105         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10106
10107 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10108
10109         * utils.h: Remove <stdbool.h> #include.
10110         (producer_is_gcc): Change return type to "int".
10111         * utils.c (producer_is_gcc): Change return type to int.
10112         Return 1 instead of true, and 0 instead of false.
10113         Adjust function documentation accordingly.
10114
10115 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10116
10117         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10118         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10119         present.
10120         (s390_linux_store_inferior_registers): Likewise.
10121         (s390_get_hwcap): Remove function.  Embed its logic...
10122         (s390_read_description): ...here.  Yield a target description with
10123         vector registers if applicable.
10124         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10125         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10126         "features/s390x-tevx-linux64.c".
10127         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10128         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10129         for "GNU/Linux-specific registers".
10130         (s390_dwarf_reg_r0l): New enum value.
10131         (s390_dwarf_reg_to_regnum): Support vector registers.
10132         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10133         of GPR lower halves.
10134         (regnum_is_vxr_full): New function.
10135         (s390_register_name): New function.
10136         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10137         f0-f15 and v0l-v15l.
10138         (s390_pseudo_register_type): Likewise.
10139         (s390_pseudo_register_read): Likewise.
10140         (s390_pseudo_register_write): Likewise.
10141         (s390_value_from_register): Account for the fact that values are
10142         placed left-justified in vector registers.
10143         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10144         the vector reggroup and omit them from the general reggroup.
10145         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10146         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10147         (s390_iterate_over_regset_sections): Add iterations for the two
10148         new vector regsets.
10149         (s390_core_read_description): Yield a target description with
10150         vector registers if applicable.
10151         (s390_gdbarch_init): Handle target descriptions with vector
10152         registers.  Add "register_name" gdbarch method.
10153         (_initialize_s390_tdep): Call new tdesc initialization functions.
10154         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10155         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10156         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10157         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10158         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10159         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10160         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10161         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10162         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10163         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10164         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10165         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10166         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10167         (S390_NUM_REGS): Adjust value.
10168         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10169         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10170         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10171         * NEWS: Announce S/390 vector register support.
10172
10173 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10174
10175         * features/s390-tevx-linux64.xml: New file.
10176         * features/s390-vx-linux64.xml: New file.
10177         * features/s390-vx.xml: New file.
10178         * features/s390x-tevx-linux64.xml: New file.
10179         * features/s390x-vx-linux64.xml: New file.
10180         * features/Makefile (WHICH): Add s390-vx-linux64,
10181         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10182         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10183         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10184         macros.
10185         * features/s390-tevx-linux64.c: New generated file.
10186         * features/s390-vx-linux64.c: Likewise.
10187         * features/s390x-tevx-linux64.c: Likewise.
10188         * features/s390x-vx-linux64.c: Likewise.
10189         * regformats/s390-tevx-linux64.dat: Likewise.
10190         * regformats/s390-vx-linux64.dat: Likewise.
10191         * regformats/s390x-tevx-linux64.dat: Likewise.
10192         * regformats/s390x-vx-linux64.dat: Likewise.
10193
10194 2015-02-28  Doug Evans  <xdje42@gmail.com>
10195
10196         * symtab.h (struct symtab) <next>: Fix comment.
10197
10198 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10199
10200         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10201         python_GdbMethods.
10202
10203 2015-02-27  Pedro Alves  <palves@redhat.com>
10204
10205         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10206
10207 2015-02-27  Pedro Alves  <palves@redhat.com>
10208
10209         * common/common-exceptions.h (exception_none): Declare.
10210         * common/common-exceptions.c (exception_none): Moved from
10211         exceptions.c.
10212         (exceptions_state_mc_init): Use exception_none.
10213         * exceptions.c (exception_none): Move to
10214         common/common-exceptions.c.
10215         * exceptions.h (exception_none): Move to
10216         common/common-exceptions.h.
10217
10218 2015-02-27  Pedro Alves  <palves@redhat.com>
10219
10220         * main.c (catch_command_errors, catch_command_errors_const):
10221         Remove 'mask' argument.  Adjust.
10222         (captured_main): Adjust callers.
10223
10224 2015-02-27  Pedro Alves  <palves@redhat.com>
10225
10226         * python/python-internal.h: Include "extension-priv.h".
10227
10228 2015-02-27  Pedro Alves  <palves@redhat.com>
10229
10230         * breakpoint.h (enum print_stop_action): Move further up in the
10231         file.
10232
10233 2015-02-27  Pedro Alves  <palves@redhat.com>
10234
10235         * gdbarch.sh: Include regcache.h.
10236         * gdbarch.h: Regenerate.
10237
10238 2015-02-27  Pedro Alves  <palves@redhat.com>
10239
10240         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10241         Remove duplicate const.
10242         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10243         duplicate const.
10244
10245 2015-02-27  Pedro Alves  <palves@redhat.com>
10246
10247         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10248         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10249         * features/feature_to_c.sh: Tag the generated xml_builtin array
10250         with extern const in C++ mode.
10251
10252 2015-02-27  Tom Tromey  <tromey@redhat.com>
10253
10254         * minidebug.c (struct lzma_stream): Rename to ...
10255         (struct gdb_lzma_stream): ... this.
10256         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10257
10258 2015-02-27  Pedro Alves  <palves@redhat.com>
10259
10260         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10261         function.
10262         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10263         (mi_cmd_stack_list_variables): Use it.
10264
10265 2015-02-27  Pedro Alves  <palves@redhat.com>
10266
10267         * x86-linux-nat.c (u_debugreg_offset): New function.
10268         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10269
10270 2015-02-27  Pedro Alves  <palves@redhat.com>
10271
10272         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10273         declaration.
10274         Include break-common.h.
10275
10276 2015-02-27  Tom Tromey  <tromey@redhat.com>
10277             Pedro Alves <palves@redhat.com>
10278
10279         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10280         local used to iterate over enums.
10281         * completer.c (signal_completer): Likewise.
10282         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10283         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10284         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10285         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10286         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10287         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10288         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10289
10290 2015-02-27  Pedro Alves  <palves@redhat.com>
10291
10292         * target.h: Include "infrun.h".
10293
10294 2015-02-27  Pedro Alves  <palves@redhat.com>
10295
10296         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10297
10298 2015-02-27  Pedro Alves  <palves@redhat.com>
10299
10300         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10301         (IPA_SYM): Use it.
10302         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10303
10304 2015-02-27  Pedro Alves  <palves@redhat.com>
10305
10306         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10307         cli_mld_erase_entire_line, and make it extern "C".
10308         * common/common-defs.h (EXTERN_C): New.
10309         * completer.c (_rl_completion_prefix_display_length)
10310         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10311         out of gdb_display_match_list_1.
10312         (_rl_qsort_string_compare): Move declaration out of
10313         gdb_display_match_list_1, and make it extern "C".
10314         * defs.h (re_comp): Use EXTERN_C.
10315         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10316         and make it extern "C".
10317         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10318         and make it extern "C".
10319         (main): Move declaration out of maintenance_set_profile_cmd.
10320         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10321         EXTERN_C.
10322
10323 2015-02-27  Pedro Alves  <palves@redhat.com>
10324
10325         * python/python.c (GdbMethods): Rename to ...
10326         (python_GdbMethods): ... this and make extern.
10327         (GdbModuleDef): Rename to ...
10328         (python_GdbModuleDef): ... this and make extern.
10329
10330 2015-02-27  Pedro Alves  <palves@redhat.com>
10331
10332         * record-btrace.c (set_record_btrace_cmdlist)
10333         (show_record_btrace_cmdlist): Remove redefinitions.
10334
10335 2015-02-27  Tom Tromey  <tromey@redhat.com>
10336             Pedro Alves  <palves@redhat.com>
10337
10338         * dwarf2-frame.c (enum cfa_how_kind, struct
10339         dwarf2_frame_state_reg_info): Move out of struct
10340         dwarf2_frame_state.
10341         * dwarf2read.c (struct tu_stats): Move out of struct
10342         dwarf2_per_objfile.
10343         (struct file_entry): Move out of struct line_header.
10344         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10345         typedef_field_list): Move out of struct field_info.
10346         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10347         Move out of struct dynamic_prop.
10348         (union type_owner, union field_location, struct field, struct
10349         range_bounds, union type_specific): Move out of struct main_type.
10350         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10351         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10352         (struct call_site_target, union call_site_parameter_u, struct
10353         call_site_parameter): Move out of struct call_site.
10354         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10355         m32c_prologue.
10356         (enum srcdest_kind): Move out of struct srcdest.
10357         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10358         * prologue-value.h (enum prologue_value_kind): Move out of struct
10359         prologue_value.
10360         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10361         gdbarch_tdep.
10362         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10363         out of struct field_info.
10364         * symfile.h (struct other_sections): Move out of struct
10365         section_addr_info.
10366         * symtab.c (struct symbol_cache_slot): Move out struct
10367         block_symbol_cache.
10368         * target-descriptions.c (enum tdesc_type_kind): Move out of
10369         typedef struct tdesc_type.
10370         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10371         struct tui_line_or_address.
10372         * value.c (enum internalvar_kind, union internalvar_data): Move
10373         out of struct internalvar.
10374         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10375         gdbarch_tdep.
10376
10377 2015-02-27  Tom Tromey  <tromey@redhat.com>
10378             Pedro Alves  <palves@redhat.com>
10379
10380         Rename symbols whose names are reserved C++ keywords throughout.
10381
10382 2015-02-27  Pedro Alves  <palves@redhat.com>
10383
10384         * Makefile.in (COMPILER): New, get it from autoconf.
10385         (COMPILE.pre, CC_LD): Use COMPILER.
10386         (CXX): Get from autoconf instead.
10387         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10388         * acinclude.m4: Include build-with-cxx.m4.
10389         * build-with-cxx.m4: New file.
10390         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10391         Disable -Werror by default if building in C++ mode.
10392         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10393         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10394         Run supported-warning-flags tests with the C++ compiler.
10395         Save/restore CXXFLAGS too.
10396         * configure: Regenerate.
10397
10398 2015-02-27  Pedro Alves  <palves@redhat.com>
10399
10400         * libiberty.m4: New file.
10401         * acinclude.m4: Include libiberty.m4.
10402         * configure.ac: Call libiberty_INIT.
10403         * config.in, configure: Regenerate.
10404
10405 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10406
10407         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10408         31-bit targets, but 64-bit targets as well.
10409         (s390_gnu_triplet_regexp): New function.
10410         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10411         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10412         method.
10413
10414 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10415
10416         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10417         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10418         from CONTEXT_DEBUGGER.
10419
10420 2015-02-26  Doug Evans  <dje@google.com>
10421
10422         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10423         CHECK_TYPEDEF.
10424         (set_type_vptr_fieldno): Ditto.
10425         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10426         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10427
10428 2015-02-26  Pedro Alves  <palves@redhat.com>
10429
10430         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10431         * complaints.c (vcomplaint): Pass argument FMT directly to
10432         printf-like functions instead of complaint->fmt.
10433         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10434         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10435         * compile/compile-loc2c.c (pushf, unary, binary): Add
10436         ATTRIBUTE_PRINTF.
10437         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10438         to pushf.
10439         (BINARY): Pass string literal as format string to 'binary'.
10440         * compile/compile-object-load.c (link_callbacks_einfo): Add
10441         ATTRIBUTE_PRINTF.
10442         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10443
10444 2015-02-26  Pedro Alves  <palves@redhat.com>
10445
10446         * windows-termcap.c: Rename to ...
10447         * stub-termcap.c: ... this.  Adjust header line.
10448         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10449         windows-termcap.c.
10450         * configure: Regenerate.
10451         * configure.ac: Refer to stub-termcap.o instead of
10452         windows-termcap.o.
10453         * gdb_curses.h: Mention stub-termcap.c instead of
10454         windows-termcap.c.
10455
10456 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10457
10458         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10459         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10460
10461 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10462
10463         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10464
10465 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10466
10467         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10468         bfd_canonicalize_symtab.
10469
10470 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10471
10472         * amd64fbsd-nat.c: Include sys/user.h.
10473         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10474         instead of KERN_PS_STRINGS to locate the signal trampoline.
10475         * i386fbsd-nat.c: Include sys/user.h.
10476         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10477         instead of KERN_PS_STRINGS to locate the signal trampoline.
10478         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10479         (amd64fbsd_sigtramp_p): New.
10480         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10481         longer set default values.
10482         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10483         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10484         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10485         (i386fbsd_freebsd4_sigtramp_start)
10486         (i386fbsd_freebsd4_sigtramp_middle)
10487         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10488         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10489         (i386fbsd_sigtramp_p): New.
10490         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10491         longer set default values.
10492         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10493
10494 2015-02-25  John Baldwin  <jhb@freebsd.org>
10495
10496         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10497         get_frame_register instead of frame_unwind_register_unsigned.
10498
10499 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10500
10501         PR build/18033
10502         * compile/compile-c-support.c (c_compute_program): Change // comment.
10503         * compile/compile-object-load.c (setup_sections): Change // comment.
10504
10505 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10506
10507         PR build/18033:
10508         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10509
10510 2015-02-23  Pedro Alves  <palves@redhat.com>
10511
10512         * remote.c (skip_to_semicolon): New function.
10513         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10514         special case the stop reasons that look like hex numbers
10515         upfront.  Instead handle real register numbers after matching
10516         all the known stop reasons.
10517
10518 2015-02-21  Doug Evans  <dje@google.com>
10519
10520         PR c++/17976, symtab/17821
10521         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10522         is_in_anonymous.  All callers updated.
10523         (find_symbol_in_baseclass): Ditto.
10524         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10525         for symbols in an anonymous namespace.
10526         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10527         DW_AT_name directly.
10528         (dwarf2_name): Convert missing namespace name to
10529         CP_ANONYMOUS_NAMESPACE_STR.
10530
10531 2015-02-20  Pedro Alves  <palves@redhat.com>
10532
10533         * linux-nat.c (linux_handle_extended_wait): Call
10534         thread_db_notice_clone whenever a new clone LWP is detected.
10535         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10536         functions.
10537         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10538         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10539         (linux_unstop_all_lwps): Declare.
10540         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10541         (thread_get_info_callback): Delete.
10542         (thread_from_lwp): Use td_thr_get_info and record_thread.
10543         (thread_db_attach_lwp): Delete.
10544         (thread_db_notice_clone): New function.
10545         (try_thread_db_load_1): If /proc is mounted and shows the
10546         process'es task list, walk over all LWPs and call thread_from_lwp
10547         instead of relying on td_ta_thr_iter.
10548         (attach_thread): Don't call check_thread_signals here.  Split the
10549         tail part of the function (which adds the thread to the core GDB
10550         thread list) to ...
10551         (record_thread): ... this function.  Call check_thread_signals
10552         here.
10553         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10554         call thread_from_lwp.
10555         (thread_db_update_thread_list): Rename to ...
10556         (thread_db_update_thread_list_org): ... this.
10557         (thread_db_update_thread_list): New function.
10558         (thread_db_find_thread_from_tid): Delete.
10559         (thread_db_get_ada_task_ptid): Simplify.
10560         * nat/linux-procfs.c: Include <sys/stat.h>.
10561         (linux_proc_task_list_dir_exists): New function.
10562         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10563
10564 2015-02-20  Pedro Alves  <palves@redhat.com>
10565
10566         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10567         main LWP.  Handle the case of waitpid returning 0 if we're already
10568         attached to the LWP.  Don't set the LWP's last_resume_kind to
10569         resume_stop if we already knew about the LWP.
10570         (linux_nat_filter_event): Add debug logs.
10571
10572 2015-02-20  Pedro Alves  <palves@redhat.com>
10573
10574         * target.h (forward_target_decr_pc_after_break): Delete
10575         declaration.
10576
10577 2015-02-20  Pedro Alves  <palves@redhat.com>
10578
10579         PR threads/18006
10580         * linux-thread-db.c (thread_get_info_callback): Return early if
10581         the thread's lwp id is -1.
10582
10583 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10584
10585         GDB 7.9 released.
10586
10587 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10588
10589         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10590         (dtrace_get_probes) Change type of variable 'dof'.
10591
10592 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10593
10594         PR breakpoints/16812
10595         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10596         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10597         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10598
10599 2015-02-19  David Taylor  <dtaylor@emc.com>
10600
10601         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10602
10603 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10604
10605         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10606         function.
10607         (tui_putc): Don't call tui_handle_resize_during_io.
10608         (tui_getc): Likewise.
10609         (tui_mld_getc): Likewise.
10610         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10611         (tui_sigwinch_token): New static variable.
10612         (tui_initialize_win): Adjust documentation.  Set
10613         tui_sigwinch_token.
10614         (tui_async_resize_screen): New asynchronous callback.
10615         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10616         invoke tui_async_resize_screen.
10617
10618 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10619
10620         * configure: Regenerated.
10621         * configure.ac: Use GDB_AC_TRANSFORM.
10622         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10623         * acinclude.m4: sinclude transform.m4.
10624         * transform.m4: New file.
10625         (GDB_AC_TRANSFORM): New macro.
10626
10627 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10628
10629         * NEWS: Announce the support for DTrace SDT probes.
10630
10631 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10632
10633         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10634         (amd64_dtrace_parse_probe_argument): New function.
10635         (amd64_dtrace_probe_is_enabled): Likewise.
10636         (amd64_dtrace_enable_probe): Likewise.
10637         (amd64_dtrace_disable_probe): Likewise.
10638         (amd64_linux_init_abi): Register the
10639         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10640         `gdbarch_dtrace_disable_probe' and
10641         `gdbarch_dtrace_probe_is_enabled' hooks.
10642         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10643         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10644         (amd64_dtrace_enable_probe_sequence): Likewise.
10645         (amd64_dtrace_disable_probe_sequence): Likewise.
10646
10647 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10648
10649         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10650         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10651         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10652         handle ELF files.
10653         * Makefile.in (SFILES): dtrace-probe.c added.
10654         * configure: Regenerate.
10655         * dtrace-probe.c: New file.
10656         (SHT_SUNW_dof): New constant.
10657         (dtrace_probe_type): New enum.
10658         (dtrace_probe_arg): New struct.
10659         (dtrace_probe_arg_s): New typedef.
10660         (struct dtrace_probe_enabler): New struct.
10661         (dtrace_probe_enabler_s): New typedef.
10662         (dtrace_probe): New struct.
10663         (dtrace_probe_is_linespec): New function.
10664         (dtrace_dof_sect_type): New enum.
10665         (dtrace_dof_dofh_ident): Likewise.
10666         (dtrace_dof_encoding): Likewise.
10667         (DTRACE_DOF_ENCODE_LSB): Likewise.
10668         (DTRACE_DOF_ENCODE_MSB): Likewise.
10669         (dtrace_dof_hdr): New struct.
10670         (dtrace_dof_sect): Likewise.
10671         (dtrace_dof_provider): Likewise.
10672         (dtrace_dof_probe): Likewise.
10673         (DOF_UINT): New macro.
10674         (DTRACE_DOF_PTR): Likewise.
10675         (DTRACE_DOF_SECT): Likewise.
10676         (dtrace_process_dof_probe): New function.
10677         (dtrace_process_dof): Likewise.
10678         (dtrace_build_arg_exprs): Likewise.
10679         (dtrace_get_arg): Likewise.
10680         (dtrace_get_probes): Likewise.
10681         (dtrace_get_probe_argument_count): Likewise.
10682         (dtrace_can_evaluate_probe_arguments): Likewise.
10683         (dtrace_evaluate_probe_argument): Likewise.
10684         (dtrace_compile_to_ax): Likewise.
10685         (dtrace_probe_destroy): Likewise.
10686         (dtrace_gen_info_probes_table_header): Likewise.
10687         (dtrace_gen_info_probes_table_values): Likewise.
10688         (dtrace_probe_is_enabled): Likewise.
10689         (dtrace_probe_ops): New variable.
10690         (info_probes_dtrace_command): New function.
10691         (_initialize_dtrace_probe): Likewise.
10692         (dtrace_type_name): Likewise.
10693
10694 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10695
10696         * gdbarch.sh (dtrace_parse_probe_argument): New.
10697         (dtrace_probe_is_enabled): Likewise.
10698         (dtrace_enable_probe): Likewise.
10699         (dtrace_disable_probe): Likewise.
10700         * gdbarch.c: Regenerate.
10701         * gdbarch.h: Regenerate.
10702
10703 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10704
10705         * stap-probe.c (stap_probe_ops): Add NULLs in the static
10706         stap_probe_ops for `enable_probe' and `disable_probe'.
10707         * probe.c (enable_probes_command): New function.
10708         (disable_probes_command): Likewise.
10709         (_initialize_probe): Define the cli commands `enable probe' and
10710         `disable probe'.
10711         (parse_probe_linespec): New function.
10712         (info_probes_for_ops): Use parse_probe_linespec.
10713         * probe.h (probe_ops): New hooks `enable_probe' and
10714         `disable_probe'.
10715
10716 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10717
10718         * probe.c (compute_probe_arg): Moved from stap-probe.c
10719         (compile_probe_arg): Likewise.
10720         (probe_funcs): Likewise.
10721         * stap-probe.c (compute_probe_arg): Moved to probe.c.
10722         (compile_probe_arg): Likewise.
10723         (probe_funcs): Likewise.
10724
10725 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10726
10727         * probe.c (print_ui_out_not_applicables): New function.
10728         (exists_probe_with_pops): Likewise.
10729         (info_probes_for_ops): Do not include column headers for probe
10730         types for which no probe has been actually found on any object.
10731         Also invoke `print_ui_out_not_applicables' in order to match the
10732         column rows with the header when probes of several types are
10733         listed.
10734         Print the "Type" column.
10735         * probe.h (probe_ops): Added a new probe operation `type_name'.
10736         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10737         (stap_type_name): New function.
10738
10739 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
10740
10741         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10742         (key_is_command_char): Delete.
10743
10744 2015-02-17  Pedro Alves  <palves@redhat.com>
10745
10746         * tui/tui.c (tui_enable): Resize windows before anything
10747         might show a window.
10748
10749 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10750
10751         PR gdb/17984
10752         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10753         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10754         call.
10755         * aarch64-tdep.h (tdesc_aarch64): Declare.
10756
10757 2015-02-12  Mark Wielaard  <mjw@redhat.com>
10758
10759         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10760
10761 2015-02-13  Doug Evans  <dje@google.com>
10762
10763         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10764         anonymous_namespace to is_in_anonymous for consistency with the rest
10765         of the file.
10766         (cp_lookup_bare_symbol): Fix typo in comment.
10767         (cp_search_static_and_baseclasses): Ditto.
10768         (search_symbol_list): Use vertical space in comment better.
10769         (reset_directive_searched): Ditto. Fix typo.
10770         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10771
10772 2015-02-13  Yao Qi  <yao.qi@arm.com>
10773
10774         * MAINTAINERS: Update my email address.
10775
10776 2015-02-12  Doug Evans  <dje@google.com>
10777
10778         * symtab.c (completion_list_add_name): Fix memory leak.
10779
10780 2015-02-12  Doug Evans  <dje@google.com>
10781
10782         * completer.c (complete_line): Remove incorrect comment.
10783
10784 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10785
10786         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10787         (py_print_frame): Use RETURN_MASK_ERROR.
10788
10789 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10790
10791         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10792         function comment.  Wrap all function that can throw in cleanups.
10793         (gdbpy_apply_frame_filter): Wrap all function that can throw in
10794         cleanups.
10795
10796 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10797
10798         * python/py-framefilter.c (py_print_frame): Substitute goto error.
10799         Remove the error label.
10800
10801 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10802
10803         * python/py-framefilter.c (py_print_frame): Put conditional code paths
10804         with goto first, indent the former else codepath left.  Put variable
10805         'elided' to a new inner block.
10806
10807 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10808
10809         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10810
10811 2015-02-11  Pedro Alves  <palves@redhat.com>
10812
10813         * xcoffread.c (within_function): Delete.
10814
10815 2015-02-11  Tom Tromey  <tromey@redhat.com>
10816             Pedro Alves <palves@redhat.com>
10817
10818         * breakpoint.c (base_breakpoint_ops): Delete.
10819         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10820         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10821         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10822         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10823         * python/py-arch.c (arch_object_type): Make extern.
10824         * python/py-block.c (block_syms_iterator_object_type): Make extern.
10825         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10826         * python/py-cmd.c (cmdpy_object_type): Make extern.
10827         * python/py-continueevent.c (continue_event_object_type)
10828         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10829         parameter.  Update all callers.
10830         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10831         * python/py-exitedevent.c (exited_event_object_type): Make extern.
10832         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10833         * python/py-function.c (fnpy_object_type): Make extern.
10834         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10835         * python/py-infevents.c (call_pre_event_object_type)
10836         (inferior_call_post_event_object_type).
10837         (memory_changed_event_object_type): Make extern.
10838         * python/py-infthread.c (thread_object_type): Make extern.
10839         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10840         * python/py-linetable.c (linetable_entry_object_type)
10841         (linetable_object_type, ltpy_iterator_object_type): Make extern.
10842         * python/py-newobjfileevent.c (new_objfile_event_object_type)
10843         (clear_objfiles_event_object_type): Make extern.
10844         * python/py-objfile.c (objfile_object_type): Make extern.
10845         * python/py-param.c (parmpy_object_type): Make extern.
10846         * python/py-progspace.c (pspace_object_type): Make extern.
10847         * python/py-signalevent.c (signal_event_object_type): Make extern.
10848         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10849         * python/py-type.c (type_object_type, field_object_type)
10850         (type_iterator_object_type): Make extern.
10851         * python/python.c (python_extension_script_ops)
10852         (python_extension_ops): Make extern.
10853         * stap-probe.c (stap_probe_ops): Make extern.
10854
10855 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
10856
10857         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10858         because the event thread is not the current thread.
10859
10860 2015-02-11  Doug Evans  <xdje42@gmail.com>
10861
10862         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10863         been initialized yet, return NULL.
10864
10865 2015-02-11  Doug Evans  <dje@google.com>
10866
10867         * symfile.h (new_symfile_objfile): Delete.
10868         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10869         All callers updated.
10870
10871 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10872
10873         * tui/tui-io.c (tui_handle_resize_during_io): Call
10874         tui_update_gdb_sizes() after resizing the screen.
10875         * tui/tui.c (tui_enable): Resize the terminal before
10876         calling tui_update_gdb_sizes().
10877
10878 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10879
10880         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10881         line before printing a newline.
10882
10883 2015-02-11  Mark Wielaard  <mjw@redhat.com>
10884
10885         * utils.c (producer_is_gcc): Return true or false.
10886
10887 2015-02-10  Mark Wielaard  <mjw@redhat.com>
10888
10889         * utils.h (producer_is_gcc): Change return type to bool. Add major
10890         argument.
10891         * utils.c (producer_is_gcc): Likewise.
10892         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10893         * dwarf2read.c (check_producer): Likewise.
10894
10895 2015-02-10  Pedro Alves  <palves@redhat.com>
10896
10897         * infrun.c (displaced_step_fixup): Switch to the event thread
10898         before calling gdbarch_displaced_step_fixup.
10899
10900 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
10901
10902         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10903
10904 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
10905
10906         * ada-varobj.c (ada_name_of_child): Constify parent.
10907         (ada_path_expr_of_child): Same.
10908         (ada_value_of_child): Same.
10909         (ada_type_of_child): Same.
10910         * c-varobj.c (c_is_path_expr_parent): Same.
10911         (c_describe_child): Same.
10912         (c_name_of_child): Same.
10913         (c_value_of_child): Same.
10914         (c_type_of_child): Same.
10915         (cplus_number_of_children): Same.
10916         (cplus_describe_child): Constify var.
10917         (cplus_name_of_child): Constify parent.
10918         (cplus_value_of_child): Same.
10919         (cplus_type_of_child): Same.
10920         * jv-varobj.c (java_name_of_child): Same.
10921         (java_value_of_child): Same.
10922         (java_type_of_child): Same.
10923         * varobj.c (value_of_child): Same.
10924         (varobj_default_is_path_expr_parent): Constify var, parent and return
10925         value.
10926         (varobj_get_path_expr): Constify var, modify path_expr through
10927         mutable_var.
10928         (install_new_value): Constify parent.
10929         (value_of_child): Constify parent.
10930         * varobj.h (struct varobj): Constify parent.
10931         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10932         type_of_child.
10933         (varobj_get_path_expr): Constify var.
10934         (varobj_get_path_expr_parent): Constify var and return value.
10935
10936 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
10937
10938         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10939         (arm_prologue_this_id): Move PC and SP limit checks to
10940         arm_prologue_unwind_stop_reason.
10941         (arm_prologue_unwind) <stop_reason> : Set to
10942         arm_prologue_unwind_stop_reason.
10943
10944 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10945
10946         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10947         DW_LANG_Fortran08 as language_fortran.
10948
10949 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
10950
10951         PR remote/17946
10952         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10953         of pointer against char.
10954
10955 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10956
10957         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10958         (c_type_print_modifier): Likewise.
10959         * dwarf2read.c (read_tag_atomic_type): New function.
10960         (read_type_die_1): Handle DW_TAG_atomic_type.
10961         * gdbtypes.c (make_atomic_type): New function.
10962         (recursive_dump_type): Handle TYPE_ATOMIC.
10963         * gdbtypes.h (enum type_flag_values): Renumber.
10964         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10965         (TYPE_ATOMIC): New macro.
10966         (make_atomic_type): Declare.
10967
10968 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10969
10970         * btrace.c (ftrace_find_call): Skip gaps.
10971         (ftrace_new_function): Initialize level.
10972         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10973         (ftrace_new_switch): Update
10974         level computation.
10975         (ftrace_new_gap): New.
10976         (ftrace_update_function): Create new function after gap.
10977         (btrace_compute_ftrace_bts): Create gap on error.
10978         (btrace_stitch_bts): Update parameters.  Clear trace if it
10979         becomes empty.
10980         (btrace_stitch_trace): Update parameters.  Update callers.
10981         (btrace_clear): Reset the number of gaps.
10982         (btrace_insn_get): Return NULL if the iterator points to a gap.
10983         (btrace_insn_number): Return zero if the iterator points to a gap.
10984         (btrace_insn_end): Allow gaps at the end.
10985         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10986         (btrace_find_insn_by_number): Assert that the found iterator does
10987         not point to a gap.
10988         (btrace_call_next, btrace_call_prev): Assert that the last function
10989         is not a gap.
10990         * btrace.h (btrace_bts_error): New.
10991         (btrace_function): Update comment.
10992         (btrace_function) <insn, insn_offset, number>: Update comment.
10993         (btrace_function) <errcode>: New.
10994         (btrace_thread_info) <ngaps>: New.
10995         (btrace_thread_info) <replay>: Update comment.
10996         (btrace_insn_get): Update comment.
10997         * record-btrace.c (btrace_ui_out_decode_error): New.
10998         (record_btrace_info): Print number of gaps.
10999         (btrace_insn_history, btrace_call_history): Call
11000         btrace_ui_out_decode_error for gaps.
11001         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11002
11003 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11004
11005         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11006         * nat/linux-btrace.c: (btrace_this_cpu): New.
11007         (cpu_supports_bts): Call btrace_this_cpu.
11008         (intel_supports_bts): Add cpu parameter.
11009
11010 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11011
11012         * btrace.h (btrace_insn_class): New.
11013         (btrace_insn) <size, iclass>: New.
11014         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11015         Use instruction classification.
11016         (ftrace_new_return): Update parameters.  Update users.
11017         (ftrace_update_function): Update parameters.  Update users.  Use
11018         instruction classification.
11019         (ftrace_update_insns): Update parameters.  Update users.
11020         (ftrace_classify_insn): New.
11021         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11022         TRY_CATCH around call to gdb_insn_length.
11023
11024 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11025
11026         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11027         Update parameters.  Update users.
11028
11029 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11030
11031         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11032         (btrace_conf_bts_attributes): New.
11033         (btrace_conf_children): Add attributes.
11034         * common/btrace-common.h (btrace_config_bts): New.
11035         (btrace_config)<bts>: New.
11036         (btrace_config): Update comment.
11037         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11038         Use config.
11039         * features/btrace-conf.dtd: Increment version.  Add size
11040         attribute to bts element.
11041         * record-btrace.c (set_record_btrace_bts_cmdlist,
11042         show_record_btrace_bts_cmdlist): New.
11043         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11044         record_btrace_print_conf, cmd_set_record_btrace_bts,
11045         cmd_show_record_btrace_bts): New.
11046         (record_btrace_info): Call record_btrace_print_conf.
11047         (_initialize_record_btrace): Add commands.
11048         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11049         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11050         (btrace_sync_conf): Synchronize bts size.
11051         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11052         * NEWS: Announce new commands and new packets.
11053
11054 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11055
11056         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11057         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11058         (x86_linux_btrace_conf): New.
11059         (x86_linux_create_target): Initialize to_btrace_conf.
11060         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11061         Check format.  Split into this and ...
11062         (linux_enable_bts): ... this.
11063         (linux_btrace_conf): New.
11064         (perf_event_skip_record): Renamed into ...
11065         (perf_event_skip_bts_record): ... this.  Updated users.
11066         (linux_disable_btrace): Split into this and ...
11067         (linux_disable_bts): ... this.
11068         (linux_read_btrace): Check format.
11069         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11070         (linux_btrace_conf): New.
11071         (btrace_target_info)<ptid>: Moved.
11072         (btrace_target_info)<conf>: New.
11073         (btrace_target_info): Split into this and ...
11074         (btrace_tinfo_bts): ... this.  Updated users.
11075         * btrace.c (btrace_enable): Update parameters.
11076         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11077         (btrace_conf_children, btrace_conf_attributes)
11078         (btrace_conf_elements): New.
11079         * btrace.h (btrace_enable): Update parameters.
11080         (btrace_conf, parse_xml_btrace_conf): New.
11081         * common/btrace-common.h (btrace_config): New.
11082         * feature/btrace-conf.dtd: New.
11083         * record-btrace.c (record_btrace_conf): New.
11084         (record_btrace_cmdlist): New.
11085         (record_btrace_enable_warn, record_btrace_open): Pass
11086         &record_btrace_conf.
11087         (record_btrace_info): Print recording format.
11088         (cmd_record_btrace_bts_start): New.
11089         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11090         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11091         Add "record bts" alias command.
11092         * remote.c (remote_state)<btrace_config>: New.
11093         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11094         (remote_protocol_features): Add qXfer:btrace-conf:read.
11095         (remote_open_1): Call remote_btrace_reset.
11096         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11097         (btrace_target_info)<conf>: New.
11098         (btrace_sync_conf, btrace_read_config): New.
11099         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11100         btrace_read_conf.
11101         (remote_btrace_conf): New.
11102         (init_remote_ops): Initialize to_btrace_conf.
11103         (_initialize_remote): Add qXfer:btrace-conf packet.
11104         * target.c (target_enable_btrace): Update parameters.
11105         (target_btrace_conf): New.
11106         * target.h (target_enable_btrace): Update parameters.
11107         (target_btrace_conf): New.
11108         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11109         (target_ops)<to_enable_btrace>: Update parameters and comment.
11110         (target_ops)<to_btrace_conf>: New.
11111         * target-delegates: Regenerate.
11112         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11113         (target_debug_print_const_struct_btrace_target_info_p): New.
11114         * NEWS: Announce new command and new packet.
11115
11116 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11117
11118         * nat/linux-btrace.h (perf_event_buffer): New.
11119         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11120         <bts>: ... this.
11121         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11122         (perf_event_buffer_size, perf_event_buffer_begin)
11123         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11124         Updated users.
11125         (perf_event_new_data): New.
11126
11127 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11128
11129         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11130         * record-btrace.c (record_btrace_open): Remove call to
11131         target_supports_btrace.
11132         * remote.c (remote_supports_btrace): Update parameters.
11133         * target.c (target_supports_btrace): Update parameters.
11134         * target.h (to_supports_btrace, target_supports_btrace): Update
11135         parameters.
11136         * target-delegates.c: Regenerate.
11137         * target-debug.h (target_debug_print_enum_btrace_format): New.
11138         * nat/linux-btrace.c
11139         (kernel_supports_btrace): Rename into ...
11140         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11141         (intel_supports_btrace): Rename into ...
11142         (intel_supports_bts): ... this.  Update users.
11143         (cpu_supports_btrace): Rename into ...
11144         (cpu_supports_bts): ... this.  Update users.
11145         (linux_supports_btrace): Update parameters.  Split into this and ...
11146         (linux_supports_bts): ... this.
11147         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11148
11149 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11150
11151         * Makefile.in (SFILES): Add common/btrace-common.c.
11152         (COMMON_OBS): Add common/btrace-common.o.
11153         (btrace-common.o): Add build rules.
11154         * btrace.c (parse_xml_btrace): Update parameters.
11155         (parse_xml_btrace_block): Set format field.
11156         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11157         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11158         (btrace_compute_ftrace): Split into this and...
11159         (btrace_compute_ftrace_bts): ...this.
11160         (btrace_stitch_trace): Split into this and...
11161         (btrace_stitch_bts): ...this.
11162         * btrace.h (parse_xml_btrace): Update parameters.
11163         (make_cleanup_btrace_data): New.
11164         * common/btrace-common.c: New.
11165         * common/btrace-common.h: Include common-defs.h.
11166         (btrace_block_s): Update comment.
11167         (btrace_format): New.
11168         (btrace_format_string): New.
11169         (btrace_data_bts): New.
11170         (btrace_data): New.
11171         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11172         * remote.c (remote_read_btrace): Update parameters.
11173         * target.c (target_read_btrace): Update parameters.
11174         * target.h (target_read_btrace): Update parameters.
11175         (target_ops)<to_read_btrace>: Update parameters.
11176         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11177         * target-delegates.c: Regenerate.
11178         * target-debug (target_debug_print_struct_btrace_data_p): New.
11179         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11180         (linux_read_bts): ...this.
11181         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11182
11183 2015-02-06  Doug Evans  <dje@google.com>
11184
11185         * remote-m32r-sdi.c: Include symfile.h.
11186
11187 2015-02-06  Doug Evans  <dje@google.com>
11188
11189         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11190         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11191         to here.
11192
11193 2015-02-06  Pedro Alves  <palves@redhat.com>
11194
11195         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11196
11197 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11198
11199         PR gdb/15678
11200         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11201         (enable_count_command): Check args for NULL value.
11202
11203 2015-02-05  Doug Evans  <xdje42@gmail.com>
11204
11205         * guile/scm-frame.c: Fix spelling errors in a comment.
11206
11207 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11208
11209         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11210         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11211         return type.
11212
11213 2015-02-04  Pedro Alves  <palves@redhat.com>
11214
11215         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11216         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11217         returns true.
11218         (resume_stopped_resumed_lwps): Don't check whether the thread is
11219         marked as executing.
11220         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11221
11222 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11223
11224         * regset.h (struct regset): Add flags field.
11225         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11226         * corelow.c (get_core_register_section): Add warning if the size
11227         exceeds the requested size and the regset does not have the
11228         REGSET_VARIABLE_SIZE flag set.
11229         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11230         flag.
11231         * armbsd-tdep.c (armbsd_gregset): Likewise.
11232         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11233         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11234         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11235         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11236
11237 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11238
11239         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11240         For ".reg-xstate", explicitly specify the requested section size
11241         via X86_XSTATE_SIZE instead of just 0 on input and
11242         X86_XSTATE_MAX_SIZE on output.
11243         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11244         Likewise.
11245
11246 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11247
11248         PR corefiles/17808:
11249         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11250         function type, particularly its SIZE parameter.
11251         * gdbarch.h: Regenerate.
11252         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11253         actual against required size using ">=" instead of "==".
11254         (amd64_collect_fpregset): Likewise.
11255         * i386-tdep.c (i386_supply_gregset): Likewise.
11256         (i386_collect_gregset): Likewise.
11257         (i386_supply_fpregset): Likewise.
11258         (i386_collect_fpregset): Likewise.
11259         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11260         (mips_fill_gregset_wrapper): Likewise.
11261         (mips_supply_fpregset_wrapper): Likewise.
11262         (mips_fill_fpregset_wrapper): Likewise.
11263         (mips64_supply_gregset_wrapper): Likewise.
11264         (mips64_fill_gregset_wrapper): Likewise.
11265         (mips64_supply_fpregset_wrapper): Likewise.
11266         (mips64_fill_fpregset_wrapper): Likewise.
11267         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11268         (am33_supply_fpregset_method): Likewise.
11269         (am33_collect_gregset_method): Likewise.
11270         (am33_collect_fpregset_method): Likewise.
11271
11272 2015-02-04  Doug Evans  <dje@google.com>
11273             Pedro Alves  <palves@redhat.com>
11274             Eli Zaretskii  <eliz@gnu.org>
11275
11276         PR tui/17810
11277         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11278         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11279         * tui/tui-file.c: #include tui/tui-command.h.
11280         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11281         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11282         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11283
11284 2015-02-04  Pedro Alves  <palves@redhat.com>
11285
11286         Fix build breakage.
11287         * event-loop.c (gdb_do_one_event): Add default switch case.
11288
11289 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11290
11291         Filter out inferior gcc option -fpreprocessed.
11292         * compile/compile.c (filter_args): New function.
11293         (get_args): Use it.
11294
11295 2015-02-03  Pedro Alves  <palves@redhat.com>
11296
11297         * event-loop.c: Don't declare nor define a queue type for
11298         gdb_event_p.
11299         (event_queue): Delete.
11300         (create_event, create_file_event, gdb_event_xfree)
11301         (initialize_event_loop, process_event): Delete.
11302         (gdb_do_one_event): Return as soon as one event is handled.
11303         (handle_file_event): Change prototype.  Used the passed in
11304         file_handler pointer and ready_mask instead of looping over all
11305         file handlers.
11306         (gdb_wait_for_event): Update the poll/select timeouts before
11307         blocking.  Run event handlers directly instead of queueing events.
11308         Return as soon as one event is handled.
11309         (struct async_event_handler_data): Delete.
11310         (invoke_async_event_handler): Delete.
11311         (check_async_event_handlers): Change return type to int.  Run
11312         event handlers directly instead of queueing events.  Return as
11313         soon as one event is handled.
11314         (handle_timer_event): Delete.
11315         (update_wait_timeout): New function, factored out from
11316         poll_timers.
11317         (poll_timers): Reimplement.
11318         * event-loop.h (initialize_event_loop): Delete declaration.
11319         * top.c (gdb_init): Don't call initialize_event_loop.
11320
11321 2015-02-03  Pedro Alves  <palves@redhat.com>
11322
11323         * event-loop.c (clear_async_event_handler): New function.
11324         * event-loop.h (clear_async_event_handler): New declaration.
11325         * record-btrace.c (record_btrace_async): New function.
11326         (init_record_btrace_ops): Install record_btrace_async.
11327         * record-full.c (record_full_async): New function.
11328         (record_full_resume): Don't mark the async event source here.
11329         (init_record_full_ops): Install record_full_async.
11330         (record_full_core_resume): Don't mark the async event source here.
11331         (init_record_full_core_ops): Install record_full_async.
11332         * remote.c (remote_async): Mark and clear the async stop reply
11333         queue event-loop token as appropriate.
11334
11335 2015-02-03  Pedro Alves  <palves@redhat.com>
11336
11337         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11338         target_is_async_p instead of target_can_async.
11339         (linux_nat_wait): Use target_is_async_p instead of
11340         target_can_async.  Don't enable async here.
11341         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11342         target_is_async_p instead of target_can_async.
11343
11344 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11345
11346         * varobj.h (lang_varobj_ops): Mention which return values need
11347         to be freed.
11348
11349 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11350
11351         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11352
11353 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11354
11355         PR gdb/17856:
11356         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11357         results found in the cache.
11358
11359 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11360
11361         PR gdb/17854:
11362         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11363         when allocating a new one.
11364
11365 2015-02-01  Tom Tromey  <tom@tromey.com>
11366
11367         * MAINTAINERS: Remove myself.
11368
11369 2015-01-31  Doug Evans  <xdje42@gmail.com>
11370
11371         * dwarf2read.c (process_structure_scope): Update setting of
11372         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11373         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11374         (set_type_vptr_fieldno): New function.
11375         (internal_type_vptr_basetype): New function.
11376         (set_type_vptr_basetype): New function.
11377         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11378         TYPE_VPTR_BASETYPE.
11379         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11380         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11381         (print_cplus_stuff): ... moved here.
11382         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11383         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11384         moved to ...
11385         (struct cplus_struct_type): ... here.  All uses updated.
11386         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11387         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11388         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11389         * stabsread.c (read_tilde_fields): Update setting of
11390         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11391
11392 2015-01-31  Doug Evans  <xdje42@gmail.com>
11393
11394         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11395         to self_p.
11396         (cp_print_class_member): Rename local domain to self_type.
11397         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11398         domain_type to self_type.
11399         (set_die_type) <need_gnat_info>: Handle
11400         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11401         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11402         TYPE_SPECIFIC_SELF_TYPE.
11403         * gdbtypes.c (internal_type_self_type): New function.
11404         (set_type_self_type): New function.
11405         (smash_to_memberptr_type): Rename parameter domain to self_type.
11406         Update setting of TYPE_SELF_TYPE.
11407         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11408         (smash_to_method_type): Rename parameter domain to self_type.
11409         Update setting of TYPE_SELF_TYPE.
11410         (check_stub_method): Call smash_to_method_type.
11411         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11412         (copy_type_recursive): Ditto.
11413         * gdbtypes.h (enum type_specific_kind): New value
11414         TYPE_SPECIFIC_SELF_TYPE.
11415         (struct main_type) <type_specific>: New member self_type.
11416         (struct cplus_struct_type) <fn_field.type>: Update comment.
11417         (TYPE_SELF_TYPE): Rewrite.
11418         (internal_type_self_type, set_type_self_type): Declare.
11419         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11420         self_type.
11421         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11422         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11423         TYPE_TARGET_TYPE.
11424         * stabsread.c (read_member_functions): Mark methods with
11425         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11426         TYPE_SELF_TYPE.
11427
11428 2015-01-31  Doug Evans  <xdje42@gmail.com>
11429
11430         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11431         All uses updated.
11432
11433 2015-01-31  Doug Evans  <xdje42@gmail.com>
11434
11435         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11436         or unions.  Return zero if union.
11437         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11438         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11439         gnuv3_get_vtable.
11440         (compute_vtable_size): Assert only passed structs.
11441         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11442
11443 2015-01-31  Doug Evans  <xdje42@gmail.com>
11444
11445         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11446         kinds.
11447
11448 2015-01-31  Gary Benson <gbenson@redhat.com>
11449             Doug Evans  <dje@google.com>
11450
11451         PR cli/9007
11452         PR cli/11920
11453         PR cli/15548
11454         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11455         reached.
11456         * common/common-exceptions.h (enum errors)
11457         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11458         * completer.h (get_max_completions_reached_message): New declaration.
11459         (max_completions): Likewise.
11460         (completion_tracker_t): New typedef.
11461         (new_completion_tracker): New declaration.
11462         (make_cleanup_free_completion_tracker): Likewise.
11463         (maybe_add_completion_enum): New enum.
11464         (maybe_add_completion): New declaration.
11465         (throw_max_completions_reached_error): Likewise.
11466         * completer.c (max_completions): New global variable.
11467         (new_completion_tracker): New function.
11468         (free_completion_tracker): Likewise.
11469         (make_cleanup_free_completion_tracker): Likewise.
11470         (maybe_add_completions): Likewise.
11471         (throw_max_completions_reached_error): Likewise.
11472         (complete_line): Remove duplicates and limit result to max_completions
11473         entries.
11474         (get_max_completions_reached_message): New function.
11475         (gdb_display_match_list): Handle max_completions.
11476         (_initialize_completer): New declaration and function.
11477         * symtab.c: Include completer.h.
11478         (completion_tracker): New static variable.
11479         (completion_list_add_name): Call maybe_add_completion.
11480         (default_make_symbol_completion_list_break_on_1): Renamed from
11481         default_make_symbol_completion_list_break_on.  Maintain
11482         completion_tracker across calls to completion_list_add_name.
11483         (default_make_symbol_completion_list_break_on): New function.
11484         * top.c (init_main): Set rl_completion_display_matches_hook.
11485         * tui/tui-io.c: Include completer.h.
11486         (tui_old_rl_display_matches_hook): New static global.
11487         (tui_rl_display_match_list): Notify user if max-completions reached.
11488         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11489         * NEWS (New Options): Mention set/show max-completions.
11490
11491 2015-01-31  Gary Benson  <gbenson@redhat.com>
11492
11493         * symtab.c (struct add_name_data) <code>: New field.
11494         Updated comments.
11495         (add_symtab_completions): New function.
11496         (symtab_expansion_callback): Likewise.
11497         (default_make_symbol_completion_list_break_on): Set datum.code.
11498         Move minimal symbol scan before calling expand_symtabs_matching.
11499         Scan known primary symtabs for externs and statics before calling
11500         expand_symtabs_matching.  Pass symtab_expansion_callback as
11501         expansion_notify argument to expand_symtabs_matching.  Do not scan
11502         primary symtabs for externs and statics after calling
11503         expand_symtabs_matching.
11504
11505 2015-01-31  Gary Benson  <gbenson@redhat.com>
11506
11507         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11508         (struct quick_symbol_functions) <expand_symtabs_matching>:
11509         New argument expansion_notify.  All uses updated.
11510         (expand_symtabs_matching): New argument expansion_notify.
11511         All uses updated.
11512         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11513         Also print expansion notify.
11514         * symtab.c (expand_symtabs_matching_via_partial): Call
11515         expansion_notify whenever a partial symbol table is expanded.
11516         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11517         expansion_notify whenever a symbol table is instantiated.
11518
11519 2015-01-31  Doug Evans  <xdje42@gmail.com>
11520
11521         * cli-out.c: #include completer.h, readline/readline.h.
11522         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11523         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11524         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11525         * cli-out.h (cli_display_match_list): Declare.
11526         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11527         (ELLIPSIS_LEN): Ditto.
11528         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11529         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11530         (gdb_fnprint, gdb_print_filename): Ditto.
11531         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11532         (gdb_display_match_list): Ditto.
11533         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11534         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11535         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11536         (match_list_displayer): New struct.
11537         (gdb_display_match_list): Declare.
11538         * top.c (init_main): Set rl_completion_display_matches_hook.
11539         * tui/tui-io.c: #include completer.h.
11540         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11541         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11542         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11543         (tui_mld_getc, tui_mld_read_key): Ditto.
11544         (tui_rl_display_match_list): Rewrite.
11545         (tui_handle_resize_during_io): New arg for_completion.  All callers
11546         updated.
11547
11548 2015-01-31  Doug Evans  <xdje42@gmail.com>
11549
11550         Add symbol lookup cache.
11551         * NEWS: Document new options and commands.
11552         * symtab.c (symbol_cache_key): New static global.
11553         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11554         (SYMBOL_LOOKUP_FAILED): New macro.
11555         (symbol_cache_slot_state): New enum.
11556         (block_symbol_cache): New struct.
11557         (symbol_cache): New struct.
11558         (new_symbol_cache_size, symbol_cache_size): New static globals.
11559         (hash_symbol_entry, eq_symbol_entry): New functions.
11560         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11561         (make_symbol_cache, free_symbol_cache): New functions.
11562         (get_symbol_cache, symbol_cache_cleanup): New function.
11563         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11564         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11565         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11566         (symbol_cache_flush, symbol_cache_dump): New functions.
11567         (maintenance_print_symbol_cache): New function.
11568         (maintenance_flush_symbol_cache): New function.
11569         (symbol_cache_stats): New function.
11570         (maintenance_print_symbol_cache_statistics): New function.
11571         (symtab_new_objfile_observer): New function.
11572         (symtab_free_objfile_observer): New function.
11573         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11574         (_initialize_symtab): Init symbol_cache_key.  New parameter
11575         maint symbol-cache-size.  New maint commands print symbol-cache,
11576         print symbol-cache-statistics, flush-symbol-cache.
11577         Install new_objfile, free_objfile observers.
11578
11579 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11580
11581         PR symtab/17855
11582         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11583         to end.
11584
11585 2015-01-31  Doug Evans  <xdje42@gmail.com>
11586
11587         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11588         * auto-load.c: #include ctype.h.
11589         (struct auto_load_pspace_info): Replace member loaded_scripts with
11590         new members loaded_script_files, loaded_script_texts.
11591         (auto_load_pspace_data_cleanup): Update.
11592         (init_loaded_scripts_info): Update.
11593         (get_auto_load_pspace_data_for_loading): Update.
11594         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11595         updated.
11596         (maybe_add_script_text): New function.
11597         (clear_section_scripts): Update.
11598         (source_script_file, execute_script_contents): New functions.
11599         (source_section_scripts): Add support for
11600         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11601         (print_scripts): New function.
11602         (auto_load_info_scripts): Also print inlined scripts.
11603         (maybe_print_unsupported_script_warning): Renamed from
11604         unsupported_script_warning_print.  All callers updated.
11605         (maybe_print_script_not_found_warning): Renamed from
11606         script_not_found_warning_print.  All callers updated.
11607         * extension-priv.h (struct extension_language_script_ops): New member
11608         objfile_script_executor.
11609         * extension.c (ext_lang_objfile_script_executor): New function.
11610         * extension.h (objfile_script_executor_func): New typedef.
11611         (ext_lang_objfile_script_executor): Declare.
11612         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11613         * guile/guile.c (guile_extension_script_ops): Update.
11614         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11615         * python/python.c (python_extension_script_ops): Update.
11616         (gdbpy_execute_objfile_script): New function.
11617
11618 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11619
11620         * tui/tui-io.c (tui_expand_tabs): New function.
11621         (tui_puts, tui_redisplay_readline): Expand TABs into the
11622         appropriate number of spaces.
11623         * tui/tui-regs.c: Include tui-io.h.
11624         (tui_register_format): Call tui_expand_tabs to expand TABs into
11625         the appropriate number of spaces.
11626         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11627
11628 2015-01-30  Doug Evans  <dje@google.com>
11629
11630         * NEWS: "info source" command now display producer string if present.
11631         * source.c (source_info): Print producer string if present.
11632
11633 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11634
11635         * varobj.c (varobj_delete): Fix comment.
11636
11637 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11638
11639         * varobj.c (create_child): Modify comment.
11640
11641 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11642
11643         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11644         parameter.
11645         (ada_name_of_variable): Same.
11646         (ada_path_expr_of_child): Same.
11647         (ada_value_of_variable): Same.
11648         (ada_value_is_changeable_p): Same.
11649         (ada_value_has_mutated): Same.
11650         * c-varobj.c (varobj_is_anonymous_child): Same.
11651         (c_is_path_expr_parent): Same.
11652         (c_number_of_children): Same.
11653         (c_name_of_variable): Same.
11654         (c_path_expr_of_child): Same.
11655         (get_type): Same.
11656         (c_value_of_variable): Same.
11657         (cplus_number_of_children): Same.
11658         (cplus_name_of_variable): Same.
11659         (cplus_path_expr_of_child): Same.
11660         (cplus_value_of_variable): Same.
11661         * jv-varobj.c (java_number_of_children): Same.
11662         (java_name_of_variable): Same.
11663         (java_path_expr_of_child): Same.
11664         (java_value_of_variable): Same.
11665         * varobj.c (number_of_children): Same.
11666         (name_of_variable): Same.
11667         (is_root_p): Same.
11668         (varobj_ensure_python_env): Same.
11669         (varobj_get_objname): Same.
11670         (varobj_get_expression): Same.
11671         (varobj_get_display_format): Same.
11672         (varobj_get_display_hint): Same.
11673         (varobj_has_more): Same.
11674         (varobj_get_thread_id): Same.
11675         (varobj_get_frozen): Same.
11676         (dynamic_varobj_has_child_method): Same.
11677         (varobj_get_gdb_type): Same.
11678         (is_path_expr_parent): Same.
11679         (varobj_default_is_path_expr_parent): Same.
11680         (varobj_get_language): Same.
11681         (varobj_get_attributes): Same.
11682         (varobj_is_dynamic_p): Same.
11683         (varobj_get_child_range): Same.
11684         (varobj_value_has_mutated): Same.
11685         (varobj_get_value_type): Same.
11686         (number_of_children): Same.
11687         (name_of_variable): Same.
11688         (check_scope): Same.
11689         (varobj_editable_p): Same.
11690         (varobj_value_is_changeable_p): Same.
11691         (varobj_floating_p): Same.
11692         (varobj_default_value_is_changeable_p): Same.
11693
11694 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11695
11696         * varobj.c (varobj_get_path_expr): Set var->path_expr.
11697         * c-varobj.c (c_path_expr_of_child): Set local var instead of
11698         child->path_expr.
11699         (cplus_path_expr_of_child): Same.
11700
11701 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11702
11703         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11704         result.
11705         (mi_cmd_var_info_expression): Same.
11706         * varobj.c (varobj_get_expression): Mention in the comment that
11707         the result must by freed by the caller.
11708
11709 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11710
11711         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11712         varobj_get_type.
11713         (varobj_update_one): Same.
11714         * varobj.c (update_type_if_necessary): Free curr_type_str and
11715         new_type_str.
11716         (varobj_get_type): Specify in comment that the result needs to be
11717         freed by the caller.
11718
11719 2015-01-29  Doug Evans  <dje@google.com>
11720
11721         PR symtab/17890
11722         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11723
11724 2015-01-25  Mark Wielaard  <mjw@redhat.com>
11725
11726         * dwarf2read.c (checkproducer): Call producer_is_gcc.
11727         * utils.c (producer_is_gcc_ge_4): Likewise.
11728         (producer_is_gcc): New function.
11729         * utils.h (producer_is_gcc): New declaration.
11730
11731 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11732
11733         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11734         kind.
11735         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11736         parameter by "addr_stack" parameter.
11737         (resolve_dynamic_range): Replace "addr" parameter by
11738         "stack_addr" parameter.  Update function documentation.
11739         Update code accordingly.
11740         (resolve_dynamic_array, resolve_dynamic_union)
11741         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11742         (resolve_dynamic_type): Update code, following the changes made
11743         to resolve_dynamic_type_internal's interface.
11744         * dwarf2loc.h (struct property_addr_info): New.
11745         (dwarf2_evaluate_property): Replace "address" parameter
11746         by "addr_stack" parameter.  Adjust function documentation.
11747         (struct dwarf2_offset_baton): New.
11748         (struct dwarf2_property_baton): Update documentation of
11749         field "referenced_type" to be more general. New field
11750         "offset_info" in union data field.
11751         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11752         parameter by "addr_stack" parameter.  Adjust code accordingly.
11753         Add support for PROP_ADDR_OFFSET properties.
11754         * dwarf2read.c (attr_to_dynamic_prop): Add support for
11755         DW_AT_data_member_location attributes as well.  Use case
11756         statements instead of if/else condition.
11757
11758 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11759
11760         * ada-varobj.c (ada_varobj_get_array_number_of_children):
11761         Return zero if PARENT_VALUE is NULL and parent_type's
11762         range type is dynamic.
11763
11764 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11765
11766         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11767         nonzero if the type's subtype is dynamic.
11768         (resolve_dynamic_range): Also resolve the range's subtype.
11769
11770 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
11771
11772         Pushed by Joel Brobecker  <brobecker@adacore.com>.
11773         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11774
11775 2015-01-27  Doug Evans  <dje@google.com>
11776
11777         * NEWS: Mention gdb.Objfile.username.
11778         * python/py-objfile.c (objfpy_get_username): New function.
11779         (objfile_getset): Add "username".
11780
11781 2015-01-24  Mark Wielaard  <mjw@redhat.com>
11782
11783         * stack.c (return_command): Markup warning message with _.
11784
11785 2015-01-24  Doug Evans  <xdje42@gmail.com>
11786
11787         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11788
11789 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11790
11791         Fix 100x slowdown regression on DWZ files.
11792         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11793         (struct line_header): Add offset and offset_in_dwz.
11794         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11795         (free_line_header_voidp): New declaration.
11796         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11797         functions.
11798         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11799         (handle_DW_AT_stmt_list): Use line_header_hash.
11800         (free_line_header_voidp): New function.
11801         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11802         (dwarf_decode_lines): New parameter decode_mapping, use it.
11803         (dwarf2_free_objfile): Free line_header_hash.
11804
11805 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
11806
11807         PR gdb/17416
11808         * valops.c (value_rtti_indirect_type): Catch exception thrown by
11809         value_ind.
11810
11811 2015-01-15  Mark Wielaard  <mjw@redhat.com>
11812
11813         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11814         DW_AT_noreturn.
11815         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11816         calling_convention an 8 bit bit field.
11817         (TYPE_NO_RETURN): New macro.
11818         * infcmd.c (finish_command): Query if function does not return
11819         normally.
11820         * stack.c (return_command): Likewise.
11821
11822 2015-01-23  Pedro Alves  <palves@redhat.com>
11823
11824         * linux-nat.c (linux_is_async_p): New macro.
11825         (linux_nat_is_async_p):
11826         (linux_nat_terminal_inferior): Check whether the target can async
11827         instead of whether it is already async.
11828         (linux_nat_terminal_ours): Don't check whether the target is
11829         async.
11830         (linux_async_pipe): Use linux_is_async_p.
11831
11832 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11833
11834         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11835         '-ascending'.
11836         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11837         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11838         Sort tp_array using tp_array_compar.
11839         (_initialize_thread): Extend thread_apply_all_command help.
11840
11841 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11842
11843         * corelow.c (core_open): Call also thread_command.
11844         * gdbthread.h (thread_command): New prototype moved from ...
11845         * thread.c (thread_command): ... here.
11846         (thread_command): Make it global.
11847
11848 2015-01-22  Pedro Alves  <palves@redhat.com>
11849
11850         * configure.ac [*mingw32*]: Check $curses_found instead of
11851         $prefer_curses.
11852         * configure: Regenerate.
11853         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11854         HAVE_NCURSES_NCURSES_H checks.
11855
11856 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11857
11858         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11859         fails with the 1st arg NULL, try again with "unknown".  Don't test
11860         the "cup" capability: it isn't supported by the Windows port of
11861         ncurses, but the Windows console driver is still capable of
11862         supporting TUI.
11863
11864 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11865
11866         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11867
11868 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11869
11870         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11871         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
11872         reason that "make TAGS" is broken.
11873
11874 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
11875
11876         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11877         and check additional store instructions.
11878
11879 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11880
11881         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11882
11883 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11884
11885         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11886         ppc_canonicalize_syscall, ppc_linux_syscall_record,
11887         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11888         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11889         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11890         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11891         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11892         ppc_process_record_op19, ppc_process_record_op31,
11893         ppc_process_record_op59, ppc_process_record_op60,
11894         ppc_process_record_op63): Likewise.
11895
11896 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
11897
11898         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11899         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11900         strerror.
11901
11902 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
11903
11904         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11905         ppc_process_record_op31, ppc_process_record_op59,
11906         ppc_process_record_op60, ppc_process_record_op63,
11907         ppc_process_record): Fix -Wformat warning.
11908         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11909         Remove unused variables.
11910
11911 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
11912
11913         * MAINTAINERS (Write After Approval): Add "Chen Gang".
11914
11915 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
11916
11917         * configure.ac [*mingw32*]: Only add windows-termcap.o to
11918         CONFIG_OBS if not building with a curses library.
11919         * configure: Regenerate.
11920
11921         * windows-termcap.c: Include defs.h.  Make the whole body empty if
11922         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11923         HAVE_NCURSES_NCURSES_H is defined.
11924
11925 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
11926
11927         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11928         from end of line to start of next line.
11929
11930 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11931
11932         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11933         Scan PLT stub backward for reverse debugging.
11934         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11935
11936 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11937             Ulrich Weigand  <uweigand@de.ibm.com>
11938
11939         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11940         gdb_target_obs.
11941         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11942         record.
11943         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11944         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11945         (ppc_linux_init_abi): Set process_record, process_record_signal.
11946         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11947         ppc_linux_record_tdep to gdbarch_tdep.
11948         (ppc_process_record): New declaration.
11949         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11950         ppc_process_record_op19, ppc_process_record_op31,
11951         ppc_process_record_op59, ppc_process_record_op60,
11952         ppc_process_record_op63, ppc_process_record): New functions.
11953
11954 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11955
11956         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11957         rs6000_in_function_epilogue_frame_p and add an argument
11958         for frame_info.
11959         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11960         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11961         New functions.
11962         (rs6000_epilogue_frame_unwind): New.
11963         (rs6000_gdbarch_init): Append epilogue unwinder.
11964
11965 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11966
11967         * nat/linux-personality.c: Replace "#ifndef
11968         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11969         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11970         systems.
11971
11972 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
11973
11974         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11975         functions.
11976         (_initialize_tui_win) <border-kind, border-mode>:
11977         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11978         (tui_set_tab_width_command): Fix the commentary.
11979
11980         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11981
11982         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11983         Doc fix.
11984         (tui_set_tab_width_command): Delete and recreate the source and
11985         the disassembly windows, to show the effect of the changed tab
11986         size immediately.
11987
11988         * tui/tui-data.h (LINE_PREFIX): Make shorter
11989         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11990         "Thread NNNNN.XXXX" thread ID notation on Windows.
11991
11992 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11993
11994         Fix gcc-5 compilation.
11995         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11996
11997 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
11998
11999         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12000         (linux-personality.o): New rule.
12001         * common/common-defs.h: Include <stdint.h>.
12002         * config/aarch64/linux.mh (NATDEPFILES): Include
12003         linux-personality.o.
12004         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12005         * config/arm/linux.mh (NATDEPFILES): Likewise.
12006         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12007         * config/i386/linux.mh (NATDEPFILES): Likewise.
12008         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12009         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12010         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12011         * config/mips/linux.mh (NATDEPFILES): Likewise.
12012         * config/pa/linux.mh (NATDEPFILES): Likewise.
12013         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12014         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12015         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12016         * config/s390/linux.mh (NATDEPFILES): Likewise.
12017         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12018         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12019         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12020         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12021         * defs.h: Remove #include <stdint.h> (moved to
12022         common/common-defs.h).
12023         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12024         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12025         nat/linux-personality.c).
12026         (linux_nat_create_inferior): Remove code to disable address space
12027         randomization (moved to nat/linux-personality.c).  Create cleanup
12028         to disable address space randomization.
12029         * nat/linux-personality.c: New file.
12030         * nat/linux-personality.h: Likewise.
12031
12032 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12033
12034         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12035         common/posix-strerror.c.
12036         (posix-strerror.o): New rule.
12037         (mingw-strerror.o): Likewise.
12038         * common/common-utils.h (safe_strerror): Move prototype to here,
12039         from utils.h.
12040         * common/common.host: New file.
12041         * common/mingw-strerror.c: Likewise.
12042         * common/posix-strerror.c: Likewise.
12043         * configure: Regenerated.
12044         * configure.ac: Source common/common.host.  Add variable
12045         common_host_obs to gdb_host_obs.
12046         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12047         gdb/common/posix-strerror.c when warning about the use of
12048         strerror.
12049         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12050         common/mingw-strerror.c.
12051         * posix-hdep.c (safe_strerror): Remove definition; move it to
12052         common/posix-hdep.c.
12053         * utils.h (safe_strerror): Remove prototype; move to
12054         common/common-utils.h.
12055
12056 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12057
12058         GDB 7.8.2 released.
12059
12060 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12061
12062         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12063         ___XA type if the array has already been fixed.
12064
12065 2015-01-14  Yao Qi  <yao@codesourcery.com>
12066
12067         * Makefile.in (ppc-linux.o): New rule.
12068         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12069         * configure.ac: AC_CHECK_FUNCS(getauxval).
12070         * config.in: Re-generated.
12071         * configure: Re-generated.
12072         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12073         Declare.
12074         * nat/ppc-linux.c: New file.
12075         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12076         Call ppc64_64bit_inferior_p.
12077
12078 2015-01-14  Yao Qi  <yao@codesourcery.com>
12079
12080         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12081         nat/ppc-linux.h.
12082         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12083         (PPC_FEATURE_HAS_DFP): Likewise.
12084         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12085         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12086         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12087         Include "nat/ppc-linux.h".
12088         * nat/ppc-linux.h: New file.
12089         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12090
12091 2015-01-14  Pedro Alves  <palves@redhat.com>
12092
12093         PR gdb/17525
12094         * breakpoint.c: Include "interps.h".
12095         (bpstat_do_actions_1): Also check whether the interpreter is
12096         async.
12097
12098 2015-01-14  Pedro Alves  <palves@redhat.com>
12099
12100         PR cli/17828
12101         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12102         reinstall if the interpreter is sync.
12103
12104 2015-01-13  Doug Evans  <dje@google.com>
12105
12106         * objfiles.c (objfile_filename): New function.
12107         * objfiles.h (objfile_filename): Declare it.
12108         (objfile_name): Add function comment.
12109         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12110         bfd file name (which may be realpath'd), and the original name.
12111
12112 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12113
12114         * NEWS: Create a new section for the next release branch.
12115         Rename the section of the current branch, now that it has
12116         been cut.
12117
12118 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12119
12120         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12121         * version.in: Bump version to 7.9.50.DATE-cvs.
12122
12123 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12124
12125         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12126         Remove trailing new-line in argument of call to warning.
12127
12128 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12129
12130         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12131         new-line in argument of call to "warning".
12132
12133 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12134
12135         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12136         in static block, then try searching for primitive types.
12137
12138 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12139
12140         * top.h (gdb_add_history): Declare.
12141         * top.c (command_count): New variable.
12142         (gdb_add_history): New function.
12143         (gdb_safe_append_history): New static function.
12144         (quit_force): Call it.
12145         (command_line_input): Use gdb_add_history instead of
12146         add_history.
12147         * event-top.c (command_line_handler): Likewise.
12148
12149 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12150
12151         PR gdb/17046
12152         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12153         <setjmp.h> #include.
12154
12155 2015-01-11  Doug Evans  <xdje42@gmail.com>
12156
12157         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12158
12159 2015-01-11  Doug Evans  <xdje42@gmail.com>
12160
12161         PR gdb/15830
12162         * NEWS: The "maint demangle" command is renamed as "demangle".
12163         * demangle.c: #include cli/cli-utils.h, language.h.
12164         (demangle_command): New function.
12165         (_initialize_demangle): Add new command "demangle".
12166         * maint.c (maintenance_demangle): Stub out.
12167         (_initialize_maint_cmds): Update help text for "maint demangle",
12168         and mark as deprecated.
12169
12170 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12171
12172         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12173         inferior_thread is a function.
12174
12175 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12176
12177         * Makefile.in (.y.c): Don't munge yacc's #line
12178         directives.
12179
12180 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12181
12182         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12183         to prompt for input.
12184         * tui/tui-hooks.c (tui_query_hook): Remove.
12185         (tui_install_hooks): Don't set deprecated_query_hook.
12186         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12187         height calculation.  Always update the command window's cur_line.
12188
12189 2015-01-09  Pedro Alves  <palves@redhat.com>
12190
12191         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12192         function.
12193         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12194         declaration.
12195         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12196         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12197         stop_reason.
12198         (check_stopped_by_watchpoint): New function.
12199         (save_sigtrap): Reimplement.
12200         (linux_nat_stopped_by_watchpoint): Adjust.
12201         (linux_nat_lp_status_is_event): Delete.
12202         (stop_wait_callback): Only call save_sigtrap after storing the
12203         pending status.
12204         (status_callback): If the thread had been stopped for a breakpoint
12205         that has since been removed, discard the event and resume the LWP.
12206         (count_events_callback, select_event_lwp_callback): Use
12207         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12208         (cancel_breakpoint): Rename to ...
12209         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12210         stopped for a software breakpoint or hardware breakpoint.
12211         (select_event_lwp): Only give preference to the stepping LWP in
12212         all-stop mode.  Adjust comments.
12213         (stop_and_resume_callback): Remove references to new_pending_p.
12214         (linux_nat_filter_event): Likewise.  Leave exit events of the
12215         leader thread pending here.  Handle signal short circuiting here.
12216         Only call save_sigtrap after storing the pending waitstatus.
12217         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12218         new_pending.  Don't handle leaving events the caller is not
12219         interested in pending here, nor handle signal short-circuiting
12220         here.  Also give equal priority to all LWPs that have had events
12221         in non-stop mode.  If reporting a software breakpoint event,
12222         unadjust the LWP's PC.
12223         * linux-nat.h (enum lwp_stop_reason): New.
12224         (struct lwp_info) <stop_pc>: New field.
12225         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12226         (struct lwp_info) <stop_reason>: New field.
12227         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12228
12229 2015-01-09  Pedro Alves  <palves@redhat.com>
12230
12231         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12232         Set the LWP's 'resumed' flag.
12233
12234 2015-01-09  Pedro Alves  <palves@redhat.com>
12235
12236         * linux-nat.c (linux_resume_one_lwp): New function.
12237         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12238         (linux_nat_resume): Use lwp_status_pending_p and
12239         linux_resume_one_lwp.
12240         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12241         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12242         (status_callback, running_callback): Use lwp_status_pending_p.
12243         (lwp_status_pending_p): New function.
12244         (stop_and_resume_callback): Use lwp_status_pending_p.
12245         (linux_nat_filter_event): Use linux_resume_one_lwp.
12246         (linux_nat_wait_1): Always use status_callback to look for an LWP
12247         with a pending status.  Use linux_resume_one_lwp.
12248         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12249         linux_resume_one_lwp.
12250
12251 2015-01-09  Pedro Alves  <palves@redhat.com>
12252
12253         * breakpoint.c (bp_location_inserted_here_p): New function,
12254         factored out from ...
12255         (breakpoint_inserted_here_p): ... here.  Use
12256         ALL_BP_LOCATIONS_AT_ADDR.
12257         (software_breakpoint_inserted_here_p): Use
12258         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12259
12260 2014-01-09  Pedro Alves  <palves@redhat.com>
12261
12262         Skip enabling event reporting if the kernel supports
12263         PTRACE_EVENT_CLONE.
12264         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12265         (thread_db_use_events): New function.
12266         (try_thread_db_load_1): Check thread_db_use_events before enabling
12267         event reporting.
12268         (update_thread_state): New function.
12269         (attach_thread): Use it.  Check thread_db_use_events before
12270         enabling event reporting.
12271         (thread_db_detach): Check thread_db_use_events before disabling
12272         event reporting.
12273         (find_new_threads_callback): Check thread_db_use_events before
12274         enabling event reporting.  Update the thread's state if not using
12275         libthread_db events.
12276
12277 2015-01-09  Pedro Alves  <palves@redhat.com>
12278
12279         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12280         about to wait for is > 0.
12281         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12282         the kernel thread ID is -1.
12283
12284 2015-01-09  Pedro Alves  <palves@redhat.com>
12285
12286         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12287         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12288         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12289         ptrace option flags.
12290         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12291         field.
12292         * nat/linux-procfs.c: Include <dirent.h>.
12293         (linux_proc_get_int): New parameter "warn".  Handle it.
12294         (linux_proc_get_tgid): Adjust.
12295         (linux_proc_get_tracerpid): Rename to ...
12296         (linux_proc_get_tracerpid_nowarn): ... this.
12297         (linux_proc_pid_get_state): New function, factored out from
12298         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12299         and handle it.
12300         (linux_proc_pid_is_gone): New function.
12301         (linux_proc_pid_is_stopped): Adjust.
12302         (linux_proc_pid_is_zombie_maybe_warn)
12303         (linux_proc_pid_is_zombie_nowarn): New functions.
12304         (linux_proc_pid_is_zombie): Use
12305         linux_proc_pid_is_zombie_maybe_warn.
12306         (linux_proc_attach_tgid_threads): New function.
12307         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12308         (linux_proc_get_tracerpid): Rename to ...
12309         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12310         (linux_proc_pid_is_gone): New declaration.
12311         (linux_proc_pid_is_zombie): Update comment.
12312         (linux_proc_pid_is_zombie_nowarn): New declaration.
12313         (linux_proc_attach_lwp_func): New typedef.
12314         (linux_proc_attach_tgid_threads): New declaration.
12315         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12316         use nowarn functions.
12317         (linux_ptrace_attach_fail_reason_string): Move here from
12318         gdbserver/linux-low.c and rename.
12319         (ptrace_supports_feature): If the current ptrace options are not
12320         known yet, check them now, instead of asserting.
12321         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12322         Declare.
12323
12324 2015-01-09  Pedro Alves  <palves@redhat.com>
12325
12326         * linux-thread-db.c (thread_db_find_new_threads_silently)
12327         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12328         (find_new_threads_once): Print debug output on gdb_stdlog.
12329
12330 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12331             Pedro Alves  <palves@redhat.com>
12332
12333         * compile/compile.c: Include "gdb_wait.h".
12334         (do_rmdir): Check return value, and free 'zap'.
12335
12336 2015-01-08  Pedro Alves  <palves@redhat.com>
12337             Yao Qi  <yao@codesourcery.com>
12338
12339         * dwarf2loc.c (indirect_pieced_value): Don't call
12340         gdb_sign_extend.  Call extract_signed_integer instead.
12341         * utils.c (gdb_sign_extend): Remove.
12342         * utils.h (gdb_sign_extend): Remove declaration.
12343
12344 2015-01-07  Pierre Muller  <muller@sourceware.org>
12345
12346         PR symtab/17811
12347         * stabsread.c (define_symbol): Set language for C++ special symbols.
12348
12349 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12350
12351         * inflow.c (initial_gdb_ttystate): Tweak comment.
12352
12353 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12354
12355         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12356         comment documenting function.
12357
12358 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12359
12360         * terminal.h (set_initial_gdb_ttystate): Declare.
12361         * inflow.c (initial_gdb_ttystate): New static variable.
12362         (set_initial_gdb_ttystate): New setter.
12363         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12364         instead of our current terminal state.
12365         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12366
12367 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12368
12369         * guile/scm-type.c (tyscm_array_1): Add comment.
12370         * python/py-type.c (typy_array_1): Add comment.
12371
12372 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12373
12374         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12375         error if N2 is equal to N1 - 1.
12376
12377 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12378
12379         * python/py-type.c (typy_array_1): Do not raise negative-length
12380         exception if N2 is equal to N1 - 1.
12381
12382 2015-01-03  Doug Evans  <xdje42@gmail.com>
12383
12384         * c-exp.y: Whitespace cleanup.
12385         (classify_inner_name): Remove extra ;.
12386
12387 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12388
12389         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12390         offset signed.
12391
12392 2015-01-02  Doug Evans  <dje@google.com>
12393
12394         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12395
12396 2015-01-02  Doug Evans  <dje@google.com>
12397
12398         * symtab.h (struct symbol): Fix typo in comment.
12399
12400 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12401
12402         Update year range in copyright notice of all files.
12403
12404 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12405
12406         * top.c (print_gdb_version): Update copyright year to 2015.
12407
12408 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12409
12410         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12411
12412 For older changes see ChangeLog-2014.
12413 \f
12414 Local Variables:
12415 mode: change-log
12416 left-margin: 8
12417 fill-column: 74
12418 version-control: never
12419 coding: utf-8
12420 End: