[Ada] Buffer overflow in ada_unpack_from_contents
[external/binutils.git] / gdb / ChangeLog
1 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2
3         * ada-lang.c (ada_value_primitive_packed_val): Move
4         src_len variable to local block where used.  Override
5         BIT_SIZE if bigger than size of resolved type.
6
7 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
8
9         * gdbtypes.h (is_scalar_type): Add extern declaration.
10         * gdbtypes.c (is_scalar_type): Make non-static.
11         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
12         to compute IS_SCALAR instead of doing it ourselves.
13
14 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
15
16         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
17         of case where TYPE is dynamic.
18
19 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
20
21         * ada-lang.c (ada_unpack_from_contents): New function,
22         extracted from ada_value_primitive_packed_val.
23         (ada_value_primitive_packed_val): Replace extracted out code
24         by call to ada_unpack_from_contents.
25
26 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
27
28         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
29         variable declarations.
30
31 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
32
33         * ada-lang.c (ada_value_primitive_packed_val): Change the type
34         of local variables src and unpacked to "gdb_type *" instead of
35         "unsigned char *".
36
37 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
38
39         * ada-lang.c (ada_value_primitive_packed_val): Make the name
40         of various local variables more explicit and consistent.
41         No real code change otherwise.
42
43 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
44
45         * i386-tdep.h (struct gdbarch_tdep): Change type of
46         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
47
48 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
49
50         * cris-tdep.c (struct instruction_environment): Change type of
51         byte_order to enum bfd_endian.
52
53 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
54
55         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
56         enum gdb_syscall casts.
57
58 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
59
60         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
61         * arm-tdep.c (struct stack_item): Likewise.
62         (push_stack_item): Add gdb_byte* cast.
63         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
64         (push_stack_item): Add gdb_byte* cast.
65         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
66         and add cast.
67         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
68         (push_stack_item): Add gdb_byte* cast.
69         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
70         add cast.
71         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
72         gdb_byte*.
73         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
74         gdb_byte* and remove unnecessary cast.
75         (h8300h_extract_return_value): Likewise.
76         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
77         (h8300h_store_return_value): Likewise.
78         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
79         gdb_byte* and remove unnecessary cast.
80         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
81         and add cast.
82         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
83         gdb_byte* and remove unnecessary cast.
84         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
85         valbuf.
86         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
87         (mep_pseudo_cr64_read): Likewise.
88         (mep_pseudo_csr_write): Likewise.
89         (mep_pseudo_cr32_write): Likewise.
90         (mep_pseudo_cr64_write): Likewise.
91         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
92         gdb_byte* and add cast.
93         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
94         gdb_byte* and remove unnecessary cast.
95         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
96         valbuf.
97         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
98         gdb_byte*.
99         * printcmd.c (void): Likewise.
100         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
101         gdb_byte* and add cast.
102         (infpy_write_memory): Likewise.
103         (infpy_search_memory): Likewise.
104         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
105         and add cast.
106         (regcache_raw_write_unsigned): Likewise.
107         (regcache_cooked_write_signed): Likewise.
108         (regcache_cooked_write_unsigned): Likewise.
109         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
110         gdb_byte*.
111
112 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
113
114         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
115         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
116
117 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
118
119         * stack.c (print_stack_frame):
120         * utils.c (printchar): Fix typos in commentary.
121
122 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
123
124         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
125         (PostfixExpression): Support `expr.sizeof' expressions.
126         (PrimaryExpression): Support `typeof(expr)' expressions.
127
128 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
129
130         * MAINTAINERS: Update my email address.
131
132 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
133
134         * record-btrace.c (record_btrace_resume): Fix void return.
135
136 2015-10-07  Yao Qi  <yao.qi@linaro.org>
137
138         * aarch64-tdep.c: Include opcode/aarch64.h.
139         (submask): Move it above.
140         (bit): Likewise.
141         (bits): Likewise.
142         (aarch64_software_single_step): Call aarch64_decode_insn.
143         Decode instruction by aarch64_inst instead of using
144         aarch64_decode_bcond and decode_masked_match.
145
146 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
147
148         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
149         only when the file is binary.
150
151 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
152
153         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
154         subroutine handling.
155
156 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
157
158         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
159
160 2015-09-30  Doug Evans  <dje@google.com>
161
162         * dwarf2read.c (setup_type_unit_groups): Add comment.
163
164 2015-09-30  Pedro Alves  <palves@redhat.com>
165
166         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
167         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
168         (x86_linux_create_target): Don't install
169         x86_linux_always_non_stop_p.
170
171 2015-09-30  Don Breazeal  <donb@codesourcery.com>
172
173         * remote.c (remote_parse_stop_reply): Call strprefix instead
174         of strncmp.
175
176 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
177
178         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
179         * gdbarch.h: Regenerate.
180         * i386-tdep.c (i386_gdbarch_init): Remove cast to
181         struct gdbarch_tdep_info *.
182         * mips-tdep.c (mips_gdbarch_init): Likewise.
183         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
184         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
185         * spu-multiarch.c (spu_gdbarch): Likewise.
186
187 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
188
189         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
190         record a NULL value.
191
192 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
193
194         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
195         and union arguments the same as pointer arguments when determining
196         size of argument.
197
198 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
199
200         * ft32-tdep.c: #include "opcode/ft32.h".
201         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
202         (ft32_analyze_prologue): Use FT32_* macros.
203
204 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
205
206         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
207         comment.
208
209 2015-09-28  Doug Evans  <dje@google.com>
210
211         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
212
213 2015-09-28  Doug Evans  <dje@google.com>
214
215         * common/filestuff.c (make_cleanup_close): Update comment.
216
217 2015-09-26  Simon Marchi  <simark@nova.polymtl.ca>
218
219         * btrace.c (parse_xml_btrace_block): Fix cast of
220         xml_find_attribute's return value.
221         * memory-map.c (memory_map_start_memory): Likewise.
222         * solib-svr4.c (library_list_start_library): Likewise.
223         * solib-target.c (library_list_start_segment): Likewise.
224         (library_list_start_section): Likewise.
225         * tracepoint.c (traceframe_info_start_memory): Likewise.
226
227 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
228
229         * d-namespace.c (d_lookup_symbol): New arg langdef.
230         All callers updated.  Support looking up symbol as a primitive type.
231         (lookup_module_scope): New arg langdef.  All callers updated.
232         Call d_lookup_symbol directly for simple bare symbols.
233
234 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
235
236         * macrocmd.c (print_macro_callback): Add cast(s).
237         * macrotab.c (macro_bcache_str): Likewise.
238         (new_macro_definition): Likewise.
239         * main.c (captured_main): Likewise.
240         * maint.c (print_bfd_section_info): Likewise.
241         * mdebugread.c (mdebug_build_psymtabs): Likewise.
242         (basic_type): Likewise.
243         * memattr.c (mem_region_cmp): Likewise.
244         * memory-map.c (memory_map_start_memory): Likewise.
245         (memory_map_end_memory): Likewise.
246         (memory_map_start_property): Likewise.
247         (memory_map_end_property): Likewise.
248         (clear_result): Likewise.
249         * memrange.c (compare_mem_ranges): Likewise.
250         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
251         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
252         * mi/mi-console.c (mi_console_file_delete): Likewise.
253         (mi_console_file_fputs): Likewise.
254         (mi_console_raw_packet): Likewise.
255         (mi_console_file_flush): Likewise.
256         (mi_console_set_raw): Likewise.
257         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
258         (mi_new_thread): Likewise.
259         (mi_thread_exit): Likewise.
260         (mi_record_changed): Likewise.
261         (mi_inferior_added): Likewise.
262         (mi_inferior_appeared): Likewise.
263         (mi_inferior_exit): Likewise.
264         (mi_inferior_removed): Likewise.
265         (mi_interp_data): Likewise.
266         (mi_on_normal_stop): Likewise.
267         (mi_traceframe_changed): Likewise.
268         (mi_tsv_created): Likewise.
269         (mi_tsv_deleted): Likewise.
270         (mi_tsv_modified): Likewise.
271         (mi_breakpoint_created): Likewise.
272         (mi_breakpoint_deleted): Likewise.
273         (mi_breakpoint_modified): Likewise.
274         (mi_output_running_pid): Likewise.
275         (mi_inferior_count): Likewise.
276         (mi_solib_loaded): Likewise.
277         (mi_solib_unloaded): Likewise.
278         (mi_command_param_changed): Likewise.
279         (mi_memory_changed): Likewise.
280         (report_initial_inferior): Likewise.
281         (mi_ui_out): Likewise.
282         (mi_set_logging): Likewise.
283         * mi/mi-main.c (collect_cores): Likewise.
284         (print_one_inferior): Likewise.
285         (free_vector_of_ints): Likewise.
286         (free_splay_tree): Likewise.
287         (mi_execute_command): Likewise.
288         * mi/mi-out.c (mi_table_body): Likewise.
289         (mi_table_end): Likewise.
290         (mi_table_header): Likewise.
291         (mi_begin): Likewise.
292         (mi_end): Likewise.
293         (mi_field_int): Likewise.
294         (mi_field_string): Likewise.
295         (mi_field_fmt): Likewise.
296         (mi_flush): Likewise.
297         (mi_redirect): Likewise.
298         (field_separator): Likewise.
299         (mi_open): Likewise.
300         (mi_close): Likewise.
301         (mi_out_buffered): Likewise.
302         (mi_out_rewind): Likewise.
303         (mi_out_put): Likewise.
304         (mi_version): Likewise.
305         (mi_out_data_dtor): Likewise.
306         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
307         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
308         * minidebug.c (lzma_open): Likewise.
309         (lzma_pread): Likewise.
310         (lzma_close): Likewise.
311         (lzma_stat): Likewise.
312         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
313         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
314         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
315         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
316         (mips_micro_frame_cache): Likewise.
317         (mips_insn32_frame_cache): Likewise.
318         (mips_stub_frame_cache): Likewise.
319         (gdb_print_insn_mips): Likewise.
320         (value_of_mips_user_reg): Likewise.
321         (mips_gdbarch_init): Likewise.
322         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
323         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
324         (mipsnbsd_supply_gregset): Likewise.
325         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
326         (am33_collect_gregset_method): Likewise.
327         (am33_collect_fpregset_method): Likewise.
328         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
329         * moxie-tdep.c (moxie_frame_cache): Likewise.
330         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
331         (msp430_analyze_frame_prologue): Likewise.
332         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
333         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
334         (nios2_collect_gregset): Likewise.
335         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
336         (nios2_stub_frame_cache): Likewise.
337         * objc-lang.c (find_methods): Likewise.
338         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
339         (get_objfile_pspace_data): Likewise.
340         (get_objfile_bfd_data): Likewise.
341         (objfile_bfd_data_free): Likewise.
342         (add_to_objfile_sections): Likewise.
343         (do_free_objfile_cleanup): Likewise.
344         (resume_section_map_updates_cleanup): Likewise.
345         * opencl-lang.c (builtin_opencl_type): Likewise.
346         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
347         * osdata.c (osdata_start_osdata): Likewise.
348         (osdata_start_item): Likewise.
349         (osdata_start_column): Likewise.
350         (osdata_end_column): Likewise.
351         (clear_parsing_data): Likewise.
352         (osdata_free_cleanup): Likewise.
353         * parse.c (type_stack_cleanup): Likewise.
354         (exp_uses_objfile_iter): Likewise.
355         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
356         (ppc_linux_collect_gregset): Likewise.
357         (ppu2spu_prev_arch): Likewise.
358         (ppu2spu_this_id): Likewise.
359         (ppu2spu_prev_register): Likewise.
360         (ppu2spu_unwind_register): Likewise.
361         (ppu2spu_sniffer): Likewise.
362         (ppu2spu_dealloc_cache): Likewise.
363         (ppc_linux_init_abi): Likewise.
364         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
365         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
366         * progspace.c (restore_program_space): Likewise.
367         * psymtab.c (find_pc_sect_psymtab): Likewise.
368         (compare_psymbols): Likewise.
369         (psymbol_bcache_full): Likewise.
370         (allocate_psymtab): Likewise.
371         (discard_psymtabs_upto): Likewise.
372         * python/py-block.c (set_block): Likewise.
373         (del_objfile_blocks): Likewise.
374         * python/py-breakpoint.c (build_bp_list): Likewise.
375         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
376         (build_inferior_list): Likewise.
377         (py_free_inferior): Likewise.
378         * python/py-objfile.c (py_free_objfile): Likewise.
379         (objfile_to_objfile_object): Likewise.
380         * python/py-prettyprint.c (py_restore_tstate): Likewise.
381         * python/py-progspace.c (py_free_pspace): Likewise.
382         (pspace_to_pspace_object): Likewise.
383         * python/py-symbol.c (set_symbol): Likewise.
384         (del_objfile_symbols): Likewise.
385         * python/py-symtab.c (set_sal): Likewise.
386         (set_symtab): Likewise.
387         (del_objfile_symtab): Likewise.
388         (del_objfile_sal): Likewise.
389         * python/py-type.c (save_objfile_types): Likewise.
390         (set_type): Likewise.
391         * python/py-unwind.c (pyuw_prev_register): Likewise.
392         (pyuw_on_new_gdbarch): Likewise.
393         * python/py-utils.c (py_decref): Likewise.
394         (py_xdecref): Likewise.
395         (gdb_py_generic_dict): Likewise.
396         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
397         (gdbpy_clone_xmethod_worker_data): Likewise.
398         (gdbpy_get_xmethod_arg_types): Likewise.
399         (gdbpy_get_xmethod_result_type): Likewise.
400         (gdbpy_invoke_xmethod): Likewise.
401         * python/python.c (gdbpy_apply_type_printers): Likewise.
402         (gdbpy_free_type_printers): Likewise.
403         * record-btrace.c (record_btrace_disable_callback): Likewise.
404         (bfcache_hash): Likewise.
405         (bfcache_eq): Likewise.
406         (btrace_get_frame_function): Likewise.
407         (record_btrace_frame_unwind_stop_reason): Likewise.
408         (record_btrace_frame_this_id): Likewise.
409         (record_btrace_frame_prev_register): Likewise.
410         (record_btrace_frame_dealloc_cache): Likewise.
411         * record-full.c (record_full_message_wrapper): Likewise.
412         (record_full_save_cleanups): Likewise.
413         * regcache.c (regcache_descr): Likewise.
414         (do_regcache_xfree): Likewise.
415         (do_regcache_invalidate): Likewise.
416         (do_cooked_read): Likewise.
417         (regcache_transfer_regset): Likewise.
418         * reggroups.c (reggroup_add): Likewise.
419         (reggroup_next): Likewise.
420         (reggroup_prev): Likewise.
421         * remote-fileio.c (do_remote_fileio_request): Likewise.
422         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
423         (do_notif_event_xfree): Likewise.
424         * remote.c (get_remote_arch_state): Likewise.
425         (remote_pspace_data_cleanup): Likewise.
426         (get_remote_exec_file): Likewise.
427         (set_pspace_remote_exec_file): Likewise.
428         (compare_pnums): Likewise.
429         (clear_threads_listing_context): Likewise.
430         (remote_newthread_step): Likewise.
431         (start_thread): Likewise.
432         (end_thread): Likewise.
433         (remove_child_of_pending_fork): Likewise.
434         (remove_stop_reply_for_inferior): Likewise.
435         (remove_stop_reply_of_remote_state): Likewise.
436         (remote_notif_remove_once_on_match): Likewise.
437         (stop_reply_match_ptid_and_ws): Likewise.
438         (kill_child_of_pending_fork): Likewise.
439         (register_remote_g_packet_guess): Likewise.
440         (remote_read_description_p): Likewise.
441         (remote_read_description): Likewise.
442         (free_actions_list_cleanup_wrapper): Likewise.
443         (remote_async_serial_handler): Likewise.
444         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
445         (rl78_analyze_frame_prologue): Likewise.
446         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
447         (ppc_supply_fpregset): Likewise.
448         (ppc_supply_vsxregset): Likewise.
449         (ppc_supply_vrregset): Likewise.
450         (ppc_collect_gregset): Likewise.
451         (ppc_collect_fpregset): Likewise.
452         (ppc_collect_vsxregset): Likewise.
453         (ppc_collect_vrregset): Likewise.
454         (e500_move_ev_register): Likewise.
455         (do_regcache_raw_write): Likewise.
456         (rs6000_frame_cache): Likewise.
457         (rs6000_epilogue_frame_cache): Likewise.
458         (rs6000_gdbarch_init): Likewise.
459         * rx-tdep.c (rx_get_opcode_byte): Likewise.
460         (rx_analyze_frame_prologue): Likewise.
461         (rx_frame_type): Likewise.
462         (rx_frame_sniffer_common): Likewise.
463         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
464         (s390_frame_unwind_cache): Likewise.
465         (s390_stub_frame_unwind_cache): Likewise.
466         (s390_sigtramp_frame_unwind_cache): Likewise.
467         * score-tdep.c (score_make_prologue_cache): Likewise.
468         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
469         (sentinel_frame_prev_arch): Likewise.
470         * ser-base.c (fd_event): Likewise.
471         (push_event): Likewise.
472         (ser_base_write): Likewise.
473         * ser-pipe.c (pipe_close): Likewise.
474         * serial.c (serial_write): Likewise.
475         * sh-tdep.c (sh_frame_cache): Likewise.
476         (sh_stub_this_id): Likewise.
477         * sh64-tdep.c (sh64_frame_cache): Likewise.
478         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
479         (library_list_start_library): Likewise.
480         (library_list_start_list): Likewise.
481         (solib_aix_free_library_list): Likewise.
482         * solib-darwin.c (get_darwin_info): Likewise.
483         * solib-dsbt.c (get_dsbt_info): Likewise.
484         * solib-spu.c (append_ocl_sos): Likewise.
485         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
486         (get_svr4_info): Likewise.
487         (library_list_start_library): Likewise.
488         (svr4_library_list_start_list): Likewise.
489         (hash_probe_and_action): Likewise.
490         (equal_probe_and_action): Likewise.
491         (svr4_update_solib_event_breakpoint): Likewise.
492         (set_solib_svr4_fetch_link_map_offsets): Likewise.
493         (svr4_fetch_link_map_offsets): Likewise.
494         (svr4_have_link_map_offsets): Likewise.
495         * solib-target.c (library_list_start_segment): Likewise.
496         (library_list_start_section): Likewise.
497         (library_list_start_library): Likewise.
498         (library_list_end_library): Likewise.
499         (library_list_start_list): Likewise.
500         (solib_target_free_library_list): Likewise.
501         * solib.c (solib_ops): Likewise.
502         (set_solib_ops): Likewise.
503         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
504         * sparc-tdep.c (sparc_frame_cache): Likewise.
505         (sparc32_frame_cache): Likewise.
506         (sparc32_supply_gregset): Likewise.
507         (sparc32_collect_gregset): Likewise.
508         (sparc32_supply_fpregset): Likewise.
509         (sparc32_collect_fpregset): Likewise.
510         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
511         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
512         (sparc64_collect_gregset): Likewise.
513         (sparc64_supply_fpregset): Likewise.
514         (sparc64_collect_fpregset): Likewise.
515         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
516         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
517         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
518         (sparc64obsd_trapframe_cache): Likewise.
519         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
520         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
521         * spu-multiarch.c (spu_gdbarch): Likewise.
522         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
523         (spu2ppu_prev_arch): Likewise.
524         (spu2ppu_this_id): Likewise.
525         (spu2ppu_prev_register): Likewise.
526         (spu2ppu_dealloc_cache): Likewise.
527         (spu_dis_asm_print_address): Likewise.
528         (gdb_print_insn_spu): Likewise.
529         (spu_get_overlay_table): Likewise.
530         * stabsread.c (rs6000_builtin_type): Likewise.
531         * stack.c (do_print_variable_and_value): Likewise.
532         * stap-probe.c (get_stap_base_address_1): Likewise.
533         * symfile-debug.c (debug_qf_has_symbols): Likewise.
534         (debug_qf_find_last_source_symtab): Likewise.
535         (debug_qf_forget_cached_source_info): Likewise.
536         (debug_qf_map_symtabs_matching_filename): Likewise.
537         (debug_qf_lookup_symbol): Likewise.
538         (debug_qf_print_stats): Likewise.
539         (debug_qf_dump): Likewise.
540         (debug_qf_relocate): Likewise.
541         (debug_qf_expand_symtabs_for_function): Likewise.
542         (debug_qf_expand_all_symtabs): Likewise.
543         (debug_qf_expand_symtabs_with_fullname): Likewise.
544         (debug_qf_map_matching_symbols): Likewise.
545         (debug_qf_expand_symtabs_matching): Likewise.
546         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
547         (debug_qf_map_symbol_filenames): Likewise.
548         (debug_sym_get_probes): Likewise.
549         (debug_sym_new_init): Likewise.
550         (debug_sym_init): Likewise.
551         (debug_sym_read): Likewise.
552         (debug_sym_read_psymbols): Likewise.
553         (debug_sym_finish): Likewise.
554         (debug_sym_offsets): Likewise.
555         (debug_sym_read_linetable): Likewise.
556         (debug_sym_relocate): Likewise.
557         (uninstall_symfile_debug_logging): Likewise.
558         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
559         * symfile.c (place_section): Likewise.
560         (add_section_size_callback): Likewise.
561         (load_progress): Likewise.
562         (load_section_callback): Likewise.
563         (clear_memory_write_data): Likewise.
564         (allocate_symtab): Likewise.
565         * symmisc.c (maintenance_expand_file_matcher): Likewise.
566         * symtab.c (lookup_symtab_callback): Likewise.
567         (hash_demangled_name_entry): Likewise.
568         (eq_demangled_name_entry): Likewise.
569         (get_symbol_cache): Likewise.
570         (symbol_cache_cleanup): Likewise.
571         (set_symbol_cache_size): Likewise.
572         (symbol_cache_flush): Likewise.
573         (maintenance_print_symbol_cache): Likewise.
574         (maintenance_print_symbol_cache_statistics): Likewise.
575         (delete_filename_seen_cache): Likewise.
576         (output_partial_symbol_filename): Likewise.
577         (search_symbols_file_matches): Likewise.
578         (search_symbols_name_matches): Likewise.
579         (do_free_completion_list): Likewise.
580         (maybe_add_partial_symtab_filename): Likewise.
581         (get_main_info): Likewise.
582         (main_info_cleanup): Likewise.
583         * target-dcache.c (target_dcache_cleanup): Likewise.
584         (target_dcache_init_p): Likewise.
585         (target_dcache_invalidate): Likewise.
586         (target_dcache_get): Likewise.
587         (target_dcache_get_or_init): Likewise.
588         * target-descriptions.c (target_find_description): Likewise.
589         (tdesc_find_type): Likewise.
590         (tdesc_data_cleanup): Likewise.
591         (tdesc_find_arch_register): Likewise.
592         (tdesc_register_name): Likewise.
593         (tdesc_register_type): Likewise.
594         (tdesc_register_reggroup_p): Likewise.
595         (set_tdesc_pseudo_register_name): Likewise.
596         (set_tdesc_pseudo_register_type): Likewise.
597         (set_tdesc_pseudo_register_reggroup_p): Likewise.
598         (tdesc_use_registers): Likewise.
599         (free_target_description): Likewise.
600         * target-memory.c (compare_block_starting_address): Likewise.
601         (cleanup_request_data): Likewise.
602         (cleanup_write_requests_vector): Likewise.
603         * target.c (open_target): Likewise.
604         (cleanup_restore_target_terminal): Likewise.
605         (free_memory_read_result_vector): Likewise.
606         * thread.c (disable_thread_stack_temporaries): Likewise.
607         (finish_thread_state_cleanup): Likewise.
608         (do_restore_current_thread_cleanup): Likewise.
609         (restore_current_thread_cleanup_dtor): Likewise.
610         (set_thread_refcount): Likewise.
611         (tp_array_compar): Likewise.
612         (do_captured_thread_select): Likewise.
613         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
614         (tic6x_stub_this_id): Likewise.
615         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
616         * top.c (do_restore_instream_cleanup): Likewise.
617         (gdb_readline_wrapper_cleanup): Likewise.
618         (kill_or_detach): Likewise.
619         (print_inferior_quit_action): Likewise.
620         * tracefile-tfile.c (match_blocktype): Likewise.
621         (build_traceframe_info): Likewise.
622         * tracefile.c (trace_file_writer_xfree): Likewise.
623         * tracepoint.c (memrange_cmp): Likewise.
624         (do_collect_symbol): Likewise.
625         (do_clear_collection_list): Likewise.
626         (do_restore_current_traceframe_cleanup): Likewise.
627         (restore_current_traceframe_cleanup_dtor): Likewise.
628         (free_current_marker): Likewise.
629         (traceframe_info_start_memory): Likewise.
630         (traceframe_info_start_tvar): Likewise.
631         (free_result): Likewise.
632         * tramp-frame.c (tramp_frame_cache): Likewise.
633         * tui/tui-file.c (tui_file_delete): Likewise.
634         (tui_fileopen): Likewise.
635         (tui_sfileopen): Likewise.
636         (tui_file_isatty): Likewise.
637         (tui_file_rewind): Likewise.
638         (tui_file_put): Likewise.
639         (tui_file_fputs): Likewise.
640         (tui_file_get_strbuf): Likewise.
641         (tui_file_adjust_strbuf): Likewise.
642         (tui_file_flush): Likewise.
643         * tui/tui-layout.c (make_command_window): Likewise.
644         (make_data_window): Likewise.
645         (show_source_disasm_command): Likewise.
646         (show_data): Likewise.
647         (make_source_or_disasm_window): Likewise.
648         (show_source_or_disasm_and_command): Likewise.
649         * tui/tui-out.c (tui_field_int): Likewise.
650         (tui_field_string): Likewise.
651         (tui_field_fmt): Likewise.
652         (tui_text): Likewise.
653         * typeprint.c (hash_typedef_field): Likewise.
654         (eq_typedef_field): Likewise.
655         (do_free_typedef_hash): Likewise.
656         (copy_typedef_hash_element): Likewise.
657         (do_free_global_table): Likewise.
658         (find_global_typedef): Likewise.
659         (find_typedef_in_hash): Likewise.
660         * ui-file.c (ui_file_write_for_put): Likewise.
661         (do_ui_file_xstrdup): Likewise.
662         (mem_file_delete): Likewise.
663         (mem_file_rewind): Likewise.
664         (mem_file_put): Likewise.
665         (mem_file_write): Likewise.
666         (stdio_file_delete): Likewise.
667         (stdio_file_flush): Likewise.
668         (stdio_file_read): Likewise.
669         (stdio_file_write): Likewise.
670         (stdio_file_write_async_safe): Likewise.
671         (stdio_file_fputs): Likewise.
672         (stdio_file_isatty): Likewise.
673         (stdio_file_fseek): Likewise.
674         (tee_file_delete): Likewise.
675         (tee_file_flush): Likewise.
676         (tee_file_write): Likewise.
677         (tee_file_fputs): Likewise.
678         (tee_file_isatty): Likewise.
679         * ui-out.c (do_cleanup_table_end): Likewise.
680         (do_cleanup_end): Likewise.
681         * user-regs.c (user_reg_add): Likewise.
682         (user_reg_map_name_to_regnum): Likewise.
683         (usernum_to_user_reg): Likewise.
684         (maintenance_print_user_registers): Likewise.
685         * utils.c (do_bfd_close_cleanup): Likewise.
686         (do_fclose_cleanup): Likewise.
687         (do_obstack_free): Likewise.
688         (do_ui_file_delete): Likewise.
689         (do_ui_out_redirect_pop): Likewise.
690         (do_free_section_addr_info): Likewise.
691         (restore_integer): Likewise.
692         (do_unpush_target): Likewise.
693         (do_htab_delete_cleanup): Likewise.
694         (do_restore_ui_file): Likewise.
695         (do_value_free): Likewise.
696         (do_free_so): Likewise.
697         (free_current_contents): Likewise.
698         (do_regfree_cleanup): Likewise.
699         (core_addr_hash): Likewise.
700         (core_addr_eq): Likewise.
701         (do_free_char_ptr_vec): Likewise.
702         * v850-tdep.c (v850_frame_cache): Likewise.
703         * varobj.c (do_free_variable_cleanup): Likewise.
704         * vax-tdep.c (vax_supply_gregset): Likewise.
705         (vax_frame_cache): Likewise.
706         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
707         * xml-support.c (gdb_xml_body_text): Likewise.
708         (gdb_xml_values_cleanup): Likewise.
709         (gdb_xml_start_element): Likewise.
710         (gdb_xml_start_element_wrapper): Likewise.
711         (gdb_xml_end_element): Likewise.
712         (gdb_xml_end_element_wrapper): Likewise.
713         (gdb_xml_cleanup): Likewise.
714         (gdb_xml_fetch_external_entity): Likewise.
715         (gdb_xml_parse_attr_enum): Likewise.
716         (xinclude_start_include): Likewise.
717         (xinclude_end_include): Likewise.
718         (xml_xinclude_default): Likewise.
719         (xml_xinclude_start_doctype): Likewise.
720         (xml_xinclude_end_doctype): Likewise.
721         (xml_xinclude_cleanup): Likewise.
722         (xml_fetch_content_from_file): Likewise.
723         * xml-syscall.c (free_syscalls_info): Likewise.
724         (syscall_start_syscall): Likewise.
725         * xml-tdesc.c (tdesc_end_arch): Likewise.
726         (tdesc_end_osabi): Likewise.
727         (tdesc_end_compatible): Likewise.
728         (tdesc_start_target): Likewise.
729         (tdesc_start_feature): Likewise.
730         (tdesc_start_reg): Likewise.
731         (tdesc_start_union): Likewise.
732         (tdesc_start_struct): Likewise.
733         (tdesc_start_flags): Likewise.
734         (tdesc_start_field): Likewise.
735         (tdesc_start_vector): Likewise.
736         (fetch_available_features_from_target): Likewise.
737         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
738         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
739         (xtensa_frame_cache): Likewise.
740         (xtensa_frame_prev_register): Likewise.
741         (xtensa_extract_return_value): Likewise.
742
743 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
744
745         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
746         (aarch64_make_stub_cache): Likewise.
747         (value_of_aarch64_user_reg): Likewise.
748         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
749         (get_ada_inferior_data): Likewise.
750         (get_ada_pspace_data): Likewise.
751         (ada_pspace_data_cleanup): Likewise.
752         (ada_complete_symbol_matcher): Likewise.
753         (ada_exc_search_name_matches): Likewise.
754         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
755         (get_ada_tasks_inferior_data): Likewise.
756         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
757         (splay_obstack_alloc): Likewise.
758         (splay_obstack_free): Likewise.
759         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
760         (alpha_linux_collect_gregset): Likewise.
761         (alpha_linux_supply_fpregset): Likewise.
762         (alpha_linux_collect_fpregset): Likewise.
763         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
764         * alpha-tdep.c (alpha_lds): Likewise.
765         (alpha_sts): Likewise.
766         (alpha_sigtramp_frame_unwind_cache): Likewise.
767         (alpha_heuristic_frame_unwind_cache): Likewise.
768         (alpha_supply_int_regs): Likewise.
769         (alpha_fill_int_regs): Likewise.
770         (alpha_supply_fp_regs): Likewise.
771         (alpha_fill_fp_regs): Likewise.
772         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
773         (alphanbsd_aout_supply_gregset): Likewise.
774         (alphanbsd_supply_gregset): Likewise.
775         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
776         (amd64_x32_linux_init_abi): Likewise.
777         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
778         (amd64_collect_native_gregset): Likewise.
779         * amd64-tdep.c (amd64_frame_cache): Likewise.
780         (amd64_sigtramp_frame_cache): Likewise.
781         (amd64_epilogue_frame_cache): Likewise.
782         (amd64_supply_fxsave): Likewise.
783         (amd64_supply_xsave): Likewise.
784         (amd64_collect_fxsave): Likewise.
785         (amd64_collect_xsave): Likewise.
786         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
787         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
788         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
789         (arm_linux_collect_gregset): Likewise.
790         (arm_linux_supply_nwfpe): Likewise.
791         (arm_linux_collect_nwfpe): Likewise.
792         (arm_linux_supply_vfp): Likewise.
793         (arm_linux_collect_vfp): Likewise.
794         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
795         (arm_prologue_unwind_stop_reason): Likewise.
796         (arm_prologue_this_id): Likewise.
797         (arm_prologue_prev_register): Likewise.
798         (arm_exidx_data_free): Likewise.
799         (arm_find_exidx_entry): Likewise.
800         (arm_stub_this_id): Likewise.
801         (arm_m_exception_this_id): Likewise.
802         (arm_m_exception_prev_register): Likewise.
803         (arm_normal_frame_base): Likewise.
804         (gdb_print_insn_arm): Likewise.
805         (arm_objfile_data_free): Likewise.
806         (arm_record_special_symbol): Likewise.
807         (value_of_arm_user_reg): Likewise.
808         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
809         (armbsd_supply_gregset): Likewise.
810         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
811         (get_auto_load_pspace_data): Likewise.
812         (hash_loaded_script_entry): Likewise.
813         (eq_loaded_script_entry): Likewise.
814         (clear_section_scripts): Likewise.
815         (collect_matching_scripts): Likewise.
816         * auxv.c (auxv_inferior_data_cleanup): Likewise.
817         (get_auxv_inferior_data): Likewise.
818         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
819         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
820         * bfd-target.c (target_bfd_xfer_partial): Likewise.
821         (target_bfd_xclose): Likewise.
822         (target_bfd_get_section_table): Likewise.
823         * bfin-tdep.c (bfin_frame_cache): Likewise.
824         * block.c (find_block_in_blockvector): Likewise.
825         (call_site_for_pc): Likewise.
826         (block_find_non_opaque_type_preferred): Likewise.
827         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
828         (signal_catchpoint_remove_location): Likewise.
829         (signal_catchpoint_breakpoint_hit): Likewise.
830         (signal_catchpoint_print_one): Likewise.
831         (signal_catchpoint_print_mention): Likewise.
832         (signal_catchpoint_print_recreate): Likewise.
833         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
834         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
835         (bp_location_compare_addrs): Likewise.
836         (get_first_locp_gte_addr): Likewise.
837         (check_tracepoint_command): Likewise.
838         (do_map_commands_command): Likewise.
839         (get_breakpoint_objfile_data): Likewise.
840         (free_breakpoint_probes): Likewise.
841         (do_captured_breakpoint_query): Likewise.
842         (compare_breakpoints): Likewise.
843         (bp_location_compare): Likewise.
844         (bpstat_remove_breakpoint_callback): Likewise.
845         (do_delete_breakpoint_cleanup): Likewise.
846         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
847         (bsd_uthread_set_collect_uthread): Likewise.
848         (bsd_uthread_activate): Likewise.
849         (bsd_uthread_fetch_registers): Likewise.
850         (bsd_uthread_store_registers): Likewise.
851         * btrace.c (check_xml_btrace_version): Likewise.
852         (parse_xml_btrace_block): Likewise.
853         (parse_xml_btrace_pt_config_cpu): Likewise.
854         (parse_xml_btrace_pt_raw): Likewise.
855         (parse_xml_btrace_pt): Likewise.
856         (parse_xml_btrace_conf_bts): Likewise.
857         (parse_xml_btrace_conf_pt): Likewise.
858         (do_btrace_data_cleanup): Likewise.
859         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
860         * charset.c (cleanup_iconv): Likewise.
861         (do_cleanup_iterator): Likewise.
862         * cli-out.c (cli_uiout_dtor): Likewise.
863         (cli_table_begin): Likewise.
864         (cli_table_body): Likewise.
865         (cli_table_end): Likewise.
866         (cli_table_header): Likewise.
867         (cli_begin): Likewise.
868         (cli_end): Likewise.
869         (cli_field_int): Likewise.
870         (cli_field_skip): Likewise.
871         (cli_field_string): Likewise.
872         (cli_field_fmt): Likewise.
873         (cli_spaces): Likewise.
874         (cli_text): Likewise.
875         (cli_message): Likewise.
876         (cli_wrap_hint): Likewise.
877         (cli_flush): Likewise.
878         (cli_redirect): Likewise.
879         (out_field_fmt): Likewise.
880         (field_separator): Likewise.
881         (cli_out_set_stream): Likewise.
882         * cli/cli-cmds.c (compare_symtabs): Likewise.
883         * cli/cli-dump.c (call_dump_func): Likewise.
884         (restore_section_callback): Likewise.
885         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
886         (do_restore_user_call_depth): Likewise.
887         (do_free_command_lines_cleanup): Likewise.
888         * coff-pe-read.c (get_section_vmas): Likewise.
889         (pe_as16): Likewise.
890         (pe_as32): Likewise.
891         * coffread.c (coff_symfile_read): Likewise.
892         * common/agent.c (agent_look_up_symbols): Likewise.
893         * common/filestuff.c (do_close_cleanup): Likewise.
894         * common/format.c (free_format_pieces_cleanup): Likewise.
895         * common/vec.c (vec_o_reserve): Likewise.
896         * compile/compile-c-support.c (print_one_macro): Likewise.
897         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
898         (eq_symbol_error): Likewise.
899         (del_symbol_error): Likewise.
900         (error_symbol_once): Likewise.
901         (gcc_convert_symbol): Likewise.
902         (gcc_symbol_address): Likewise.
903         (hash_symname): Likewise.
904         (eq_symname): Likewise.
905         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
906         (eq_type_map_instance): Likewise.
907         (insert_type): Likewise.
908         (convert_type): Likewise.
909         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
910         (setup_sections): Likewise.
911         (link_hash_table_free): Likewise.
912         (copy_sections): Likewise.
913         * compile/compile-object-run.c (do_module_cleanup): Likewise.
914         * compile/compile.c (compile_print_value): Likewise.
915         (do_rmdir): Likewise.
916         (cleanup_compile_instance): Likewise.
917         (cleanup_unlink_file): Likewise.
918         * completer.c (free_completion_tracker): Likewise.
919         * corelow.c (add_to_spuid_list): Likewise.
920         * cp-namespace.c (reset_directive_searched): Likewise.
921         * cp-support.c (reset_directive_searched): Likewise.
922         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
923         (cris_frame_unwind_cache): Likewise.
924         * d-lang.c (builtin_d_type): Likewise.
925         * d-namespace.c (reset_directive_searched): Likewise.
926         * dbxread.c (dbx_free_symfile_info): Likewise.
927         (do_free_bincl_list_cleanup): Likewise.
928         * disasm.c (hash_dis_line_entry): Likewise.
929         (eq_dis_line_entry): Likewise.
930         (dis_asm_print_address): Likewise.
931         (fprintf_disasm): Likewise.
932         (do_ui_file_delete): Likewise.
933         * doublest.c (convert_floatformat_to_doublest): Likewise.
934         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
935         (dummy_frame_prev_register): Likewise.
936         (dummy_frame_this_id): Likewise.
937         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
938         (cache_eq): Likewise.
939         (cache_find): Likewise.
940         (tailcall_frame_this_id): Likewise.
941         (dwarf2_tailcall_prev_register_first): Likewise.
942         (tailcall_frame_prev_register): Likewise.
943         (tailcall_frame_dealloc_cache): Likewise.
944         (tailcall_frame_prev_arch): Likewise.
945         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
946         (dwarf2_frame_set_init_reg): Likewise.
947         (dwarf2_frame_init_reg): Likewise.
948         (dwarf2_frame_set_signal_frame_p): Likewise.
949         (dwarf2_frame_signal_frame_p): Likewise.
950         (dwarf2_frame_set_adjust_regnum): Likewise.
951         (dwarf2_frame_adjust_regnum): Likewise.
952         (clear_pointer_cleanup): Likewise.
953         (dwarf2_frame_cache): Likewise.
954         (find_cie): Likewise.
955         (dwarf2_frame_find_fde): Likewise.
956         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
957         (free_dwarf_expr_context_cleanup): Likewise.
958         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
959         (locexpr_get_frame_base): Likewise.
960         (loclist_find_frame_base_location): Likewise.
961         (loclist_get_frame_base): Likewise.
962         (dwarf_expr_dwarf_call): Likewise.
963         (dwarf_expr_get_base_type): Likewise.
964         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
965         (dwarf_expr_get_obj_addr): Likewise.
966         (entry_data_value_coerce_ref): Likewise.
967         (entry_data_value_copy_closure): Likewise.
968         (entry_data_value_free_closure): Likewise.
969         (get_frame_address_in_block_wrapper): Likewise.
970         (dwarf2_evaluate_property): Likewise.
971         (dwarf2_compile_property_to_c): Likewise.
972         (needs_frame_read_addr_from_reg): Likewise.
973         (needs_frame_get_reg_value): Likewise.
974         (needs_frame_frame_base): Likewise.
975         (needs_frame_frame_cfa): Likewise.
976         (needs_frame_tls_address): Likewise.
977         (needs_frame_dwarf_call): Likewise.
978         (needs_dwarf_reg_entry_value): Likewise.
979         (get_ax_pc): Likewise.
980         (locexpr_read_variable): Likewise.
981         (locexpr_read_variable_at_entry): Likewise.
982         (locexpr_read_needs_frame): Likewise.
983         (locexpr_describe_location): Likewise.
984         (locexpr_tracepoint_var_ref): Likewise.
985         (locexpr_generate_c_location): Likewise.
986         (loclist_read_variable): Likewise.
987         (loclist_read_variable_at_entry): Likewise.
988         (loclist_describe_location): Likewise.
989         (loclist_tracepoint_var_ref): Likewise.
990         (loclist_generate_c_location): Likewise.
991         * dwarf2read.c (line_header_hash_voidp): Likewise.
992         (line_header_eq_voidp): Likewise.
993         (dwarf2_has_info): Likewise.
994         (dwarf2_get_section_info): Likewise.
995         (locate_dwz_sections): Likewise.
996         (hash_file_name_entry): Likewise.
997         (eq_file_name_entry): Likewise.
998         (delete_file_name_entry): Likewise.
999         (dw2_setup): Likewise.
1000         (dw2_get_file_names_reader): Likewise.
1001         (dw2_find_pc_sect_compunit_symtab): Likewise.
1002         (hash_signatured_type): Likewise.
1003         (eq_signatured_type): Likewise.
1004         (add_signatured_type_cu_to_table): Likewise.
1005         (create_debug_types_hash_table): Likewise.
1006         (lookup_dwo_signatured_type): Likewise.
1007         (lookup_dwp_signatured_type): Likewise.
1008         (lookup_signatured_type): Likewise.
1009         (hash_type_unit_group): Likewise.
1010         (eq_type_unit_group): Likewise.
1011         (get_type_unit_group): Likewise.
1012         (process_psymtab_comp_unit_reader): Likewise.
1013         (sort_tu_by_abbrev_offset): Likewise.
1014         (process_skeletonless_type_unit): Likewise.
1015         (psymtabs_addrmap_cleanup): Likewise.
1016         (dwarf2_read_symtab): Likewise.
1017         (psymtab_to_symtab_1): Likewise.
1018         (die_hash): Likewise.
1019         (die_eq): Likewise.
1020         (load_full_comp_unit_reader): Likewise.
1021         (reset_die_in_process): Likewise.
1022         (free_cu_line_header): Likewise.
1023         (handle_DW_AT_stmt_list): Likewise.
1024         (hash_dwo_file): Likewise.
1025         (eq_dwo_file): Likewise.
1026         (hash_dwo_unit): Likewise.
1027         (eq_dwo_unit): Likewise.
1028         (create_dwo_cu_reader): Likewise.
1029         (create_dwo_unit_in_dwp_v1): Likewise.
1030         (create_dwo_unit_in_dwp_v2): Likewise.
1031         (lookup_dwo_unit_in_dwp): Likewise.
1032         (dwarf2_locate_dwo_sections): Likewise.
1033         (dwarf2_locate_common_dwp_sections): Likewise.
1034         (dwarf2_locate_v2_dwp_sections): Likewise.
1035         (hash_dwp_loaded_cutus): Likewise.
1036         (eq_dwp_loaded_cutus): Likewise.
1037         (lookup_dwo_cutu): Likewise.
1038         (abbrev_table_free_cleanup): Likewise.
1039         (dwarf2_free_abbrev_table): Likewise.
1040         (find_partial_die_in_comp_unit): Likewise.
1041         (free_line_header_voidp): Likewise.
1042         (follow_die_offset): Likewise.
1043         (follow_die_sig_1): Likewise.
1044         (free_heap_comp_unit): Likewise.
1045         (free_stack_comp_unit): Likewise.
1046         (dwarf2_free_objfile): Likewise.
1047         (per_cu_offset_and_type_hash): Likewise.
1048         (per_cu_offset_and_type_eq): Likewise.
1049         (get_die_type_at_offset): Likewise.
1050         (partial_die_hash): Likewise.
1051         (partial_die_eq): Likewise.
1052         (dwarf2_per_objfile_free): Likewise.
1053         (hash_strtab_entry): Likewise.
1054         (eq_strtab_entry): Likewise.
1055         (add_string): Likewise.
1056         (hash_symtab_entry): Likewise.
1057         (eq_symtab_entry): Likewise.
1058         (delete_symtab_entry): Likewise.
1059         (cleanup_mapped_symtab): Likewise.
1060         (add_indices_to_cpool): Likewise.
1061         (hash_psymtab_cu_index): Likewise.
1062         (eq_psymtab_cu_index): Likewise.
1063         (add_address_entry_worker): Likewise.
1064         (unlink_if_set): Likewise.
1065         (write_one_signatured_type): Likewise.
1066         (save_gdb_index_command): Likewise.
1067         * elfread.c (elf_symtab_read): Likewise.
1068         (elf_gnu_ifunc_cache_hash): Likewise.
1069         (elf_gnu_ifunc_cache_eq): Likewise.
1070         (elf_gnu_ifunc_record_cache): Likewise.
1071         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1072         (elf_get_probes): Likewise.
1073         (probe_key_free): Likewise.
1074         * f-lang.c (builtin_f_type): Likewise.
1075         * frame-base.c (frame_base_append_sniffer): Likewise.
1076         (frame_base_set_default): Likewise.
1077         (frame_base_find_by_frame): Likewise.
1078         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1079         (frame_unwind_append_unwinder): Likewise.
1080         (frame_unwind_find_by_frame): Likewise.
1081         * frame.c (frame_addr_hash): Likewise.
1082         (frame_addr_hash_eq): Likewise.
1083         (frame_stash_find): Likewise.
1084         (do_frame_register_read): Likewise.
1085         (unwind_to_current_frame): Likewise.
1086         (frame_cleanup_after_sniffer): Likewise.
1087         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1088         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1089         * ft32-tdep.c (ft32_frame_cache): Likewise.
1090         * gcore.c (do_bfd_delete_cleanup): Likewise.
1091         (gcore_create_callback): Likewise.
1092         * gdb_bfd.c (hash_bfd): Likewise.
1093         (eq_bfd): Likewise.
1094         (gdb_bfd_open): Likewise.
1095         (free_one_bfd_section): Likewise.
1096         (gdb_bfd_ref): Likewise.
1097         (gdb_bfd_unref): Likewise.
1098         (get_section_descriptor): Likewise.
1099         (gdb_bfd_map_section): Likewise.
1100         (gdb_bfd_crc): Likewise.
1101         (gdb_bfd_mark_parent): Likewise.
1102         (gdb_bfd_record_inclusion): Likewise.
1103         (gdb_bfd_requires_relocations): Likewise.
1104         (print_one_bfd): Likewise.
1105         * gdbtypes.c (type_pair_hash): Likewise.
1106         (type_pair_eq): Likewise.
1107         (builtin_type): Likewise.
1108         (objfile_type): Likewise.
1109         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1110         (vtable_address_point_offset): Likewise.
1111         (gnuv3_get_vtable): Likewise.
1112         (hash_value_and_voffset): Likewise.
1113         (eq_value_and_voffset): Likewise.
1114         (compare_value_and_voffset): Likewise.
1115         (compute_vtable_size): Likewise.
1116         (gnuv3_get_typeid_type): Likewise.
1117         * go-lang.c (builtin_go_type): Likewise.
1118         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1119         (bkscm_eq_block_smob): Likewise.
1120         (bkscm_objfile_block_map): Likewise.
1121         (bkscm_del_objfile_blocks): Likewise.
1122         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1123         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1124         (gdbscm_disasm_print_address): Likewise.
1125         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1126         (frscm_eq_frame_smob): Likewise.
1127         (frscm_inferior_frame_map): Likewise.
1128         (frscm_del_inferior_frames): Likewise.
1129         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1130         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1131         (ofscm_objfile_smob_from_objfile): Likewise.
1132         * guile/scm-ports.c (ioscm_write): Likewise.
1133         (ioscm_file_port_delete): Likewise.
1134         (ioscm_file_port_rewind): Likewise.
1135         (ioscm_file_port_put): Likewise.
1136         (ioscm_file_port_write): Likewise.
1137         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1138         (psscm_pspace_smob_from_pspace): Likewise.
1139         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1140         (scscm_recording_unwind_handler): Likewise.
1141         (gdbscm_with_catch): Likewise.
1142         (scscm_call_0_body): Likewise.
1143         (scscm_call_1_body): Likewise.
1144         (scscm_call_2_body): Likewise.
1145         (scscm_call_3_body): Likewise.
1146         (scscm_call_4_body): Likewise.
1147         (scscm_apply_1_body): Likewise.
1148         (scscm_eval_scheme_string): Likewise.
1149         (gdbscm_safe_eval_string): Likewise.
1150         (scscm_source_scheme_script): Likewise.
1151         (gdbscm_safe_source_script): Likewise.
1152         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1153         (gdbscm_call_scm_from_stringn): Likewise.
1154         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1155         (syscm_eq_symbol_smob): Likewise.
1156         (syscm_get_symbol_map): Likewise.
1157         (syscm_del_objfile_symbols): Likewise.
1158         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1159         (stscm_eq_symtab_smob): Likewise.
1160         (stscm_objfile_symtab_map): Likewise.
1161         (stscm_del_objfile_symtabs): Likewise.
1162         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1163         (tyscm_eq_type_smob): Likewise.
1164         (tyscm_type_map): Likewise.
1165         (tyscm_copy_type_recursive): Likewise.
1166         (save_objfile_types): Likewise.
1167         * guile/scm-utils.c (extract_arg): Likewise.
1168         * h8300-tdep.c (h8300_frame_cache): Likewise.
1169         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1170         * hppa-tdep.c (compare_unwind_entries): Likewise.
1171         (find_unwind_entry): Likewise.
1172         (hppa_frame_cache): Likewise.
1173         (hppa_stub_frame_unwind_cache): Likewise.
1174         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1175         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1176         (hppaobsd_supply_fpregset): Likewise.
1177         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1178         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1179         * i386-tdep.c (i386_frame_cache): Likewise.
1180         (i386_epilogue_frame_cache): Likewise.
1181         (i386_sigtramp_frame_cache): Likewise.
1182         (i386_supply_gregset): Likewise.
1183         (i386_collect_gregset): Likewise.
1184         (i386_gdbarch_init): Likewise.
1185         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1186         (i386obsd_trapframe_cache): Likewise.
1187         * i387-tdep.c (i387_supply_fsave): Likewise.
1188         (i387_collect_fsave): Likewise.
1189         (i387_supply_fxsave): Likewise.
1190         (i387_collect_fxsave): Likewise.
1191         (i387_supply_xsave): Likewise.
1192         (i387_collect_xsave): Likewise.
1193         * ia64-tdep.c (ia64_frame_cache): Likewise.
1194         (ia64_sigtramp_frame_cache): Likewise.
1195         * infcmd.c (attach_command_continuation): Likewise.
1196         (attach_command_continuation_free_args): Likewise.
1197         * inferior.c (restore_inferior): Likewise.
1198         (delete_thread_of_inferior): Likewise.
1199         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1200         (get_inflow_inferior_data): Likewise.
1201         (inflow_inferior_exit): Likewise.
1202         * infrun.c (displaced_step_clear_cleanup): Likewise.
1203         (restore_current_uiout_cleanup): Likewise.
1204         (release_stop_context_cleanup): Likewise.
1205         (do_restore_infcall_suspend_state_cleanup): Likewise.
1206         (do_restore_infcall_control_state_cleanup): Likewise.
1207         (restore_inferior_ptid): Likewise.
1208         * inline-frame.c (block_starting_point_at): Likewise.
1209         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1210         * jit.c (get_jit_objfile_data): Likewise.
1211         (get_jit_program_space_data): Likewise.
1212         (jit_object_close_impl): Likewise.
1213         (jit_find_objf_with_entry_addr): Likewise.
1214         (jit_breakpoint_deleted): Likewise.
1215         (jit_unwind_reg_set_impl): Likewise.
1216         (jit_unwind_reg_get_impl): Likewise.
1217         (jit_dealloc_cache): Likewise.
1218         (jit_frame_sniffer): Likewise.
1219         (jit_frame_prev_register): Likewise.
1220         (jit_prepend_unwinder): Likewise.
1221         (jit_inferior_exit_hook): Likewise.
1222         (free_objfile_data): Likewise.
1223         * jv-lang.c (jv_per_objfile_free): Likewise.
1224         (get_dynamics_objfile): Likewise.
1225         (get_java_class_symtab): Likewise.
1226         (builtin_java_type): Likewise.
1227         * language.c (language_string_char_type): Likewise.
1228         (language_bool_type): Likewise.
1229         (language_lookup_primitive_type): Likewise.
1230         (language_lookup_primitive_type_as_symbol): Likewise.
1231         * linespec.c (hash_address_entry): Likewise.
1232         (eq_address_entry): Likewise.
1233         (iterate_inline_only): Likewise.
1234         (iterate_name_matcher): Likewise.
1235         (decode_line_2_compare_items): Likewise.
1236         (collect_one_symbol): Likewise.
1237         (compare_symbols): Likewise.
1238         (compare_msymbols): Likewise.
1239         (add_symtabs_to_list): Likewise.
1240         (collect_symbols): Likewise.
1241         (compare_msyms): Likewise.
1242         (add_minsym): Likewise.
1243         (cleanup_linespec_result): Likewise.
1244         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1245         * linux-nat.c (delete_lwp_cleanup): Likewise.
1246         (count_events_callback): Likewise.
1247         (select_event_lwp_callback): Likewise.
1248         (resume_stopped_resumed_lwps): Likewise.
1249         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1250         (invalidate_linux_cache_inf): Likewise.
1251         (get_linux_inferior_data): Likewise.
1252         (linux_find_memory_regions_thunk): Likewise.
1253         (linux_make_mappings_callback): Likewise.
1254         (linux_corefile_thread_callback): Likewise.
1255         (find_mapping_size): Likewise.
1256         * linux-thread-db.c (find_new_threads_callback): Likewise.
1257         * lm32-tdep.c (lm32_frame_cache): Likewise.
1258         * m2-lang.c (builtin_m2_type): Likewise.
1259         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1260         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1261         (m32r_linux_supply_gregset): Likewise.
1262         (m32r_linux_collect_gregset): Likewise.
1263         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1264         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1265         * m68k-tdep.c (m68k_frame_cache): Likewise.
1266         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1267         (m68kbsd_supply_gregset): Likewise.
1268         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1269         * m88k-tdep.c (m88k_frame_cache): Likewise.
1270         (m88k_supply_gregset): Likewise.
1271
1272 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1273
1274         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1275         to allocation result assignment.
1276         * ada-exp.y (write_object_renaming): Likewise.
1277         (write_ambiguous_var): Likewise.
1278         (ada_nget_field_index): Likewise.
1279         (write_var_or_type): Likewise.
1280         * ada-lang.c (ada_decode_symbol): Likewise.
1281         (ada_value_assign): Likewise.
1282         (value_pointer): Likewise.
1283         (cache_symbol): Likewise.
1284         (add_nonlocal_symbols): Likewise.
1285         (ada_name_for_lookup): Likewise.
1286         (symbol_completion_add): Likewise.
1287         (ada_to_fixed_type_1): Likewise.
1288         (ada_get_next_arg): Likewise.
1289         (defns_collected): Likewise.
1290         * ada-lex.l (processId): Likewise.
1291         (processString): Likewise.
1292         * ada-tasks.c (read_known_tasks_array): Likewise.
1293         (read_known_tasks_list): Likewise.
1294         * ada-typeprint.c (decoded_type_name): Likewise.
1295         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1296         * amd64-tdep.c (amd64_push_arguments): Likewise.
1297         (amd64_displaced_step_copy_insn): Likewise.
1298         (amd64_classify_insn_at): Likewise.
1299         (amd64_relocate_instruction): Likewise.
1300         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1301         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1302         (initialize_current_architecture): Likewise.
1303         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1304         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1305         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1306         (arm_push_dummy_call): Likewise.
1307         (extend_buffer_earlier): Likewise.
1308         (arm_adjust_breakpoint_address): Likewise.
1309         (arm_skip_stub): Likewise.
1310         * auto-load.c (filename_is_in_pattern): Likewise.
1311         (maybe_add_script_file): Likewise.
1312         (maybe_add_script_text): Likewise.
1313         (auto_load_objfile_script_1): Likewise.
1314         * auxv.c (ld_so_xfer_auxv): Likewise.
1315         * ax-general.c (new_agent_expr): Likewise.
1316         (grow_expr): Likewise.
1317         (ax_reg_mask): Likewise.
1318         * bcache.c (bcache_full): Likewise.
1319         * breakpoint.c (program_breakpoint_here_p): Likewise.
1320         * btrace.c (parse_xml_raw): Likewise.
1321         * build-id.c (build_id_to_debug_bfd): Likewise.
1322         * buildsym.c (end_symtab_with_blockvector): Likewise.
1323         * c-exp.y (string_exp): Likewise.
1324         (qualified_name): Likewise.
1325         (write_destructor_name): Likewise.
1326         (operator_stoken): Likewise.
1327         (parse_number): Likewise.
1328         (scan_macro_expansion): Likewise.
1329         (yylex): Likewise.
1330         (c_print_token): Likewise.
1331         * c-lang.c (c_get_string): Likewise.
1332         (emit_numeric_character): Likewise.
1333         * charset.c (wchar_iterate): Likewise.
1334         * cli/cli-cmds.c (complete_command): Likewise.
1335         (make_command): Likewise.
1336         * cli/cli-dump.c (restore_section_callback): Likewise.
1337         (restore_binary_file): Likewise.
1338         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1339         * cli/cli-script.c (execute_control_command): Likewise.
1340         * cli/cli-setshow.c (do_set_command): Likewise.
1341         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1342         (read_pe_exported_syms): Likewise.
1343         * coffread.c (coff_read_struct_type): Likewise.
1344         (coff_read_enum_type): Likewise.
1345         * common/btrace-common.c (btrace_data_append): Likewise.
1346         * common/buffer.c (buffer_grow): Likewise.
1347         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1348         * common/format.c (parse_format_string): Likewise.
1349         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1350         * common/xml-utils.c (xml_escape_text): Likewise.
1351         * compile/compile-object-load.c (copy_sections): Likewise.
1352         (compile_object_load): Likewise.
1353         * compile/compile-object-run.c (compile_object_run): Likewise.
1354         * completer.c (filename_completer): Likewise.
1355         * corefile.c (read_memory_typed_address): Likewise.
1356         (write_memory_unsigned_integer): Likewise.
1357         (write_memory_signed_integer): Likewise.
1358         (complete_set_gnutarget): Likewise.
1359         * corelow.c (get_core_register_section): Likewise.
1360         * cp-name-parser.y (d_grab): Likewise.
1361         (allocate_info): Likewise.
1362         (cp_new_demangle_parse_info): Likewise.
1363         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1364         (cp_lookup_symbol_in_namespace): Likewise.
1365         (lookup_namespace_scope): Likewise.
1366         (find_symbol_in_baseclass): Likewise.
1367         (cp_lookup_nested_symbol): Likewise.
1368         (cp_lookup_transparent_type_loop): Likewise.
1369         * cp-support.c (copy_string_to_obstack): Likewise.
1370         (make_symbol_overload_list): Likewise.
1371         (make_symbol_overload_list_namespace): Likewise.
1372         (make_symbol_overload_list_adl_namespace): Likewise.
1373         (first_component_command): Likewise.
1374         * cp-valprint.c (cp_print_value): Likewise.
1375         * ctf.c (ctf_xfer_partial): Likewise.
1376         * d-exp.y (StringExp): Likewise.
1377         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1378         (lookup_module_scope): Likewise.
1379         (find_symbol_in_baseclass): Likewise.
1380         (d_lookup_nested_symbol): Likewise.
1381         * dbxread.c (find_stab_function_addr): Likewise.
1382         (read_dbx_symtab): Likewise.
1383         (dbx_end_psymtab): Likewise.
1384         (cp_set_block_scope): Likewise.
1385         * dcache.c (dcache_alloc): Likewise.
1386         * demangle.c (_initialize_demangler): Likewise.
1387         * dicos-tdep.c (dicos_load_module_p): Likewise.
1388         * dictionary.c (dict_create_hashed_expandable): Likewise.
1389         (dict_create_linear_expandable): Likewise.
1390         (expand_hashtable): Likewise.
1391         (add_symbol_linear_expandable): Likewise.
1392         * dwarf2-frame.c (add_cie): Likewise.
1393         (add_fde): Likewise.
1394         (dwarf2_build_frame_info): Likewise.
1395         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1396         (dwarf_expr_fetch_address): Likewise.
1397         (add_piece): Likewise.
1398         (execute_stack_op): Likewise.
1399         * dwarf2loc.c (chain_candidate): Likewise.
1400         (dwarf_entry_parameter_to_value): Likewise.
1401         (read_pieced_value): Likewise.
1402         (write_pieced_value): Likewise.
1403         * dwarf2read.c (dwarf2_read_section): Likewise.
1404         (add_type_unit): Likewise.
1405         (read_comp_units_from_section): Likewise.
1406         (fixup_go_packaging): Likewise.
1407         (dwarf2_compute_name): Likewise.
1408         (dwarf2_physname): Likewise.
1409         (create_dwo_unit_in_dwp_v1): Likewise.
1410         (create_dwo_unit_in_dwp_v2): Likewise.
1411         (read_func_scope): Likewise.
1412         (read_call_site_scope): Likewise.
1413         (dwarf2_attach_fields_to_type): Likewise.
1414         (process_structure_scope): Likewise.
1415         (mark_common_block_symbol_computed): Likewise.
1416         (read_common_block): Likewise.
1417         (abbrev_table_read_table): Likewise.
1418         (guess_partial_die_structure_name): Likewise.
1419         (fixup_partial_die): Likewise.
1420         (add_file_name): Likewise.
1421         (dwarf2_const_value_data): Likewise.
1422         (dwarf2_const_value_attr): Likewise.
1423         (build_error_marker_type): Likewise.
1424         (guess_full_die_structure_name): Likewise.
1425         (anonymous_struct_prefix): Likewise.
1426         (typename_concat): Likewise.
1427         (dwarf2_canonicalize_name): Likewise.
1428         (dwarf2_name): Likewise.
1429         (write_constant_as_bytes): Likewise.
1430         (dwarf2_fetch_constant_bytes): Likewise.
1431         (copy_string): Likewise.
1432         (parse_macro_definition): Likewise.
1433         * elfread.c (elf_symfile_segments): Likewise.
1434         (elf_rel_plt_read): Likewise.
1435         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1436         (elf_gnu_ifunc_resolve_by_got): Likewise.
1437         (elf_read_minimal_symbols): Likewise.
1438         (elf_gnu_ifunc_record_cache): Likewise.
1439         * event-top.c (top_level_prompt): Likewise.
1440         (command_line_handler): Likewise.
1441         * exec.c (resize_section_table): Likewise.
1442         * expprint.c (print_subexp_standard): Likewise.
1443         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1444         * findcmd.c (parse_find_args): Likewise.
1445         * findvar.c (address_from_register): Likewise.
1446         * frame.c (get_prev_frame_always): Likewise.
1447         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1448         (get_section_descriptor): Likewise.
1449         * gdb_obstack.c (obconcat): Likewise.
1450         (obstack_strdup): Likewise.
1451         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1452         (create_set_type): Likewise.
1453         (lookup_unsigned_typename): Likewise.
1454         (lookup_signed_typename): Likewise.
1455         (resolve_dynamic_union): Likewise.
1456         (resolve_dynamic_struct): Likewise.
1457         (add_dyn_prop): Likewise.
1458         (copy_dynamic_prop_list): Likewise.
1459         (arch_flags_type): Likewise.
1460         (append_composite_type_field_raw): Likewise.
1461         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1462         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1463         * go-exp.y (string_exp): Likewise.
1464         * go-lang.c (go_demangle): Likewise.
1465         * guile/guile.c (compute_scheme_string): Likewise.
1466         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1467         (gdbscm_canonicalize_command_name): Likewise.
1468         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1469         (ioscm_init_memory_port): Likewise.
1470         (ioscm_reinit_memory_port): Likewise.
1471         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1472         (gdbscm_gc_dup_argv): Likewise.
1473         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1474         * hppa-tdep.c (internalize_unwinds): Likewise.
1475         (read_unwind_info): Likewise.
1476         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1477         (windows_core_xfer_shared_libraries): Likewise.
1478         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1479         (i386_stap_parse_special_token_triplet): Likewise.
1480         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1481         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1482         * inf-child.c (inf_child_fileio_readlink): Likewise.
1483         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1484         (inf_ptrace_store_register): Likewise.
1485         * infrun.c (follow_exec): Likewise.
1486         (displaced_step_prepare_throw): Likewise.
1487         (save_stop_context): Likewise.
1488         (save_infcall_suspend_state): Likewise.
1489         * jit.c (jit_read_descriptor): Likewise.
1490         (jit_read_code_entry): Likewise.
1491         (jit_symtab_line_mapping_add_impl): Likewise.
1492         (finalize_symtab): Likewise.
1493         (jit_unwind_reg_get_impl): Likewise.
1494         * jv-exp.y (QualifiedName): Likewise.
1495         * jv-lang.c (get_java_utf8_name): Likewise.
1496         (type_from_class): Likewise.
1497         (java_demangle_type_signature): Likewise.
1498         (java_class_name_from_physname): Likewise.
1499         * jv-typeprint.c (java_type_print_base): Likewise.
1500         * jv-valprint.c (java_value_print): Likewise.
1501         * language.c (add_language): Likewise.
1502         * linespec.c (add_sal_to_sals_basic): Likewise.
1503         (add_sal_to_sals): Likewise.
1504         (decode_objc): Likewise.
1505         (find_linespec_symbols): Likewise.
1506         * linux-fork.c (fork_save_infrun_state): Likewise.
1507         * linux-nat.c (linux_nat_detach): Likewise.
1508         (linux_nat_fileio_readlink): Likewise.
1509         * linux-record.c (record_linux_sockaddr): Likewise.
1510         (record_linux_msghdr): Likewise.
1511         (Do): Likewise.
1512         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1513         (linux_collect_regset_section_cb): Likewise.
1514         (linux_get_siginfo_data): Likewise.
1515         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1516         (try_thread_db_load_from_dir): Likewise.
1517         (thread_db_load_search): Likewise.
1518         (info_auto_load_libthread_db): Likewise.
1519         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1520         (m32c_m16c_pointer_to_address): Likewise.
1521         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1522         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1523         * machoread.c (macho_check_dsym): Likewise.
1524         * macroexp.c (resize_buffer): Likewise.
1525         (gather_arguments): Likewise.
1526         (maybe_expand): Likewise.
1527         * macrotab.c (new_macro_key): Likewise.
1528         (new_source_file): Likewise.
1529         (new_macro_definition): Likewise.
1530         * mdebugread.c (parse_symbol): Likewise.
1531         (parse_type): Likewise.
1532         (parse_partial_symbols): Likewise.
1533         (psymtab_to_symtab_1): Likewise.
1534         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1535         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1536         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1537         (mi_cmd_data_read_memory_bytes): Likewise.
1538         (mi_cmd_data_write_memory_bytes): Likewise.
1539         (mi_cmd_trace_frame_collected): Likewise.
1540         * mi/mi-parse.c (mi_parse_argv): Likewise.
1541         (mi_parse): Likewise.
1542         * minidebug.c (lzma_open): Likewise.
1543         (lzma_pread): Likewise.
1544         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1545         (mips_print_fp_register): Likewise.
1546         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1547         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1548         * mt-tdep.c (mt_register_name): Likewise.
1549         (mt_registers_info): Likewise.
1550         (mt_push_dummy_call): Likewise.
1551         * namespace.c (add_using_directive): Likewise.
1552         * nat/linux-btrace.c (perf_event_read): Likewise.
1553         (linux_enable_bts): Likewise.
1554         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1555         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1556         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1557         (nto_parse_redirection): Likewise.
1558         * objc-lang.c (objc_demangle): Likewise.
1559         (find_methods): Likewise.
1560         * objfiles.c (get_objfile_bfd_data): Likewise.
1561         (set_objfile_main_name): Likewise.
1562         (allocate_objfile): Likewise.
1563         (objfile_relocate): Likewise.
1564         (update_section_map): Likewise.
1565         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1566         * p-exp.y (exp): Likewise.
1567         (yylex): Likewise.
1568         * p-valprint.c (pascal_object_print_value): Likewise.
1569         * parse.c (initialize_expout): Likewise.
1570         (mark_completion_tag): Likewise.
1571         (copy_name): Likewise.
1572         (parse_float): Likewise.
1573         (type_stack_reserve): Likewise.
1574         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1575         (ppu2spu_prev_register): Likewise.
1576         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1577         * printcmd.c (printf_wide_c_string): Likewise.
1578         (printf_pointer): Likewise.
1579         * probe.c (parse_probes): Likewise.
1580         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1581         (cmdpy_init): Likewise.
1582         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1583         * python/py-symtab.c (set_sal): Likewise.
1584         * python/py-unwind.c (pyuw_sniffer): Likewise.
1585         * python/python.c (python_interactive_command): Likewise.
1586         (compute_python_string): Likewise.
1587         * ravenscar-thread.c (get_running_thread_id): Likewise.
1588         * record-full.c (record_full_exec_insn): Likewise.
1589         (record_full_core_open_1): Likewise.
1590         * regcache.c (regcache_raw_read_signed): Likewise.
1591         (regcache_raw_read_unsigned): Likewise.
1592         (regcache_cooked_read_signed): Likewise.
1593         (regcache_cooked_read_unsigned): Likewise.
1594         * remote-fileio.c (remote_fileio_func_open): Likewise.
1595         (remote_fileio_func_rename): Likewise.
1596         (remote_fileio_func_unlink): Likewise.
1597         (remote_fileio_func_stat): Likewise.
1598         (remote_fileio_func_system): Likewise.
1599         * remote-mips.c (mips_xfer_memory): Likewise.
1600         (mips_load_srec): Likewise.
1601         (pmon_end_download): Likewise.
1602         * remote.c (new_remote_state): Likewise.
1603         (map_regcache_remote_table): Likewise.
1604         (remote_register_number_and_offset): Likewise.
1605         (init_remote_state): Likewise.
1606         (get_memory_packet_size): Likewise.
1607         (remote_pass_signals): Likewise.
1608         (remote_program_signals): Likewise.
1609         (remote_start_remote): Likewise.
1610         (remote_check_symbols): Likewise.
1611         (remote_query_supported): Likewise.
1612         (extended_remote_attach): Likewise.
1613         (process_g_packet): Likewise.
1614         (store_registers_using_G): Likewise.
1615         (putpkt_binary): Likewise.
1616         (read_frame): Likewise.
1617         (compare_sections_command): Likewise.
1618         (remote_hostio_pread): Likewise.
1619         (remote_hostio_readlink): Likewise.
1620         (remote_file_put): Likewise.
1621         (remote_file_get): Likewise.
1622         (remote_pid_to_exec_file): Likewise.
1623         (_initialize_remote): Likewise.
1624         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1625         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1626         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1627         (bfd_uses_spe_extensions): Likewise.
1628         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1629         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1630         * solib-dsbt.c (decode_loadmap): Likewise.
1631         (fetch_loadmap): Likewise.
1632         (scan_dyntag): Likewise.
1633         (enable_break): Likewise.
1634         (dsbt_relocate_main_executable): Likewise.
1635         * solib-frv.c (fetch_loadmap): Likewise.
1636         (enable_break2): Likewise.
1637         (frv_relocate_main_executable): Likewise.
1638         * solib-spu.c (spu_relocate_main_executable): Likewise.
1639         (spu_bfd_open): Likewise.
1640         * solib-svr4.c (lm_info_read): Likewise.
1641         (read_program_header): Likewise.
1642         (find_program_interpreter): Likewise.
1643         (scan_dyntag): Likewise.
1644         (elf_locate_base): Likewise.
1645         (open_symbol_file_object): Likewise.
1646         (read_program_headers_from_bfd): Likewise.
1647         (svr4_relocate_main_executable): Likewise.
1648         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1649         * solib.c (solib_find_1): Likewise.
1650         (exec_file_find): Likewise.
1651         (solib_find): Likewise.
1652         * source.c (openp): Likewise.
1653         (print_source_lines_base): Likewise.
1654         (forward_search_command): Likewise.
1655         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1656         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1657         (spu_get_overlay_table): Likewise.
1658         * stabsread.c (patch_block_stabs): Likewise.
1659         (define_symbol): Likewise.
1660         (again:): Likewise.
1661         (read_member_functions): Likewise.
1662         (read_one_struct_field): Likewise.
1663         (read_enum_type): Likewise.
1664         (common_block_start): Likewise.
1665         * stack.c (read_frame_arg): Likewise.
1666         (backtrace_command): Likewise.
1667         * stap-probe.c (stap_parse_register_operand): Likewise.
1668         * symfile.c (syms_from_objfile_1): Likewise.
1669         (find_separate_debug_file): Likewise.
1670         (load_command): Likewise.
1671         (load_progress): Likewise.
1672         (load_section_callback): Likewise.
1673         (reread_symbols): Likewise.
1674         (add_filename_language): Likewise.
1675         (allocate_compunit_symtab): Likewise.
1676         (read_target_long_array): Likewise.
1677         (simple_read_overlay_table): Likewise.
1678         * symtab.c (symbol_set_names): Likewise.
1679         (resize_symbol_cache): Likewise.
1680         (rbreak_command): Likewise.
1681         (completion_list_add_name): Likewise.
1682         (completion_list_objc_symbol): Likewise.
1683         (add_filename_to_list): Likewise.
1684         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1685         * target-memory.c (target_write_memory_blocks): Likewise.
1686         * target.c (target_read_string): Likewise.
1687         (read_whatever_is_readable): Likewise.
1688         (target_read_alloc_1): Likewise.
1689         (simple_search_memory): Likewise.
1690         (target_fileio_read_alloc_1): Likewise.
1691         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1692         * top.c (command_line_input): Likewise.
1693         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1694         * tracefile.c (tracefile_fetch_registers): Likewise.
1695         * tracepoint.c (add_memrange): Likewise.
1696         (init_collection_list): Likewise.
1697         (add_aexpr): Likewise.
1698         (trace_dump_actions): Likewise.
1699         (parse_trace_status): Likewise.
1700         (parse_tracepoint_definition): Likewise.
1701         (parse_tsv_definition): Likewise.
1702         (parse_static_tracepoint_marker_definition): Likewise.
1703         * tui/tui-file.c (tui_sfileopen): Likewise.
1704         (tui_file_adjust_strbuf): Likewise.
1705         * tui/tui-io.c (tui_expand_tabs): Likewise.
1706         * tui/tui-source.c (tui_set_source_content): Likewise.
1707         * typeprint.c (find_global_typedef): Likewise.
1708         * ui-file.c (do_ui_file_xstrdup): Likewise.
1709         (ui_file_obsavestring): Likewise.
1710         (mem_file_write): Likewise.
1711         * utils.c (make_hex_string): Likewise.
1712         (get_regcomp_error): Likewise.
1713         (puts_filtered_tabular): Likewise.
1714         (gdb_realpath_keepfile): Likewise.
1715         (ldirname): Likewise.
1716         (gdb_bfd_errmsg): Likewise.
1717         (substitute_path_component): Likewise.
1718         * valops.c (search_struct_method): Likewise.
1719         (find_oload_champ_namespace_loop): Likewise.
1720         * valprint.c (print_decimal_chars): Likewise.
1721         (read_string): Likewise.
1722         (generic_emit_char): Likewise.
1723         * varobj.c (varobj_delete): Likewise.
1724         (varobj_value_get_print_value): Likewise.
1725         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1726         * windows-tdep.c (display_one_tib): Likewise.
1727         * xcoffread.c (read_xcoff_symtab): Likewise.
1728         (process_xcoff_symbol): Likewise.
1729         (swap_sym): Likewise.
1730         (scan_xcoff_symtab): Likewise.
1731         (xcoff_initial_scan): Likewise.
1732         * xml-support.c (gdb_xml_end_element): Likewise.
1733         (xml_process_xincludes): Likewise.
1734         (xml_fetch_content_from_file): Likewise.
1735         * xml-syscall.c (xml_list_of_syscalls): Likewise.
1736         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1737
1738 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
1739
1740         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1741         instead of builtin_func_ptr.
1742         (ft32_pointer_to_address): New function.
1743         (ft32_address_class_type_flags): New function.
1744         (ft32_address_class_type_flags_to_name): New function.
1745         (ft32_address_class_name_to_type_flags): New function.
1746         (ft32_gdbarch_init): Set tdep->pc_type.  Call
1747         set_gdbarch_pointer_to_address,
1748         set_gdbarch_address_class_type_flags
1749         set_gdbarch_address_class_name_to_type_flags,
1750         and set_gdbarch_address_class_type_flags_to_name.
1751         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1752
1753 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
1754
1755         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1756         value is a reference, actually dereference it in order to get
1757         the underlying value.
1758
1759 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
1760
1761         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1762
1763 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
1764
1765         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1766         * linespec.c (linespec_lexer_lex_string): Same.
1767
1768 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1769
1770         * NEWS: Mention support for fast tracepoints on aarch64-linux.
1771
1772 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1773
1774         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1775         variable.  Call aarch64_decode_adr instead of
1776         aarch64_decode_adrp.
1777         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1778         (aarch64_decode_adr): New function declaration.
1779         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1780         (aarch64_decode_adr): New function, factored out from
1781         aarch64_decode_adrp to decode both adr and adrp instructions.
1782
1783 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1784
1785         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1786         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1787         (aarch64-insn.o): New rule.
1788         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1789         (aarch64*-*-linux*): Likewise.
1790         * arch/aarch64-insn.c: New file.
1791         * arch/aarch64-insn.h: New file.
1792         * aarch64-tdep.c: Include arch/aarch64-insn.h.
1793         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
1794         arch/aarch64-insn.h.
1795         (decode_add_sub_imm): Rename to ...
1796         (aarch64_decode_add_sub_imm): ... this.
1797         (decode_adrp): Rename to ...
1798         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
1799         Declare in arch/aarch64-insn.h.
1800         (decode_b): Rename to ...
1801         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
1802         Declare in arch/aarch64-insn.h.
1803         (decode_bcond): Rename to ...
1804         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
1805         Declare in arch/aarch64-insn.h.
1806         (decode_br): Rename to ...
1807         (aarch64_decode_br): ... this.
1808         (decode_cb): Rename to ...
1809         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
1810         Declare in arch/aarch64-insn.h.
1811         (decode_eret): Rename to ...
1812         (aarch64_decode_eret): ... this.
1813         (decode_movz): Rename to ...
1814         (aarch64_decode_movz): ... this.
1815         (decode_orr_shifted_register_x): Rename to ...
1816         (aarch64_decode_orr_shifted_register_x): ... this.
1817         (decode_ret): Rename to ...
1818         (aarch64_decode_ret): ... this.
1819         (decode_stp_offset): Rename to ...
1820         (aarch64_decode_stp_offset): ... this.
1821         (decode_stp_offset_wb): Rename to ...
1822         (aarch64_decode_stp_offset_wb): ... this.
1823         (decode_stur): Rename to ...
1824         (aarch64_decode_stur): ... this.
1825         (decode_tb): Rename to ...
1826         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
1827         Declare in arch/aarch64-insn.h.
1828         (aarch64_analyze_prologue): Adjust calls to renamed functions.
1829
1830 2015-09-20  Doug Evans  <xdje42@gmail.com>
1831
1832         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1833
1834 2015-09-20  Doug Evans  <xdje42@gmail.com>
1835
1836         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
1837         variable name that collides with a parameter.
1838
1839 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
1840
1841         * dwarf2loc.c (locexpr_get_frame_base): Renames
1842         block_op_get_frame_base.
1843         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1844         block_op_get_frame_base by reference to locexpr_get_frame_base.
1845         (loclist_get_frame_base): New function, near identical copy of
1846         locexpr_get_frame_base.
1847         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1848         block_op_get_frame_base by reference to loclist_get_frame_base.
1849
1850 2015-09-19  Doug Evans  <xdje42@gmail.com>
1851
1852         * ravenscar-thread.c (ravenscar_inferior_created): Replace
1853         current_inferior ()->gdbarch with its wrapper target_gdbarch.
1854
1855 2015-09-18  Doug Evans  <xdje42@gmail.com>
1856
1857         * linux-thread-db.c (record_thread): Return the created thread.
1858         (thread_from_lwp): Likewise.
1859         (thread_db_get_thread_local_address): Update.
1860
1861 2015-09-18  Doug Evans  <xdje42@gmail.com>
1862
1863         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1864         move only member demangled_name up.  All uses updated.
1865
1866 2015-09-18  Doug Evans  <xdje42@gmail.com>
1867
1868         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1869         kind of minimal symbol in the error message.
1870         * objfiles.c (objfile_flavour_name): New function.
1871         * objfiles.h (objfile_flavour_name): Declare.
1872
1873 2015-09-18  Yao Qi  <yao.qi@linaro.org>
1874
1875         * nat/aarch64-linux.c: Include elf/common.h,
1876         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1877         (aarch64_ps_get_thread_area): New function.
1878         * nat/aarch64-linux.h: Include gdb_proc_service.h.
1879         (aarch64_ps_get_thread_area): Declare.
1880         * aarch64-linux-nat.c (ps_get_thread_area): Call
1881         aarch64_ps_get_thread_area.
1882
1883 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1884
1885         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1886
1887 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1888
1889         * NEWS: Announce new scheduler-locking mode.
1890         * infrun.c (schedlock_replay): New.
1891         (scheduler_enums): Add schedlock_replay.
1892         (scheduler_mode): Change default to schedlock_replay.
1893         (user_visible_resume_ptid): Handle schedlock_replay.
1894         (clear_proceed_status_thread): Stop replaying if resumed thread is
1895         not replaying.
1896         (schedlock_applies): Handle schedlock_replay.
1897         (_initialize_infrun): Document new scheduler-locking mode.
1898         * record-btrace.c (record_btrace_resume): Remove code to stop other
1899         threads when not replaying the resumed thread.
1900
1901 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1902
1903         * record-btrace.c ((record_btrace_will_replay): New.
1904         (init_record_btrace_ops): Initialize to_record_will_replay.
1905         * record-full.c ((record_full_will_replay): New.
1906         (init_record_full_ops): Initialize to_record_will_replay.
1907         * target-delegates.c: Regenerated.
1908         * target.c (target_record_will_replay): New.
1909         * target.h (struct target_ops) <to_record_will_replay>: New.
1910         (target_record_will_replay): New.
1911
1912 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1913
1914         * record-btrace.c (record_btrace_resume): Call
1915         target_record_stop_replaying.
1916         (record_btrace_stop_replaying_all): New.
1917         (init_record_btrace_ops): Initialize to_record_stop_replaying.
1918         * record-full.c (record_full_stop_replaying): New.
1919         (init_record_full_ops ): Initialize to_record_stop_replaying.
1920         * target-delegates.c: Regenerated.
1921         * target.c (target_record_stop_replaying): New.
1922         * target.h (struct target_ops) <to_record_stop_replaying>: New.
1923         (target_record_stop_replaying): New.
1924
1925 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1926
1927         * record-btrace.c (record_btrace_xfer_partial)
1928         (record_btrace_store_registers, record_btrace_prepare_to_store):
1929         Call record_btrace_is_replaying with inferior_ptid instead of
1930         minus_one_ptid.
1931         (record_btrace_store_registers): Change error message.
1932
1933 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1934
1935         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1936         Update users to pass minus_one_ptid.
1937         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1938         * record.c (cmd_record_delete): Pass inferior_ptid to
1939         target_record_is_replaying.
1940         * target-delegates.c: Regenerated.
1941         * target.c (target_record_is_replaying): Add ptid argument.
1942         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1943         argument.
1944         (target_record_is_replaying): Add ptid argument.
1945
1946 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1947
1948         * record-btrace.c (record_btrace_open): Remove non_stop check.
1949         * NEWS: Announce that record btrace supports non-stop mode.
1950
1951 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1952
1953         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1954         in the TARKET_WAITKIND_NO_HISTORY case.
1955
1956 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1957
1958         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1959         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1960
1961 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1962
1963         * record-btrace.c (get_thread_current_frame): New.
1964         (record_btrace_start_replaying): Call get_thread_current_frame.
1965
1966 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1967
1968         * record-btrace.c (record_btrace_resume_thread): A move request
1969         overwrites a previous move request.
1970         (record_btrace_find_resume_thread): Removed.
1971         (record_btrace_resume): Resume all requested threads.
1972
1973 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1974
1975         * record-btrace.c: Include vec.h.
1976         (record_btrace_find_thread_to_move): Removed.
1977         (btrace_step_no_resumed, btrace_step_again)
1978         (record_btrace_stop_replaying_at_end): New.
1979         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1980         (record_btrace_single_step_forward): Remove calls to
1981         record_btrace_stop_replaying.
1982         (record_btrace_step_thread): Do only one step for BTHR_CONT and
1983         BTHR_RCONT.  Keep threads at the end of their history moving.
1984         (record_btrace_wait): Call record_btrace_step_thread for all threads
1985         until one reports an event.  Call record_btrace_stop_replaying_at_end
1986         for the eventing thread.
1987
1988 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1989
1990         * record-btrace.c (record_btrace_single_step_forward): Return
1991         NO_HISTORY if a step brings us to the end of the execution history.
1992
1993 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1994
1995         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1996         to ...
1997         (record_btrace_single_step_forward): ... here and
1998         (record_btrace_single_step_backward): ... here.
1999
2000 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2001
2002         * record-btrace.c (btrace_step_spurious)
2003         (record_btrace_single_step_forward)
2004         (record_btrace_single_step_backward): New.
2005         (record_btrace_step_thread): Call record_btrace_single_step_forward
2006         and record_btrace_single_step_backward.
2007
2008 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2009
2010         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2011         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2012
2013 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2014
2015         * record-btrace.c (btrace_thread_flag_to_str)
2016         (record_btrace_cancel_resume): New.
2017         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2018         (record_btrace_resume): Print execution direction.
2019         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2020         (record_btrace_wait): Call record_btrace_cancel_resume.
2021
2022 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2023
2024         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2025         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2026         (record_btrace_find_thread_to_move): Also accept threads that have
2027         BTHR_STOP set.
2028         (btrace_step_stopped_on_request, record_btrace_stop): New.
2029         (record_btrace_step_thread): Support BTHR_STOP.
2030         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2031         (init_record_btrace_ops): Initialize to_stop.
2032
2033 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2034
2035         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2036         target_is_non_stop_p ().
2037
2038 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2039
2040         * ada-typeprint.c (print_array_type): Do not describe arrays as
2041         packed when they embed dynamic elements.
2042
2043 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2044
2045         * symtab.h (address_class): Document that TLS variables
2046         are handled by LOC_UNRESOLVED.
2047         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2048         * printcmd.c (address_info): Don't relocate TLS variables.
2049
2050 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2051
2052         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2053         (decode_adrp): Likewise.
2054         (decode_b): Likewise.
2055         (decode_bcond): Likewise.
2056         (decode_br): Likewise.
2057         (decode_cb): Likewise.
2058         (decode_eret): Likewise.
2059         (decode_movz): Likewise.
2060         (decode_orr_shifted_register_x): Likewise.
2061         (decode_ret): Likewise.
2062         (decode_stp_offset): Likewise.
2063         (decode_stp_offset_wb): Likewise.
2064         (decode_stur): Likewise.
2065         (decode_tb): Likewise.
2066         (aarch64_analyze_prologue): Likewise.
2067         (pass_in_x): Likewise.
2068         (pass_in_v): Likewise.
2069         (pass_on_stack): Likewise.
2070         (aarch64_push_dummy_call): Likewise.
2071         (aarch64_extract_return_value): Likewise.
2072         (aarch64_store_return_value): Likewise.
2073         (aarch64_return_value): Likewise.
2074         (aarch64_record_asimd_load_store): Likewise.
2075         (aarch64_record_load_store): Likewise.
2076         (aarch64_record_data_proc_simd_fp): Likewise.
2077
2078 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2079
2080         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2081         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2082         (ppc64_skip_trampoline_code_1): ... here.
2083         (ppc64_skip_trampoline_code): New wrapper function.
2084         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2085
2086 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2087
2088         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2089         function.
2090         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2091         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2092         if target_can_do_single_step returns 1.
2093         * remote.c (struct vCont_action_support) <s, S>: New fields.
2094         (PACKET_vContSupported): New enum.
2095         (remote_protocol_features): New element for vContSupported.
2096         (remote_query_supported): Append "vContSupported+".
2097         (remote_vcont_probe): Remove support_s and support_S, use
2098         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2099         vCont packet if c and C actions are not supported.
2100         (remote_can_do_single_step): New function.
2101         (init_remote_ops): Install it to to_can_do_single_step.
2102         (_initialize_remote): Call add_packet_config_cmd.
2103         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2104         (target_can_do_single_step): New macro.
2105         * target-delegates.c: Re-generated.
2106
2107 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2108
2109         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2110         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2111         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2112         New function.
2113         (aarch64_siginfo_from_compat_siginfo): New function.
2114         * nat/aarch64-linux.h: Include signal.h.
2115         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2116         (compat_timer_t, compat_clock_t): Likewise.
2117         (struct compat_timeval): New.
2118         (union compat_sigval): New.
2119         (struct compat_siginfo): New.
2120         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2121         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2122         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2123         (cpt_si_band, cpt_si_fd): Likewise.
2124
2125 2015-09-14  Pedro Alves  <palves@redhat.com>
2126
2127         * infrun.c (current_stop_id): New global.
2128         (get_stop_id, new_stop_id): New functions.
2129         (fetch_inferior_event): Handle normal_stop proceeding the target.
2130         (struct stop_context): New.
2131         (save_stop_context, release_stop_context_cleanup)
2132         (stop_context_changed): New functions.
2133         (normal_stop): Return true if the hook-stop changes the stop
2134         context.
2135         * infrun.h (get_stop_id): Declare.
2136         (normal_stop): Now returns int.  Add documentation.
2137
2138 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2139
2140         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2141         comment.  Handle packed arrays.
2142
2143 2015-09-14  Pedro Alves  <palves@redhat.com>
2144
2145         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2146         mention of maint set/show target-non-stop.
2147
2148 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2149
2150         * NEWS: Announce new remote packets for the exec-events
2151         feature and the exec-events feature and associated commands.
2152
2153 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2154
2155         * remote.c (remote_exec_event_p): New function.
2156         (remote_insert_exec_catchpoint): New function.
2157         (remote_remove_exec_catchpoint): New function.
2158         (init_extended_remote_ops): Initialize extended_remote_ops
2159         members to_insert_exec_catchpoint and
2160         to_remove_exec_catchpoint.
2161
2162 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2163             Luis Machado  <lgustavo@codesourcery.com>
2164
2165         * infrun.c (follow_exec): Use process-style ptid for
2166         exec message.  Call add_inferior_with_spaces and
2167         target_follow_exec.
2168         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2169         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2170         * remote.c (remote_pspace_data): New static variable.
2171         (remote_pspace_data_cleanup): New function.
2172         (get_remote_exec_file): New function.
2173         (set_remote_exec_file_1): New function.
2174         (set_remote_exec_file): New function.
2175         (show_remote_exec_file): New function.
2176         (remote_exec_file): Delete static variable.
2177         (anonymous enum) <PACKET_exec_event_feature>: New
2178         enumeration constant.
2179         (remote_protocol_features): Add entry for exec-events feature.
2180         (remote_query_supported): Add client side of qSupported query
2181         for exec-events feature.
2182         (remote_follow_exec): New function.
2183         (remote_parse_stop_reply): Handle 'exec' stop reason.
2184         (extended_remote_run, extended_remote_create_inferior): Call
2185         get_remote_exec_file and set_remote_exec_file_1.
2186         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2187         member.
2188         (_initialize_remote): Call
2189         register_program_space_data_with_cleanup.  Call
2190         add_packet_config_cmd for remote exec-events feature.
2191         Modify call to add_setshow_string_noescape_cmd for exec-file
2192         to use new functions set_remote_exec_file and
2193         show_remote_exec_file.
2194         * target-debug.h, target-delegates.c: Regenerated.
2195         * target.c (target_follow_exec): New function.
2196         * target.h (struct target_ops) <to_follow_exec>: New member.
2197         (target_follow_exec): Declare new function.
2198
2199 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2200
2201         * aarch64-tdep.c (decode_cb): Move up comment describing the
2202         encoding.
2203         (decode_tb): Fix a typo in comment above the function.  Move up
2204         comment describing the encoding.
2205
2206 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2207
2208         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2209
2210 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2211
2212         PR gdb/18947
2213         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2214         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2215
2216 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2217
2218         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2219         operations.
2220
2221 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2222
2223         * ada-lang.c (ada_search_struct_field): Constify parameters
2224         and/or variables..
2225         (xget_renaming_scope): Likewise.
2226         (ada_is_redundant_range_encoding): Likewise.
2227         (scan_discrim_bound): Likewise.
2228         (to_fixed_range_type): Likewise.
2229
2230 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2231
2232         * breakpoint.c (download_tracepoint_locations): New local
2233         can_download_tracepoint.  Check the result of
2234         target_can_download_tracepoint and save it in
2235         can_download_tracepoint if there are tracepoints to download.
2236         * linux-nat.h (enum tribool): Move it to ...
2237         * common/common-types.h: ... here.
2238
2239 2015-09-09  Pedro Alves  <palves@redhat.com>
2240
2241         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2242         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2243
2244 2015-09-09  Pedro Alves  <palves@redhat.com>
2245
2246         * continuations.c (add_continuation, restore_thread_cleanup)
2247         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2248         (do_all_continuations_thread, do_all_continuations)
2249         (discard_all_continuations_thread_callback)
2250         (discard_all_continuations_thread, discard_all_continuations)
2251         (add_intermediate_continuation)
2252         (do_all_intermediate_continuations_thread_callback)
2253         (do_all_intermediate_continuations_thread)
2254         (do_all_intermediate_continuations)
2255         (discard_all_intermediate_continuations_thread_callback)
2256         (discard_all_intermediate_continuations_thread)
2257         (discard_all_intermediate_continuations): Delete.
2258         * continuations.h (add_continuation, do_all_continuations)
2259         (do_all_continuations_thread, discard_all_continuations)
2260         (discard_all_continuations_thread, add_intermediate_continuation)
2261         (do_all_intermediate_continuations)
2262         (do_all_intermediate_continuations_thread)
2263         (discard_all_intermediate_continuations)
2264         (discard_all_intermediate_continuations_thread): Delete
2265         declarations.
2266         * event-top.c (stdin_event_handler): Delete references to
2267         continuations.
2268         * gdbthread.h (struct thread_info): Delete continuations and
2269         intermediate_continuations fields.
2270         * inf-loop.c (inferior_event_handler): Remove references to
2271         continuations.
2272         * infrun.c (infrun_thread_stop_requested_callback): Remove
2273         references to continuations.
2274         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2275         * thread.c: Don't include "continuations.h".
2276         (clear_thread_inferior_resources): Remove references to
2277         continuations.
2278
2279 2015-09-09  Pedro Alves  <palves@redhat.com>
2280
2281         * infcall.c (struct dummy_frame_context_saver): Delete.
2282         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2283         (dummy_frame_context_saver_drop)
2284         (dummy_frame_context_saver_cleanup)
2285         (dummy_frame_context_saver_get_regs)
2286         (dummy_frame_context_saver_setup): Delete.
2287         * infcall.h (dummy_frame_context_saver_drop)
2288         (dummy_frame_context_saver_cleanup)
2289         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2290         Delete.
2291         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2292         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2293         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2294
2295 2015-09-09  Pedro Alves  <palves@redhat.com>
2296
2297         * breakpoint.c: Include "thread-fsm.h".
2298         (struct until_break_command_continuation_args): Delete.
2299         (struct until_break_fsm): New.
2300         (until_break_fsm_ops): New global.
2301         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2302         (until_break_command_continuation): Delete.
2303         (until_break_fsm_clean_up): New function.
2304         (until_break_fsm_async_reply_reason): New function.
2305         (until_break_command): Adjust to create an until_break_fsm instead
2306         of a continuation.
2307         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2308         here.
2309         * infcmd.c (struct until_next_fsm): New.
2310         (until_next_fsm_ops): New global.
2311         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2312         (until_next_continuation): Delete.
2313         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2314         functions.
2315         (until_next_command): Adjust to create a new until_next_fsm
2316         instead of a continuation.
2317
2318 2015-09-09  Pedro Alves  <palves@redhat.com>
2319
2320         * infcall.c: Include thread_fsm.h.
2321         (struct call_return_meta_info): New.
2322         (get_call_return_value): New function, factored out from
2323         call_function_by_hand_dummy.
2324         (struct call_thread_fsm): New.
2325         (call_thread_fsm_ops): New global.
2326         (new_call_thread_fsm, call_thread_fsm_should_stop)
2327         (call_thread_fsm_should_notify_stop): New functions.
2328         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2329         the thread.
2330         (call_function_by_hand_dummy): Create a new call_thread_fsm
2331         instance, associate it with the thread, and wait for the FSM to
2332         finish.  If finished successfully, fetch the function's result
2333         value out of the FSM.
2334         * infrun.c (fetch_inferior_event): If the FSM says the stop
2335         shouldn't be notified, don't call normal_stop.
2336         (maybe_remove_breakpoints): New function, factored out from ...
2337         (normal_stop): ... here.  Simplify.
2338         * infrun.h (maybe_remove_breakpoints): Declare.
2339         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2340         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2341         (thread_fsm_should_notify_stop): Declare.
2342
2343 2015-09-09  Pedro Alves  <palves@redhat.com>
2344
2345         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2346         * breakpoint.c (handle_jit_event): Print debug output.
2347         (bpstat_what): Split event callback handling to ...
2348         (bpstat_run_callbacks): ... this new function.
2349         (momentary_bkpt_print_it): No longer handle bp_finish here.
2350         * breakpoint.h (bpstat_run_callbacks): Declare.
2351         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2352         <thread_fsm>: New field.
2353         (thread_cancel_execution_command): Declare.
2354         * infcmd.c: Include thread-fsm.h.
2355         (struct step_command_fsm): New.
2356         (step_command_fsm_ops): New global.
2357         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2358         (step_1): Adjust to use step_command_fsm_prepare and
2359         prepare_one_step.
2360         (struct step_1_continuation_args): Delete.
2361         (step_1_continuation): Delete.
2362         (step_command_fsm_should_stop): New function.
2363         (step_once): Delete.
2364         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2365         (prepare_one_step): New function, based on step_once.
2366         (until_next_command): Remove step_multi reference.
2367         (struct return_value_info): New.
2368         (print_return_value): Rename to ...
2369         (print_return_value_1): ... this.  New struct return_value_info
2370         parameter.  Adjust.
2371         (print_return_value): Reimplement as wrapper around
2372         print_return_value_1.
2373         (struct finish_command_fsm): New.
2374         (finish_command_continuation): Delete.
2375         (finish_command_fsm_ops): New global.
2376         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2377         functions.
2378         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2379         New.
2380         (finish_command_continuation_free_arg): Delete.
2381         (finish_command_fsm_async_reply_reason): New.
2382         (finish_backward, finish_forward): Change symbol parameter to a
2383         finish_command_fsm.  Adjust.
2384         (finish_command): Create a finish_command_fsm.  Adjust.
2385         * infrun.c: Include "thread-fsm.h".
2386         (clear_proceed_status_thread): Delete the thread's FSM.
2387         (infrun_thread_stop_requested_callback): Cancel the thread's
2388         execution command.
2389         (clean_up_just_stopped_threads_fsms): New function.
2390         (fetch_inferior_event): Handle the event_thread's should_stop
2391         method saying the command isn't done yet.
2392         (process_event_stop_test): Run breakpoint callbacks here.
2393         (print_stop_event): Rename to ...
2394         (print_stop_location): ... this.
2395         (restore_current_uiout_cleanup): New function.
2396         (print_stop_event): Reimplement.
2397         (normal_stop): No longer notify the end_stepping_range observers
2398         here handle "step N" nor "finish" here.  No longer call
2399         print_stop_event here.
2400         * infrun.h (struct return_value_info): Forward declare.
2401         (print_return_value): Declare.
2402         (print_stop_event): Change prototype.
2403         * thread-fsm.c: New file.
2404         * thread-fsm.h: New file.
2405         * thread.c: Include "thread-fsm.h".
2406         (thread_cancel_execution_command): New function.
2407         (clear_thread_inferior_resources): Call it.
2408         * cli/cli-interp.c (cli_on_normal_stop): New function.
2409         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2410         observer.
2411         * mi/mi-interp.c: Include "thread-fsm.h".
2412         (restore_current_uiout_cleanup): Delete.
2413         (mi_on_normal_stop): If the thread has an FSM associated, and it
2414         finished, ask it for the async-reply-reason to print.  Always call
2415         print_stop_event here, regardless of the top-level interpreter.
2416         Check bpstat_what to tell whether an asynchronous breakpoint hit
2417         triggered.
2418         * tui/tui-interp.c (tui_on_normal_stop): New function.
2419         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2420
2421 2015-09-09  Pedro Alves  <palves@redhat.com>
2422
2423         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2424         check whether the target can async.
2425         * inf-loop.c (inferior_event_handler): Only call target_async if
2426         the target can async.
2427         * infcall.c: Include top.h and interps.h.
2428         (run_inferior_call): For the interpreter to sync mode while
2429         running the infcall.  Call wait_sync_command_done instead of
2430         wait_for_inferior plus normal_stop.
2431         * infcmd.c (prepare_execution_command): Don't check whether the
2432         target can async when running in the foreground.
2433         (step_1): Delete synchronous case handling.
2434         (step_once): Always install a continuation, even in sync mode.
2435         (until_next_command, finish_forward): Don't check whether the
2436         target can async.
2437         (attach_command_post_wait, notice_new_inferior): Always install a
2438         continuation, even in sync mode.
2439         * infrun.c (mark_infrun_async_event_handler): New function.
2440         (proceed): In sync mode, mark infrun's event source instead of
2441         waiting for events here.
2442         (fetch_inferior_event): If the target can't async, do a blocking
2443         wait.
2444         (prepare_to_wait): In sync mode, mark infrun's event source.
2445         (infrun_async_inferior_event_handler): No longer bail out if the
2446         target can't async.
2447         * infrun.h (mark_infrun_async_event_handler): New declaration.
2448         * linux-nat.c (linux_nat_wait_1): Remove calls to
2449         set_sigint_trap/clear_sigint_trap.
2450         (linux_nat_terminal_inferior): No longer check whether the target
2451         can async.
2452         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2453         comment.
2454         (mi_execute_command_input_handler): No longer check whether the
2455         target is async.  Update and simplify comment.
2456         * target.c (default_target_wait): New function.
2457         * target.h (struct target_ops) <to_wait>: Now defaults to
2458         default_target_wait.
2459         (default_target_wait): Declare.
2460         * top.c (wait_sync_command_done): New function, factored out from
2461         ...
2462         (maybe_wait_sync_command_done): ... this.
2463         * top.h (wait_sync_command_done): Declare.
2464         * target-delegates.c: Regenerate.
2465
2466 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2467
2468         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2469         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2470         Remove include of sys/utsname.h.
2471         (linux_determine_kernel_ptr_bits): Remove.
2472         (linux_determine_kernel_start): New.
2473         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2474         Update check.
2475         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2476         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2477         initialization.
2478         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2479         assignment.
2480
2481 2015-09-07  Pedro Alves  <palves@redhat.com>
2482
2483         * guile/guile-internal.h (as_a_scm_t_subr): New.
2484         * guile/guile.c (misc_guile_functions): Use it.
2485         * guile/scm-arch.c (arch_functions): Use it.
2486         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2487         Use it.
2488         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2489         * guile/scm-cmd.c (command_functions): Use it.
2490         * guile/scm-disasm.c (disasm_functions): Use it.
2491         * guile/scm-exception.c (exception_functions)
2492         (private_exception_functions): Use it.
2493         * guile/scm-frame.c (frame_functions)
2494         * guile/scm-gsmob.c (gsmob_functions): Use it.
2495         * guile/scm-iterator.c (iterator_functions): Use it.
2496         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2497         * guile/scm-math.c (math_functions): Use it.
2498         * guile/scm-objfile.c (objfile_functions): Use it.
2499         * guile/scm-param.c (parameter_functions): Use it.
2500         * guile/scm-ports.c (port_functions, private_port_functions): Use
2501         it.
2502         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2503         * guile/scm-progspace.c (pspace_functions): Use it.
2504         * guile/scm-string.c (string_functions): Use it.
2505         * guile/scm-symbol.c (symbol_functions): Use it.
2506         * guile/scm-symtab.c (symtab_functions): Use it.
2507         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2508         it.
2509         * guile/scm-value.c (value_functions): Use it.
2510
2511 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2512
2513         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2514         (tui_next_win): Likewise.
2515         (tui_prev_win): Likewise.
2516         (tui_partial_win_by_name): Likewise.
2517         (tui_init_generic_part): Likewise.
2518         (init_content_element): Likewise.
2519         (tui_del_window): Likewise.
2520         (tui_free_window): Likewise.
2521         (tui_del_data_windows): Likewise.
2522         (tui_free_data_content): Likewise.
2523         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2524         * tui/tui-regs.c (tui_show_register_group): Likewise.
2525         * tui/tui-win.c (tui_resize_all): Likewise.
2526         (tui_set_focus): Likewise.
2527         (tui_set_win_height): Likewise.
2528         (make_invisible_and_set_new_height): Likewise.
2529         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2530         * tui/tui-wingeneral.c (make_visible): Likewise.
2531
2532 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2533
2534         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2535
2536 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2537
2538         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2539         pointer.
2540         * dbxread.c (dbx_end_psymtab): Likewise.
2541         * gnu-nat.c (gnu_write_inferior): Likewise.
2542         * mdebugread.c (cross_ref): Likewise.
2543         * p-valprint.c (pascal_val_print): Likewise.
2544         * xcoffread.c (xcoff_end_psymtab): Likewise.
2545
2546 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2547
2548         * NEWS: Mention the aarch64 multi-arch debugging support.
2549
2550 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2551
2552         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2553         type instead of a TYPE_CODE_INT one for the string_char_type
2554         and the ada_primitive_type_char types.
2555
2556 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2557
2558         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2559         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2560         aarch64_linux_region_ok_for_watchpoint.
2561         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2562         New function.
2563         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2564         Declare it.
2565
2566 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2567
2568         * gdb_obstack.h (obstack_strdup): Declare.
2569         * gdb_obstack.c (obstack_strdup): Define.
2570         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2571         * gdbarch.c: Regenerate.
2572         * gdbarch.h: Regenerate.
2573         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2574
2575 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2576
2577         * gdbtypes.c (copy_type_recursive): Update documentation.
2578
2579 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2580
2581         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2582         as zero.
2583
2584 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2585
2586         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2587
2588 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2589
2590         * solib-svr4.c (solib_event_probe_action): Call
2591         get_probe_argument_count using TRY...CATCH.
2592         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2593
2594 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2595
2596         * probe.h (struct probe_ops) <get_probe_argument_count,
2597         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2598         the comment that the function can throw an exception.
2599         (get_probe_argument_count): Likewise.
2600         (evaluate_probe_argument): Likewise.
2601         * stap-probe.c (stap_get_opcode): Call error instead of
2602         internal_error.
2603         (stap_get_expected_argument_type): Likewise.  Add argument
2604         'probe'.  Improve error message by mentioning the probe's name.
2605         (stap_parse_probe_arguments): Adjust call to
2606         stap_get_expected_argument_type.
2607         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2608         not zero.  Call internal_error if GDB requests an argument but the
2609         probe has no arguments.
2610
2611 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2612
2613         * ada-lang.c (ada_resolve_function): Do not ask the user what
2614         match to use when in completion mode.
2615
2616 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2617
2618         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2619         cast of NULL.
2620
2621 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2622
2623         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2624         call_abi using XSHAL_ABI macro.
2625
2626 2015-08-29  Doug Evans  <xdje42@gmail.com>
2627
2628         * symtab.h (struct symbol): Tweak comment.
2629
2630 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2631
2632         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2633         gdbarch obstack instead of on the heap.  Update commentary
2634         accordingly.
2635
2636 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2637
2638         GDB 7.10 released.
2639
2640 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2641
2642         * NEWS: Update entry about non-8-bits addressable memory.
2643
2644 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2645
2646         Revert:
2647         2014-11-06  Doug Evans  <xdje42@gmail.com>
2648         * solib.c (solib_global_lookup): Fetch arch from objfile,
2649         not target_gdbarch.
2650
2651 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2652
2653         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2654         attempt to relocate a TLS variable offset.
2655
2656 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2657
2658         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2659         registered yet.  Set inferior_ptid while calling target_read_memory.
2660
2661 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2662
2663         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2664         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2665         * linux-nat.c (check_stopped_by_breakpoint): Use
2666         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2667
2668 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2669
2670         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2671         thread was not yet discovered, use thread_from_lwp instead of
2672         calling thread_db_find_new_threads_1.
2673
2674 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2675
2676         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2677         statements.
2678
2679 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2680
2681         * NEWS: Document support for non-8-bits addressable memory.
2682
2683 2015-08-27  Pedro Alves  <palves@redhat.com>
2684
2685         * configure.ac: Remove AC_TYPE_SIGNAL call.
2686         * configure, config.in: Regenerate.
2687
2688 2015-08-27  Pedro Alves  <palves@redhat.com>
2689
2690         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2691         * extension-priv.h: Include signal.h.
2692         (struct signal_handler) <handler>: Change type to sighandler_t.
2693         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2694         * inflow.c (sigint_ours, sigquit_ours): Change type to
2695         sighandler_t.
2696         (child_terminal_inferior): Remove casts.
2697         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
2698         (osig): Change type to sighandler_t.
2699         * nto-procfs.c (ofunc): Change type to sighandler_t.
2700         (procfs_wait): Remove casts.
2701         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2702         * remote-sim.c (gdbsim_wait): Use sighandler_t.
2703         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2704
2705 2015-08-27  Pedro Alves  <palves@redhat.com>
2706
2707         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2708         * gnulib/aclocal.m4: Renegerate.
2709         * gnulib/config.in: Renegerate.
2710         * gnulib/configure: Renegerate.
2711         * gnulib/import/Makefile.am: Update.
2712         * gnulib/import/Makefile.in: Regenerate.
2713         * gnulib/import/m4/gnulib-cache.m4: Update.
2714         * gnulib/import/m4/gnulib-comp.m4: Update.
2715         * gnulib/import/m4/signal_h.m4: New file.
2716         * gnulib/import/signal.in.h: New file.
2717
2718 2015-08-27  Pedro Alves  <palves@redhat.com>
2719
2720         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2721         (MIN_MEMORY_PACKET_SIZE): New.
2722         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2723         (get_memory_packet_size): Adjust.  No longer limit the max packet
2724         size.
2725         (set_memory_packet_size): Adjust, and remove dead code.
2726         (remote_check_symbols): Use xmalloc and a cleanup instead of
2727         alloca.
2728         (remote_packet_size): No longer cap the packet size.
2729         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2730
2731 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
2732
2733         * compile/compile.c (compile_to_object): Mention language in
2734         error message.
2735
2736 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
2737
2738         * target.c (target_pre_inferior): Unset attach_flag.
2739
2740 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2741
2742         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2743         * gdbarch.c: Re-generate.
2744
2745 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2746
2747         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2748         function with the XNEW-family equivalent.
2749         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2750         * ada-exp.y (write_ambiguous_var): Likewise.
2751         * ada-lang.c (resolve_subexp): Likewise.
2752         (user_select_syms): Likewise.
2753         (assign_aggregate): Likewise.
2754         (ada_evaluate_subexp): Likewise.
2755         (cache_symbol): Likewise.
2756         * addrmap.c (allocate_key): Likewise.
2757         (addrmap_create_mutable): Likewise.
2758         * aix-thread.c (sync_threadlists): Likewise.
2759         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2760         (alpha_gdbarch_init): Likewise.
2761         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2762         * arm-linux-nat.c (arm_linux_add_process): Likewise.
2763         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2764         * arm-tdep.c (push_stack_item): Likewise.
2765         (arm_displaced_step_copy_insn): Likewise.
2766         (arm_gdbarch_init): Likewise.
2767         (_initialize_arm_tdep): Likewise.
2768         * avr-tdep.c (push_stack_item): Likewise.
2769         * ax-general.c (new_agent_expr): Likewise.
2770         * block.c (block_initialize_namespace): Likewise.
2771         * breakpoint.c (alloc_counted_command_line): Likewise.
2772         (update_dprintf_command_list): Likewise.
2773         (parse_breakpoint_sals): Likewise.
2774         (decode_static_tracepoint_spec): Likewise.
2775         (until_break_command): Likewise.
2776         (clear_command): Likewise.
2777         (update_global_location_list): Likewise.
2778         (get_breakpoint_objfile_data) Likewise.
2779         * btrace.c (ftrace_new_function): Likewise.
2780         (btrace_set_insn_history): Likewise.
2781         (btrace_set_call_history): Likewise.
2782         * buildsym.c (add_symbol_to_list): Likewise.
2783         (record_pending_block): Likewise.
2784         (start_subfile): Likewise.
2785         (start_buildsym_compunit): Likewise.
2786         (push_subfile): Likewise.
2787         (end_symtab_get_static_block): Likewise.
2788         (buildsym_init): Likewise.
2789         * cli/cli-cmds.c (source_command): Likewise.
2790         * cli/cli-decode.c (add_cmd): Likewise.
2791         * cli/cli-script.c (build_command_line): Likewise.
2792         (setup_user_args): Likewise.
2793         (realloc_body_list): Likewise.
2794         (process_next_line): Likewise.
2795         (copy_command_lines): Likewise.
2796         * cli/cli-setshow.c (do_set_command): Likewise.
2797         * coff-pe-read.c (read_pe_exported_syms): Likewise.
2798         * coffread.c (coff_locate_sections): Likewise.
2799         (coff_symtab_read): Likewise.
2800         (coff_read_struct_type): Likewise.
2801         * common/cleanups.c (make_my_cleanup2): Likewise.
2802         * common/common-exceptions.c (throw_it): Likewise.
2803         * common/filestuff.c (make_cleanup_close): Likewise.
2804         * common/format.c (parse_format_string): Likewise.
2805         * common/queue.h (DEFINE_QUEUE_P): Likewise.
2806         * compile/compile-object-load.c (munmap_list_add): Likewise.
2807         (compile_object_load): Likewise.
2808         * compile/compile-object-run.c (compile_object_run): Likewise.
2809         * compile/compile.c (append_args): Likewise.
2810         * corefile.c (specify_exec_file_hook): Likewise.
2811         * cp-support.c (make_symbol_overload_list): Likewise.
2812         * cris-tdep.c (push_stack_item): Likewise.
2813         (cris_gdbarch_init): Likewise.
2814         * ctf.c (ctf_trace_file_writer_new): Likewise.
2815         * dbxread.c (init_header_files): Likewise.
2816         (add_new_header_file): Likewise.
2817         (init_bincl_list): Likewise.
2818         (dbx_end_psymtab): Likewise.
2819         (start_psymtab): Likewise.
2820         (dbx_end_psymtab): Likewise.
2821         * dcache.c (dcache_init): Likewise.
2822         * dictionary.c (dict_create_hashed): Likewise.
2823         (dict_create_hashed_expandable): Likewise.
2824         (dict_create_linear): Likewise.
2825         (dict_create_linear_expandable): Likewise.
2826         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2827         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2828         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2829         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2830         (decode_frame_entry_1): Likewise.
2831         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2832         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2833         * dwarf2read.c (dwarf2_has_info): Likewise.
2834         (create_signatured_type_table_from_index): Likewise.
2835         (dwarf2_read_index): Likewise.
2836         (dw2_get_file_names_reader): Likewise.
2837         (create_all_type_units): Likewise.
2838         (read_cutu_die_from_dwo): Likewise.
2839         (init_tu_and_read_dwo_dies): Likewise.
2840         (init_cutu_and_read_dies): Likewise.
2841         (create_all_comp_units): Likewise.
2842         (queue_comp_unit): Likewise.
2843         (inherit_abstract_dies): Likewise.
2844         (read_call_site_scope): Likewise.
2845         (dwarf2_add_field): Likewise.
2846         (dwarf2_add_typedef): Likewise.
2847         (dwarf2_add_member_fn): Likewise.
2848         (attr_to_dynamic_prop): Likewise.
2849         (abbrev_table_alloc_abbrev): Likewise.
2850         (abbrev_table_read_table): Likewise.
2851         (add_include_dir): Likewise.
2852         (add_file_name): Likewise.
2853         (dwarf_decode_line_header): Likewise.
2854         (dwarf2_const_value_attr): Likewise.
2855         (dwarf_alloc_block): Likewise.
2856         (parse_macro_definition): Likewise.
2857         (set_die_type): Likewise.
2858         (write_psymtabs_to_index): Likewise.
2859         (create_cus_from_index): Likewise.
2860         (dwarf2_create_include_psymtab): Likewise.
2861         (process_psymtab_comp_unit_reader): Likewise.
2862         (build_type_psymtab_dependencies): Likewise.
2863         (read_comp_units_from_section): Likewise.
2864         (compute_compunit_symtab_includes): Likewise.
2865         (create_dwo_unit_in_dwp_v1): Likewise.
2866         (create_dwo_unit_in_dwp_v2): Likewise.
2867         (read_func_scope): Likewise.
2868         (process_structure_scope): Likewise.
2869         (mark_common_block_symbol_computed): Likewise.
2870         (load_partial_dies): Likewise.
2871         (dwarf2_symbol_mark_computed): Likewise.
2872         * elfread.c (elf_symfile_segments): Likewise.
2873         (elf_read_minimal_symbols): Likewise.
2874         * environ.c (make_environ): Likewise.
2875         * eval.c (evaluate_subexp_standard): Likewise.
2876         * event-loop.c (create_file_handler): Likewise.
2877         (create_async_signal_handler): Likewise.
2878         (create_async_event_handler): Likewise.
2879         (create_timer): Likewise.
2880         * exec.c (build_section_table): Likewise.
2881         * fbsd-nat.c (fbsd_remember_child): Likewise.
2882         * fork-child.c (fork_inferior): Likewise.
2883         * frv-tdep.c (new_variant): Likewise.
2884         * gdbarch.sh (gdbarch_alloc): Likewise.
2885         (append_name): Likewise.
2886         * gdbtypes.c (rank_function): Likewise.
2887         (copy_type_recursive): Likewise.
2888         (add_dyn_prop): Likewise.
2889         * gnu-nat.c (make_proc): Likewise.
2890         (make_inf): Likewise.
2891         (gnu_write_inferior): Likewise.
2892         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2893         (build_std_type_info_type): Likewise.
2894         * guile/scm-param.c (compute_enum_list): Likewise.
2895         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2896         * guile/scm-value.c (gdbscm_value_call): Likewise.
2897         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2898         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2899         (read_unwind_info): Likewise.
2900         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2901         * infcall.c (dummy_frame_context_saver_setup): Likewise.
2902         (call_function_by_hand_dummy): Likewise.
2903         * infcmd.c (step_once): Likewise.
2904         (finish_forward): Likewise.
2905         (attach_command): Likewise.
2906         (notice_new_inferior): Likewise.
2907         * inferior.c (add_inferior_silent): Likewise.
2908         * infrun.c (add_displaced_stepping_state): Likewise.
2909         (save_infcall_control_state): Likewise.
2910         (save_inferior_ptid): Likewise.
2911         (_initialize_infrun): Likewise.
2912         * jit.c (bfd_open_from_target_memory): Likewise.
2913         (jit_gdbarch_data_init): Likewise.
2914         * language.c (add_language): Likewise.
2915         * linespec.c (decode_line_2): Likewise.
2916         * linux-nat.c (add_to_pid_list): Likewise.
2917         (add_initial_lwp): Likewise.
2918         * linux-thread-db.c (add_thread_db_info): Likewise.
2919         (record_thread): Likewise.
2920         (info_auto_load_libthread_db): Likewise.
2921         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2922         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2923         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2924         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2925         * macrocmd.c (macro_define_command): Likewise.
2926         * macroexp.c (gather_arguments): Likewise.
2927         * macroscope.c (sal_macro_scope): Likewise.
2928         * macrotab.c (new_macro_table): Likewise.
2929         * mdebugread.c (push_parse_stack): Likewise.
2930         (parse_partial_symbols): Likewise.
2931         (parse_symbol): Likewise.
2932         (psymtab_to_symtab_1): Likewise.
2933         (new_block): Likewise.
2934         (new_psymtab): Likewise.
2935         (mdebug_build_psymtabs): Likewise.
2936         (add_pending): Likewise.
2937         (elfmdebug_build_psymtabs): Likewise.
2938         * mep-tdep.c (mep_gdbarch_init): Likewise.
2939         * mi/mi-main.c (mi_execute_command): Likewise.
2940         * mi/mi-parse.c (mi_parse_argv): Likewise.
2941         * minidebug.c (lzma_open): Likewise.
2942         * minsyms.c (terminate_minimal_symbol_table): Likewise.
2943         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2944         * mips-tdep.c (mips_gdbarch_init): Likewise.
2945         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2946         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2947         * mt-tdep.c (mt_registers_info): Likewise.
2948         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2949         * nat/linux-btrace.c (linux_enable_bts): Likewise.
2950         (linux_enable_pt): Likewise.
2951         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2952         (linux_xfer_osdata_processgroups): Likewise.
2953         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2954         * nto-procfs.c (procfs_meminfo): Likewise.
2955         * objc-lang.c (start_msglist): Likewise.
2956         (selectors_info): Likewise.
2957         (classes_info): Likewise.
2958         (find_methods): Likewise.
2959         * objfiles.c (allocate_objfile): Likewise.
2960         (update_section_map): Likewise.
2961         * osabi.c (gdbarch_register_osabi): Likewise.
2962         (gdbarch_register_osabi_sniffer): Likewise.
2963         * parse.c (start_arglist): Likewise.
2964         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2965         (hwdebug_insert_point): Likewise.
2966         * printcmd.c (display_command): Likewise.
2967         (ui_printf): Likewise.
2968         * procfs.c (create_procinfo): Likewise.
2969         (load_syscalls): Likewise.
2970         (proc_get_LDT_entry): Likewise.
2971         (proc_update_threads): Likewise.
2972         * prologue-value.c (make_pv_area): Likewise.
2973         (pv_area_store): Likewise.
2974         * psymtab.c (extend_psymbol_list): Likewise.
2975         (init_psymbol_list): Likewise.
2976         (allocate_psymtab): Likewise.
2977         * python/py-inferior.c (add_thread_object): Likewise.
2978         * python/py-param.c (compute_enum_values): Likewise.
2979         * python/py-value.c (valpy_call): Likewise.
2980         * python/py-varobj.c (py_varobj_iter_next): Likewise.
2981         * python/python.c (ensure_python_env): Likewise.
2982         * record-btrace.c (record_btrace_start_replaying): Likewise.
2983         * record-full.c (record_full_reg_alloc): Likewise.
2984         (record_full_mem_alloc): Likewise.
2985         (record_full_end_alloc): Likewise.
2986         (record_full_core_xfer_partial): Likewise.
2987         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2988         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2989         * remote-notif.c (remote_notif_state_allocate): Likewise.
2990         * remote.c (demand_private_info): Likewise.
2991         (remote_notif_stop_alloc_reply): Likewise.
2992         (remote_enable_btrace): Likewise.
2993         * reverse.c (save_bookmark_command): Likewise.
2994         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2995         * rx-tdep.c (rx_gdbarch_init): Likewise.
2996         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2997         * ser-go32.c (dos_get_tty_state): Likewise.
2998         (dos_copy_tty_state): Likewise.
2999         * ser-mingw.c (ser_windows_open): Likewise.
3000         (ser_console_wait_handle): Likewise.
3001         (ser_console_get_tty_state): Likewise.
3002         (make_pipe_state): Likewise.
3003         (net_windows_open): Likewise.
3004         * ser-unix.c (hardwire_get_tty_state): Likewise.
3005         (hardwire_copy_tty_state): Likewise.
3006         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3007         * solib-dsbt.c (dsbt_current_sos): Likewise.
3008         (dsbt_relocate_main_executable): Likewise.
3009         * solib-frv.c (frv_current_sos): Likewise.
3010         (frv_relocate_main_executable): Likewise.
3011         * solib-spu.c (spu_bfd_fopen): Likewise.
3012         * solib-svr4.c (lm_info_read): Likewise.
3013         (svr4_copy_library_list): Likewise.
3014         (svr4_default_sos): Likewise.
3015         * source.c (find_source_lines): Likewise.
3016         (line_info): Likewise.
3017         (add_substitute_path_rule): Likewise.
3018         * spu-linux-nat.c (spu_bfd_open): Likewise.
3019         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3020         * stabsread.c (dbx_lookup_type): Likewise.
3021         (read_type): Likewise.
3022         (read_member_functions): Likewise.
3023         (read_struct_fields): Likewise.
3024         (read_baseclasses): Likewise.
3025         (read_args): Likewise.
3026         (_initialize_stabsread): Likewise.
3027         * stack.c (func_command): Likewise.
3028         * stap-probe.c (handle_stap_probe): Likewise.
3029         * symfile.c (addrs_section_sort): Likewise.
3030         (addr_info_make_relative): Likewise.
3031         (load_section_callback): Likewise.
3032         (add_symbol_file_command): Likewise.
3033         (init_filename_language_table): Likewise.
3034         * symtab.c (create_filename_seen_cache): Likewise.
3035         (sort_search_symbols_remove_dups): Likewise.
3036         (search_symbols): Likewise.
3037         * target.c (make_cleanup_restore_target_terminal): Likewise.
3038         * thread.c (new_thread): Likewise.
3039         (enable_thread_stack_temporaries): Likewise.
3040         (make_cleanup_restore_current_thread): Likewise.
3041         (thread_apply_all_command): Likewise.
3042         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3043         * top.c (gdb_readline_wrapper): Likewise.
3044         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3045         * tracepoint.c (trace_find_line_command): Likewise.
3046         (all_tracepoint_actions_and_cleanup): Likewise.
3047         (make_cleanup_restore_current_traceframe): Likewise.
3048         (get_uploaded_tp): Likewise.
3049         (get_uploaded_tsv): Likewise.
3050         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3051         (tui_alloc_win_info): Likewise.
3052         (tui_alloc_content): Likewise.
3053         (tui_add_content_elements): Likewise.
3054         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3055         (tui_set_disassem_content): Likewise.
3056         * ui-file.c (ui_file_new): Likewise.
3057         (stdio_file_new): Likewise.
3058         (tee_file_new): Likewise.
3059         * utils.c (make_cleanup_restore_integer): Likewise.
3060         (add_internal_problem_command): Likewise.
3061         * v850-tdep.c (v850_gdbarch_init): Likewise.
3062         * valops.c (find_oload_champ): Likewise.
3063         * value.c (allocate_value_lazy): Likewise.
3064         (record_latest_value): Likewise.
3065         (create_internalvar): Likewise.
3066         * varobj.c (install_variable): Likewise.
3067         (new_variable): Likewise.
3068         (new_root_variable): Likewise.
3069         (cppush): Likewise.
3070         (_initialize_varobj): Likewise.
3071         * windows-nat.c (windows_make_so): Likewise.
3072         * x86-nat.c (x86_add_process): Likewise.
3073         * xcoffread.c (arrange_linetable): Likewise.
3074         (allocate_include_entry): Likewise.
3075         (process_linenos): Likewise.
3076         (SYMBOL_DUP): Likewise.
3077         (xcoff_start_psymtab): Likewise.
3078         (xcoff_end_psymtab): Likewise.
3079         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3080         * xtensa-tdep.c (xtensa_register_type): Likewise.
3081         * gdbarch.c: Regenerate.
3082         * gdbarch.h: Regenerate.
3083
3084 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3085
3086         * infrun.c (follow_exec): Re-order operations for
3087         handling follow-exec-mode "new".
3088         (handle_inferior_event_1): Assign ecs->event_thread
3089         to the current thread.
3090         * remote.c (get_remote_arch_state): Add an assertion.
3091
3092 2015-08-26  Pedro Alves  <palves@redhat.com>
3093
3094         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3095
3096 2015-08-25  Pedro Alves  <palves@redhat.com>
3097
3098         PR gdb/18804
3099         * defs.h (maybe_quit): Declare.
3100         (QUIT): Now calls maybe_quit.
3101         * event-loop.c (clear_async_signal_handler)
3102         (async_signal_handler_is_marked): New functions.
3103         * event-loop.h (async_signal_handler_is_marked)
3104         (clear_async_signal_handler): New declarations.
3105         * remote.c (remote_check_pending_interrupt): New function.
3106         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3107         longer check whether the target is async.  If waiting for a stop
3108         reply, and a Ctrl-C as been sent to the target, offer to
3109         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3110         Otherwise do not disconnect and throw a quit.
3111         (_initialize_remote): Install remote_check_pending_interrupt as
3112         to_check_pending_interrupt.
3113         * target.c (target_check_pending_interrupt): New function.
3114         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3115         field.
3116         (target_check_pending_interrupt): New declaration.
3117         * utils.c (maybe_quit): New function.
3118         * target-delegates.c: Regenerate.
3119
3120 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3121
3122         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3123         Rename local variable pid to tid, and get lwpid of lwp.  Update
3124         debug output.
3125
3126 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3127
3128         * ada-lang.c (ada_read_var_value): Add a var_block argument
3129         and pass it to default_read_var_value.
3130         * block.c (block_static_link): New accessor.
3131         * block.h (block_static_link): Declare it.
3132         * buildsym.c (finish_block_internal): Add a static_link
3133         argument.  If there is a static link, associate it to the new
3134         block.
3135         (finish_block): Add a static link argument and pass it to
3136         finish_block_internal.
3137         (end_symtab_get_static_block): Update calls to finish_block and
3138         to finish_block_internal.
3139         (end_symtab_with_blockvector): Update call to
3140         finish_block_internal.
3141         * buildsym.h: Forward-declare struct dynamic_prop.
3142         (struct context_stack): Add a static_link field.
3143         (finish_block): Add a static link argument.
3144         * c-exp.y: Remove an obsolete comment (evaluation of variables
3145         already start from the selected frame, and now they climb *up*
3146         the call stack) and propagate the block information to the
3147         produced expression.
3148         * d-exp.y: Likewise.
3149         * f-exp.y: Likewise.
3150         * go-exp.y: Likewise.
3151         * jv-exp.y: Likewise.
3152         * m2-exp.y: Likewise.
3153         * p-exp.y: Likewise.
3154         * coffread.c (coff_symtab_read): Update calls to finish_block.
3155         * dbxread.c (process_one_symbol): Likewise.
3156         * xcoffread.c (read_xcoff_symtab): Likewise.
3157         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3158         "sym" parameter to struct block_symbol, update its uses and pass
3159         its block to calls to read_var_value.
3160         (convert_symbol_sym): Update the calls to convert_one_symbol.
3161         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3162         call to read_var_value.
3163         * dwarf2loc.c (block_op_get_frame_base): New.
3164         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3165         get_frame_base method.
3166         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3167         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3168         instead of the selected frame in order to evaluate the
3169         expression.
3170         (dwarf2_evaluate_property): Add a frame argument.  Update call
3171         to dwarf2_locexpr_baton_eval to provide a frame in available and
3172         to handle the absence of address stack.
3173         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3174         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3175         declaration.
3176         (read_func_scope): Record any available static link description.
3177         Update call to finish_block.
3178         (read_lexical_block_scope): Update call to finish_block.
3179         * findvar.c (follow_static_link): New.
3180         (get_hosting_frame): New.
3181         (default_read_var_value): Add a var_block argument.  Use
3182         get_hosting_frame to handle non-local references.
3183         (read_var_value): Add a var_block argument and pass it to the
3184         LA_READ_VAR_VALUE method.
3185         * gdbtypes.c (resolve_dynamic_range): Update calls to
3186         dwarf2_evaluate_property.
3187         (resolve_dynamic_type_internal): Likewise.
3188         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3189         read_var_value, passing it the block coming from symbol lookup.
3190         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3191         read_var_value (TODO).
3192         * infcmd.c (finish_command_continuation): Update call to
3193         read_var_value, passing it the block coming from symbol lookup.
3194         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3195         * language.h (struct language_defn): Add a var_block argument to
3196         the LA_READ_VAR_VALUE method.
3197         * objfiles.c (struct static_link_htab_entry): New.
3198         (static_link_htab_entry_hash): New.
3199         (static_link_htab_entry_eq): New.
3200         (objfile_register_static_link): New.
3201         (objfile_lookup_static_link): New.
3202         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3203         * objfiles.h: Include hashtab.h.
3204         (struct objfile): Add a static_links field.
3205         (objfile_register_static_link): New.
3206         (objfile_lookup_static_link): New.
3207         * printcmd.c (print_variable_and_value): Update call to
3208         read_var_value.
3209         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3210         * python/py-frame.c (frapy_read_var): Update call to
3211         read_var_value, passing it the block coming from symbol lookup.
3212         * python/py-framefilter.c (extract_sym): Add a sym_block
3213         parameter and set the pointed value to NULL (TODO).
3214         (enumerate_args): Update call to extract_sym.
3215         (enumerate_locals): Update calls to extract_sym and to
3216         read_var_value.
3217         * python/py-symbol.c (sympy_value): Update call to
3218         read_var_value (TODO).
3219         * stack.c (read_frame_local): Update call to read_var_value.
3220         (read_frame_arg): Likewise.
3221         (return_command): Likewise.
3222         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3223         method.
3224         (struct symbol): Add a block field.
3225         (SYMBOL_BLOCK): New accessor.
3226         * valops.c (value_of_variable): Remove frame/block handling and
3227         pass the block argument to read_var_value, which does this job
3228         now.
3229         (value_struct_elt_for_reference): Update calls to
3230         read_var_value.
3231         (value_of_this): Pass the block found to read_var_value.
3232         * value.h (read_var_value): Add a var_block argument.
3233         (default_read_var_value): Likewise.
3234
3235 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3236
3237         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3238         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3239         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3240
3241 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3242
3243         * Makefile.in (aarch64-liunx.o): New rule.
3244         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3245         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3246         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3247         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3248         extern.
3249         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3250         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3251         * nat/aarch64-linux.c: New file.
3252         * nat/aarch64-linux.h: New file.
3253
3254 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3255
3256         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3257         lwp_arch_private_info and ptid_of_lwp.
3258
3259 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3260
3261         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3262         Move it to nat/aarch64-linux-hw-point.c.
3263         (debug_reg_change_callback): Likewise.
3264         (aarch64_notify_debug_reg_change): :Likewise.
3265         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3266         (aarch64_dr_update_callback_param): New.
3267         (debug_reg_change_callback): New function.
3268         (aarch64_notify_debug_reg_change): Likewise.
3269         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3270         Remove the declaration.
3271
3272 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3273
3274         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3275         Call current_lwp_ptid.
3276
3277 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3278
3279         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3280         debug_printf.
3281
3282 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3283
3284         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3285         ptid_get_pid rather than ptid_get_lwp.
3286
3287 2015-08-24  Pedro Alves  <palves@redhat.com>
3288
3289         * NEWS (New commands): Mention set/show remote
3290         multiprocess-extensions-packet.
3291         * remote.c (remote_query_supported): Only tell the server to use
3292         the multiprocess extensions if the user hasn't force-disabled them
3293         with "set remote multiprocess-extensions-packet off".
3294
3295 2015-08-24  Pedro Alves  <palves@redhat.com>
3296
3297         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3298         1029a8112290f6eee9d7878a391c49db42c999bd.
3299         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3300         Regenerate.
3301         * gnulib/import/Makefile.am: Update.
3302         * gnulib/import/Makefile.in: Update.
3303         * gnulib/import/alloca.in.h: Update.
3304         * gnulib/import/basename-lgpl.c: Update.
3305         * gnulib/import/canonicalize-lgpl.c: Update.
3306         * gnulib/import/config.charset: Update.
3307         * gnulib/import/dirent.in.h: Update.
3308         * gnulib/import/dirfd.c: Update.
3309         * gnulib/import/dirname-lgpl.c: Update.
3310         * gnulib/import/dirname.h: Update.
3311         * gnulib/import/dosname.h: Update.
3312         * gnulib/import/errno.in.h: Update.
3313         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3314         * gnulib/import/extra/snippet/c++defs.h: Update.
3315         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3316         * gnulib/import/extra/update-copyright: Update.
3317         * gnulib/import/float+.h: Update.
3318         * gnulib/import/float.c: Update.
3319         * gnulib/import/float.in.h: Update.
3320         * gnulib/import/fnmatch.c: Update.
3321         * gnulib/import/fnmatch.in.h: Update.
3322         * gnulib/import/fnmatch_loop.c: Update.
3323         * gnulib/import/fpucw.h: Update.
3324         * gnulib/import/frexp.c: Update.
3325         * gnulib/import/frexpl.c: Update.
3326         * gnulib/import/gettimeofday.c: Update.
3327         * gnulib/import/inttypes.in.h: Update.
3328         * gnulib/import/isnan.c: Update.
3329         * gnulib/import/isnand-nolibm.h: Update.
3330         * gnulib/import/isnand.c: Update.
3331         * gnulib/import/isnanl-nolibm.h: Update.
3332         * gnulib/import/isnanl.c: Update.
3333         * gnulib/import/itold.c: Update.
3334         * gnulib/import/localcharset.c: Update.
3335         * gnulib/import/localcharset.h: Update.
3336         * gnulib/import/lstat.c: Update.
3337         * gnulib/import/m4/00gnulib.m4: Update.
3338         * gnulib/import/m4/absolute-header.m4: Update.
3339         * gnulib/import/m4/alloca.m4: Update.
3340         * gnulib/import/m4/canonicalize.m4: Update.
3341         * gnulib/import/m4/codeset.m4: Update.
3342         * gnulib/import/m4/configmake.m4: Update.
3343         * gnulib/import/m4/dirent_h.m4: Update.
3344         * gnulib/import/m4/dirfd.m4: Update.
3345         * gnulib/import/m4/dirname.m4: Update.
3346         * gnulib/import/m4/double-slash-root.m4: Update.
3347         * gnulib/import/m4/eealloc.m4: Update.
3348         * gnulib/import/m4/errno_h.m4: Update.
3349         * gnulib/import/m4/exponentd.m4: Update.
3350         * gnulib/import/m4/exponentl.m4: Update.
3351         * gnulib/import/m4/extensions.m4: Update.
3352         * gnulib/import/m4/extern-inline.m4: Update.
3353         * gnulib/import/m4/fcntl-o.m4: Update.
3354         * gnulib/import/m4/float_h.m4: Update.
3355         * gnulib/import/m4/fnmatch.m4: Update.
3356         * gnulib/import/m4/fpieee.m4: Update.
3357         * gnulib/import/m4/frexp.m4: Update.
3358         * gnulib/import/m4/frexpl.m4: Update.
3359         * gnulib/import/m4/gettimeofday.m4: Update.
3360         * gnulib/import/m4/glibc21.m4: Update.
3361         * gnulib/import/m4/gnulib-cache.m4: Update.
3362         * gnulib/import/m4/gnulib-common.m4: Update.
3363         * gnulib/import/m4/gnulib-comp.m4: Update.
3364         * gnulib/import/m4/gnulib-tool.m4: Update.
3365         * gnulib/import/m4/include_next.m4: Update.
3366         * gnulib/import/m4/inttypes-pri.m4: Update.
3367         * gnulib/import/m4/inttypes.m4: Update.
3368         * gnulib/import/m4/isnand.m4: Update.
3369         * gnulib/import/m4/isnanl.m4: Update.
3370         * gnulib/import/m4/largefile.m4: Update.
3371         * gnulib/import/m4/localcharset.m4: Update.
3372         * gnulib/import/m4/locale-fr.m4: Update.
3373         * gnulib/import/m4/locale-ja.m4: Update.
3374         * gnulib/import/m4/locale-zh.m4: Update.
3375         * gnulib/import/m4/longlong.m4: Update.
3376         * gnulib/import/m4/lstat.m4: Update.
3377         * gnulib/import/m4/malloc.m4: Update.
3378         * gnulib/import/m4/malloca.m4: Update.
3379         * gnulib/import/m4/math_h.m4: Update.
3380         * gnulib/import/m4/mbrtowc.m4: Update.
3381         * gnulib/import/m4/mbsinit.m4: Update.
3382         * gnulib/import/m4/mbsrtowcs.m4: Update.
3383         * gnulib/import/m4/mbstate_t.m4: Update.
3384         * gnulib/import/m4/memchr.m4: Update.
3385         * gnulib/import/m4/memmem.m4: Update.
3386         * gnulib/import/m4/mmap-anon.m4: Update.
3387         * gnulib/import/m4/multiarch.m4: Update.
3388         * gnulib/import/m4/nocrash.m4: Update.
3389         * gnulib/import/m4/off_t.m4: Update.
3390         * gnulib/import/m4/pathmax.m4: Update.
3391         * gnulib/import/m4/readlink.m4: Update.
3392         * gnulib/import/m4/rename.m4: Update.
3393         * gnulib/import/m4/rmdir.m4: Update.
3394         * gnulib/import/m4/ssize_t.m4: Update.
3395         * gnulib/import/m4/stat.m4: Update.
3396         * gnulib/import/m4/stdbool.m4: Update.
3397         * gnulib/import/m4/stddef_h.m4: Update.
3398         * gnulib/import/m4/stdint.m4: Update.
3399         * gnulib/import/m4/stdio_h.m4: Update.
3400         * gnulib/import/m4/stdlib_h.m4: Update.
3401         * gnulib/import/m4/string_h.m4: Update.
3402         * gnulib/import/m4/strstr.m4: Update.
3403         * gnulib/import/m4/strtok_r.m4: Update.
3404         * gnulib/import/m4/sys_socket_h.m4: Update.
3405         * gnulib/import/m4/sys_stat_h.m4: Update.
3406         * gnulib/import/m4/sys_time_h.m4: Update.
3407         * gnulib/import/m4/sys_types_h.m4: Update.
3408         * gnulib/import/m4/time_h.m4: Update.
3409         * gnulib/import/m4/unistd_h.m4: Update.
3410         * gnulib/import/m4/warn-on-use.m4: Update.
3411         * gnulib/import/m4/wchar_h.m4: Update.
3412         * gnulib/import/m4/wchar_t.m4: Update.
3413         * gnulib/import/m4/wctype_h.m4: Update.
3414         * gnulib/import/m4/wint_t.m4: Update.
3415         * gnulib/import/malloc.c: Update.
3416         * gnulib/import/malloca.c: Update.
3417         * gnulib/import/malloca.h: Update.
3418         * gnulib/import/math.in.h: Update.
3419         * gnulib/import/mbrtowc.c: Update.
3420         * gnulib/import/mbsinit.c: Update.
3421         * gnulib/import/mbsrtowcs-impl.h: Update.
3422         * gnulib/import/mbsrtowcs-state.c: Update.
3423         * gnulib/import/mbsrtowcs.c: Update.
3424         * gnulib/import/memchr.c: Update.
3425         * gnulib/import/memmem.c: Update.
3426         * gnulib/import/pathmax.h: Update.
3427         * gnulib/import/readlink.c: Update.
3428         * gnulib/import/ref-add.sin: Update.
3429         * gnulib/import/ref-del.sin: Update.
3430         * gnulib/import/rename.c: Update.
3431         * gnulib/import/rmdir.c: Update.
3432         * gnulib/import/same-inode.h: Update.
3433         * gnulib/import/stat.c: Update.
3434         * gnulib/import/stdbool.in.h: Update.
3435         * gnulib/import/stddef.in.h: Update.
3436         * gnulib/import/stdint.in.h: Update.
3437         * gnulib/import/stdio.c: Update.
3438         * gnulib/import/stdio.in.h: Update.
3439         * gnulib/import/stdlib.in.h: Update.
3440         * gnulib/import/str-two-way.h: Update.
3441         * gnulib/import/streq.h: Update.
3442         * gnulib/import/string.in.h: Update.
3443         * gnulib/import/stripslash.c: Update.
3444         * gnulib/import/strnlen1.c: Update.
3445         * gnulib/import/strnlen1.h: Update.
3446         * gnulib/import/strstr.c: Update.
3447         * gnulib/import/strtok_r.c: Update.
3448         * gnulib/import/sys_stat.in.h: Update.
3449         * gnulib/import/sys_time.in.h: Update.
3450         * gnulib/import/sys_types.in.h: Update.
3451         * gnulib/import/time.in.h: Update.
3452         * gnulib/import/unistd.in.h: Update.
3453         * gnulib/import/verify.h: Update.
3454         * gnulib/import/wchar.in.h: Update.
3455         * gnulib/import/wctype.in.h: Update.
3456         * gnulib/import/gettimeofday.c: New file.
3457         * gnulib/import/m4/absolute-header.m4: New file.
3458         * gnulib/import/m4/gettimeofday.m4: New file.
3459         * gnulib/import/m4/sys_socket_h.m4: New file.
3460         * gnulib/import/m4/sys_time_h.m4: New file.
3461         * gnulib/import/stdio.c: Delete file.
3462         * gnulib/import/sys_time.in.h: New file.
3463
3464 2015-08-24  Pedro Alves  <palves@redhat.com>
3465
3466         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3467         * common/gdb_sys_time.h: New file.
3468         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3469         * gdb_select.h: Likewise.
3470         * gdb_usleep.c: Likewise.
3471         * maint.c: Likewise.
3472         * mi/mi-main.c: Likewise.
3473         * mi/mi-parse.h: Likewise.
3474         * remote-fileio.c: Likewise.
3475         * remote-m32r-sdi.c: Likewise.
3476         * remote.c: Likewise.
3477         * ser-base.c: Likewise.
3478         * ser-pipe.c: Likewise.
3479         * ser-tcp.c: Likewise.
3480         * ser-unix.c: Likewise.
3481         * symfile.c: Likewise.
3482         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3483         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3484         * utils.c: Likewise.
3485
3486 2015-08-24  Pedro Alves  <palves@redhat.com>
3487
3488         * NEWS: Mention removed support for the various ROM monitors.
3489         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3490         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3491         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3492         gdb_target_obs.
3493         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3494         gdb_target_obs.
3495         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3496         dsrec.o from gdb_target_obs.
3497         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3498         from gdb_target_obs.
3499         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3500         gdb_target_obs.
3501         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3502         dink32-rom.o from gdb_target_obs.
3503         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3504         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3505         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3506         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3507
3508 2015-08-21  Pedro Alves  <palves@redhat.com>
3509
3510         * frame.c (null_frame_id): Explicitly zero-initialize.
3511
3512 2015-08-21  Tom Tromey  <tromey@redhat.com>
3513
3514         * dwarf2read.c (struct dwarf2_section_info): Rename field
3515         'asection' to 'section'.
3516         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3517         (dwarf2_locate_sections, dwarf2_locate_sections)
3518         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3519         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3520         (dwarf2_locate_v2_dwp_sections): Adjust.
3521
3522 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3523
3524         * top.h (gdb_in_secondary_prompt_p): Declare.
3525         * top.c (gdb_secondary_prompt_depth): Define.
3526         (gdb_in_secondary_prompt_p): Define.
3527         (gdb_readline_wrapper_cleanup): Decrement
3528         gdb_secondary_prompt_depth.
3529         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3530         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3531         are in a secondary prompt.
3532
3533 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3534
3535         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3536         emit the newline.
3537
3538 2015-08-21  Gary Benson  <gbenson@redhat.com>
3539
3540         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3541
3542 2015-08-21  Gary Benson  <gbenson@redhat.com>
3543
3544         * target.h (struct target_ops) <to_fileio_open>: New argument
3545         warn_if_slow.  Update comment.  All implementations updated.
3546         (target_fileio_open_warn_if_slow): New declaration.
3547         * target.c (target_fileio_open): Renamed as...
3548         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3549         Pass warn_if_slow to implementation.  Update debug printing.
3550         (target_fileio_open): New function.
3551         (target_fileio_open_warn_if_slow): Likewise.
3552         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3553         target_fileio_open_warn_if_slow.
3554
3555 2015-08-21  Gary Benson  <gbenson@redhat.com>
3556
3557         * nat/linux-namespaces.c (linux_mntns_access_fs):
3558         Do not overwrite old_chain.
3559
3560 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3561
3562         * arch/xtensa.h: New file.
3563         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3564         (ps_get_thread_area): New function.
3565         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3566         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3567         * xtensa-tdep.c (osabi.h): New #include.
3568         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3569         xtensa-specific hooks.
3570         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3571         member and move the structure to arch/xtensa.h.
3572
3573 2015-08-21  Pedro Alves  <palves@redhat.com>
3574
3575         * remote.c (struct readahead_cache): New.
3576         (struct remote_state) <readahead_cache>: New field.
3577         (remote_open_1): Invalidate the cache.
3578         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3579         functions.
3580         (remote_hostio_pwrite): Invalidate the readahead cache.
3581         (remote_hostio_pread): Rename to ...
3582         (remote_hostio_pread_vFile): ... this.
3583         (remote_hostio_pread_from_cache): New function.
3584         (remote_hostio_pread): Reimplement.
3585         (remote_hostio_close): Invalidate the readahead cache.
3586
3587 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3588
3589         PR build/18843
3590         * procfs.c: Include "filestuff.h".
3591
3592 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3593
3594         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3595         curch.
3596         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3597         cur_line or curch, instead call wmove().
3598         (init_win_info) [CMD_WIN]: Likewise.
3599         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3600         instead call getcury().
3601         (tui_redisplay_readline): Don't set cur_line or curch.
3602         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3603         getcury().
3604         (tui_cont_sig): Remove call to wmove.
3605         (tui_getc): Don't read cur_line or curch, instead call getcury()
3606         or getyx().  Don't set curch.
3607         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3608         set cur_line or curch.  Always move cursor to (0,0).
3609
3610 2015-08-20  Pedro Alves  <palves@redhat.com>
3611
3612         * infrun.c (print_target_wait_results): Make extern.
3613         * infrun.h (print_target_wait_results): Declare.
3614         * remote.c (set_stop_requested_callback): Delete.
3615         (process_initial_stop_replies): New function.
3616         (remote_start_remote): Use it.
3617         (stop_reply_queue_length): New function.
3618
3619 2015-08-20  Pedro Alves  <palves@redhat.com>
3620
3621         * dwarf2read.c (process_full_comp_unit): To tell whether
3622         start_subfile managed to deduce a language, test for
3623         language_unknown instead of language_c.
3624
3625 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3626
3627         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3628         matches attributes.
3629
3630 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3631
3632         * dwarf2read.c (dwarf2_string_attr): New function.
3633         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3634         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3635         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3636         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3637         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3638
3639 2015-08-18  Doug Evans  <dje@google.com>
3640             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3641
3642         PR mi/18833
3643         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3644         if MI-like.
3645         * mi/mi-out.c: #include "vec.h".
3646         (ui_filep): New type.
3647         (DEV_VEC_P (ui_filep)): New type.
3648         (struct ui_out_data) <buffer, original_buffer>: Delete.
3649         (struct ui_out_data) <streams>: New member.
3650         (mi_ui_out_impl): Add data_destroy field.
3651         (mi_field_string, mi_field_fmt): Update.
3652         (mi_flush, mi_redirect, field_separator): Update.
3653         (mi_open, mi_close): Update.
3654         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3655         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3656         (mi_out_new): Call mi_out_data_ctor.
3657
3658 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3659
3660         * remote.c (strprefix): New.
3661         (remote_parse_stop_reply): Use strprefix instead of strncmp
3662         to ensure exact match of keyword.
3663
3664 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3665
3666         * gdb_bfd.c (debug_bfd_cache): New variable.
3667         (show_bfd_cache_debug): New function.
3668         (gdb_bfd_open): Add debug logging.
3669         (gdb_bfd_ref): Likewise.
3670         (gdb_bfd_unref): Likewise.
3671         (_initialize_gdb_bfd): Add new set/show command.
3672         * NEWS: Mention new command.
3673
3674 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3675
3676         * gdb_bfd.c (bfd_sharing): New variable.
3677         (show_bfd_sharing): New function.
3678         (gdb_bfd_open): Check bfd_sharing variable.
3679         (_initialize_gdb_bfd): Add new set/show command.
3680         * NEWS: Mention new command.
3681
3682 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3683
3684         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3685         field.
3686         (struct gdb_bfd_cache_search): Likewise.
3687         (eq_bfd): Compare the size, inode, and device id fields.
3688         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3689         (gdb_bfd_ref): Likewise.
3690         (gdb_bfd_unref): Likewise.
3691
3692 2015-08-18  Pedro Alves  <palves@redhat.com>
3693
3694         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3695         target implements to_always_non_stop_p, call it.
3696         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3697         (x86_linux_create_target): Install it as to_always_non_stop_p
3698         method.
3699
3700 2015-08-17  Doug Evans  <dje@google.com>
3701
3702         * ui-out.c (default_ui_out_impl): Add comment.
3703
3704 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
3705
3706         * d-exp.y (type_aggregate_p): New function.
3707         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3708         (classify_inner_name): Likewise.
3709         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3710
3711 2015-08-15  Doug Evans  <xdje42@gmail.com>
3712
3713         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
3714         updated.
3715         (add_psymbol_to_list): Ditto.
3716
3717 2015-08-15  Doug Evans  <xdje42@gmail.com>
3718
3719         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
3720         updated.  Call end_psymtab_common.
3721         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3722         end_psymtab_common.
3723         (build_type_psymtabs_reader): Ditto.
3724         * psympriv.h (sort_pst_symbols): Delete.
3725         (end_psymtab_common): Declare.
3726         * psymtab.c (sort_pst_symbols): Make static.
3727         (end_psymtab_common): New function.
3728         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3729
3730 2015-08-15  Doug Evans  <xdje42@gmail.com>
3731
3732         * defs.h (LANGUAGE_BITS): Define.
3733         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3734         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3735         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3736         (minimal_symbol_type): Add nr_minsym_types.
3737         (MINSYM_TYPE_BITS): Define.
3738         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3739         (domain_enum_tag): Add NR_DOMAINS.
3740         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3741         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3742
3743 2015-08-15  Doug Evans  <xdje42@gmail.com>
3744
3745         * objfiles.h: Whitespace cleanup.
3746         * psympriv.h: Whitespace cleanup.
3747         * psymtab.c: Whitespace/coding convention cleanup.
3748
3749 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
3750
3751         * inferior.c (detach_inferior_command): Don't call
3752         any_thread_of_process when pid is 0.
3753         (kill_inferior_command): Likewise.
3754
3755 2015-08-14  Doug Evans  <xdje42@gmail.com>
3756
3757         PR gdb/11833
3758         * NEWS: Document new /s modifier for the disassemble command.
3759         * cli/cli-cmds.c (disassemble_command): Add support for /s.
3760         (_initialize_cli_cmds): Update online docs of disassemble command.
3761         * disasm.c: #include "source.h".
3762         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3763         All uses updated.
3764         (dis_line_entry): New struct.
3765         (hash_dis_line_entry, eq_dis_line_entry): New functions.
3766         (allocate_dis_line_table): New functions.
3767         (maybe_add_dis_line_entry, line_has_code_p): New functions.
3768         (dump_insns): New arg end_pc.  All callers updated.
3769         (do_mixed_source_and_assembly_deprecated): Renamed from
3770         do_mixed_source_and_assembly.  All callers updated.
3771         (do_mixed_source_and_assembly): New function.
3772         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3773         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3774         DISASSEMBLY_SOURCE.  All uses updated.
3775         (DISASSEMBLY_SOURCE): New macro.
3776         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3777
3778 2015-08-14  Keith Seitz  <keiths@redhat.com>
3779
3780         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3781         `typename' to `type_name' to avoid C++ reserved word.
3782
3783 2015-08-14  Keith Seitz  <keiths@redhat.com>
3784
3785         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3786         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3787         silence ARI errors.
3788
3789 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3790
3791         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3792         xstrprintf instead of malloc and sprintf.
3793         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3794         (lex_one_token): Likewise.
3795
3796 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3797
3798         * solib-svr4.c (read_program_header): Add base_addr argument to
3799         report the runtime address of the segment.
3800         (find_program_interpreter): Update read_program_header call to pass
3801         a NULL pointer for the new argument.
3802         (scan_dyntag): Add ptr_addr argument to report the runtime address
3803         of the tag payload.
3804         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3805         read_program_header to get the base address of the dynamic segment.
3806         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3807         read_program_header.
3808         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3809
3810 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3811
3812         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3813
3814 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3815
3816         * d-exp.y (%union): Add voidval.
3817         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3818         name in the lexing stage.
3819         (PostfixExpression): Move symbol completion handling in grammar here
3820         from PrimaryExpression.
3821         (PrimaryExpression): Move routines to handle resolving identifier
3822         tokens in the grammar here from push_expression_name.
3823         (IdentifierExp): Remove the handling of alternating '.' and identifier
3824         tokens.
3825         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3826         (BasicType): Remove C-style typename rules.
3827         (d_type_from_name, d_module_from_name, push_variable)
3828         (push_fieldnames, push_type_name, push_module_name)
3829         (push_expression_name): Remove.
3830         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
3831         (token_and_value): New type.
3832         (token_fifo, popping, name_obstack): New globals.
3833         (classify_name): New function.
3834         (classify_inner_name): Likewise.
3835         (yylex): Likewise.
3836         (d_parse): Initialize token_fifo, popping and name_obstack.
3837
3838 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3839
3840         * Makefile.in (SFILES): Add d-namespace.c.
3841         (COMMON_OBS): Add d-namespace.o.
3842         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3843         la_lookup_symbol_nonlocal callback function pointer.
3844         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3845         (d_lookup_nested_symbol): New declaration.
3846         * d-namespace.c: New file.
3847
3848 2015-08-13  Pedro Alves  <palves@redhat.com>
3849
3850         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3851         cleanup after the decref cleanup, not before.
3852
3853 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
3854
3855         * ada-lang.c: Include namespace.h
3856         (aux_add_nonlocal_symbols): Fix a function name in comment.
3857         (ada_add_block_renamings): New.
3858         (add_nonlocal_symbols): Add global renamings handling.
3859         (ada_lookup_symbol_list_worker): Move the symbol lookup part
3860         to...
3861         (ada_add_all_symbols): ... this new function.
3862         (ada_add_block_symbols): Try to match the input name against the
3863         "using directives list", perform a recursive symbol lookup on
3864         the matched declarations.
3865         * block.h (struct block): Move the_namespace to top-level as
3866         namespace_info. Remove the language_specific field.
3867         (BLOCK_NAMESPACE): Update access to the namespace_info field.
3868         * buildsym.h (using_directives): Rename into...
3869         (local_using_directives): ... this.
3870         (global_using_directives): New.
3871         (struct context_stack): Rename the using_directives field into
3872         local_using_directives.
3873         * buildsym.c (finish_block_internal): Deal with the proper
3874         using directives repository (local or global).
3875         (prepare_for_building): Reset local_using_directives. Assert
3876         that there is no pending global using directive.
3877         (reset_symtab_globals): Reset global_using_directives and
3878         local_using_directives.
3879         (end_symtab_get_static_block): Don't ignore symtabs that have
3880         only using directives.
3881         (push_context): Update references to local_using_directives.
3882         (buildsym_init): Do not reset using_directives.
3883         * cp-support.c: Include namespace.h.
3884         * cp-support.h (struct using_direct): Move to namespace.h.
3885         (cp_add_using_directives): Move to namespace.h.
3886         * cp-namespace.c: Include namespace.h
3887         (cp_add_using_directive): Move to namespace.c, rename it to
3888         add_using_directive, add a "using_directives" argument and use
3889         it as the pending using directives repository.  All callers
3890         updated.
3891         * dwarf2read.c (using_directives): New.
3892         (read_import_statement): Call using_directives.
3893         (read_func_scope): Update references to local_using_directives.
3894         (read_lexical_block_scope): Likewise.
3895         (read_namespace): Update the heading comment, call
3896         using_directives.
3897         * namespace.h: New file.
3898         * namespace.c: New file.
3899         * Makefile.in (SFILES): Add namespace.c.
3900         (COMMON_OBS): Add namespace.o
3901
3902 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
3903
3904         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3905         compute RETADDR.
3906
3907 2015-08-12  Keith Seitz  <keiths@redhat.com>
3908
3909         * break-catch-throw.c (re_set_exception_catchpoint) Rename
3910         reserved C++ keyword "explicit" to "explicit_loc".
3911         * breakpoint.c (create_overlay_event_breakpoint)
3912         (create_longjmp_master_breakpoint)
3913         (create_std_terminate_master_breakpoint)
3914         (create_exception_master_breakpoint, update_static_tracepoint):
3915         Rename reserved C++ keyword "explicit" to "explicit_loc".
3916         * completer.c (collect_explicit_location_matches)
3917         (explicit_location_completer): Rename reserved C++ keyword
3918         "explicit" to "explicit_loc".
3919         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3920         (canonicalize_linespec, create_sals_line_offset)
3921         (convert_linespec_to_sals, convert_explicit_location_to_sals)
3922         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3923         "explicit" to "explicit_loc".
3924         * location.c (struct event_location) <explicit>: Rename to
3925         "explicit_loc".
3926         (initialize_explicit_location, new_explicit_location)
3927         (explicit_location_to_string_internal, explicit_location_to_linespec):
3928         Rename reserved C++ keyword "explicit" to "explicit_loc".
3929         * location.h (explicit_location_to_string)
3930         (explicit_location_to_linespec, initialize_explicit_location)
3931         (new_explicit_location): Rename reserved C++ keyword "explicit"
3932         to "explicit_loc".
3933         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3934         keyword "explicit" to "explicit_loc".
3935
3936 2015-08-12  Keith Seitz  <keiths@redhat.com>
3937
3938         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3939         and only call decode_line_1 when it is non-NULL.
3940
3941 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
3942
3943         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3944         location address is not meaningful.
3945         (breakpoint_address_is_meaningful): Update comment.
3946
3947 2015-08-11  Keith Seitz  <keiths@redhat.com>
3948
3949         * NEWS: Mention explicit locations.
3950         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3951         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3952         (_initialize_breakpoint): Update documentation for
3953         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3954
3955 2015-08-11  Keith Seitz  <keiths@redhat.com>
3956
3957         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3958         explicit locations, options "--source", "--function",
3959         "--label", and "--line".
3960
3961 2015-08-11  Keith Seitz  <keiths@redhat.com>
3962
3963         * completer.c: Include location.h.
3964         (enum match_type): New enum.
3965         (location_completer): Rename to ...
3966         (linespec_completer): ... this.
3967         (collect_explicit_location_matches, backup_text_ptr)
3968         (explicit_location_completer): New functions.
3969         (location_completer): "New" function; handle linespec
3970         and explicit location completions.
3971         (complete_line_internal): Remove all location completer-specific
3972         handling.
3973         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3974         (find_toplevel_char): Export.
3975         (linespec_parse_line_offset): Export.
3976         Issue error if STRING is not numerical.
3977         (gdb_get_linespec_parser_quote_characters): New function.
3978         * linespec.h (linespec_parse_line_offset): Declare.
3979         (get_gdb_linespec_parser_quote_characters): Declare.
3980         (is_ada_operator): Declare.
3981         (find_toplevel_char): Declare.
3982         (linespec_lexer_lex_keyword): Declare.
3983         * location.c (explicit_to_event_location): New function.
3984         (explicit_location_lex_one): New function.
3985         (string_to_explicit_location): New function.
3986         (string_to_event_location): Handle explicit locations.
3987         * location.h (explicit_to_event_location): Declare.
3988         (string_to_explicit_location): Declare.
3989
3990 2015-08-11  Keith Seitz  <keiths@redhat.com>
3991
3992         * break-catch-throw.c (re_set_exception_catchpoint): Convert
3993         linespec into explicit location.
3994         * breakpoint.c (create_overlay_breakpoint)
3995         (create_longjmp_master_breakpoint)
3996         (create_std_terminate_master_breakpoint)
3997         (create_exception_master_breakpoint): Convert linespec into explicit
3998         location.
3999         (update_static_tracepoint): Convert linespec into explicit location.
4000         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4001         location.h.
4002         (struct linespec) <expression, expr_pc, source_filename>
4003         <function_name, label_name, line_offset>: Replace with ...
4004         <explicit>: ... this.
4005         <is_linespec>: New member.
4006         (PARSER_EXPLICIT): New accessor macro.
4007         (undefined_label_error): New function.
4008         (source_file_not_found_error): New function.
4009         (linespec_parse_basic): The parser result is now an explicit location.
4010         Use PARSER_EXPLICIT to access it.
4011         Use undefined_label_error.
4012         (canonicalize_linespec): Convert canonical linespec into explicit
4013         location.
4014         Move string representation of location to explicit_location_to_linespec
4015         and use it and explicit_location_to_string to save string
4016         representations of the canonical location.
4017         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4018         explicit location.  Update all references.
4019         (convert_explicit_location_to_sals): New function.
4020         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4021         result's explicit location.
4022         (linespec_state_constructor): Initialize is_linespec.
4023         Use PARSER_EXPLICIT.
4024         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4025         result.
4026         (event_location_to_sals): For linespec locations, set is_linespec.
4027         Handle explicit locations.
4028         (decode_objc): 'ls' contains an explicit location now. Update all
4029         references.
4030         (symtabs_from_filename): Use source_file_not_found_error.
4031         * location.c (struct event_location.u) <explicit>: New member.
4032         (initialize_explicit_location): New function.
4033         (initialize_event_location): Initialize explicit locations.
4034         (new_explicit_location, get_explicit_location)
4035         (get_explicit_location_const): New functions.
4036         (explicit_to_string_internal): New function; most of contents moved
4037         from canonicalize_linespec.
4038         (explicit_location_to_string): New function.
4039         (explicit_location_to_linespec): New function.
4040         (copy_event_location, delete_event_location)
4041         (event_location_to_string_const, event_location_empty_p): Handle
4042         explicit locations.
4043         * location.h (enum offset_relative_sign, struct line_offset): Move
4044         here from linespec.h.
4045         (enum event_location_type): Add EXPLICIT_LOCATION.
4046         (struct explicit_location): New structure.
4047         (explicit_location_to_string): Declare.
4048         (explicit_location_to_linespec): Declare.
4049         (new_explicit_location, get_explicit_locationp
4050         (get_explicit_location_const, initialize_explicit_location): Declare.
4051
4052 2015-08-11  Keith Seitz  <keiths@redhat.com>
4053
4054         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4055         linespec for stap probe to probe location.
4056         * breakpoint.c (create_longjmp_master_breakpoint)
4057         (create_exception_master_breakpoint): Likewise.
4058         (break_command_1): Remove local variable `arg_cp'.
4059         Check location type to set appropriate breakpoint ops methods.
4060         (trace_command): Likewise.
4061         * linespec.c (event_location_to_sals): Assert on probe locations.
4062         * location.c (EL_PROBE): Add macro definition.
4063         (new_probe_location, get_probe_location): New functions.
4064         (copy_event_location, delete_event_location, event_location_to_string)
4065         (string_to_event_location, event_location_empty_p): Handle probe
4066         locations.
4067         * location.h (enum event_location_type): Add PROBE_LOCATION.
4068         (new_probe_location, get_probe_location): Declare.
4069         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4070         Convert linespec into probe location.
4071
4072 2015-08-11  Keith Seitz  <keiths@redhat.com>
4073
4074         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4075         Convert linespec to address location.
4076         * linespec.c (canonicalize_linespec): Do not handle address
4077         locations here.
4078         (convert_address_location_to_sals): New function; contents moved
4079         from ...
4080         (convert_linespc_to_sals): ... here.
4081         (parse_linespec): Remove address locations from linespec grammar.
4082         Remove handling of address locations.
4083         (linespec_lex_to_end): Remove handling of address linespecs.
4084         (event_location_to_sals): Handle ADDRESS_LOCATION.
4085         (linespec_expression_to_pc): Export.
4086         * linespec.h (linespec_expression_to_pc): Add declaration.
4087         * location.c (struct event_location.u) <address>: New member.
4088         (new_address_location, get_address_location): New functions.
4089         (copy_event_location, delete_event_location, event_location_to_string)
4090         (string_to_event_location, event_location_empty_p): Handle address
4091         locations.
4092         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4093         (new_address_location, get_address_location): Declare.
4094         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4095         to address location.
4096         * spu-tdep.c (spu_catch_start): Likewise.
4097
4098 2015-08-11  Keith Seitz  <keiths@redhat.com>
4099
4100         * ax-gdb.c: Include location.h.
4101         (agent_command_1) Use linespec location instead of address
4102         string.
4103         * break-catch-throw.c: Include location.h.
4104         (re_set_exception_catchpoint): Use linespec locations instead
4105         of address strings.
4106         * breakpoint.c: Include location.h.
4107         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4108         (create_std_terminate_master_breakpoint)
4109         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4110         Use linespec location instead of address string.
4111         (print_breakpoint_location):  Use locations and
4112         event_location_to_string.
4113         Print extra_string for pending locations for non-MI streams.
4114         (print_one_breakpoint_location): Use locations and
4115         event_location_to_string.
4116         (init_raw_breakpoint_without_location): Initialize b->location.
4117         (create_thread_event_breakpoint): Use linespec location instead of
4118         address string.
4119         (init_breakpoint_sal): Likewise.
4120         Only save extra_string if it is non-NULL and not the empty string.
4121         Use event_location_to_string instead of `addr_string'.
4122         Constify `p' and `endp'.
4123         Use skip_spaces_const/skip_space_const instead of non-const versions.
4124         Copy the location into the breakpoint.
4125         If LOCATION is NULL, save the breakpoint address as a linespec location
4126         instead of an address string.
4127         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4128         event_location. All uses updated.
4129         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4130         (parse_breakpoint_sals): Use locations instead of address strings.
4131         Remove check for empty linespec with conditional.
4132         Refactor.
4133         (decode_static_tracepoint_spec): Make argument const and update
4134         function.
4135         (create_breakpoint): Change `arg' to a struct event_location and
4136         rename.
4137         Remove `copy_arg' and `addr_start'.
4138         If EXTRA_STRING is empty, set it to NULL.
4139         Don't populate `canonical' for pending breakpoints.
4140         Pass `extra_string' to find_condition_and_thread.
4141         Clear `extra_string' if `rest' was NULL.
4142         Do not error with "garbage after location" if setting a dprintf
4143         breakpoint.
4144         Copy the location into the breakpoint instead of an address string.
4145         (break_command_1): Use string_to_event_location and pass this to
4146         create_breakpoint instead of an address string.
4147         Check against `arg_cp' for a probe linespec.
4148         (dprintf_command): Use string_to_event_location and pass this to
4149         create_breakpoint instead of an address string.
4150         Throw an exception if no format string was specified.
4151         (print_recreate_ranged_breakpoint): Use event_location_to_string
4152         instead of address strings.
4153         (break_range_command, until_break_command)
4154         (init_ada_exception_breakpoint): Use locations instead
4155         of address strings.
4156         (say_where): Print out extra_string for pending locations.
4157         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4158         the breakpoint.
4159         (base_breakpoint_create_sals_from_location): Use struct event_location
4160         instead of address string.
4161         Remove `addr_start' and `copy_arg' parameters.
4162         (base_breakpoint_decode_location): Use struct event_location instead of
4163         address string.
4164         (bkpt_re_set): Use locations instead of address strings.
4165         Use event_location_empty_p to check for unset location.
4166         (bkpt_print_recreate): Use event_location_to_string instead of
4167         an address string.
4168         Print out extra_string for pending locations.
4169         (bkpt_create_sals_from_location, bkpt_decode_location)
4170         (bkpt_probe_create_sals_from_location): Use struct event_location
4171         instead of address string.
4172         (bkpt_probe_decode_location): Use struct event_location instead of
4173         address string.
4174         (tracepoint_print_recreate): Use event_location_to_string to
4175         recreate the tracepoint.
4176         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4177         (tracepoint_probe_create_sals_from_location)
4178         (tracepoint_probe_decode_location): Use struct event_location
4179         instead of address string.
4180         (dprintf_print_recreate): Use event_location_to_string to recreate
4181         the dprintf.
4182         (dprintf_re_set): Remove check for valid/missing format string.
4183         (strace_marker_create_sals_from_location)
4184         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4185         (update_static_tracepoint): Use struct event_location instead of
4186         address string.
4187         (location_to_sals): Likewise.
4188         Pass `extra_string' to find_condition_and_thread.
4189         For newly resolved pending breakpoint locations, clear the location's
4190         string representation.
4191         Assert that the breakpoint's condition string is NULL when
4192         condition_not_parsed.
4193         (breakpoint_re_set_default, create_sals_from_location_default)
4194         (decode_location_default, trace_command, ftrace_command)
4195         (strace_command, create_tracepoint_from_upload): Use locations
4196         instead of address strings.
4197         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4198         Use struct event_location instead of address string.
4199         Update all uses.
4200         <decode_location>: Likewise.
4201         (struct breakpoint) <addr_string>: Change to struct event_location
4202         and rename `location'.
4203         <addr_string_range_end>: Change to struct event_location and rename
4204         `location_range_end'.
4205         (create_breakpoint): Use struct event_location instead of address
4206         string.
4207         * cli/cli-cmds.c: Include location.h.
4208         (edit_command, list_command): Use locations instead of address strings.
4209         * elfread.c: Include location.h.
4210         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4211         * guile/scm-breakpoint.c: Include location.h.
4212         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4213         (gdbscm_register_breakpoint): Use locations instead of address
4214         strings.
4215         * linespec.c: Include location.h.
4216         (struct ls_parser) <stream>: Change to const char *.
4217         (PARSER_STREAM): Update.
4218         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4219         keywords must be followed by whitespace.
4220         (canonicalize_linespec): Save a linespec location into `canonical'.
4221         Save a canonical linespec into `canonical'.
4222         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4223         All uses updated.
4224         Update function description.
4225         (linespec_parser_new): Initialize `parser'.
4226         Update initialization of  parsing stream.
4227         (event_location_to_sals): New function.
4228         (decode_line_full): Change `argptr' to a struct event_location and
4229         rename it `location'.
4230         Use locations instead of address strings.
4231         Call event_location_to_sals instead of parse_linespec.
4232         (decode_line_1): Likewise.
4233         (decode_line_with_current_source, decode_line_with_last_displayed)
4234         Use locations instead of address strings.
4235         (decode_objc): Likewise.
4236         Change `argptr' to const char * and rename `arg'.
4237         (destroy_linespec_result): Delete the linespec result's location
4238         instead of freeing the address string.
4239         * linespec.h (struct linespec_result) <addr_string>: Change to
4240         struct event_location and rename to ...
4241         <location>: ... this.
4242         (decode_line_1, decode_line_full): Change `argptr' to struct
4243         event_location.  All callers updated.
4244         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4245         (mi_cmd_break_insert_1): Use locations instead of address strings.
4246         Throw an error if there was "garbage" at the end of the specified
4247         linespec.
4248         * probe.c: Include location.h.
4249         (parse_probes): Change `argptr' to struct event_location.
4250         Use event locations instead of address strings.
4251         * probe.h (parse_probes): Change `argptr' to struct event_location.
4252         * python/py-breakpoint.c: Include location.h.
4253         (bppy_get_location): Constify local variable `str'.
4254         Use event_location_to_string.
4255         (bppy_init): Use locations instead of address strings.
4256         * python/py-finishbreakpoint.c: Include location.h.
4257         (bpfinishpy_init): Remove local variable `addr_str'.
4258         Use locations instead of address strings.
4259         * python/python.c: Include location.h.
4260         (gdbpy_decode_line): Use locations instead of address strings.
4261         * remote.c: Include location.h.
4262         (remote_download_tracepoint): Use locations instead of address
4263         strings.
4264         * spu-tdep.c: Include location.h.
4265         (spu_catch_start): Remove local variable `buf'.
4266         Use locations instead of address strings.
4267         * tracepoint.c: Include location.h.
4268         (scope_info): Use locations instead of address strings.
4269         (encode_source_string): Constify parameter `src'.
4270         * tracepoint.h (encode_source_string): Likewise.
4271
4272 2015-08-11  Keith Seitz  <keiths@redhat.com>
4273
4274         * Makefile.in (SFILES): Add location.c.
4275         (HFILES_NO_SRCDIR): Add location.h.
4276         (COMMON_OBS): Add location.o.
4277         * linespec.c (linespec_lex_to_end): New function.
4278         * linespec.h (linespec_lex_to_end): Declare.
4279         * location.c: New file.
4280         * location.h: New file.
4281
4282 2015-08-11  Keith Seitz  <keiths@redhat.com>
4283
4284         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4285         Renamed to create_sals_from_location.
4286         <decode_linespec>: Renamed to decode_location.
4287         Update all callers.
4288         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4289         (create_sals_from_location_default): ... this.
4290         (addr_string_to_sals): Renamed to ...
4291         (location_to_sals): ... this.
4292         (decode_linespec_default): Renamed to ...
4293         (decode_location_default): ... this.
4294         (base_breakpoint_create_sals_from_address): Renamed to ...
4295         (base_breakpoint_create_sals_from_location): ... this.
4296         (bkpt_create_sals_from_address): Renamed to ...
4297         (bkpt_create_sals_from_location): ... this.
4298         (bkpt_decode_linespec): Renamed to ...
4299         (bkpt_decode_location): ... this.
4300         (bkpt_probe_create_sals_from_address): Renamed to ...
4301         (bkpt_probe_create_sals_from_location): ... this.
4302         (tracepoint_create_sals_from_address): Renamed to ...
4303         (tracepoint_create_sals_from_location): ... this.
4304         (tracepoint_decode_linespec): Renamed to ...
4305         (tracepoint_decode_location): ... this.
4306         (tracepoint_probe_create_sals_from_address): Renamed to ...
4307         (tracepoint_probe_create_sals_from_location): ... this.
4308         (tracepoint_probe_decode_linespec): Renamed to ...
4309         (tracepoint_probe_decode_location): ... this.
4310         (strace_marker_create_sals_from_address): Renamed to ...
4311         (strace_marker_create_sals_from_location): ... this.
4312         (decode_linespec_default): Renamed to ...
4313         (decode_location_default): ... this.
4314
4315 2015-08-10  Doug Evans  <dje@google.com>
4316             Keith Seitz  <keiths@redhat.com>
4317
4318         PR gdb/17960
4319         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4320         make_file_symbol_completion_list and made static.
4321         (make_file_symbol_completion_list): New function.
4322
4323 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4324
4325         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4326         trailing new-line at end of warning message.
4327         (proceed): Add i18n marker to error messages.
4328
4329 2015-08-07  Pedro Alves  <palves@redhat.com>
4330
4331         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4332
4333 2015-08-07  Pedro Alves  <palves@redhat.com>
4334
4335         * s390-linux-tdep.c (is_non_branch_ril)
4336         (s390_displaced_step_copy_insn): New functions.
4337         (s390_displaced_step_fixup): Update comment.
4338         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4339         gdbarch_displaced_step_copy_insn hook.
4340
4341 2015-08-07  Pedro Alves  <palves@redhat.com>
4342
4343         * infrun.c (displaced_step_prepare_throw): Return -1 if
4344         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4345         comment.
4346         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4347         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4348         in file.
4349         (ppc_displaced_step_copy_insn): New function.
4350         (ppc_displaced_step_fixup): Update comment.
4351         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4352         gdbarch_displaced_step_copy_insn hook.
4353         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4354         NULL return.
4355         * gdbarch.h: Regenerate.
4356
4357 2015-08-07  Pedro Alves  <palves@redhat.com>
4358
4359         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4360         field.
4361         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4362         Return false if dispaced stepping failed before.
4363         (resume): Pass the current inferior to
4364         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4365         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4366         displaced_stepping_failed flag, and fall back to an in-line
4367         step-over.
4368
4369 2015-08-07  Pedro Alves  <palves@redhat.com>
4370
4371         * darwin-nat.c (darwin_stop): Rename to ...
4372         (darwin_interrupt): ... this.
4373         (_initialize_darwin_inferior): Adjust.
4374         * gnu-nat.c (gnu_stop): Delete.
4375         (gnu_target): Don't install gnu_stop.
4376         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4377         (inf_ptrace_interrupt): ... this.
4378         (inf_ptrace_target): Adjust.
4379         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4380         target_stop.
4381         * linux-nat (linux_nat_stop): Rename to ...
4382         (linux_nat_interrupt): ... this.
4383         (linux_nat_stop): Reimplement.
4384         (linux_nat_add_target): Install linux_nat_interrupt.
4385         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4386         (nto_handle_sigint_twice): ... this.
4387         (nto_interrupt): Rename to ...
4388         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4389         target_stop.
4390         (procfs_wait): Adjust.
4391         (procfs_stop): Rename to ...
4392         (procfs_interrupt): ... this.
4393         (init_procfs_targets): Adjust.
4394         * procfs.c (procfs_stop): Rename to ...
4395         (procfs_interrupt): ... this.
4396         (procfs_target): Adjust.
4397         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4398         (m32r_interrupt): ... this.
4399         (init_m32r_ops): Adjust.
4400         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4401         (gdbsim_interrupt_inferior): ... this.
4402         (gdbsim_stop): Rename to ...
4403         (gdbsim_interrupt): ... this.
4404         (gdbsim_cntrl_c): Adjust.
4405         (init_gdbsim_ops): Adjust.
4406         * remote.c (sync_remote_interrupt): Adjust comments.
4407         (remote_stop_as): Rename to ...
4408         (remote_interrupt_as): ... this.
4409         (remote_stop): Adjust comment.
4410         (remote_interrupt): New function.
4411         (init_remote_ops): Install remote_interrupt.
4412         * target.c (target_interrupt): New function.
4413         * target.h (struct target_ops) <to_interrupt>: New field.
4414         (target_interrupt): New declaration.
4415         * windows-nat.c (windows_stop): Rename to ...
4416         (windows_interrupt): ... this.
4417         * target-delegates.c: Regenerate.
4418
4419 2015-08-07  Pedro Alves  <palves@redhat.com>
4420
4421         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4422         threads" as alternative to "switching back to stepped thread".
4423
4424 2015-08-07  Pedro Alves  <palves@redhat.com>
4425
4426         * NEWS: Mention "maint set/show target-non-stop".
4427         * breakpoint.c (update_global_location_list): Check
4428         target_is_non_stop_p instead of non_stop.
4429         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4430         * infrun.c (show_can_use_displaced_stepping)
4431         (can_use_displaced_stepping_p, start_step_over_inferior):
4432         Likewise.
4433         (internal_resume_ptid): New function.
4434         (resume): Use it.
4435         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4436         all-stop mode but the target is always in non-stop mode, start all
4437         the other threads that are implicitly resumed too.
4438         (for_each_just_stopped_thread, fetch_inferior_event)
4439         (adjust_pc_after_break, stop_all_threads): Check
4440         target_is_non_stop_p instead of non_stop.
4441         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4442         with the target always in non-stop mode.
4443         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4444         instead of non_stop.
4445         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4446         instead of non_stop.
4447         (keep_going_stepped_thread): Use internal_resume_ptid.
4448         (stop_waiting): If in all-stop mode, and the target is in non-stop
4449         mode, stop all threads.
4450         (keep_going_pass): Likewise, when starting a new in-line step-over
4451         sequence.
4452         * linux-nat.c (get_pending_status, select_event_lwp)
4453         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4454         target_is_non_stop_p instead of non_stop.
4455         (linux_nat_always_non_stop_p): New function.
4456         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4457         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4458         * target-delegates.c: Regenerate.
4459         * target.c (target_is_non_stop_p): New function.
4460         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4461         (maint_set_target_non_stop_command)
4462         (maint_show_target_non_stop_command): New functions.
4463         (_initilize_target): Install "maint set/show target-non-stop"
4464         commands.
4465         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4466         (target_non_stop_enabled): New declaration.
4467         (target_is_non_stop_p): New declaration.
4468
4469 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4470
4471         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4472         has a pending status, return true.
4473         * gdbthread.h: Include target/waitstatus.h.
4474         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4475         stop_pc>: New fields.
4476         (struct thread_info) <resumed>: New field.
4477         (set_resumed): Declare.
4478         * infrun.c: Include "event-loop.h".
4479         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4480         (infrun_async): New function.
4481         (clear_step_over_info): Add debug output.
4482         (displaced_step_in_progress_any_inferior): New function.
4483         (displaced_step_fixup): New returns int.
4484         (start_step_over): Handle in-line step-overs too.  Assert the
4485         thread is marked resumed.
4486         (resume_cleanups): Clear the thread's resumed flag.
4487         (resume): Set the thread's resumed flag.  Return early if the
4488         thread has a pending status.  Allow stepping a breakpoint with no
4489         signal.
4490         (proceed): Adjust to check 'resumed' instead of 'executing'.
4491         (clear_proceed_status_thread): If the thread has a pending status,
4492         and that status is a finished step, discard the pending status.
4493         (clear_proceed_status): Don't clear step_over_info here.
4494         (random_pending_event_thread, do_target_wait): New functions.
4495         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4496         do_target_wait.
4497         (wait_one): New function.
4498         (THREAD_STOPPED_BY): New macro.
4499         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4500         (thread_stopped_by_hw_breakpoint): New functions.
4501         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4502         functions.
4503         (handle_inferior_event): Also call set_resumed(false) on all
4504         threads implicitly stopped by the event.
4505         (restart_threads, resumed_thread_with_pending_status): New
4506         functions.
4507         (finish_step_over): If we were doing an in-line step-over before,
4508         and no longer are after trying to start a new step-over, restart
4509         all threads.  If we have multiple threads with pending events,
4510         save the current event and go through the event loop again.
4511         (handle_signal_stop): Return early if finish_step_over returns
4512         false.
4513         <random signal>: If we get a signal while stepping over a
4514         breakpoint in-line in non-stop mode, restart all threads.  Clear
4515         step_over_info before delivering the signal.
4516         (keep_going_stepped_thread): Use internal_error instead of
4517         gdb_assert.  Mark the thread as resumed.
4518         (keep_going_pass_signal): Assert the thread isn't already resumed.
4519         If some other thread is doing an in-line step-over, defer the
4520         resume.  If we just started a new in-line step-over, stop all
4521         threads.  Don't clear step_over_info.
4522         (infrun_async_inferior_event_handler): New function.
4523         (_initialize_infrun): Create async event handler with
4524         infrun_async_inferior_event_handler as callback.
4525         (infrun_async): New declaration.
4526         * target.c (target_async): New function.
4527         * target.h (target_async): Declare macro and readd as function
4528         declaration.
4529         * target/waitstatus.h (enum target_stop_reason)
4530         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4531         * thread.c (new_thread): Clear the new waitstatus field.
4532         (set_resumed): New function.
4533
4534 2015-08-07  Pedro Alves  <palves@redhat.com>
4535
4536         * infrun.c (keep_going_stepped_thread): New function, factored out
4537         from ...
4538         (switch_back_to_stepped_thread): ... here.
4539
4540 2015-08-07  Pedro Alves  <palves@redhat.com>
4541
4542         * infrun.c (currently_stepping): Extend intro comment.
4543         * target.h (target_resume): Extend intro comment.
4544
4545 2015-08-07  Pedro Alves  <palves@redhat.com>
4546
4547         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4548         of inferior_ptid.  If the stepped thread vanished, return 0
4549         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4550         the current stop_pc in log message.  Clear trap_expected if the
4551         thread advanced.  Don't pass currently_stepping to
4552         do_target_resume.
4553
4554 2015-08-07  Pedro Alves  <palves@redhat.com>
4555
4556         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4557         * infrun.c (struct execution_control_state): Move higher up in the
4558         file.
4559         (reset_ecs): New function.
4560         (start_step_over): Now returns int.  Rewrite to use
4561         keep_going_pass_signal instead of manually starting a displaced step.
4562         (resume): Don't call set_running here.  If displaced stepping
4563         can't start now, clear trap_expected.
4564         (find_thread_needs_step_over): Delete function.
4565         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4566         If the current thread needs a step over, push it in the step-over
4567         chain.  Don't set insert breakpoints nor call resume directly
4568         here.  Instead rewrite to use start_step_over and
4569         keep_going_pass_signal.
4570         (finish_step_over): New function.
4571         (handle_signal_stop): Call finish_step_over instead of
4572         start_step_over.
4573         (switch_back_to_stepped_thread): If the event thread needs another
4574         step-over do that first.  Use start_step_over.
4575         (keep_going_pass_signal): New function, factored out from ...
4576         (keep_going): ... here.
4577         (_initialize_infrun): Comment moved here.
4578         * thread.c (set_running_thread): New function.
4579         (set_running, finish_thread_state): Use set_running_thread.
4580
4581 2015-08-07  Pedro Alves  <palves@redhat.com>
4582
4583         * gdbthread.h (struct thread_info) <step_over_prev,
4584         step_over_next>: New fields.
4585         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4586         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4587         declarations.
4588         * infrun.c (struct displaced_step_request): Delete.
4589         (struct displaced_step_inferior_state) <step_request_queue>:
4590         Delete field.
4591         (displaced_step_prepare): Assert that trap_expected is set.  Use
4592         thread_step_over_chain_enqueue.  Split starting a new displaced
4593         step to ...
4594         (start_step_over): ... this new function.
4595         (resume): Assert the thread isn't waiting for a step over already.
4596         (proceed): Assert the thread isn't waiting for a step over
4597         already.
4598         (infrun_thread_stop_requested): Adjust to remove threads from the
4599         embedded step-over chain.
4600         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4601         displaced_step_fixup.
4602         (handle_signal_stop): Call start_step_over after
4603         displaced_step_fixup.
4604         * infrun.h (step_over_queue_head): New declaration.
4605         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4606         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4607         (thread_step_over_chain_enqueue)
4608         (thread_step_over_chain_remove): New functions.
4609         (delete_thread_1): Remove thread from the step-over chain.
4610
4611 2015-08-07  Pedro Alves  <palves@redhat.com>
4612
4613         * infrun.c (thread_still_needs_step_over): Rename to ...
4614         (thread_still_needs_step_over_bp): ... this.
4615         (enum step_over_what): New.
4616         (thread_still_needs_step_over): Reimplement.
4617
4618 2015-08-07  Pedro Alves  <palves@redhat.com>
4619
4620         * remote.c (remote_wait_as): If not waiting for a stop reply,
4621         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4622         requested, don't block waiting forever.
4623
4624 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4625
4626         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4627         waitstatus pointers instead of an ecs.  Adjust.
4628         (handle_inferior_event): Adjust caller.
4629
4630 2015-08-07  Pedro Alves  <palves@redhat.com>
4631
4632         * infrun.c (handle_inferior_event): If we get
4633         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4634         mode, mark all threads of the exiting process as not-executing.
4635         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4636         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4637         exiting process, if inferior_ptid still points at a process.
4638         * thread.c (struct current_thread_cleanup) <next>: New field.
4639         (current_thread_cleanup_chain): New global.
4640         (restore_current_thread_ptid_changed): New function.
4641         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4642         current_thread_cleanup_chain list.
4643         (make_cleanup_restore_current_thread): Add the cleanup data to the
4644         current_thread_cleanup_chain list.
4645         (_initialize_thread): Install restore_current_thread_ptid_changed
4646         as thread_ptid_changed observer.
4647
4648 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4649
4650         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4651         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4652         smaller than expected.
4653
4654 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4655
4656         * stack.c (get_frame_language): Moved ...
4657         * frame.c (get_frame_language): ... to here.
4658         * language.h (get_frame_language): Declaration moved to frame.h.
4659         * frame.h: Add language.h include, for language enum.
4660         (get_frame_language): Declaration moved from language.h.
4661         * language.c: Add frame.h include.
4662         * top.c: Add frame.h include.
4663         * symtab.h (struct obj_section): Declare.
4664         (struct cmd_list_element): Declare.
4665
4666 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4667
4668         * language.c (show_language_command): Find selected frame before
4669         asking for the language of that frame.
4670         (set_language_command): Likewise.
4671         * language.h (get_frame_language): Add frame parameter.
4672         * stack.c (get_frame_language): Add frame parameter, assert
4673         parameter is not NULL, update comment and reindent.
4674         * top.c (check_frame_language_change): Pass the selected frame
4675         into get_frame_language.
4676
4677 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4678
4679         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4680         (pt_btrace_insn_flags): New.
4681         (ftrace_add_pt): Call pt_btrace_insn_flags.
4682         * btrace.h (btrace_insn_flag): New.
4683         (btrace_insn) <flags>: New.
4684         * record-btrace.c (btrace_insn_history): Print insn prefix.
4685         * NEWS: Announce it.
4686
4687 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4688
4689         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4690         * configure: Regenerate.
4691
4692 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4693
4694         * Makefile.in (LIBICONV): Define.
4695         (CLIBS): Add LIBICONV.
4696         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4697         * configure: Regenerate.
4698
4699 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4700             Pedro Alves  <palves@redhat.com>
4701
4702         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4703         (arm_set_abi): Likewise.
4704         * ax-general.c (ax_print): Likewise.
4705         * c-exp.y (exp : string_exp): Likewise.
4706         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4707         (do_compile_dwarf_expr_to_c): Likewise.
4708         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4709         Likewise.
4710         * dwarf2expr.c (execute_stack_op): Likewise.
4711         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4712         (disassemble_dwarf_expression): Likewise.
4713         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4714         (read_array_order): Likewise.
4715         (abbrev_table_read_table): Likewise.
4716         (read_attribute_value): Likewise.
4717         (skip_unknown_opcode): Likewise.
4718         (dwarf_decode_macro_bytes): Likewise.
4719         (dwarf_decode_macros): Likewise.
4720         * eval.c (value_f90_subarray): Likewise.
4721         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4722         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4723         * infrun.c (handle_command): Likewise.
4724         * memory-map.c (memory_map_start_memory): Likewise.
4725         * osabi.c (set_osabi): Likewise.
4726         * parse.c (operator_length_standard): Likewise.
4727         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4728         single return point.
4729         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4730         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4731         (gdbpy_lookup_global_symbol): Likewise.
4732         * record-full.c (record_full_restore): Likewise.
4733         * regcache.c (regcache_register_status): Likewise.
4734         (regcache_raw_read): Likewise.
4735         (regcache_cooked_read): Likewise.
4736         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4737         * symtab.c (initialize_ordinary_address_classes): Likewise.
4738         * target-debug.h (target_debug_print_signals): Likewise.
4739         * utils.c (do_restore_current_language): Likewise.
4740
4741 2015-08-06  Clem Dickey  <clemd@acm.org>
4742
4743         PR python/17136
4744         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4745
4746 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4747
4748         * complaints.c (enum complaint_series): Add newlines and remove
4749         out of date comment.
4750         (struct complaints) <series>: Change type to enum
4751         complaint_series and remove out of date comment.
4752         (symfile_complaint_hook): Use equivalent enum value
4753         ISOLATED_MESSAGE instead of 0.
4754
4755 2015-08-06  Pedro Alves  <palves@redhat.com>
4756
4757         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4758         returned > 0.
4759
4760 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
4761
4762         * common/agent.c (symbol_list) <required>: Remove.
4763
4764 2015-08-06  Pedro Alves  <palves@redhat.com>
4765
4766         * target/waitstatus.h (enum target_stop_reason)
4767         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4768
4769 2015-08-05  Pedro Alves  <palves@redhat.com>
4770             Joel Brobecker  <brobecker@adacore.com>
4771
4772         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4773         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4774         case where BS->STOP is not set.
4775
4776 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
4777
4778         * nat/gdb_thread_db.h: Add copyright header.
4779         Protect against multiple inclusion.
4780
4781 2015-08-05  Yao Qi  <yao.qi@linaro.org>
4782
4783         * aarch64-linux-nat.c (get_thread_id): Remove.
4784         (debug_reg_change_callback): Call ptid_get_lwp instead of
4785         get_thread_id.
4786         (fetch_gregs_from_thread): Likewise.
4787         (store_gregs_to_thread): Likewise.
4788         (fetch_fpregs_from_thread): Likewise.
4789         (store_fpregs_to_thread): Likewise.
4790         (aarch64_linux_get_debug_reg_capacity): Likewise.
4791         * arm-linux-nat.c (get_thread_id): Remove.
4792         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4793         * xtensa-linux-nat.c (get_thread_id): Remove.
4794         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4795         * arm-linux-nat.c (get_thread_id): Remove.
4796         (GET_THREAD_ID): Remove.
4797         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4798         (store_fpregs, fetch_regs, store_regs): Likewise.
4799         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4800         (fetch_vfp_regs, store_vfp_regs): Likewise.
4801         (arm_linux_read_description): Likewise.
4802         (arm_linux_get_hwbp_cap): Likewise.
4803         * xtensa-linux-nat.c (get_thread_id): Remove.
4804         (GET_THREAD_ID): Remove.
4805         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4806         GET_THREAD_ID.
4807
4808 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
4809
4810         * python/py-linetable.c: Fix case of Linetable to LineTable
4811         in docstrings and code comments.
4812         * python/py-symtab.c: Same.
4813
4814 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4815
4816         * infcmd.c (signal_command): Call do_cleanups for args_chain.
4817
4818 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4819
4820         PR gdb/18767
4821         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4822         use.
4823
4824 2015-08-04  Pedro Alves  <palves@redhat.com>
4825
4826         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4827         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4828         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4829         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4830         (td_thr_validate_ftype, td_thr_get_info_ftype)
4831         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4832         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4833         New typedefs.
4834         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4835         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4836         local macros and use them instead of verbose_dlsym and dlsym
4837         calls.
4838
4839 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
4840
4841         * nios2-tdep.h: Include opcode/nios2.h here.
4842         (NIOS2_CDX_OPCODE_SIZE): New.
4843         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4844         * nios2-tdep.c: Don't include opcode/nios2.h here.
4845         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4846         4-byte read fails.
4847         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4848         (nios2_match_addi, nios2_match_orhi): Likewise.
4849         (nios2_match_stw, nios2_match_ldw): Likewise.
4850         (nios2_match_rdctl): Likewise.
4851         (nios2_match_stwm, nios2_match_ldwm): New.
4852         (nios2_match_branch): Add cases for R2 encodings.
4853         (nios2_match_jmpi, nios2_match_calli): Likewise.
4854         (nios2_match_jmpr, nios2_match_callr): Likewise.
4855         (nios2_match_break, nios2_match_trap): Likewise.
4856         (nios2_in_epilogue_p): Add R2 support.
4857         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
4858         prologues.
4859         (nios2_breakpoint_from_pc): Handle R2 instructions.
4860         (nios2_get_next_pc): Likewise.  Adjust call to
4861         tdep->syscall_next_pc.
4862         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4863         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
4864         instruction field macros instead of literal hex values.
4865         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4866         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4867         Use size field from OP instead of assuming all instructions
4868         are the same size.
4869         (nios2_linux_init_abi): Register appropriate unwinder for mach.
4870
4871 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
4872
4873         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4874         variable warning with some compilers.
4875
4876 2015-08-03  Yao Qi  <yao.qi@linaro.org>
4877
4878         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4879         in comment.  Replace "rw" with "type".
4880         (arm_linux_remove_watchpoint): Change type of "rw" to
4881         "enum target_hw_bp_type".
4882
4883 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
4884
4885         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4886         lookup_symbol.
4887         * ft32-tdep.c (ft32_skip_prologue): Likewise.
4888         * moxie-tdep.c (moxie_skip_prologue): Likewise.
4889         * mt-tdep.c (mt_skip_prologue): Likewise.
4890         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4891
4892 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4893
4894         * ada-exp.y (write_object_renaming): Replace struct
4895         ada_symbol_info with struct block_symbol.  Update field
4896         references accordingly.
4897         (block_lookup, select_possible_type_sym): Likewise.
4898         (find_primitive_type): Likewise.  Also update call to
4899         ada_lookup_symbol to extract the symbol itself.
4900         (write_var_or_type, write_name_assoc): Likewise.
4901         * ada-lang.h (struct ada_symbol_info): Remove.
4902         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4903         struct block_symbol.
4904         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4905         (ada_lookup_symbol): Return struct block_symbol instead of a
4906         mere symbol.
4907         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4908         with struct block_symbol.
4909         (resolve_subexp, ada_resolve_function, sort_choices,
4910         user_select_syms, is_nonfunction, add_defn_to_vec,
4911         num_defns_collected, defns_collected,
4912         symbols_are_identical_enums, remove_extra_symbols,
4913         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4914         ada_lookup_symbol_list, ada_iterate_over_symbols,
4915         ada_lookup_encoded_symbol, get_var_value): Likewise.
4916         (ada_lookup_symbol): Return a block_symbol instead of a mere
4917         symbol.  Replace struct ada_symbol_info with struct
4918         block_symbol.
4919         (ada_lookup_symbol_nonlocal): Likewise.
4920         (standard_lookup): Make block passing explicit through
4921         lookup_symbol_in_language.
4922         * ada-tasks.c (get_tcb_types_info): Update the calls to
4923         lookup_symbol_in_language to extract the mere symbol out of the
4924         returned value.
4925         (ada_tasks_inferior_data_sniffer): Likewise.
4926         * ax-gdb.c (gen_static_field): Likewise for the call to
4927         lookup_symbol.
4928         (gen_maybe_namespace_elt): Deal with struct block_symbol from
4929         lookup functions.
4930         (gen_expr): Likewise.
4931         * c-exp.y: Likewise.  Remove uses of block_found.
4932         (lex_one_token, classify_inner_name, c_print_token): Likewise.
4933         (classify_name): Likewise.  Rename the "sym" local variable to
4934         "bsym".
4935         * c-valprint.c (print_unpacked_pointer): Likewise.
4936         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4937         "sym" parameter from struct symbol * to struct block_symbol.
4938         Use it to remove uses of block_found.  Deal with struct
4939         block_symbol from lookup functions.
4940         (gcc_convert_symbol): Likewise.  Update the call to
4941         convert_symbol_sym.
4942         * compile/compile-object-load.c (compile_object_load): Deal with
4943         struct block_symbol from lookup functions.
4944         * cp-namespace.c (cp_lookup_nested_symbol_1,
4945         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4946         cp_search_static_and_baseclasses,
4947         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4948         cp_lookup_symbol_imports_or_template,
4949         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4950         lookup_namespace_scope, cp_lookup_nonlocal,
4951         find_symbol_in_baseclass): Return struct block_symbol instead of
4952         mere symbols and deal with struct block_symbol from lookup
4953         functions.
4954         * cp-support.c (inspect_type, replace_typedefs,
4955         cp_lookup_rtti_type): Deal with struct block_symbol from
4956         lookup functions.
4957         * cp-support.h (cp_lookup_symbol_nonlocal,
4958         cp_lookup_symbol_from_namespace,
4959         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4960         Return struct block_symbol instead of mere symbols.
4961         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4962         push_module_name):
4963         Deal with struct block_symbol from lookup functions.  Remove
4964         uses of block_found.
4965         * eval.c (evaluate_subexp_standard): Update call to
4966         cp_lookup_symbol_namespace.
4967         * f-exp.y: Deal with struct block_symbol from lookup functions.
4968         Remove uses of block_found.
4969         (yylex): Likewise.
4970         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4971         lookup_enum, lookup_template_type, check_typedef): Deal with
4972         struct block_symbol from lookup functions.
4973         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4974         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4975         (gdbscm_lookup_global_symbol): Likewise.
4976         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4977         * go-exp.y: Likewise.  Remove uses of block_found.
4978         (package_name_p, classify_packaged_name, classify_name):
4979         Likewise.
4980         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4981         * jv-exp.y (push_variable): Likewise.
4982         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4983         * language.c (language_bool_type): Likewise.
4984         * language.h (struct language_defn): Update
4985         la_lookup_symbol_nonlocal to return a struct block_symbol rather
4986         than a mere symbol.
4987         * linespec.c (find_label_symbols): Deal with struct block_symbol
4988         from lookup functions.
4989         * m2-exp.y: Likewise.  Remove uses of block_found.
4990         (yylex): Likewise.
4991         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4992         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4993         * p-exp.y: Likewise.  Remove uses of block_found.
4994         (yylex): Likewise.
4995         * p-valprint.c (pascal_val_print): Likewise.
4996         * parse.c (write_dollar_variable): Likewise.  Remove uses of
4997         block_found.
4998         * parser-defs.h (struct symtoken): Turn the SYM field into a
4999         struct block_symbol.
5000         * printcmd.c (address_info): Deal with struct block_symbol from
5001         lookup functions.
5002         * python/py-frame.c (frapy_read_var): Likewise.
5003         * python/py-symbol.c (gdbpy_lookup_symbol,
5004         gdbpy_lookup_global_symbol): Likewise.
5005         * skip.c (skip_function_command): Likewise.
5006         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5007         block_symbol instead of a mere symbol.
5008         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5009         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5010         * solib.c (solib_global_lookup): Likewise.
5011         * solist.h (solib_global_lookup): Likewise.
5012         (struct target_so_ops): Update lookup_lib_global_symbol to
5013         return a struct block_symbol rather than a mere symbol.
5014         * source.c (select_source_symtab): Deal with struct block_symbol
5015         from lookup functions.
5016         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5017         Likewise.
5018         * symfile.c (set_initial_language): Likewise.
5019         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5020         block_symbol.
5021         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5022         (struct symbol_cache_slot): Turn the FOUND field into a struct
5023         block_symbol.
5024         (block_found): Remove.
5025         (eq_symbol_entry): Update to deal with struct block_symbol in
5026         cache slots.
5027         (symbol_cache_lookup): Return a struct block_symbol rather than
5028         a mere symbol.
5029         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5030         appropriately the cache slots.  Update callers.
5031         (symbol_cache_dump): Update cache slots handling to the type
5032         change.
5033         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5034         lookup_symbol_aux, lookup_local_symbol,
5035         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5036         lookup_symbol_in_objfile_symtabs,
5037         lookup_symbol_in_objfile_from_linkage_name,
5038         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5039         lookup_symbol_in_static_block, lookup_static_symbol,
5040         lookup_global_symbol):
5041         Return a struct block_symbol rather than a mere symbol.  Deal
5042         with struct block_symbol from other lookup functions.  Remove
5043         uses of block_found.
5044         (lookup_symbol_in_block): Remove uses of block_found.
5045         (struct global_sym_lookup_data): Turn the RESULT field into a
5046         struct block_symbol.
5047         (lookup_symbol_global_iterator_cb): Update references to the
5048         RESULT field.
5049         (search_symbols): Deal with struct block_symbol from lookup
5050         functions.
5051         * symtab.h (struct block_symbol): New structure.
5052         (block_found): Remove.
5053         (lookup_symbol_in_language, lookup_symbol,
5054         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5055         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5056         lookup_global_symbol_from_objfile): Return a struct block_symbol
5057         rather than just a mere symbol.  Update comments to remove
5058         mentions of block_found.
5059         * valops.c (find_function_in_inferior,
5060         value_struct_elt_for_reference, value_maybe_namespace_elt,
5061         value_of_this):  Deal with struct block_symbol from lookup
5062         functions.
5063         * value.c (value_static_field, value_fn_field): Likewise.
5064
5065 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5066
5067         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5068         instead of integer.
5069
5070 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5071             Pedro Alves  <palves@redhat.com>
5072
5073         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5074         type or value instead of integer.
5075         (aarch64_linux_insert_watchpoint): Likewise.
5076         (aarch64_linux_remove_watchpoint): Likewise.
5077         * ada-lang.c (ada_op_print_tab): Likewise.
5078         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5079         (amd64_linux_syscall_record_common): Likewise.
5080         * arch-utils.c (target_byte_order_user): Likewise.
5081         (default_byte_order): Likewise.
5082         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5083         (arm_linux_get_hwbp_type): Likewise.
5084         (arm_linux_hw_watchpoint_initialize): Likewise.
5085         (arm_linux_insert_watchpoint): Likewise.
5086         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5087         (arm_linux_syscall_record): Likewise.
5088         * breakpoint.c (update_watchpoint): Likewise.
5089         (breakpoint_here_p): Likewise.
5090         (bpstat_print): Likewise.
5091         (enable_breakpoint_disp): Likewise.
5092         * c-lang.c (c_op_print_tab): Likewise.
5093         * cli/cli-decode.c (add_info_alias): Likewise.
5094         * d-lang.c (d_op_print_tab): Likewise.
5095         * eval.c (evaluate_subexp_standard): Likewise.
5096         * f-exp.y (dot_ops): Likewise.
5097         (f77_keywords): Likewise.
5098         * f-lang.c (f_op_print_tab): Likewise.
5099         * go-lang.c (go_op_print_tab): Likewise.
5100         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5101         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5102         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5103         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5104         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5105         (struct scm_from_stringn_data): Likewise.
5106         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5107         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5108         (ia64_linux_remove_watchpoint): Likewise.
5109         (ia64_linux_can_use_hw_breakpoint): Likewise.
5110         * infrun.c (print_stop_event): Likewise.
5111         * jv-lang.c (java_op_print_tab): Likewise.
5112         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5113         * linux-nat.h (struct lwp_info): Likewise.
5114         * linux-thread-db.c (enable_thread_event): Likewise.
5115         * m2-lang.c (m2_op_print_tab): Likewise.
5116         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5117         (mi_cmd_stack_list_variables): Likewise.
5118         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5119         * mi/mi-out.c (mi_table_begin): Likewise.
5120         (mi_table_header): Likewise.
5121         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5122         (mips_linux_insert_watchpoint): Likewise.
5123         (mips_linux_remove_watchpoint): Likewise.
5124         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5125         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5126         (mips_linux_watch_type_to_irw): Likewise.
5127         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5128         (procfs_insert_hw_watchpoint): Likewise.
5129         (procfs_remove_hw_watchpoint): Likewise.
5130         (procfs_hw_watchpoint): Likewise.
5131         (procfs_can_use_hw_breakpoint): Likewise.
5132         (procfs_remove_hw_watchpoint): Likewise.
5133         (procfs_insert_hw_watchpoint): Likewise.
5134         * p-lang.c (pascal_op_print_tab): Likewise.
5135         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5136         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5137         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5138         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5139         (procfs_insert_watchpoint): Likewise.
5140         (procfs_remove_watchpoint): Likewise.
5141         * psymtab.c (recursively_search_psymtabs): Likewise.
5142         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5143         (m32r_insert_watchpoint): Likewise.
5144         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5145         (mips_insert_watchpoint): Likewise.
5146         (mips_remove_watchpoint): Likewise.
5147         * remote.c (watchpoint_to_Z_packet): Likewise.
5148         (remote_insert_watchpoint): Likewise.
5149         (remote_remove_watchpoint): Likewise.
5150         (remote_check_watch_resources): Likewise.
5151         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5152         (s390_remove_watchpoint): Likewise.
5153         (s390_can_use_hw_breakpoint): Likewise.
5154         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5155         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5156         * target.h (struct target_ops): Likewise.
5157         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5158         * ui-out.c (struct ui_out_hdr): Likewise.
5159         (append_header_to_list): Likewise.
5160         (get_next_header): Likewise.
5161         (verify_field): Likewise.
5162         (ui_out_begin): Likewise.
5163         (ui_out_field_int): Likewise.
5164         (ui_out_field_fmt_int): Likewise.
5165         (ui_out_field_skip): Likewise.
5166         (ui_out_field_string): Likewise.
5167         (ui_out_field_fmt): Likewise.
5168         * varobj.c (new_variable): Likewise.
5169         * x86-nat.c (x86_insert_watchpoint): Likewise.
5170         (x86_remove_watchpoint): Likewise.
5171         (x86_can_use_hw_breakpoint): Likewise.
5172         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5173         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5174         previously anonymous enumeration type..
5175         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5176         value.
5177         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5178         (target_debug_print_enum_bptype): New.
5179         * target-delegates.c: Regenerate.
5180
5181 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5182
5183         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5184         already says and disallow non-stack memory writes in the prologue.
5185
5186 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5187
5188         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5189         reflect how current GCC emits stack overflow checks.  Match
5190         both trap and break instructions for backward compatbility.
5191         Disallow other trap and break instructions in the prologue.
5192
5193 2015-07-30  Pedro Alves  <palves@redhat.com>
5194
5195         PR threads/18600
5196         * linux-nat.c (wait_lwp): Report to the core when thread group
5197         leader exits.
5198
5199 2015-07-30  Pedro Alves  <palves@redhat.com>
5200             Simon Marchi  <simon.marchi@ericsson.com>
5201
5202         PR threads/18600
5203         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5204         mark the new thread as resumed.  Remove STOPPING parameter.
5205         (wait_lwp): Adjust call to linux_handle_extended_wait.
5206         (linux_nat_filter_event): Adjust call to
5207         linux_handle_extended_wait.
5208         (resume_stopped_resumed_lwps): Add debug output.
5209
5210 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5211
5212         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5213         isize argument.
5214         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5215         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5216         gdbarch_fast_tracepoint_valid_at.
5217         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5218         * gdbarch.h: Regenerate.
5219         * gdbarch.c: Regenerate.
5220         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5221         argument.  Do not set it.
5222         * remote.c (remote_download_tracepoint): Adjust call to
5223         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5224         the instruction length.
5225
5226 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5227
5228         * arm-tdep.h (enum gdb_regnum): Move it to ...
5229         * arch/arm.h: ... here.  New file.
5230         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5231
5232 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5233
5234         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5235         Change its type to int *.
5236         (decode_br): Rename link argument to is_blr.  Change its type to
5237         int *.
5238         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5239         int *.
5240         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5241         int *.  Set is_tbnz to either 1 or 0.
5242         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5243         new variables is_cbnz and is_tbnz.  Adjust call to
5244         aarch64_decode_cb and aarch64_decode_tb.
5245
5246 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5247
5248         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5249         parameter.
5250         (mips_linux_new_thread): Likewise.
5251         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5252
5253 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5254
5255         * top.c: Include "tui/tui.h".
5256         (undo_terminal_modifications_before_exit): New static function.
5257         (quit_force): Use it.
5258
5259 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5260
5261         * target.c (terminal_state): Initialize to terminal_is_ours.
5262
5263 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5264
5265         PR record/18691
5266         * dcache.c (dcache_read_memory_partial): Call
5267         raw_memory_xfer_partial.
5268         * target.c (raw_memory_xfer_partial): Make it non-static.
5269         * target.h (raw_memory_xfer_partial): Declare.
5270
5271 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5272
5273         * c-valprint.c (c_val_print_array): Consider addressable memory
5274         unit size.
5275         (c_val_print_ptr): Likewise.
5276         (c_val_print_int): Likewise.
5277         * findvar.c (read_frame_register_value): Likewise.
5278         * valarith.c (find_size_for_pointer_math): Likewise.
5279         (value_ptrdiff): Likewise.
5280         (value_subscripted_rvalue): Likewise.
5281         * valops.c (read_value_memory): Likewise (and rename variables).
5282         (value_assign): Likewise.
5283         (value_repeat): Likewise.
5284         (value_array): Likewise.
5285         (value_slice): Likewise.
5286         * valprint.c (generic_val_print_ptr): Likewise.
5287         (generic_val_print_enum): Likewise.
5288         (generic_val_print_bool): Likewise.
5289         (generic_val_print_int): Likewise.
5290         (generic_val_print_char): Likewise.
5291         (generic_val_print_float): Likewise.
5292         (generic_val_print_decfloat): Likewise.
5293         (generic_val_print_complex): Likewise.
5294         (val_print_scalar_formatted): Likewise.
5295         (val_print_array_elements): Likewise.
5296         * value.c (set_value_parent): Likewise.
5297         (value_contents_copy_raw): Likewise.
5298         (set_internalvar_component): Likewise.
5299         (value_primitive_field): Likewise.
5300         (value_fetch_lazy): Likewise.
5301         * value.h (read_value_memory): Update comment.
5302
5303 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5304
5305         * value.c (get_value_arch): New function.
5306         * value.h (get_value_arch): New declaration.
5307
5308 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5309
5310         * value.c (struct value): Update comments.
5311
5312 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5313
5314         * gdbtypes.c (type_length_units): New function.
5315         * gdbtypes.h (type_length_units): New declaration.
5316         (struct type) <length>: Update comment.
5317
5318 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5319
5320         * valprint.c (generic_val_print): Factor out complex
5321         printing code to ...
5322         (generic_val_print_complex): ... this new function.
5323
5324 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5325
5326         * valprint.c (generic_val_print): Factor out decfloat
5327         printing code to ...
5328         (generic_val_print_decfloat): ... this new function.
5329
5330 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5331
5332         * valprint.c (generic_val_print): Factor out float
5333         printing code to ...
5334         (generic_val_print_float): ... this new function.
5335
5336 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5337
5338         * valprint.c (generic_val_print): Factor out char
5339         printing code to ...
5340         (generic_val_print_char): ... this new function.
5341
5342 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5343
5344         * valprint.c (generic_val_print): Factor out integer
5345         printing code to ...
5346         (generic_val_print_int): ... this new function.
5347
5348 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5349
5350         * valprint.c (generic_val_print): Factor out bool
5351         printing code to ...
5352         (generic_val_print_bool): ... this new function.
5353
5354 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5355
5356         * valprint.c (generic_val_print): Factor out function/method
5357         printing code to ...
5358         (generic_val_print_func): ... this new function.
5359
5360 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5361
5362         * valprint.c (generic_val_print): Factor out flags
5363         printing code to ...
5364         (generic_val_print_flags): ... this new function.
5365
5366 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5367
5368         * valprint.c (generic_val_print): Factor out enum
5369         printing code to ...
5370         (generic_val_print_enum): ... this new function.
5371
5372 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5373
5374         * valprint.c (generic_val_print): Factor out reference
5375         printing code to ...
5376         (generic_val_print_ref): ... this new function.
5377
5378 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5379
5380         * valprint.c (generic_val_print): Factor out memberptr
5381         printing code to ...
5382         (generic_val_print_memberptr): ... this new function.
5383
5384 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5385
5386         * valprint.c (generic_val_print): Factor out pointer
5387         printing code to ...
5388         (generic_val_print_ptr): ... this new function.
5389
5390 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5391
5392         * valprint.c (generic_val_print): Factor out array
5393         printing code to ...
5394         (generic_val_print_array): ... this new function.
5395
5396 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5397
5398         * valprint.c (generic_val_print): Factor out
5399         print_unpacked_pointer code to ...
5400         (print_unpacked_pointer): ... this new function.
5401
5402 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5403
5404         * event-top.c (handle_sigterm): Don't inspect
5405         target_can_async_p.  Always set the quit flag and always mark
5406         the async signal handler.
5407
5408 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5409
5410         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5411
5412 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5413
5414         * remote.c (read_ptid): Return null_ptid when no thread id
5415         is found.
5416         (remote_current_thread): Add log warning for malformed
5417         qC reply.
5418         (remote_start_remote): Add log warning when current thread
5419         not found.
5420
5421 2015-07-24  Pedro Alves  <palves@redhat.com>
5422
5423         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5424         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5425         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5426
5427 2015-07-24  Pedro Alves  <palves@redhat.com>
5428
5429         PR gdb/18717
5430         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5431         is resumed, and extend the debug log.
5432
5433 2015-07-24  Pedro Alves  <palves@redhat.com>
5434
5435         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5436
5437 2015-07-24  Pedro Alves  <palves@redhat.com>
5438
5439         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5440         sys/ptrace.h.
5441         * alpha-linux-nat.c: Likewise.
5442         * amd64-linux-nat.c: Likewise.
5443         * arm-linux-nat.c: Likewise.
5444         * hppa-linux-nat.c: Likewise.
5445         * i386-linux-nat.c: Likewise.
5446         * ia64-linux-nat.c: Likewise.
5447         * linux-fork.c: Likewise.
5448         * linux-nat.c: Likewise.
5449         * m32r-linux-nat.c: Likewise.
5450         * m68klinux-nat.c: Likewise.
5451         * mips-linux-nat.c: Likewise.
5452         * nat/linux-btrace.c: Likewise.
5453         * nat/linux-ptrace.c: Likewise.
5454         * nat/linux-ptrace.h
5455         * nat/mips-linux-watch.c: Likewise.
5456         * nat/x86-linux-dregs.c: Likewise.
5457         * ppc-linux-nat.c: Likewise.
5458         * s390-linux-nat.c: Likewise.
5459         * spu-linux-nat.c: Likewise.
5460         * tilegx-linux-nat.c: Likewise.
5461         * x86-linux-nat.c: Likewise.
5462         * xtensa-linux-nat.c: Likewise.
5463
5464 2015-07-24  Pedro Alves  <palves@redhat.com>
5465
5466         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5467         __ptrace_request as first parameter type instead of int.
5468         (PTRACE_TYPE_ARG1): Define.
5469         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5470         that casts first argument to PTRACE_TYPE_ARG1.
5471         * config.in: Regenerate.
5472         * configure: Regenerate.
5473
5474 2015-07-24  Pedro Alves  <palves@redhat.com>
5475
5476         * gdb_ptrace.h: Move ...
5477         * nat/gdb_ptrace.h: ... here.
5478         * inf-ptrace.c: Adjust.
5479
5480 2015-07-24  Pedro Alves  <palves@redhat.com>
5481
5482         * acinclude.m4: Include ptrace.m4.
5483         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5484         * ptrace.m4: ... to this new file.
5485
5486 2015-07-23  Doug Evans  <dje@google.com>
5487
5488         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5489         (load_cu): Handle dummy CUs.
5490         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5491         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5492
5493 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5494
5495         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5496         documentation to say that it returns a list rather than
5497         a FrozenSet.
5498         (linetable_object_methods): Update the docstring of the
5499         "source_line" entry.
5500
5501 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5502
5503         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5504         type to the recursive call instead of the original (maybe
5505         TYPE_CODE_TYPEDEF) type.
5506
5507 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5508
5509         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5510         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5511         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5512
5513 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5514
5515         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5516         Move it to nat/aarch64-linux-hw-point.c.
5517         (aarch64_linux_child_post_startup_inferior): Update.
5518         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5519         New function.
5520         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5521         Declare it.
5522
5523 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5524
5525         * common/btrace-common.c (btrace_data_append): Change case label.
5526
5527 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5528
5529         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5530         Re-indent the code.
5531         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5532         "unsigned long long".
5533
5534 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5535
5536         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5537         to be set for SEC_ALLOC sections too.
5538
5539 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5540
5541         * Makefile.in (HFILES_NO_SRCDIR): Add
5542         nat/aarch64-linux-hw-point.h.
5543         (aarch64-linux-hw-point.o): New rule.
5544         * nat/aarch64-linux-hw-point.h: New file.
5545         * nat/aarch64-linux-hw-point.c: New file.
5546         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5547         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5548         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5549         (AARCH64_HWP_ALIGNMENT): Likewise.
5550         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5551         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5552         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5553         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5554         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5555         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5556         (struct aarch64_debug_reg_state): Likewise.
5557         (struct arch_lwp_info): Likewise.
5558         (aarch64_linux_set_debug_regs): Likewise.
5559         (aarch64_notify_debug_reg_change): Remove static.
5560         (aarch64_align_watchpoint): Likewise.
5561         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5562         (aarch64_watchpoint_length): Likewise.
5563         (aarch64_point_encode_ctrl_reg): Likewise
5564         (aarch64_point_is_aligned): Likewise.
5565         (aarch64_dr_state_insert_one_point): Likewise.
5566         (aarch64_dr_state_remove_one_point): Likewise.
5567         (aarch64_handle_breakpoint): Likewise.
5568         (aarch64_handle_aligned_watchpoint): Likewise.
5569         (aarch64_handle_unaligned_watchpoint): Likewise.
5570         (aarch64_handle_watchpoint): Likewise.
5571         * config/aarch64/linux.mh (NAT_FILE): Add
5572         aarch64-linux-hw-point.o.
5573
5574 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5575
5576         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5577         state and don't call aarch64_get_debug_reg_state.  All callers
5578         update.
5579         (aarch64_linux_insert_hw_breakpoint): Call
5580         aarch64_get_debug_reg_state earlier.
5581         (aarch64_linux_remove_hw_breakpoint): Likewise.
5582         (aarch64_handle_aligned_watchpoint): Add argument state and
5583         don't call aarch64_get_debug_reg_state.  All callers update.
5584         (aarch64_handle_unaligned_watchpoint): Likewise.
5585         (aarch64_handle_watchpoint): Add argument state.
5586         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5587         earlier.
5588         (aarch64_linux_remove_watchpoint): Likewise.
5589
5590 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5591
5592         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5593         debug_printf.
5594         (aarch64_handle_unaligned_watchpoint): Likewise.
5595
5596 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5597
5598         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5599         argument type's type to 'enum target_hw_bp_type'.
5600         (aarch64_dr_state_remove_one_point): Likewise.
5601         (aarch64_handle_breakpoint): Likewise.
5602         (aarch64_linux_insert_hw_breakpoint): Likewise.
5603         (aarch64_linux_remove_hw_breakpoint): Likewise.
5604         (aarch64_handle_aligned_watchpoint): Likewise.
5605
5606 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5607
5608         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5609         ptid_get_pid instead of get_thread_id.
5610
5611 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5612
5613         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5614         (add_current_inferior_and_thread): Don't initialise ptid.
5615
5616 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5617
5618         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5619         unavailable if invalid.
5620
5621 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5622
5623         Revert the previous 6 commits:
5624         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5625         Move gdb_regex* to common/
5626         Prepare linux_find_memory_regions_full & co. for move
5627         Move linux_find_memory_regions_full & co.
5628         gdbserver build-id attribute generator
5629         Validate symbol file using build-id
5630
5631 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5632             Jan Kratochvil  <jan.kratochvil@redhat.com>
5633
5634         Validate symbol file using build-id.
5635         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5636         and 'show validate-build-id'.  Add build-id attribute.
5637         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5638         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5639         * solib-frv.c (_initialize_frv_solib): Ditto.
5640         * solib-spu.c (set_spu_solib_ops): Ditto.
5641         * solib-svr4.c: Include rsp-low.h.
5642         (NOTE_GNU_BUILD_ID_NAME): New define.
5643         (svr4_validate): New function.
5644         (svr4_copy_library_list): Duplicate field build_id.
5645         (library_list_start_library): Parse 'build-id' attribute.
5646         (svr4_library_attributes): Add 'build-id' attribute.
5647         (_initialize_svr4_solib): Assign validate value.
5648         * solib-target.c (solib.h): Include.
5649         (_initialize_solib_target): Assign validate value.
5650         * solib.c (validate_build_id, show_validate_build_id): New.
5651         (solib_map_sections): Use ops->validate.
5652         (clear_so): Free build_id.
5653         (default_solib_validate): New function.
5654         (_initialize_solib): Add "validate-build-id".
5655         * solib.h (default_solib_validate): New declaration.
5656         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5657         (target_so_ops): New field 'validate'.
5658
5659 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5660             Jan Kratochvil  <jan.kratochvil@redhat.com>
5661
5662         gdbserver build-id attribute generator.
5663         * features/library-list-svr4.dtd (library-list-svr4): New
5664         'build-id' attribute.
5665
5666 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5667             Jan Kratochvil  <jan.kratochvil@redhat.com>
5668
5669         Move linux_find_memory_regions_full & co.
5670         * linux-tdep.c (nat/linux-maps.h): Include.
5671         (gdb_regex.h): Remove the include.
5672         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5673         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5674         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5675         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5676         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5677         and target/target.h.
5678         (struct smaps_vmflags, read_mapping, decode_vmflags)
5679         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5680         (linux_find_memory_regions_full): Move from linux-tdep.c.
5681         * nat/linux-maps.h (read_mapping): New declaration.
5682         (linux_find_memory_region_ftype, enum filterflags): Moved from
5683         linux-tdep.c.
5684         (linux_find_memory_regions_full): New declaration.
5685         * target.c (target/target-utils.h): Include.
5686         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5687         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5688         definitions to target/target-utils.c.
5689         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5690         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5691         from target.c.
5692         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5693         (read_alloc): New declaration.
5694         (read_stralloc_func_ftype): New typedef.
5695         (read_stralloc): New declaration.
5696         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5697
5698 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5699             Jan Kratochvil  <jan.kratochvil@redhat.com>
5700
5701         Prepare linux_find_memory_regions_full & co. for move.
5702         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5703         (linux_find_memory_regions_full): Change signature and prepare
5704         for moving to linux-maps.
5705         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5706         (linux_find_memory_regions_thunk): New.
5707         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5708         (linux_find_memory_regions_gdb): New.
5709         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5710         (linux_make_mappings_corefile_notes): Use
5711         linux_find_memory_regions_gdb.
5712         * target.c (read_alloc_pread_ftype): New typedef.
5713         (target_fileio_read_alloc_1_pread): New function.
5714         (read_alloc): Refactor from target_fileio_read_alloc_1.
5715         (read_stralloc_func_ftype): New typedef.
5716         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5717         (read_stralloc): Refactored from target_fileio_read_stralloc.
5718         (target_fileio_read_stralloc): New implementation, use read_stralloc.
5719
5720 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5721
5722         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5723         common/gdb_regex.h.
5724         (COMMON_OBS): Add gdb_regex.o.
5725         (gdb_regex.o): New.
5726         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5727         --without-included-regex and USE_INCLUDED_REGEX.
5728         * common/gdb_regex.c: New file from utils.c functions.
5729         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5730         file wrapping define name.
5731         * configure: Rebuilt.
5732         * configure.ac (gdb_use_included_regex, --without-included-regex)
5733         (USE_INCLUDED_REGEX): Move them to common/common.m4.
5734         * gdb_regex.h: Move it to common/gdb_regex.h.
5735         * utils.c: Remove include gdb_regex.h.
5736         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5737         (compile_rx_or_error): Move them to common/gdb_regex.c.
5738
5739 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5740             Jan Kratochvil  <jan.kratochvil@redhat.com>
5741
5742         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5743         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5744         common/target-utils.h.
5745         (COMMON_OBS): Add target-utils.o.
5746         (linux-maps.o, target-utils.o): New.
5747         * target/target-utils.c: New file.
5748         * target/target-utils.h: New file.
5749         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5750         * config/i386/linux64.mh (NATDEPFILES): Ditto.
5751         * nat/linux-maps.c: New file.
5752         * nat/linux-maps.h: New file.
5753
5754 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
5755             Pedro Alves <palves@redhat.com>
5756
5757         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5758         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5759         (perf_event_read_bts): Change the type of SIZE and READ.
5760         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5761         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
5762         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
5763         mmap page.
5764         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
5765         buffer size to UINT_MAX.
5766         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5767         DATA_TAIL.
5768         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5769         <last_head>: Change type.
5770         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5771         * common/btrace-common.c (btrace_data_append): Change the type of
5772         SIZE.
5773         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
5774         check.
5775
5776 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
5777
5778         * gdbtypes.h (CHECK_TYPEDEF): Remove.
5779         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5780         with check_typedef.
5781         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5782         (ada_array_length): Likewise.
5783         (find_parallel_type_by_descriptive_type): Likewise.
5784         (ada_check_typedef): Likewise.
5785         * arm-tdep.c (arm_return_in_memory): Likewise.
5786         * ax-gdb.c (gen_trace_static_fields): Likewise.
5787         (gen_struct_ref_recursive): Likewise.
5788         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5789         (variable: block COLONCOLON name): Likewise.
5790         (qualified_name: TYPENAME COLONCOLON name): Likewise.
5791         * c-lang.c (classify_type): Likewise.
5792         * c-typeprint.c (c_print_type): Likewise.
5793         (c_print_typedef): Likewise.
5794         (c_type_print_base): Likewise.
5795         * c-valprint.c (c_val_print): Likewise.
5796         * compile/compile-c-types.c (convert_type): Likewise.
5797         * compile/compile-object-load.c (get_out_value_type): Likewise.
5798         * completer.c (add_struct_fields): Likewise.
5799         (expression_completer): Likewise.
5800         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5801         (cp_lookup_nested_symbol_1): Likewise.
5802         (cp_lookup_nested_symbol): Likewise.
5803         * cp-valprint.c (cp_print_value_fields): Likewise.
5804         (cp_print_static_field): Likewise.
5805         * d-valprint.c (d_val_print): Likewise.
5806         * eval.c (evaluate_subexp_standard): Likewise.
5807         (evaluate_subexp_for_sizeof): Likewise.
5808         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5809         * f-typeprint.c (f_type_print_base): Likewise.
5810         * f-valprint.c (f_val_print): Likewise.
5811         * gdbtypes.c (get_discrete_bounds): Likewise.
5812         (create_array_type_with_stride): Likewise.
5813         (type_name_no_tag_or_error): Likewise.
5814         (lookup_struct_elt_type): Likewise.
5815         (get_unsigned_type_max): Likewise.
5816         (internal_type_vptr_fieldno): Likewise.
5817         (set_type_vptr_fieldno): Likewise.
5818         (internal_type_vptr_basetype): Likewise.
5819         (set_type_vptr_basetype): Likewise.
5820         (get_vptr_fieldno): Likewise.
5821         (is_integral_type): Likewise.
5822         (is_scalar_type): Likewise.
5823         (is_scalar_type_recursive): Likewise.
5824         (distance_to_ancestor): Likewise.
5825         (is_unique_ancestor_worker): Likewise.
5826         (check_types_equal): Likewise.
5827         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5828
5829 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5830
5831         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5832         also test for language_d.
5833         (dwarf2_compute_name): Likewise.
5834         (read_func_scope): Likewise.
5835         (read_structure_type): Likewise.
5836         (new_symbol_full): Likewise.
5837         (determine_prefix): Likewise.
5838         (read_import_statement): Use dot as the separator for language_d.
5839         (typename_concat): Likewise, but don't prefix the D main function.
5840
5841 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
5842
5843         * nat/linux-namespaces.c (setns): Rename from this ...
5844         (do_setns): ... to this.  Support calling setns if it exists.
5845         (mnsh_handle_setns): Call do_setns.
5846
5847 2015-07-13  Yao Qi  <yao.qi@linaro.org>
5848
5849         * exec.c (exec_file_attach): Add period at the end of error
5850         message.
5851
5852 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
5853
5854         * tui/tui-win.c (window_name_completer): New function.
5855         (focus_completer): Call window_name_completer.  All old content
5856         moved into window_name_completer.
5857         (winheight_completer): New function.
5858         (_initialize_tui_win): Rename variable.  Add completer to
5859         winheight command.  Update doc string on winheight.
5860
5861 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
5862
5863         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5864         all nios2 mach variants.
5865
5866 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
5867
5868         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5869         of target_read_memory.
5870
5871 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5872
5873         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5874         string copy.
5875         (parse_scrolling_args): Likewise.
5876
5877 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5878
5879         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5880         names in this function.
5881
5882 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5883
5884         * tui/tui-data.h (SRC_NAME): Convert to lower case.
5885         (CMD_NAME): Likewise.
5886         (DATA_NAME): Likewise.
5887         (DISASSEM_NAME): Likewise.
5888         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5889         (tui_set_win_height): Likewise.
5890         (parse_scrolling_args): Likewise.
5891
5892 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
5893
5894         * record-btrace.c (record_btrace_goto_begin)
5895         (record_btrace_goto_end, record_btrace_goto): Move call to
5896         print_stack_frame ...
5897         (record_btrace_set_replay): ... here.  Set stop_pc.
5898         * record-full.c (record_full_goto_entry): Set stop_pc.
5899
5900 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5901
5902         * NEWS: Mention support for tracepoints on aarch64-linux.
5903
5904 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5905
5906         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5907         function.  Return 1.
5908         (the_low_target): Install it.
5909
5910 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5911
5912         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5913         * gdb.trace/collection.exp: Likewise.
5914         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5915         * gdb.trace/mi-trace-unavailable.exp: Likewise.
5916         * gdb.trace/report.exp: Likewise.
5917         * gdb.trace/trace-break.exp: Likewise.
5918         * gdb.trace/unavailable.exp: Likewise.
5919         * gdb.trace/while-dyn.exp: Likewise.
5920
5921 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5922
5923         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5924         (aarch64_gen_return_address): New function.
5925         (aarch64_gdbarch_init): Hook it.
5926
5927 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5928
5929         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5930         swallow NOT_AVAILABLE_ERROR.
5931         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5932         available_p is not set.
5933         (aarch64_stub_frame_unwind_stop_reason): New function.
5934         (aarch64_stub_unwind): Install it.
5935
5936 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5937
5938         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5939         field.
5940         (aarch64_make_prologue_cache_1): New function, factored out from
5941         aarch64_make_prologue_cache.  Do not allocate cache.  Set
5942         available_p.
5943         (aarch64_make_prologue_cache): Reimplement wrapping
5944         aarch64_make_prologue_cache_1, and swallowing
5945         NOT_AVAILABLE_ERROR.
5946         (aarch64_prologue_frame_unwind_stop_reason): New function.
5947         Return UNWIND_UNAVAILABLE if available_p is not set.
5948         (aarch64_prologue_unwind): Install it.
5949         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5950         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
5951         frame_id_build_unavailable_stack if available_p is not set.
5952
5953 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5954
5955         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5956         fields.
5957         (aarch64_scan_prologue): Set prev_pc.
5958         (aarch64_make_prologue_cache): Set func.
5959         (aarch64_make_stub_cache): Set prev_pc.
5960         (aarch64_prologue_this_id): Remove local variables id, pc and
5961         func.  Read prev_pc and func from cache.
5962         (aarch64_stub_this_id): Read prev_pc from cache.
5963
5964 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5965
5966         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
5967         argument this_cache.  Remove unused local variables reg and
5968         unwound_fp.  Return early if this_cache is already set.  Set
5969         this_cache.
5970         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5971
5972 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5973
5974         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5975         New argument this_cache.  Return early if this_cache is already
5976         set.  Set this_cache.
5977         (aarch64_prologue_this_id): Update call to
5978         aarch64_make_prologue_cache.
5979         (aarch64_prologue_prev_register): Likewise.
5980         (aarch64_normal_frame_base): Likewise.
5981
5982 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5983
5984         * c-valprint.c (c_val_print): Factor out memberptr printing code
5985         from c_val_print to ...
5986         (c_val_print_memberptr): ... this new function.
5987
5988 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5989
5990         * c-valprint.c (c_val_print): Factor out int printing code to ...
5991         (c_val_print_int): ... this new function.
5992
5993 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
5994
5995         * c-valprint.c (c_val_print): Factor out struct and union
5996         printing code to ...
5997         (c_val_print_struct): ... this new function ...
5998         (c_val_print_union): ... and this new function.
5999
6000 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6001
6002         * c-valprint.c (c_val_print): Factor out pointer printing code
6003         to ...
6004         (c_val_print_ptr): ... this new function.
6005
6006 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6007
6008         * c-valprint.c (c_valprint): Factor our array printing code from
6009         c_val_print to ...
6010         (c_val_print_array): ... this new function.
6011
6012 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6013
6014         * c-valprint.c (c_val_print): Factor out pointer printing code
6015         to ...
6016         (print_unpacked_pointer): ... this new function.
6017
6018 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6019
6020         * c-valprint.c (c_val_print): Remove an assignment to i and move
6021         its declaration.
6022
6023 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6024
6025         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6026         argument ptid.  Update comments.  Caller update.
6027
6028 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6029
6030         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6031         mnt packets.
6032
6033 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6034
6035         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6036
6037 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6038
6039         * progspace.c (delete_program_space): Add missing spaces.
6040
6041 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6042
6043         * inferior.c (delete_inferior_1): Rename to ...
6044         (delete_inferior): ..., remove 'silent' parameter, delete
6045         program space when unused and remove call to prune_program_spaces.
6046         Remove the old, unused, delete_inferior.
6047         (delete_inferior_silent): Remove.
6048         (prune_inferiors): Change call from delete_inferior_1 to
6049         delete_inferior and remove 'silent' parameter. Remove call to
6050         prune_program_spaces.
6051         (remove_inferior_command): Idem.
6052         * inferior.h (delete_inferior_1): Rename to...
6053         (delete_inferior): ..., remove 'silent' parameter and remove the
6054         original delete_inferior.
6055         (delete_inferior_silent): Remove.
6056         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6057         delete_inferior_1 to delete_inferior and remove 'silent'
6058         parameter.
6059         * progspace.c (prune_program_spaces): Remove.
6060         (pspace_empty_p): Rename to...
6061         (program_space_empty_p): ... and make non-static.
6062         (delete_program_space): New.
6063         * progspace.h (prune_program_spaces): Remove declaration.
6064         (program_space_empty_p): New declaration.
6065         (delete_program_space): New declaration.
6066         * monitor.c (monitor_close): Replace call to
6067         delete_thread_silent and delete_inferior_silent with
6068         discard_all_inferiors.
6069
6070 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6071
6072         * defs.h (deprecated_register_changed_hook): Remove prototype.
6073         * interps.c (clear_iterpreter_hooks): Remove reference to
6074         deprecated_register_changed_hook.
6075         * top.c (deprecated_register_changed_hook): Remove prototype.
6076         * valops.c (value_assign): Remove reference to
6077         deprecated_register_changed_hook.
6078         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6079         Add comment documenting the function.
6080         (tui_register_changed_observer): Define.
6081         (tui_install_hooks): Remove reference to
6082         deprecated_register_changed_hook.  Set
6083         tui_register_changed_observer.
6084         (tui_remove_hooks): Remove reference to
6085         deprecated_register_changed_hook.  Unset
6086         tui_register_changed_observer.
6087
6088 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6089
6090         PR compile/18484
6091         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6092
6093 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6094
6095         PR exp/18617
6096         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6097
6098 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6099
6100         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6101
6102 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6103
6104         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6105         Use safe_strerror() instead of strerror().
6106
6107 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6108
6109         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6110         * features/arm-with-m-fpa-layout.c: Regenerated.
6111         * features/arm-with-m-vfp-d16.xml: Likewise.
6112         * features/arm-with-m-vfp-d16.c: Regenerated.
6113         * features/arm-with-m.xml: Likewise.
6114         * features/arm-with-m.c: Regenerated.
6115         * features/arm-with-neon.xml: Likewise.
6116         * features/arm-with-neon.c: Regenerated.
6117         * features/arm-with-vfpv2.xml: Likewise.
6118         * features/arm-with-vfpv2.c: Regenerated.
6119         * features/arm-with-vfpv3.xml: Likewise.
6120         * features/arm-with-vfpv3.c: Regenerated.
6121
6122 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6123
6124         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6125         arm-linux-nat.c.
6126         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6127         elf/external.h.
6128         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6129         if target is 32-bit.
6130         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6131         if target is 32-bit.
6132         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6133         if target is 32-bit.
6134         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6135         if target is 32-bit.
6136         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6137         (aarch64_linux_read_description): Return the right target
6138         description.
6139         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6140         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6141         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6142         arm-linux-tdep.o.
6143
6144 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6145
6146         * aarch32-linux-nat.c: New file.
6147         * aarch32-linux-nat.h: New file.
6148         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6149         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6150         aarch32_gp_regcache_supply.
6151         (store_regs): Move code to aarch32-linux-nat.c.  Call
6152         aarch32_gp_regcache_collect.
6153         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6154         aarch32_vfp_regcache_supply.
6155         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6156         aarch32_vfp_regcache_collect.
6157         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6158
6159 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6160
6161         * arm-linux-nat.c (store_fpregister): Remove.
6162         (store_register): Likewise.
6163         (fetch_fpregister): Likewise.
6164         (fetch_register): Likewise.
6165         (arm_linux_store_inferior_registers): Call store_regs and
6166         store_fpregs instead.
6167         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6168         fetch_regs instead.
6169
6170 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6171
6172         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6173         and focus commands.
6174
6175 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6176
6177         * NEWS: Create a new section for the next release branch.
6178         Rename the section of the current branch, now that it has
6179         been cut.
6180
6181 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6182
6183         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6184         * version.in: Bump version to 7.10.50.DATE-cvs.
6185
6186 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6187
6188         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6189         breakpoints in a special way.
6190         (remove_breakpoint): Likewise.
6191         (mark_breakpoints_out): Likewise.
6192
6193 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6194
6195         * doc/gdb.texinfo (TUI): Add comma after @xref.
6196
6197 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6198
6199         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6200         instead of casting the structure type.
6201
6202 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6203
6204         * valops.c (search_struct_field): Remove OFFSET parameter.
6205         (value_cast_structs): Adjust calls to search_struct_field.
6206         (value_struct_elt): Same.
6207         (find_overload_match): Same.
6208
6209 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6210
6211         * value.c (value_fetch_lazy): Update comment, change return
6212         value to void.
6213         * value.h (value_fetch_lazy): Change return value to void.
6214
6215 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6216
6217         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6218         (tui_win_name): Make parameter and result const.
6219         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6220
6221 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6222
6223         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6224         use printf_unfiltered.
6225         (set_mpx_cmd): Add missing trailing space to command string
6226         literal.
6227         (_initialize_i386_tdep): Give the "mpx" prefix command its
6228         correct name.
6229
6230 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6231
6232         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6233         (enum rx_frame_type): New.
6234         (struct rx_prologue): Add new field `frame_type'.
6235         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6236         parameter in the prologue struct.  Add code for recording
6237         locations of PC and PSW for fast interrupt and exception frames.
6238         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6239         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6240         (rx_frame_type): New function.
6241         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6242         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6243         `this_cache'.
6244         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6245         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6246         RX_FRAME_TYPE_FAST_INTERRUPT.
6247         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6248         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6249         (rx_frame_unwind): Use rx_frame_sniffer instead of
6250         default_frame_sniffer.
6251         (rx_frame_unwind): New unwinder.
6252         (rx_gdbarch_init): Register new unwinder.
6253
6254 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6255
6256         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6257         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6258         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6259         and RX_FPSW_REGNUM.
6260         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6261
6262 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6263
6264         Fix GCC false warning.
6265         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6266
6267 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6268
6269         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6270         typo in the debugging message.
6271
6272 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6273
6274         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6275         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6276         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6277         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6278         (btrace_maint_clear): New.
6279         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6280         (pt_print_packet, btrace_maint_decode_pt)
6281         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6282         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6283         (maint_btrace_packet_history_cmd)
6284         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6285         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6286         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6287         (maint_info_btrace_cmd, _initialize_btrace): New.
6288         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6289         (btrace_maint_packet_history, btrace_maint_info): New.
6290         (btrace_thread_info) <maint>: New.
6291         * NEWS: Announce it.
6292
6293 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6294
6295         * btrace.c (btrace_fetch): Append the new trace data.
6296         (btrace_clear): Clear the stored trace data.
6297         * btrace.h (btrace_thread_info) <data>: New.
6298         * common/btrace-common.h (btrace_data_clear)
6299         (btrace_data_append): New.
6300         * common/btrace-common.c (btrace_data_clear)
6301         (btrace_data_append): New.
6302
6303 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6304
6305         * nat/linux-btrace.c (linux_enable_bts): Check for
6306         PERF_ATTR_SIZE_VER5.
6307         Check for data_offset and data_size fields.  Use them.
6308
6309 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6310
6311         * NEWS: Announce new commands "record btrace pt" and "record pt".
6312         Announce new options "set|show record btrace pt buffer-size".
6313         * btrace.c: Include "rsp-low.h".
6314         Include "inttypes.h".
6315         (btrace_add_pc): Add forward declaration.
6316         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6317         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6318         (btrace_compute_ftrace_pt): New.
6319         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6320         (check_xml_btrace_version): Update version check.
6321         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6322         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6323         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6324         (btrace_pt_children): New.
6325         (btrace_children): Add support for "pt".
6326         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6327         (btrace_conf_children): Add support for "pt".
6328         * btrace.h: Include "intel-pt.h".
6329         (btrace_pt_error): New.
6330         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6331         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6332         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6333         (struct btrace_config_pt): New.
6334         (struct btrace_config)<pt>: New.
6335         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6336         (struct btrace_data)<pt>: New.
6337         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6338         (pt): New.
6339         * features/btrace.dtd (btrace)<pt>: New.
6340         (pt, pt-config, cpu): New.
6341         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6342         (perf_event_pt_event_type, kernel_supports_pt)
6343         (linux_supports_pt): New.
6344         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6345         (linux_enable_bts): Free tinfo on error.
6346         (linux_enable_pt): New.
6347         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6348         (linux_disable_pt): New.
6349         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6350         (linux_fill_btrace_pt_config, linux_read_pt): New.
6351         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6352         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6353         (struct btrace_target_info)<pt>: New.
6354         * record-btrace.c (set_record_btrace_pt_cmdlist)
6355         (show_record_btrace_pt_cmdlist): New.
6356         (record_btrace_print_pt_conf): New.
6357         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6358         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6359         (cmd_record_btrace_pt_start): New.
6360         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6361         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6362         (_initialize_record_btrace): Add new commands.
6363         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6364         (remote_protocol_features): Add "Qbtrace:pt".
6365         Add "Qbtrace-conf:pt:size".
6366         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6367         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6368         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6369         (_initialize_remote): Add new commands.
6370
6371 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6372
6373         * configure.ac: check for libipt
6374         * configure: Regenerate.
6375         * config.in: Regenerate.
6376         * Makefile.in (LIBIPT): New.
6377         (CLIBS): Add $LIBIPT.
6378         * NEWS: document new configure options
6379
6380 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6381
6382         * compile/compile-object-load.c (compile_object_load): Replace debug
6383         message "lookup undefined ELF symbol" by 3 more specific messages.
6384
6385 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6386
6387         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6388         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6389         (rl78_gdbarch_init): Initialize rl78_psw_type.
6390
6391 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6392
6393         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6394         Update commentary.  Always refresh the registers when frame
6395         information has changed.
6396         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6397         Change return type to int.  Return 1 if frame information has
6398         changed, 0 otherwise.
6399         (tui_before_prompt): Update commentary.
6400         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6401         int.
6402
6403 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6404
6405         PR tui/13378
6406         * frame.c (select_frame): Remove reference to
6407         deprecated_selected_frame_level_changed_hook.
6408         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6409         declaration.
6410         * stack.c (deprecated_selected_frame_level_changed_hook):
6411         Likewise.
6412         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6413         Rename to ...
6414         (tui_refresh_frame_and_register_information): ... this.  Bail
6415         out if there is no stack.  Don't update register information
6416         unless registers_too_p is true.
6417         (tui_print_frame_info_listing_hook): Rename to ...
6418         (tui_dummy_print_frame_info_listing_hook): ... this.
6419         (tui_before_prompt): New function.
6420         (tui_normal_stop): New function.
6421         (tui_before_prompt_observer): New observer.
6422         (tui_normal_stop_observer): New observer.
6423         (tui_install_hooks): Set
6424         deprecated_print_frame_info_listing_hook to
6425         tui_dummy_print_frame_info_listing_hook.  Register
6426         tui_before_prompt_observer to call tui_before_prompt and
6427         tui_normal_stop_observer to call tui_normal_stop.  Remove
6428         reference to deprecated_selected_frame_level_changed_hook.
6429         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6430         and tui_normal_stop_observer.  Remove reference to
6431         deprecated_selected_frame_level_changed_hook.
6432
6433 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6434
6435         PR tui/13378
6436         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6437         return an int instead of void.  Return whether the locator
6438         window has changed.
6439         (tui_show_frame_info): If the locator info has not changed, then
6440         bail out early to avoid refreshing the windows.
6441
6442 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6443
6444         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6445         LOCATOR_WIN to tui_alloc_content.
6446
6447 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6448
6449         PR tdep/18605
6450         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6451         instructions.
6452
6453 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6454
6455         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6456         (rx_dwarf_reg_to_regnum): New function.
6457         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6458         unwinding.
6459
6460 2015-06-29  Pedro Alves  <palves@redhat.com>
6461
6462         PR threads/18127
6463         * infcall.c (run_inferior_call): On infcall success, if the thread
6464         was marked stopped before, reset it back to stopped.
6465         * infrun.c (resume): Don't suppress the set_running calls when
6466         doing an infcall.
6467         (normal_stop): Only discard the finish_thread_state cleanup if the
6468         infcall succeeded.
6469
6470 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6471
6472         * MAINTAINERS (Write After Approval): Update my email address.
6473
6474 2015-06-26  Keith Seitz  <keiths@redhat.com>
6475             Doug Evans  <dje@google.com>
6476
6477         PR 16253
6478         * block.c (block_lookup_symbol): For non-function blocks,
6479         continue to search for a symbol with an exact domain match
6480         Otherwise, return any previously found "best domain" symbol.
6481         (block_lookup_symbol_primary): Likewise.
6482
6483 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6484
6485         * NEWS: Mention the new option "history remove-duplicates".
6486         * top.c (history_remove_duplicates): New static variable.
6487         (show_history_remove_duplicates): New static function.
6488         (gdb_add_history): Conditionally remove duplicate history
6489         entries.
6490         (init_main): Add "history remove-duplicates" option.
6491
6492 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6493
6494         * tui/tui-win.c (focus_completer): New static function.
6495         (_initialize_tui_win): Set the completion function of the
6496         "focus" command to focus_completer.
6497
6498 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6499
6500         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6501         and language_asm..
6502         * symtab.c (find_function_start_sal): Likewise.
6503
6504 2015-06-25  Gary Benson  <gbenson@redhat.com>
6505
6506         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6507         it is the empty string after trailing slashes have been stripped.
6508
6509 2015-06-25  Gary Benson  <gbenson@redhat.com>
6510
6511         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6512         * infrun.c (follow_exec): Likewise.
6513         * remote.c (remote_filesystem_is_local): Likewise.
6514         * solib.c (solib_find_1): Likewise.
6515
6516 2015-06-24  Keith Seitz  <keiths@redhat.com>
6517
6518         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6519         return value from lrealpath.
6520
6521 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6522
6523         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6524
6525 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6526
6527         * remote-sim.c: Include gdb_bfd.h.
6528         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6529         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6530
6531 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6532
6533         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6534         set_gdbarch_get_siginfo_type.
6535         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6536         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6537         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6538         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6539         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6540         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6541         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6542         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6543         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6544         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6545
6546 2015-06-24  Gary Benson  <gbenson@redhat.com>
6547
6548         * common/buffer.c (stdint.h): Do not include.
6549         * common/print-utils.c (stdint.h): Likewise.
6550         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6551         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6552         * ft32-tdep.c (gdb_assert.h): Likewise.
6553         * guile/scm-utils.c (stdint.h): Likewise.
6554         * i386-linux-tdep.c (stdint.h): Likewise.
6555         * i386-tdep.c (stdint.h): Likewise.
6556         * nat/linux-btrace.c (stdint.h): Likewise.
6557         * nat/linux-btrace.h (stdint.h): Likewise.
6558         * nat/linux-ptrace.c (stdint.h): Likewise.
6559         * nat/mips-linux-watch.h (stdint.h): Likewise.
6560         * ppc-linux-nat.c (stdint.h): Likewise.
6561         * python/python-internal.h (stdint.h): Likewise.
6562         * stub-termcap.c (stdlib.h): Likewise.
6563         * target/target.h (stdint.h): Likewise.
6564         * xtensa-linux-nat.c (stdint.h): Likewise.
6565
6566 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6567
6568         * top.c (init_history): Look at errno after calling strtol to
6569         properly map large GDBHISTSIZE values to infinity.
6570
6571 2015-06-23  Doug Evans  <dje@google.com>
6572
6573         * inferior.h (struct inferior_suspend_state): Delete, unused.
6574         All references deleted.
6575
6576 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6577
6578         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6579         (microblaze_push_dummy_call): Likewise.
6580         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6581         and set_gdbarch_push_dummy_call.
6582
6583 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6584
6585         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6586         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6587         (amd64_linux_store_inferior_registers): Likewise.
6588         * arm-linux-nat.c (fetch_fpregister): Likewise.
6589         (fetch_fpregs, store_fpregister): Likewise.
6590         (store_fpregister, store_fpregs): Likewise.
6591         (fetch_register, fetch_regs): Likewise.
6592         (store_register, store_regs): Likewise.
6593         (fetch_vfp_regs, store_vfp_regs): Likewise.
6594         (arm_linux_read_description): Check have_ptrace_getregset is
6595         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6596         or TRIBOOL_FALSE.
6597         * i386-linux-nat.c (fetch_xstateregs): Check
6598         have_ptrace_getregset is not TRIBOOL_TRUE.
6599         (store_xstateregs): Likewise.
6600         * linux-nat.c (have_ptrace_getregset): Change its type to
6601         enum tribool.
6602         * linux-nat.h (tribool): New enum.
6603         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6604         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6605
6606 2015-06-19  Doug Evans  <dje@google.com>
6607
6608         * NEWS: Mention Sun's version of stabs is no longer supported.
6609         * elfread.c (free_elfinfo): Delete.  All uses updated.
6610         (elfstab_offset_sections): Delete.  All uses updated.
6611         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6612         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6613         All uses updated.
6614         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6615         All callers updated.
6616
6617 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6618
6619         * common/rsp-low.c (needs_escaping): New.
6620         (remote_escape_output): Add unit_size parameter. Refactor to
6621         support multi-byte addressable units.  Rename parameters.
6622         * common/rsp-low.h (remote_escape_output): Add unit_size
6623         parameter and rename others. Update doc.
6624         * remote.c (align_for_efficient_write): New.
6625         (remote_write_bytes_aux): Add unit_size parameter and use it.
6626         Rename some variables.  Update doc.
6627         (remote_xfer_partial): Get unit size and use it.
6628         (remote_read_bytes_1): Add unit_size parameter and use it.
6629         Rename some variables. Update doc.
6630         (remote_write_bytes): Same.
6631         (remote_xfer_live_readonly_partial): Same.
6632         (remote_read_bytes): Same.
6633         (remote_flash_write): Update call to remote_write_bytes_aux.
6634         (remote_write_qxfer): Update call to remote_escape_output.
6635         (remote_search_memory): Same.
6636         (remote_hostio_pwrite): Same.
6637
6638 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6639
6640         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6641         locations as inserted.
6642         Update and expand comment about permanent locations.
6643         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6644         Move comment to add_location_to_breakpoint.
6645         (update_global_location_list): Don't error out if a permanent
6646         breakpoint is not marked inserted.
6647         Don't error out if a non-permanent breakpoint location is inserted on
6648         top of a permanent breakpoint.
6649
6650 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6651
6652         * breakpoint.c (make_breakpoint_permanent): Remove unused
6653         function.
6654         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6655
6656 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6657
6658         PR gdb/16999
6659         * NEWS: Mention new GDBHISTSIZE behavior.
6660         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6661         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6662
6663 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6664
6665         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6666         * top.c (init_history): Read from GDBHISTSIZE instead of
6667         HISTSIZE.
6668         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6669
6670 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6671
6672         * top.c (gdb_safe_append_history): Do not call
6673         history_truncate_file if the history is not stifled.
6674
6675 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6676
6677         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6678         * syscalls/s390x-linux.xml: Likewise.
6679
6680 2015-06-16  Michael Eager  <eager@eagercon.com>
6681
6682         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6683
6684 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6685
6686         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6687         target_terminal_ours_for_output() before calling
6688         tui_show_frame_info(), and restore the original terminal
6689         settings afterwards.
6690
6691 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6692
6693         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6694
6695 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6696
6697         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6698         memory unit size.
6699         (mi_cmd_data_write_memory_bytes): Same.
6700
6701 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6702
6703         * corefile.c (write_memory): Update doc.
6704         * gdbcore.h (write_memory): Same.
6705
6706 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6707
6708         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6709         (dump_mapping_p): Use it for parameter filterflags.
6710         (linux_find_memory_regions_full): Use it for variable filterflags.
6711
6712 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6713             Jan Kratochvil  <jan.kratochvil@redhat.com>
6714
6715         Merge multiple hex conversions.
6716         * monitor.c: Include rsp-low.h.
6717         (fromhex): Remove definition.
6718
6719 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6720             Jan Kratochvil  <jan.kratochvil@redhat.com>
6721
6722         Move utility functions to common/.
6723         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6724         Move defs to common/common-utils.c.
6725         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6726         (skip_to_space_const): Move decls to common/common-utils.h.
6727         * common/common-defs.h: Move include of common-types.h before
6728         common-utils.h.
6729         * common/common-utils.c: Include host-defs.h and ctype.h.
6730         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6731         from utils.c.
6732         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6733         cli/cli-utils.c.
6734         * common/common-utils.h (strtoulst): Move decl from utils.h.
6735         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6736         Move from cli/cli-utils.h.
6737         * common/host-defs.h: Include limits.h.
6738         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6739         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6740         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6741         common/common-utils.h.
6742         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6743         (strtoulst): Move to common/common-utils.c.
6744         * utils.h (strtoulst): Moved decl to common/common-utils.h.
6745
6746 2015-06-15  Yao Qi  <yao.qi@linaro.org>
6747
6748         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6749
6750 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
6751
6752         * build-id.c: Don't include elf-bfd.h.
6753         (build_id_bfd_get): Use bfd_build_id.
6754         (build_id_verify): Ditto.
6755         * build-id.h: Ditto.
6756         (find_separate_debug_file_by_buildid): Ditto.
6757         * python/py-objfile.c: Don't include elf-bfd.h.
6758         (objfpy_get_build_id) Use bfd_build_id.
6759         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6760         * coffread.c: Include build-id.h.
6761         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6762
6763 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6764
6765         * windows-nat.c (do_windows_fetch_inferior_registers)
6766         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6767         conditional with __CYGWIN__.
6768
6769 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6770
6771         * completer.c: Add arch-utils.h include.
6772         (enum reg_completer_targets): New enum.
6773         (reg_or_group_completer_1): New function containing old
6774         reg_or_group_completer, add and use new parameter to control what
6775         is completed on.  Use get_current_arch rather than architecture of
6776         currently selected frame.
6777         (reg_or_group_completer): Call new reg_or_group_completer_1.
6778         (reggroup_completer): Call new reg_or_group_completer_1.
6779         * completer.h (reggroup_completer): Add declaration.
6780         * tui/tui-regs.c: Add 'completer.h' include.
6781         (tui_reg_next_command): Renamed to...
6782         (tui_reg_next): ...this.  Adjust parameters and return rather than
6783         display new group.
6784         (tui_reg_prev_command): Renamed to...
6785         (tui_reg_prev): ...this.  Adjust parameters and return rather than
6786         display new group.
6787         (tui_reg_float_command): Delete.
6788         (tui_reg_general_command): Delete.
6789         (tui_reg_system_command): Delete.
6790         (tui_reg_command): Rewrite to perform switching of register group.
6791         Add header comment.
6792         (tuireglist): Remove.
6793         (tui_reggroup_completer): New function.
6794         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6795         creation of 'tui reg' command.
6796         * NEWS: Add comment about 'tui reg' changes.
6797
6798 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6799
6800         * target.c (target_read): Consider addressable unit size when
6801         reading from a memory object.
6802         (read_memory_robust): Same.
6803         (read_whatever_is_readable): Same.
6804         (target_write_with_progress): Consider addressable unit size
6805         when writing to a memory object.
6806         * target.h (target_read): Update documentation.
6807         (target_write): Add documentation.
6808
6809 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6810
6811         * arch-utils.h (default_addressable_memory_unit_size): New.
6812         * arch-utils.c (default_addressable_memory_unit_size): New.
6813         * gdbarch.sh (addressable_memory_unit_size): New.
6814         * gdbarch.h: Re-generate.
6815         * gdbarch.c: Re-generate.
6816
6817 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6818
6819         * target.c (target_read): Rename variables and use
6820         TARGET_XFER_E_IO.
6821         (target_read_with_progress): Same.
6822         (read_memory_robust): Constify parameters and rename
6823         variables.
6824         (read_whatever_is_readable): Constify parameters,
6825         rename variables, adjust formatting.
6826         * target.h (read_memory_robust): Constify parameters.
6827
6828 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6829
6830         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6831         synthetic (non-AltiVec) vector types.
6832         (ppc64_sysv_abi_return_value): Likewise.
6833
6834 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6835
6836         PR breakpoints/16465
6837         * breakpoint.c (create_breakpoint): Save extra_string for
6838         pending breakpoints.
6839
6840 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6841
6842         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6843         and bt_mask to CORE_ADDR.
6844
6845 2015-06-11  Gary Benson <gbenson@redhat.com>
6846
6847         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6848         (mnsh_recv_message): Likewise.
6849
6850 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6851
6852         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6853         long long int and plongest instead of %ll.
6854
6855 2015-06-11  Gary Benson <gbenson@redhat.com>
6856
6857         * nat/linux-namespaces.c (gdb_wait.h): New include.
6858         (sys/wait.h): Do not include.
6859
6860 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
6861
6862         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6863         end_sequence is true.
6864
6865 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6866
6867         Code cleanup.
6868         * solib-target.c (library_list_start_list): Use explicit NULL
6869         comparison.
6870
6871 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6872
6873         * solib-target.c (library_list_start_list): Do not dereference
6874         variable version in its initialization.  Make the VERSION check handle
6875         NULL.
6876         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6877
6878 2015-06-10  Gary Benson <gbenson@redhat.com>
6879
6880         * NEWS: Announce support for direct access of executable and
6881         shared library files when attaching to inferiors in containers
6882         on GNU/Linux systems.
6883
6884 2015-06-10  Gary Benson <gbenson@redhat.com>
6885
6886         * remote.c (struct remote_state) <fs_pid>: New field.
6887         (new_remote_state): Initialize the above.
6888         (PACKET_vFile_setfs): New enum value.
6889         (remote_hostio_set_filesystem): New function.
6890         (remote_hostio_open): Call the above.
6891         (remote_hostio_unlink): Likewise.
6892         (remote_hostio_readlink): Likewise.
6893         (_initialize_remote): Register new "set/show remote
6894         hostio-setfs-packet" command.
6895         * NEWS: Announce new vFile:setfs packet.
6896
6897 2015-06-10  Gary Benson <gbenson@redhat.com>
6898
6899         * linux-nat.c (nat/linux-namespaces.h): New include.
6900         (fileio.h): Likewise.
6901         (linux_nat_filesystem_is_local): New function.
6902         (linux_nat_fileio_pid_of): Likewise.
6903         (linux_nat_fileio_open): Likewise.
6904         (linux_nat_fileio_readlink): Likewise.
6905         (linux_nat_fileio_unlink): Likewise.
6906         (linux_nat_add_target): Initialize to_filesystem_is_local,
6907         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6908         (_initialize_linux_nat): New "set/show debug linux-namespaces"
6909         commands.
6910         * NEWS: Mention new "set/show debug linux-namespaces" commands.
6911
6912 2015-06-10  Gary Benson <gbenson@redhat.com>
6913
6914         * target.h (struct inferior): New forward declaration.
6915         (struct target_ops) <to_filesystem_is_local>: Update comment.
6916         (struct target_ops) <to_fileio_open>: New argument inf.
6917         Update comment.  All implementations updated.
6918         (struct target_ops) <to_fileio_unlink>: Likewise.
6919         (struct target_ops) <to_fileio_readlink>: Likewise.
6920         (target_filesystem_is_local): Update comment.
6921         (target_fileio_open): New argument inf.  Update comment.
6922         (target_fileio_unlink): Likewise.
6923         (target_fileio_readlink): Likewise.
6924         (target_fileio_read_alloc): Likewise.
6925         (target_fileio_read_stralloc): Likewise.
6926         * target.c (target_fileio_open): New argument inf.
6927         Pass inf to implementation.  Update debug printing.
6928         (target_fileio_unlink): Likewise.
6929         (target_fileio_readlink): Likewise.
6930         (target_fileio_read_alloc_1): New argument inf. Pass inf
6931         to target_fileio_open.
6932         (target_fileio_read_alloc): New argument inf. Pass inf to
6933         target_fileio_read_alloc_1.
6934         (target_fileio_read_stralloc): Likewise.
6935         * gdb_bfd.c (inferior.h): New include.
6936         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6937         argument with new argument "inferior".  Pass inferior to
6938         target_fileio_open.
6939         (gdb_bfd_open): Supply inferior argument to
6940         gdb_bfd_iovec_fileio_open.
6941         * linux-tdep.c (linux_info_proc): Supply inf argument to
6942         relevant target_fileio calls.
6943         (linux_find_memory_regions_full): Likewise.
6944         (linux_fill_prpsinfo): Likewise.
6945         * remote.c (remote_filesystem_is_local): Supply inf
6946         argument to remote_hostio_open.
6947         (remote_file_put): Likewise.
6948         (remote_file_get): Likewise.
6949         (remote_file_delete): Supply inf argument to
6950         remote_hostio_unlink.
6951
6952 2015-06-10  Gary Benson <gbenson@redhat.com>
6953
6954         * inf-child.c (inf_child_fileio_open): Replace comment.
6955         (inf_child_fileio_pwrite): Likewise.
6956         (inf_child_fileio_pread): Likewise.
6957         (inf_child_fileio_fstat): Insert blank line before comment.
6958         (inf_child_fileio_close): Replace comment.
6959         (inf_child_fileio_unlink): Likewise.
6960         (inf_child_fileio_readlink): Likewise.
6961         * remote.c (remote_hostio_open): Likewise.
6962         (remote_hostio_pread): Likewise.
6963         (remote_hostio_pwrite): Likewise.
6964         (remote_hostio_close): Likewise.
6965         (remote_hostio_unlink): Likewise.
6966         (remote_hostio_readlink): Likewise.
6967         (remote_hostio_fstat): Likewise.
6968         (remote_filesystem_is_local): Likewise.
6969         * target.c (target_fileio_open): Likewise.
6970         (target_fileio_pwrite): Likewise.
6971         (target_fileio_pread): Likewise.
6972         (target_fileio_fstat): Insert blank line before comment.
6973         (target_fileio_close): Replace comment.
6974         (target_fileio_unlink): Likewise.
6975         (target_fileio_readlink): Likewise.
6976         (target_fileio_read_alloc): Likewise.
6977         (target_fileio_read_stralloc): Likewise.
6978
6979 2015-06-10  Gary Benson <gbenson@redhat.com>
6980
6981         * linux-thread-db.c (nat/linux-namespaces.h): New include.
6982         (check_pid_namespace_match): Use linux_ns_same rather than
6983         linux_proc_pid_get_ns to spot PID namespace mismatches.
6984         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6985         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6986
6987 2015-06-10  Gary Benson <gbenson@redhat.com>
6988
6989         * configure.ac (AC_CHECK_FUNCS): Add setns.
6990         * config.in: Regenerate.
6991         * configure: Likewise.
6992         * nat/linux-namespaces.h: New file.
6993         * nat/linux-namespaces.c: Likewise.
6994         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6995         (linux-namespaces.o): New rule.
6996         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6997         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6998         * config/arm/linux.mh (NATDEPFILES): Likewise.
6999         * config/i386/linux.mh (NATDEPFILES): Likewise.
7000         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7001         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7002         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7003         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7004         * config/mips/linux.mh (NATDEPFILES): Likewise.
7005         * config/pa/linux.mh (NATDEPFILES): Likewise.
7006         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7007         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7008         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7009         * config/s390/linux.mh (NATDEPFILES): Likewise.
7010         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7011         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7012         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7013         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7014
7015 2015-06-10  Gary Benson <gbenson@redhat.com>
7016
7017         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7018         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7019         (make_cleanup_close): Likewise.
7020         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7021         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7022         (make_cleanup_close): Likewise.
7023
7024 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7025
7026         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7027         from SuspendThread().
7028
7029 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7030
7031         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7032         from OutputDebugString.
7033
7034 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7035                         Mircea Gherzan  <mircea.gherzan@intel.com>
7036
7037         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7038         MPX_BT_MASK_32): New macros.
7039         (i386_mpx_set_bounds): New function that implements
7040         the command "set-mpx-bound".
7041         (i386_mpx_enabled): Helper function to test MPX availability.
7042         (i386_mpx_bd_base): Helper function to calculate the base directory
7043         address.
7044         (i386_mpx_get_bt_entry): Helper function to access a bound
7045         table entry.
7046         (i386_mpx_print_bounds): Effectively display bound information.
7047         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7048         "show mpx".
7049         (_initialize_i386_tdep):
7050         Add "bound" to the commands "show mpx" and "set mpx" commands.
7051         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7052         and "show mpx" commands.
7053         * NEWS: List new commands for MPX support.
7054
7055 2015-06-09  Gary Benson <gbenson@redhat.com>
7056
7057         * common/fileio.h (fileio_to_host_mode): New declaration.
7058         * common/fileio.c (fileio_to_host_mode): New Function.
7059         * inf-child.c (inf_child_fileio_open): Process mode argument
7060         with fileio_to_host_mode.
7061
7062 2015-06-09  Gary Benson <gbenson@redhat.com>
7063
7064         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7065         conditional.
7066
7067 2015-06-05  Gary Benson <gbenson@redhat.com>
7068
7069         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7070         * remote.c (remote_filesystem_is_local): ...here.
7071
7072 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7073
7074         * gdbarch.c: Regenerate it.
7075
7076 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7077
7078         * arch-utils.c (default_infcall_munmap): New.
7079         * arch-utils.h (default_infcall_munmap): New declaration.
7080         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7081         (munmap_list_free, munmap_listp_free_cleanup): New.
7082         (struct setup_sections_data): Add field munmap_list_headp.
7083         (setup_sections): Call munmap_list_add.
7084         (compile_object_load): New variable munmap_list_head, initialize
7085         setup_sections_data.munmap_list_headp, return munmap_list_head.
7086         * compile/compile-object-load.h (struct munmap_list): New declaration.
7087         (struct compile_module): Add field munmap_list_head.
7088         (munmap_list_free): New declaration.
7089         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7090         munmap_list_head.
7091         (do_module_cleanup): Call munmap_list_free.
7092         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7093         * gdbarch.c: Regenerate.
7094         * gdbarch.h: Regenerate.
7095         * gdbarch.sh (infcall_munmap): New.
7096         * linux-tdep.c (linux_infcall_munmap): New.
7097         (linux_init_abi): Install it.
7098
7099 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7100
7101         PR gdb/15564
7102         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7103
7104 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7105
7106         * i386-linux-nat.c: Include linux-nat.h.
7107
7108 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7109             Jan Kratochvil  <jan.kratochvil@redhat.com>
7110
7111         PR symtab/18392
7112         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7113         assertion.
7114         * dwarf2loc.c (chain_candidate): Likewise.
7115
7116 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7117
7118         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7119         (store_vfp_regs): Use PTRACE_SETREGSET.
7120
7121 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7122
7123         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7124         (fetch_fpregs): Likewise.
7125         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7126         (store_fpregs): Likewise.
7127
7128 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7129
7130         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7131         (fetch_regs): Likewise.
7132         (store_regs): Use PTRACE_SETREGSET.
7133         (store_register): Likewise.
7134
7135 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7136
7137         * arm-linux-nat.c (arm_linux_read_description): Check whether
7138         kernel supports PTRACE_GETREGSET.
7139
7140 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7141
7142         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7143         * linux-nat.c: ... here.
7144         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7145         to ...
7146         * linux-nat.h: ... here.
7147
7148 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7149
7150         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7151         * i386-linux-nat.c: Likewise.
7152         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7153         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7154         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7155         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7156         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7157
7158 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7159
7160         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7161         compatible to what read_child and write_child return.  This
7162         unbreaks that DJGPP build of GDB which was broken since v7.7.
7163
7164 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7165
7166         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7167
7168 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7169
7170         PR gdb/18464
7171         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7172         rather than internal_error for an unrecognized value.
7173
7174 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7175
7176         * xtensa-tdep.c (xtensa_pseudo_register_read)
7177         (xtensa_pseudo_register_write): Don't alias last pseudo register
7178         to a1.
7179
7180 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7181
7182         * infrun.c (follow_fork_inferior): Ensure the use of
7183         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7184         messages.
7185
7186 2015-05-28  Doug Evans  <dje@google.com>
7187
7188         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7189
7190 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7191
7192         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7193         (arm_linux_fetch_inferior_registers): Use
7194         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7195         (arm_linux_store_inferior_registers): Likewise.
7196         (arm_linux_read_description): Don't set
7197         arm_linux_has_wmmx_registers.
7198         * arm-tdep.c (arm_gdbarch_init): Set
7199         tdep->have_wmmx_registers according target descriptions.
7200         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7201         field.
7202
7203 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7204
7205         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7206         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7207         instead of arm_linux_vfp_register_count.
7208         (store_vfp_regs): Likewise.
7209         (arm_linux_fetch_inferior_registers): Likewise.
7210         (arm_linux_store_inferior_registers): Likewise.
7211         (arm_linux_read_description): Don't set
7212         arm_linux_vfp_register_count.
7213         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7214         Adjust.
7215         * arm-tdep.c (arm_gdbarch_init): Add assert on
7216         vfp_register_count.
7217         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7218         field to vfp_register_count.  All users updated.
7219
7220 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7221
7222         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7223         ELFOSABI_GNU binaries.
7224
7225 2015-05-27  Doug Evans  <dje@google.com>
7226
7227         * dwarf2read.c (lnp_state_machine): New typedef.
7228         (lnp_reader_state): New typedef.
7229         (dwarf_record_line_1): Renamed from dwarf_record_line.
7230         All callers updated.
7231         (dwarf_record_line): New function.
7232         (init_lnp_state_machine): New function.
7233         (check_line_address): Replace p_record_line parameter with state.
7234         All callers updated.
7235         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7236         Update to record state in lnp_state_machine.
7237
7238 2015-05-27  Doug Evans  <dje@google.com>
7239
7240         * dwarf2read.c (record_line_ftype): New typedef.
7241         (check_line_address): New function.
7242         (dwarf_decode_lines_1): Call it.
7243
7244 2015-05-27  Doug Evans  <dje@google.com>
7245
7246         * NEWS: Mention "set debug dwarf-line".
7247         * dwarf2read.c (dwarf_line_debug): New static global.
7248         (add_include_dir): Add debug dwarf-line support.
7249         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7250         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7251
7252 2015-05-27  Doug Evans  <dje@google.com>
7253
7254         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7255         All callers updated.
7256         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7257         * cp-support.h (cp_lookup_nested_symbol): Update.
7258
7259 2015-05-27  Doug Evans  <dje@google.com>
7260
7261         PR symtab/18258
7262         * block.c (block_find_symbol): New function.
7263         (block_find_non_opaque_type): Ditto.
7264         (block_find_non_opaque_type_preferred): Ditto.
7265         * block.h (block_symbol_matcher_ftype): New typedef.
7266         (block_find_symbol): Declare.
7267         (block_find_non_opaque_type): Ditto.
7268         (block_find_non_opaque_type_preferred): Ditto.
7269         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7270         * psymtab.c (psym_lookup_symbol): Ditto.
7271         * symtab.c (basic_lookup_transparent_type_1): New function.
7272         (basic_lookup_transparent_type): Call it.
7273
7274 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7275
7276         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7277         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7278
7279 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7280
7281         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7282         before operator &&.
7283         (aarch64_record_load_store): Likewise.
7284
7285 2015-05-26  Doug Evans  <dje@google.com>
7286
7287         PR c++/18141, c++/18417.
7288         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7289         a typedef.
7290
7291 2015-05-26  Doug Evans  <dje@google.com>
7292
7293         * NEWS: Add entries for command renamings.
7294         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7295         All uses updated.
7296         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7297         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7298         All uses updated.
7299         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7300         All callers updated.  Fix spelling of DWARF in help text.
7301         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7302         All uses updated.
7303         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7304         All uses updated.
7305         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7306         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7307         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7308         All uses updated.
7309         (show_dwarf_always_disassemble): Renamed from
7310         show_dwarf2_always_disassemble.  All callers updated.
7311         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7312         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7313         "set/show dwarf max-cache-age".  Rename
7314         "set/show dwarf2 always-disassemble" to
7315         "set/show dwarf always-disassemble".  Rename
7316         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7317         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7318
7319 2015-05-26  Doug Evans  <dje@google.com>
7320
7321         PR python/18438
7322         * python/py-lazy-string.c (stpy_convert_to_value): Use
7323         gdbpy_gdb_memory_error not PyExc_MemoryError.
7324         (gdbpy_create_lazy_string_object): Ditto.
7325
7326 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7327
7328         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7329
7330 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7331
7332         * tui/tui-regs.c (tui_reg_prev_command): New function.
7333         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7334         * reggroups.c (reggroup_prev): New function.
7335         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7336
7337 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7338             Yao Qi  <yao.qi@linaro.org>
7339
7340         * aarch64-linux-tdep.c: Include linux-record.h and
7341         record-full.h.
7342         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7343         (aarch64_syscall): New enum.
7344         (aarch64_canonicalize_syscall): New function.
7345         (aarch64_all_but_pc_registers_record): New function.
7346         (aarch64_linux_syscall_record): New function.
7347         (aarch64_linux_init_abi): Install AArch64 process record
7348         handler.  Update to handle syscall recording.
7349         * aarch64-tdep.c: Include record.h and record-full.h.
7350         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7351         (struct aarch64_mem_r): Define.
7352         (aarch64_record_result): New enum.
7353         (struct insn_decode_record): Define.
7354         (insn_decode_record): New typedef.
7355         (aarch64_record_data_proc_reg): New function.
7356         (aarch64_record_data_proc_imm): New function.
7357         (aarch64_record_branch_except_sys): New function.
7358         (aarch64_record_load_store): New function.
7359         (aarch64_record_data_proc_simd_fp): New function.
7360         (aarch64_record_asimd_load_store): New function.
7361         (aarch64_record_decode_insn_handler): New function.
7362         (deallocate_reg_mem): New function.
7363         (aarch64_process_record): New function.
7364         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7365         New field.
7366         (aarch64_process_record): New extern declaration.
7367         * configure.tgt: Add linux-record.o to gdb_target_obs.
7368         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7369
7370 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7371
7372         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7373         targets.
7374
7375 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7376
7377         * amd64-tdep.c: Replace in_function_epilogue_p with
7378         stack_frame_destroyed_p throughout.
7379         * arch-utils.c: Ditto.
7380         * arch-utils.h: Ditto.
7381         * arm-tdep.c: Ditto.
7382         * breakpoint.c: Ditto.
7383         * gdbarch.sh: Ditto.
7384         * hppa-tdep.c: Ditto.
7385         * i386-tdep.c: Ditto.
7386         * mips-tdep.c: Ditto.
7387         * nios2-tdep.c: Ditto.
7388         * rs6000-tdep.c: Ditto.
7389         * s390-linux-tdep.c: Ditto.
7390         * score-tdep.c: Ditto.
7391         * sh-tdep.c: Ditto.
7392         * sparc-tdep.c: Ditto.
7393         * sparc-tdep.h: Ditto.
7394         * sparc64-tdep.c: Ditto.
7395         * spu-tdep.c: Ditto.
7396         * tic6x-tdep.c: Ditto.
7397         * tilegx-tdep.c: Ditto.
7398         * xstormy16-tdep.c: Ditto.
7399         * gdbarch.c, gdbarch.h: Re-generated.
7400
7401 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7402
7403         * NEWS: Mention 'tui enable' and 'tui disable'.
7404         * tui/tui.c (tui_enable_command): New function.
7405         (tui_disable_command): New function.
7406         (_initialize_tui): New function.
7407
7408 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7409
7410         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7411
7412 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7413
7414         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7415         buf_ptr is freed.
7416
7417 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7418
7419         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7420         into ...
7421         (tui_set_layout_for_display_command): ...here, before calling
7422         tui_set_layout.  Only set the layout if gdb has not already
7423         entered the TUI_FAILURE state.
7424
7425 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7426
7427         * tui/tui-layout.c (layout_completer): New function.
7428         (_initialize_tui_layout): Set completer on layout command.
7429
7430 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7431
7432         * tui/tui-layout.c (tui_set_layout): Remove
7433         tui_register_display_type parameter.  Remove all checking of this
7434         parameter, and reindent function.  Update header comment.
7435         (tui_set_layout_for_display_command): Rename to...
7436         (tui_set_layout_by_name): ...this, and don't check for different
7437         register class types, don't pass a tui_register_display_type to
7438         tui_set_layout.  Update header comment.
7439         (layout_names): Remove register set specific names.
7440         * tui/tui-layout.h (tui_set_layout): Remove
7441         tui_register_display_type parameter.
7442         * tui/tui.c (tui_rl_change_windows): Don't pass a
7443         tui_register_display_type to tui_set_layout.
7444         (tui_rl_delete_other_windows): Likewise.
7445         (tui_enable): Likewise.
7446         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7447         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7448         (TUI_GENERAL_REGS_NAME): Remove.
7449         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7450         (TUI_SPECIAL_REGS_NAME): Remove.
7451         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7452         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7453         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7454         (enum tui_register_display_type): Remove.
7455         (struct tui_layout_def): Remove regs_display_type and
7456         float_regs_display_type fields.
7457         (struct tui_data_info): Remove regs_display_type field.
7458         (tui_layout_command): Use new name for
7459         tui_set_layout_for_display_command.
7460         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7461         (tui_clear_win_detail): Don't initialise removed fields of
7462         win_info.
7463         * tui/tui-regs.c (tui_show_registers): Use new name for
7464         tui_set_layout_for_display_command.
7465         * tui/tui.h (tui_set_layout_for_display_command): Rename
7466         declaration to...
7467         (tui_set_layout_by_name): ...this.
7468         * printcmd.c (display_command): Remove tui related layout call,
7469         and reindent.
7470
7471 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7472
7473         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7474         (handle_inferior_event): New function.
7475
7476 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7477
7478         * ada-lang.c (to_fixed_array_type): Rename local variable
7479         typename into type_name.
7480
7481 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7482
7483         Fix ASAN crash for gdb.compile/compile.exp.
7484         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7485
7486 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7487
7488         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7489         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7490         * compile/compile-object-load.c (setup_sections, compile_object_load):
7491         Likewise.
7492         * compile/compile.c (compile_to_object): Likewise.
7493
7494 2015-05-16  Doug Evans  <xdje42@gmail.com>
7495
7496         * NEWS: Mention support for unbuffered Guile memory ports.
7497         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7498         (ioscm_lseek_address): Improve overflow calculation.
7499         (gdbscm_memory_port_fill_input): Add assert.
7500         (gdbscm_memory_port_write): Handle unbuffered ports.
7501         Handle large writes identical to Guile's fport_write.
7502         (gdbscm_memory_port_seek): Fix seeking past end check.
7503         (gdbscm_memory_port_close): Handle closing unbuffered port.
7504         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7505         (ioscm_init_memory_port): Handle unbuffered ports.
7506         (ioscm_reinit_memory_port): Ditto.
7507         (ioscm_init_memory_port): Update size calculation.
7508         (gdbscm_open_memory): Support zero sized ports.
7509
7510 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7511
7512         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7513         variable compiler warnings.
7514
7515 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7516
7517         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7518
7519 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7520             Phil Muldoon  <pmuldoon@redhat.com>
7521
7522         * NEWS (Changes since GDB 7.9): Add compile print.
7523         * compile/compile-c-support.c (add_code_header, add_code_footer)
7524         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7525         COMPILE_I_PRINT_VALUE_SCOPE.
7526         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7527         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7528         New.
7529         * compile/compile-object-load.c: Include block.h.
7530         (get_out_value_type): New function.
7531         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7532         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7533         OUT_VALUE_TYPE.
7534         * compile/compile-object-load.h (struct compile_module): Add fields
7535         out_value_addr and out_value_type.
7536         * compile/compile-object-run.c: Include valprint.h and compile.h.
7537         (struct do_module_cleanup): Add fields out_value_addr and
7538         out_value_type.
7539         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7540         COMPILE_I_PRINT_VALUE_SCOPE.
7541         (compile_object_run): Propagate out_value_addr and out_value_type.
7542         Pass OUT_VALUE_ADDR.
7543         * compile/compile.c: Include valprint.h.
7544         (compile_print_value, compile_print_command): New functions.
7545         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7546         (_initialize_compile): Update compile code help text.  Install
7547         compile_print_command.
7548         * compile/compile.h (compile_print_value): New prototype.
7549         * defs.h (enum compile_i_scope_types): Add
7550         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7551
7552 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7553
7554         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7555         Rely on its parameter count.
7556         (compile_object_load): Replace lookup_minimal_symbol_text by
7557         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7558         return value.
7559         * compile/compile-object-load.h (struct compile_module): Replace
7560         func_addr by func_sym.
7561         * compile/compile-object-run.c: Include block.h.
7562         (compile_object_run): Reset module variable after it is freed.  Use
7563         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7564
7565 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7566
7567         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7568         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7569         (c_compute_program): Call generate_register_struct after typedefs.
7570         * compile/compile-loc2c.c (push, pushf_register_address)
7571         (pushf_register): Cast to GCC_UINTPTR.
7572         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7573         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7574         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7575         * compile/compile.c (_initialize_compile): Enable warnings for
7576         COMPILE_ARGS.
7577
7578 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7579
7580         * cli/cli-script.c (execute_control_command): Update
7581         eval_compile_command caller.
7582         * compile/compile-object-load.c (compile_object_load): Add parameters
7583         scope and scope_data.  Set them.
7584         * compile/compile-object-load.h (struct compile_module): Add fields
7585         scope and scope_data.
7586         (compile_object_load): Add parameters scope and scope_data.
7587         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7588         scope and scope_data.
7589         (compile_object_run): Propagate the fields scope and scope_data.
7590         * compile/compile.c (compile_file_command, compile_code_command):
7591         Update eval_compile_command callers.
7592         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7593         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7594         * defs.h (struct command_line): Add field scope_data.
7595
7596 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7597
7598         * printcmd.c (struct format_data): Move it to valprint.h.
7599         (print_command_parse_format, print_value): New functions from ...
7600         (print_command_1): ... here.  Call them.
7601         * valprint.h (struct format_data): Move it here from printcmd.c.
7602         (print_command_parse_format, print_value): New declarations.
7603
7604 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7605
7606         * compile/compile-object-load.c (compile_object_load): Add
7607         COMPILE_DEBUG message.
7608
7609 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7610
7611         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7612         index to get element instead of enum value.
7613         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7614         of index to compute length, but enum values to compute bounds.
7615         (ada_array_length): Use enum position of index instead of enum value.
7616         (pos_atr): Move position computation to...
7617         (ada_evaluate_subexp): Use enum values to compute bounds.
7618         * gdbtypes.c (discrete_position): ...this new function.
7619         * gdbtypes.h (discrete_position): New function declaration.
7620         * valprint.c (val_print_array_elements): Call discrete_position
7621         to handle array indexed by non-contiguous enumeration types.
7622
7623 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7624
7625         * ada-lang.c (find_parallel_type_by_descriptive_type):
7626         Go through typedefs during lookup.
7627         (to_fixed_array_type): Add support for non-bit packed arrays
7628         as variable-length fields.
7629
7630 2015-05-15  Pedro Alves  <palves@redhat.com>
7631             Simon Marchi  <simon.marchi@ericsson.com>
7632
7633         * event-loop.c (gdb_notifier) <next_file_handler,
7634         next_poll_fds_index>: New fields.
7635         (get_next_file_handler_to_handle_and_advance): New function.
7636         (delete_file_handler): If deleting the next file handler to
7637         handle, advance to the next file handler.
7638         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7639         handlers in round-robin fashion.
7640
7641 2015-05-15  Pedro Alves  <palves@redhat.com>
7642
7643         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7644         'private' to 'priv'.
7645
7646 2015-05-15  Pedro Alves  <palves@redhat.com>
7647
7648         * nat/linux-nat.h: Include "target/waitstatus.h".
7649
7650 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7651
7652         * python/py-unwind.c (struct reg_info): Move out of ...
7653         (struct cached_frame_info): ... this scope.
7654         (pending_frame_object_type, unwind_info_object_type): Make extern.
7655
7656 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7657
7658         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7659         accumSize is never negative.
7660
7661 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7662
7663         * tui/tui-command.c: Remove include of <ctype.h>.
7664         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7665
7666 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7667
7668         * dwarf2read.c (die_needs_namespace): Return 1 for
7669         DW_TAG_inlined_subroutine.
7670
7671 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7672
7673         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7674         (regcache_cpy_no_passthrough): Make it static, add function comment.
7675         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7676         (regcache_cpy_no_passthrough): Remove declaration.
7677
7678 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7679
7680         * gdbthread.h (struct thread_control_state): Update comment for
7681         proceed_to_finish.
7682         * infcall.c (run_inferior_call): Update comment about
7683         proceed_to_finish.
7684         * infcmd.c (get_return_value): Update comment about stop_registers.
7685         (finish_forward): Update comment about proceed_to_finish.
7686         * infrun.c (stop_registers): Remove.
7687         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7688         * infrun.h (stop_registers): Remove.
7689
7690 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7691
7692         * infcall.c (struct dummy_frame_context_saver)
7693         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7694         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7695         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7696         New.
7697         (call_function_by_hand_dummy): Move discard_cleanups of
7698         inf_status_cleanup before dummy_frame_push.  Call
7699         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7700         Use dummy_frame_context_saver_get_regs instead of stop_registers.
7701         * infcall.h (struct dummy_frame_context_saver)
7702         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7703         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7704         New declarations.
7705         * infcmd.c: Include infcall.h.
7706         (get_return_value): Add parameter ctx_saver, use it instead of
7707         stop_registers.
7708         (print_return_value): Add parameter ctx_saver, pass it.
7709         (struct finish_command_continuation_args): Add field ctx_saver.
7710         (finish_command_continuation): Update print_return_value caller.
7711         (finish_command_continuation_free_arg): Free also ctx_saver.
7712         (finish_forward): Call dummy_frame_context_saver_setup.
7713         * inferior.h (struct dummy_frame_context_saver): New declaration.
7714         (get_return_value): Add parameter ctx_saver.
7715         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7716         get_return_value caller.
7717
7718 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7719
7720         * dummy-frame.c (struct dummy_frame_dtor_list): New.
7721         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7722         (remove_dummy_frame): Process dtor_list.
7723         (pop_dummy_frame): Process dtor_list.
7724         (register_dummy_frame_dtor): Maintain dtor_list.
7725         (find_dummy_frame_dtor): Handle dtor_list.
7726         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7727         Update comments.
7728
7729 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7730
7731         * compile/compile-object-run.c (do_module_cleanup): Add parameter
7732         registers_valid.
7733         (compile_object_run): Update do_module_cleanup caller.
7734         * dummy-frame.c: Include infcall.h.
7735         (struct dummy_frame): Update dtor comment.
7736         (remove_dummy_frame): Call dtor.
7737         (pop_dummy_frame): Update dtor caller.
7738         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7739         registers_valid.
7740
7741 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7742
7743         GDB 7.9.1 released.
7744
7745 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7746
7747         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
7748         Xmethods now being able to specify a result type to that new
7749         sectioin.
7750
7751 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7752
7753         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7754         first before resizing the window.
7755         * tui/tui.c (tui_enable): Likewise.
7756
7757 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7758
7759         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7760         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7761         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7762         dummy_dtor parameter.
7763         * infcall.h: Include dummy-frame.h.
7764         (call_function_by_hand_dummy_dtor_ftype): Remove.
7765         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7766         parameter.
7767
7768 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7769
7770         PR gdb/17820
7771         * top.c (history_size_setshow_var): Change type to signed.
7772         Initialize to -2.  Update documentation.
7773         (set_readline_history_size): Define.
7774         (set_history_size_command): Use it.  Remove logic for handling
7775         out-of-range sizes.
7776         (init_history): Use set_readline_history_size().  Test for a
7777         value of -2 instead of 0 when determining whether to set a
7778         default history size.
7779         (init_main): Decode the argument of the "size" command as a
7780         zuinteger_unlimited.
7781
7782 2015-05-12  Doug Evans  <dje@google.com>
7783
7784         * dwarf2read.c (struct file_entry): Tweak comments.
7785         (get_debug_line_section): Tweak comments.
7786
7787 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7788
7789         * NEWS: Announce fork support in the RSP and support
7790         for fork debugging in extended mode.
7791
7792 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7793
7794         * remote.c (remote_insert_fork_catchpoint): New function.
7795         (remote_remove_fork_catchpoint): New function.
7796         (remote_insert_vfork_catchpoint): New function.
7797         (remote_remove_vfork_catchpoint): New function.
7798         (pending_fork_parent_callback): New function.
7799         (remove_new_fork_child): New function.
7800         (remote_update_thread_list): Call remote_notif_get_pending_events
7801         and remove_new_fork_child.
7802         (extended_remote_kill): Kill fork child when killing the
7803         parent before follow_fork completes.
7804         (init_extended_remote_ops): Initialize target vector with
7805         new fork catchpoint functions.
7806
7807 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7808
7809         * remote.c (remove_vfork_event_p): New function.
7810         (remote_follow_fork): Add vfork event type to event checking.
7811         (remote_parse_stop_reply): New stop reasons "vfork" and
7812         "vforkdone" for RSP 'T' Stop Reply Packet.
7813
7814 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7815
7816         * linux-nat.c (linux_nat_ptrace_options): New function.
7817         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7818         Call linux_nat_ptrace_options and use different argument to
7819         linux_enable_event_reporting.
7820         (_initialize_linux_nat): Delete call to
7821         linux_ptrace_set_additional_flags.
7822         * nat/linux-ptrace.c (current_ptrace_options): Rename to
7823         supported_ptrace_options.
7824         (additional_flags): Delete variable.
7825         (linux_check_ptrace_features): Use supported_ptrace_options.
7826         (linux_test_for_tracesysgood, linux_test_for_tracefork):
7827         Likewise, and remove additional_flags check.
7828         (linux_enable_event_reporting): Change 'attached' argument to
7829         'options'.  Use supported_ptrace_options.
7830         (ptrace_supports_feature): Change comment.  Use
7831         supported_ptrace_options.
7832         (linux_ptrace_set_additional_flags): Delete function.
7833         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7834         Delete function prototype.
7835         * remote.c (remote_fork_event_p): New function.
7836         (remote_detach_pid): New function.
7837         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7838         if doing detach-on-fork.
7839         (remote_follow_fork): New function.
7840         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7841         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7842         (init_extended_remote_ops): Initialize to_follow_fork.
7843
7844 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7845
7846         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7847         from static to extern.
7848         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7849         * remote.c (anonymous enum): <PACKET_fork_event_feature,
7850         * PACKET_vfork_event_feature>: New enumeration constants.
7851         (remote_protocol_features): Add table entries for new packets.
7852         (remote_query_supported): Add new feature queries to qSupported
7853         packet.
7854
7855 2015-05-12  Gary Benson <gbenson@redhat.com>
7856
7857         * remote.c (remote_add_inferior): Call exec_file_locate_attach
7858         for fake PIDs as well as real ones.
7859         (remote_pid_to_exec_file): Send empty annex if PID is fake.
7860
7861 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
7862
7863         * NEWS (Python Scripting): Mention the new gdb.Value methods.
7864         * python/py-value.c (valpy_reference_value): New function.
7865         (valpy_const_value): Likewise.
7866         (value_object_methods): Add new methods.
7867         * value.c (make_cv_value): New function.
7868         * value.h (make_cv_value): Declare.
7869
7870 2015-05-08  Yao Qi  <yao@codesourcery.com>
7871             Sandra Loosemore  <sandra@codesourcery.com>
7872
7873         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7874         to 'lh->include_dirs' before accessing to it.
7875         (psymtab_include_file_name): Likewise.
7876         (dwarf_decode_lines_1): Likewise.
7877         (dwarf_decode_lines): Likewise.
7878         (file_file_name): Likewise.
7879
7880 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7881
7882         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7883         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7884         (nios2_linux_rt_sigreturn_init): Adjust base address of
7885         register save area.
7886
7887 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7888
7889         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7890         "trap 31" as the breakpoint instruction on all targets.
7891
7892 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7893
7894         * infcmd.c (print_return_value): Remove unused declaration.
7895
7896 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7897
7898         * dwarf2read.c (attr_to_dynamic_prop)
7899         <DW_AT_data_member_location>: Use read_type_die isntead of
7900         get_die_type.
7901
7902 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7903
7904         * ada-lang.c (ada_convert_actual): Add handling of formals
7905         passed inside an aligner type.
7906
7907 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7908
7909         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7910
7911 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
7912
7913         PR python/18291
7914         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7915         Print xmethod matcher status.
7916
7917 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7918
7919         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7920         register in the regcache when treating the PSWM register, and vice
7921         versa.
7922
7923 2015-05-07  Gary Benson <gbenson@redhat.com>
7924
7925         * linux-thread-db.c (struct thread_db_info)
7926         <td_ta_map_id2thr_p>: Remove field.
7927         (try_thread_db_load_1): Remove initialization for the above.
7928
7929 2015-05-07  Gary Benson <gbenson@redhat.com>
7930
7931         * linux-thread-db.c (struct thread_db_info)
7932         <td_thr_validate_p>: Remove field.
7933         (try_thread_db_load_1): Remove initialization for the above.
7934
7935 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7936
7937         * compile/compile-object-load.c (compile_object_load): Support
7938         mst_text_gnu_ifunc.
7939
7940 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7941
7942         * compile/compile.c (compile_to_object): Make the cmd_string parameter
7943         const.  Use new variables for the const compatibility.
7944         (eval_compile_command): Make the cmd_string parameter const.
7945         * compile/compile.h (eval_compile_command): Make the cmd_string
7946         parameter const.
7947
7948 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7949
7950         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
7951         comment.
7952         * top.c (deprecated_init_ui_hook): Delete.
7953         (gdb_init): Remove handling of deprecated_init_ui_hook.
7954         * interps.c (clear_interpreter_hooks): Remove handling of
7955         deprecated_init_ui_hook.
7956         * main.c (captured_main): Update comment.
7957
7958 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
7959
7960         * solib.c (_initialize_solib): Add "info dll" alias creation.
7961         * windows-nat.c (set_windows_aliases): Delete.
7962         (_initialize_windows_nat): Remove deprecated_init_ui_hook
7963         assignment.
7964         * NEWS: Add news entry about "info dll" now being available
7965         on all platforms.
7966
7967 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7968
7969         * ada-lang.c (value_assign_to_component): Reformat and improve
7970         documentation. Remove all trailing spaces.
7971
7972 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7973
7974         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7975         Stop counting inlined frames as soon as an out-of-line function
7976         is found.
7977
7978 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
7979
7980         * dwarf2read.c (inherit_abstract_dies): Skip
7981         DW_TAG_GNU_call_site dies while inheriting children of an
7982         abstract DIE into a scope.
7983         (read_lexical_block_scope): Inherit abstract DIE's for
7984         lexical scopes.
7985
7986 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7987
7988         * ada-valprint.c (val_print_packed_array_elements): Delete
7989         variable "len".  Add a type-length check when comparing two
7990         consecutive elements of the array.  Use the element's actual
7991         length in call to value_contents_eq.
7992         * ada-lang.c (ada_value_primitive_packed_val): Always return
7993         a value whose type has been resolved.
7994
7995 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
7996
7997         * ada-lang.c (ada_value_primitive_packed_val): Recompute
7998         BIT_SIZE and LEN if the size of the resolved type is smaller
7999         than BIT_SIZE * HOST_CHAR_BIT.
8000
8001 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8002
8003         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8004         correct address in call to value_at.  Adjust call to
8005         value_address accordingly.
8006
8007 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8008
8009         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8010         to print it.
8011
8012 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8013
8014         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8015         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8016         pinfo->valaddr.
8017         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8018         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8019         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8020         Add handling of addr_stack->valaddr.
8021         (resolve_dynamic_type): Add "valaddr" parameter.
8022         Set pinfo.valaddr field.
8023         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8024         resolve_dynamic_type.
8025         (ada_discrete_type_low_bound): Likewise.
8026         * findvar.c (default_read_var_value): Likewise.
8027         * value.c (value_from_contents_and_address): Likewise.
8028
8029 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8030
8031         * gdbtypes.c (resolve_dynamic_array): Use
8032         create_array_type_with_stride instead of create_array_type.
8033
8034 2015-04-30  DJ Delorie  <dj@redhat.com>
8035
8036         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8037         rl78_decode_opcode
8038
8039 2015-04-29  Doug Evans  <dje@google.com>
8040
8041         PR python/18285
8042         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8043         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8044         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8045         * extension-priv.h (struct extension_language_ops)
8046         <get_xmethod_result_type>: New member.
8047         * extension.c (get_xmethod_result_type): New function.
8048         * extension.h (get_xmethod_result_type): Declare.
8049         * python/py-xmethods.c (get_result_type_method_name): New static
8050         global.
8051         (py_get_result_type_method_name): Ditto.
8052         (gdbpy_get_xmethod_result_type): New function.
8053         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8054         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8055         * python/python.c (python_extension_ops): Add
8056         gdbpy_get_xmethod_result_type.
8057         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8058         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8059         xmethods.
8060         (value_x_unop): Ditto.
8061         * value.c (result_type_of_xmethod): New function.
8062         * value.h (result_type_of_xmethod): Declare.
8063
8064 2015-04-29  Gary Benson <gbenson@redhat.com>
8065
8066         * solib.c (solib_find_1): Allow fd argument to be NULL.
8067         (exec_file_find): Update comment.
8068         (solib_find): Likewise.
8069         * exec.c (exec_file_locate_attach): Use NULL as fd
8070         argument to exec_file_find to avoid having to close
8071         the opened file.
8072         * infrun.c (follow_exec): Likewise.
8073
8074 2015-04-28  Doug Evans  <dje@google.com>
8075
8076         PR python/18299
8077         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8078         name or __name__ attributes.  Handle gdb module as first argument.
8079
8080 2015-04-28  Doug Evans  <dje@google.com>
8081
8082         PR python/18089
8083         * python/py-prettyprint.c (print_children): Verify result of children
8084         iterator.  Provide better error message.
8085         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8086         * python/python.c (gdbpy_print_python_errors_p): New function.
8087
8088 2015-04-28  Doug Evans  <dje@google.com>
8089
8090         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8091
8092 2015-04-28  Sasha Smundak  <asmundak@google.com>
8093
8094         * NEWS: Mention gdb.Type.optimized_out method.
8095         * python/py-type.c (typy_optimized_out):  New function.
8096
8097 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8098
8099         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8100
8101 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8102
8103         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8104         (initialize_utils): Move call of init_page_info() to ...
8105         * top.c (gdb_init): ... here.
8106
8107 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8108
8109         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8110         (tui_sigwinch_handler): Still update our idea of
8111         the terminal's width and height even when TUI is not active.
8112
8113 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8114
8115         * utils.h (set_screen_width_and_height): Declare.
8116         * utils.c (set_screen_width_and_height): Define.
8117         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8118
8119 2015-04-28  Gary Benson <gbenson@redhat.com>
8120
8121         * infrun.c (solist.h): New include.
8122         (follow_exec): Use exec_file_find to prefix execd_pathname
8123         with gdb_sysroot.
8124
8125 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8126
8127         * tui/tui-source.c (tui_set_source_content): Avoid calling
8128         strcpy() when offset is 0.
8129
8130 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8131
8132         PR gdb/18155
8133         * tui/tui-data.c (tui_free_window): Don't free the locator
8134         window when passed an SRC_WIN or a DISASSEM_WIN.
8135
8136 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8137
8138         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8139         (tui_win_content): Move declaration.
8140         (struct tui_gen_win_info): Give 'content' field the
8141         type tui_win_content.
8142         * tui/tui-data.c (init_content_element): Remove redundant and
8143         erroneous casts.
8144         (tui_add_content_elements): Remove erroneous cast.
8145         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8146         casts.
8147         (tui_get_begin_asm_address): Likewise.
8148         * tui/tui-regs.c (tui_show_registers): Likewise.
8149         (tui_show_register_group): Likewise.
8150         (tui_display_registers_from): Likewise.
8151         (tui_check_register_values): Likewise.
8152         * tui/tui-source.c (tui_set_source_content): Likewise.
8153         (tui_set_source_content_nil): Likewise.
8154         (tui_source_is_displayed): Likewise.
8155         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8156         (tui_set_locator_fullname): Likewise.
8157         (tui_set_locator_info): Likewise.
8158         (tui_show_frame_info): Likewise.
8159         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8160         (tui_show_source_line): Likewise.
8161         (tui_horizontal_source_scroll): Likewise.
8162         (tui_update_breakpoint_info): Likewise.
8163         (tui_set_exec_info_content): Likewise.
8164         (tui_show_exec_info_content): Likewise.
8165         (tui_alloc_source_buffer): Likewise.
8166         (tui_line_is_displayed): Likewise.
8167         (tui_addr_is_displayed): Likewise.
8168
8169 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8170
8171         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8172         event if PL_FLAG_EXEC is set.
8173         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8174         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8175         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8176         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8177         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8178
8179 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8180
8181         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8182         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8183         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8184         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8185         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8186         [PT_LWPINFO] (fbsd_wait): New function.
8187         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8188         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8189         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8190         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8191         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8192         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8193         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8194         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8195         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8196         "fbsd_wait".
8197         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8198         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8199         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8200         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8201         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8202         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8203         Set "to_post_attach" to "fbsd_post_attach".
8204
8205 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8206
8207         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8208         (fbsd_find_memory_regions): Mark static.
8209         (fbsd_nat_add_target): New function.
8210         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8211         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8212         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8213         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8214         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8215         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8216
8217 2015-04-27  Gary Benson <gbenson@redhat.com>
8218
8219         * objfiles.c (allocate_objfile): Do not attempt to expand name
8220         if name is a "target:" filename.
8221         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8222         to load auto-load scripts for objfiles with "target:" filenames.
8223
8224 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8225
8226         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8227         (enum s390_vector_abi_kind): New enum.
8228         (struct gdbarch_tdep)<vector_abi>: New field.
8229         (s390_effective_inner_type): Add parameter min_size.  Stop
8230         unwrapping if the inner type is smaller than min_size.
8231         (s390_function_arg_float): Adjust call to
8232         s390_effective_inner_type.
8233         (s390_function_arg_vector): New function.
8234         (s390_function_arg_integer): Adjust comment.
8235         (struct s390_arg_state)<vr>: New field.
8236         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8237         arguments according to vector ABI when appropriate.
8238         (s390_push_dummy_call): Initialize the argument state's field
8239         'vr'.  Adjust calls to s390_handle_arg.
8240         (s390_register_return_value): Handle vector return values.
8241         (s390_return_value): Apply the "register" return value convention
8242         to a vector when appropriate.
8243         (s390_gdbarch_init): Initialize tdep->vector_abi.
8244         * NEWS: Announce S390 vector ABI support.
8245
8246 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8247
8248         * s390-linux-tdep.c (s390_return_value_convention): Remove
8249         function.  Inline its logic...
8250         (s390_return_value): ...here.  Instead, move the handling of the
8251         "register" return value convention...
8252         (s390_register_return_value): ...here.  New function.
8253
8254 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8255
8256         * s390-linux-tdep.c
8257         (is_float_singleton): Remove function.  Move the "singleton" part
8258         of the logic...
8259         (s390_effective_inner_type): ...here.  New function.
8260         (is_float_like): Remove function.  Inline its logic...
8261         (s390_function_arg_float): ...here.
8262         (is_pointer_like, is_integer_like, is_struct_like): Remove
8263         functions.  Inline their logic...
8264         (s390_function_arg_integer): ...here.
8265         (s390_function_arg_pass_by_reference): Remove function.
8266         (extend_simple_arg): Remove function.
8267         (alignment_of): Remove function.
8268         (struct s390_arg_state): New structure.
8269         (s390_handle_arg): New function.
8270         (s390_push_dummy_call): Move parameter placement logic to the new
8271         function s390_handle_arg.  Call it for calculating the stack area
8272         sizes first, and again for actually writing the parameters.
8273
8274 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8275
8276         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8277           false if the argument is zero.
8278
8279 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8280
8281         * ada-lang.c (template_to_static_fixed_type): Return input type
8282         when it is already fixed.  Cache the input type itself when not
8283         creating a static fixed copy.  Make it explicit that we never
8284         molestate the input type.
8285         * gdbtypes.c (resolve_dynamic_struct): Reset the
8286         TYPE_TARGET_TYPE field for resolved copies.
8287
8288 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8289
8290         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8291         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8292         (template_to_static_fixed_type): Call ada_check_typedef only
8293         when necessary.
8294
8295 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8296
8297         * cli/cli-dump.c (srec_dump_command): Add internationalization
8298         mark ups.
8299         (ihex_dump_command): Likewise.
8300         (tekhex_dump_command): Likewise.
8301         (binary_dump_command): Likewise.
8302         (binary_append_command): Likewise.
8303
8304 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8305
8306         * cli/cli-dump.c (verilog_cmdlist): New variable.
8307         (dump_verilog_memory): New function.
8308         (dump_verilog_value): New function.
8309         (verilog_dump_command): New function.
8310         (_initialize_cli_dump): Add new commands to support verilog dump
8311         format.
8312         * NEWS: Add entry for "dump verilog".
8313
8314 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8315
8316         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8317         descriptive type when there is none.
8318
8319 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8320
8321         * tui/tui-win.c (tui_async_resize_screen): Call
8322         rl_resize_terminal().
8323
8324 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8325
8326         * windows-nat.c (handle_output_debug_string): Don't change
8327         current_event.dwThreadId.
8328         (get_windows_debug_event): Use thread_id, rather than relying on
8329         current_event.dwThreadId being changed.
8330
8331 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8332
8333         * windows-nat.c (windows_continue): Report an error if
8334         ContinueDebugEvent() fails.
8335
8336 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8337
8338         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8339
8340 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8341
8342         * windows-nat.c (get_windows_debug_event): Replace retval with
8343         thread_id throughout.  Update stale comment.
8344
8345 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8346
8347         * windows-nat.c (get_windows_debug_event): Don't use ternary
8348         conditional operator.
8349
8350 2015-04-21  Pierre Muller  <muller@sourceware.org>
8351
8352         PR pascal/17815
8353         p-exp.y (yylex): Reorganize code to return the matched pattern
8354         for a field of this.
8355
8356 2015-04-21  Gary Benson <gbenson@redhat.com>
8357
8358         * common/fileio.h (fileio_to_host_openflags): New declaration.
8359         * common/fileio.c (fcntl.h): New include.
8360         (fileio_to_host_openflags): New function, factored out from...
8361         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8362         Single use updated.
8363
8364 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8365
8366         * rl78-tdep.c (RL78_SP_ADDR): Define.
8367         (opc_reg_to_gdb_regnum): New static function.
8368         (rl78_analyze_prologue): Recognize instructions forming slightly
8369         more interesting prologues.
8370
8371 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8372
8373         Revert:
8374         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8375         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8376         TYPE_CODE_REF types so that they are not considered as dynamic
8377         depending on the referenced type.
8378         (resolve_dynamic_type_internal): Likewise.
8379
8380 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8381
8382         Revert:
8383         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8384         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8385         "top_level" parameter.
8386         (resolve_dynamic_type_internal): Remove the unused "top_level"
8387         parameter.  Update call to is_dynamic_type_internal.
8388         (is_dynamic_type): Update call to is_dynamic_type_internal.
8389         (resolve_dynamic_range): Update call to
8390         resolve_dynamic_type_internal.
8391         (resolve_dynamic_union): Likewise.
8392         (resolve_dynamic_struct): Likewise.
8393         (resolve_dynamic_type): Likewise.
8394
8395 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8396
8397         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8398         xmalloc.
8399
8400 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8401
8402         * reply_mig_hack.awk: Robustify parsing.
8403
8404         * reply_mig_hack.awk: Don't bother to declare an intermediate
8405         function pointer variable.
8406
8407 2015-04-17  Doug Evans  <dje@google.com>
8408
8409         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8410         to "exec_displacement" to avoid confusion with inner use of the name.
8411
8412 2015-04-17  Pedro Alves  <palves@redhat.com>
8413
8414         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8415         if HW point of TYPE isn't supported.
8416
8417 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8418             Pedro Alves  <palves@redhat.com>
8419
8420         * target.h (target_can_use_hardware_watchpoint): Update comments.
8421         Remove trailing ";".
8422
8423 2015-04-17  Gary Benson <gbenson@redhat.com>
8424
8425         * remote.c (remote_add_inferior): New argument try_open_exec.
8426         If nonzero, attempt to open the inferior's executable file as
8427         the main executable if no main executable is open already.
8428         All callers updated.
8429         * NEWS: Mention that GDB now supports automatic location and
8430         retrieval of executable + files from remote targets.
8431
8432 2015-04-17  Gary Benson <gbenson@redhat.com>
8433
8434         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8435         * remote.c (PACKET_qXfer_exec_file): Likewise.
8436         (remote_protocol_features): Register the
8437         "qXfer:exec-file:read" feature.
8438         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8439         (remote_pid_to_exec_file): New function.
8440         (init_remote_ops): Initialize to_pid_to_exec_file.
8441         (_initialize_remote): Register new "set/show remote
8442         pid-to-exec-file-packet" command.
8443         * NEWS: Announce new qXfer:exec-file:read packet.
8444
8445 2015-04-17  Gary Benson <gbenson@redhat.com>
8446
8447         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8448         New declaration.
8449         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8450         New function, factored out from...
8451         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8452
8453 2015-04-17  Gary Benson <gbenson@redhat.com>
8454
8455         * exec.c (solist.h): New include.
8456         (exec_file_locate_attach): Prefix absolute executable
8457         paths with gdb_sysroot if set.
8458         * NEWS: Mention that executable paths may be prepended
8459         with sysroot.
8460
8461 2015-04-17  Gary Benson <gbenson@redhat.com>
8462
8463         * solist.h (exec_file_find): New declaration.
8464         * solib.c (solib_find_1): New function, factored out from...
8465         (solib_find): ...here.
8466         (exec_file_find): New function.
8467
8468 2015-04-17  Gary Benson <gbenson@redhat.com>
8469
8470         * gdbcore.h (exec_file_locate_attach): New declaration.
8471         * exec.c (exec_file_locate_attach): New function, factored
8472         out from...
8473         * infcmd.c (attach_command_post_wait): ...here.
8474
8475 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8476
8477         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8478
8479 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8480
8481         * infrun.c (maybe_software_singlestep): Declare.
8482         (displaced_step_fixup): Call maybe_software_singlestep.
8483
8484 2015-04-15  Doug Evans  <dje@google.com>
8485
8486         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8487
8488 2015-04-15  Doug Evans  <dje@google.com>
8489
8490         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8491
8492 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8493
8494         * python/lib/gdb/command/unwinders.py: Add parentheses.
8495
8496 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8497
8498         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8499
8500 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8501
8502         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8503
8504 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8505
8506         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8507         dsc->insn_size instead of 4.
8508
8509 2015-04-14  Gary Benson <gbenson@redhat.com>
8510
8511         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8512         * minidebug.c (lzma_stat): Likewise.
8513         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8514         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8515
8516 2015-04-13  Stan Shebs  <stanshebs@google.com>
8517
8518         * MAINTAINERS: Update my email address.
8519
8520 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8521
8522         * amd64-tdep.c (amd64_target_description): New function.
8523         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8524         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8525         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8526         x86 extended save area.
8527         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8528         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8529         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8530         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8531         "amd64fbsd_read_description".
8532         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8533         (amd64fbsd_supply_xstateregset): New function.
8534         (amd64fbsd_collect_xstateregset): New function.
8535         Add "amd64fbsd_xstateregset".
8536         (amd64fbsd_iterate_over_regset_sections): New function.
8537         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8538         "I386_FBSD_XSAVE_XCR0_OFFSET".
8539         Add "iterate_over_regset_sections" gdbarch method.
8540         Add "core_read_description" gdbarch method.
8541         * i386-tdep.c (i386_target_description): New function.
8542         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8543         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8544         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8545         x86 extended save area.
8546         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8547         * i386bsd-nat.h: Export i386bsd_xsave_len.
8548         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8549         (_initialize_i386fbsd_nat): Set "to_read_description" to
8550         "i386fbsd_read_description".
8551         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8552         (i386fbsd_core_read_description): New function.
8553         (i386fbsd_supply_xstateregset): New function.
8554         (i386fbsd_collect_xstateregset): New function.
8555         Add "i386fbsd_xstateregset".
8556         (i386fbsd_iterate_over_regset_sections): New function.
8557         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8558         "I386_FBSD_XSAVE_XCR0_OFFSET".
8559         Add "iterate_over_regset_sections" gdbarch method.
8560         Add "core_read_description" gdbarch method.
8561         * i386fbsd-tdep.h: New file.
8562
8563 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8564
8565         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8566         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8567         conditional.
8568         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8569         and lb.
8570         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8571         va.
8572         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8573         conditional.
8574         * defs.h (xdb_commands): Remove declaration.
8575         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8576         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8577         * infcmd.c (run_no_args_command, go_command): Remove.
8578         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8579         * infrun.c (xdb_handle_command): Remove.
8580         (_initialize_infrun): Remove xdb_commands for lz and z.
8581         * main.c (xdb_commands): Remove variable.
8582         (captured_main): Remove "xdb" from long_options.
8583         (print_gdb_help): Remove --xdb from help.
8584         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8585         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8586         * stack.c (backtrace_full_command, args_plus_locals_info)
8587         (current_frame_command): Remove.
8588         (_initialize_stack): Remove xdb_commands for t, T and l.
8589         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8590         * thread.c (_initialize_thread): Remove xdb_commands condition.
8591         * tui/tui-layout.c (tui_toggle_layout_command)
8592         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8593         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8594         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8595         (tui_scroll_regs_backward_command): Remove.
8596         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8597         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8598         (_initialize_tui_win): Remove xdb_commands for U and w.
8599         * utils.c (pagination_on_command, pagination_off_command): Remove.
8600         (initialize_utils): Remove xdb_commands for am and sm.
8601
8602 2015-04-10  Pedro Alves  <palves@redhat.com>
8603
8604         * infrun.c (displaced_step_fixup): Switch to the event ptid
8605         earlier.  If the thread stopped for a watchpoint and the
8606         target/arch has non-continuable watchpoints, cancel the displaced
8607         step.
8608         (resume): Don't start a displaced step if in-line step-over info
8609         is valid.
8610
8611 2015-04-10  Pedro Alves  <palves@redhat.com>
8612
8613         * infrun.c (displaced_step_in_progress): New function.
8614         (do_target_resume): Advise target to report all signals if
8615         displaced stepping.
8616
8617 2015-04-10  Pedro Alves  <palves@redhat.com>
8618
8619         PR gdb/18216
8620         * infrun.c (process_event_stop_test): Don't assume a step-resume
8621         is set if tp->stepped_breakpoint is true.
8622
8623 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8624
8625         * arm-tdep.c (install_alu_reg): Update comment.
8626         (thumb_copy_alu_reg): Remove local variable rn.  Update
8627         debugging message.  Use r2 instead of r1 in the modified
8628         instruction.
8629
8630 2015-04-10  Pedro Alves  <palves@redhat.com>
8631
8632         PR gdb/13858
8633         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8634         linux_displaced_step_location as gdbarch_displaced_step_location
8635         hook.
8636         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8637         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8638         * linux-tdep.c (linux_displaced_step_location): New function,
8639         based on ppc_linux_displaced_step_location.
8640         * linux-tdep.h (linux_displaced_step_location): New declaration.
8641         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8642         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8643         Delete.
8644         (ppc_linux_init_abi): Install linux_displaced_step_location as
8645         gdbarch_displaced_step_location hook, even without Cell/B.E..
8646         (_initialize_ppc_linux_tdep): Don't install
8647         ppc_linux_inferior_created as inferior_created observer.
8648         * s390-linux-tdep.c (s390_gdbarch_init): Install
8649         linux_displaced_step_location as gdbarch_displaced_step_location
8650         hook.
8651
8652 2015-04-09  Gary Benson <gbenson@redhat.com>
8653
8654         * common/common-remote-fileio.h: Rename to...
8655         * common/fileio.h: ...this.  Update all references.
8656         (remote_fileio_to_fio_error): Rename to...
8657         (host_to_fileio_error): ...this.
8658         (remote_fileio_to_be): Rename to...
8659         (host_to_bigendian): ...this.  Update all callers.
8660         (remote_fileio_to_fio_uint): Rename to...
8661         (host_to_fileio_uint): ...this.  Update all callers.
8662         (remote_fileio_to_fio_time): Rename to...
8663         (host_to_fileio_time): ...this.  Update all callers.
8664         (remote_fileio_to_fio_stat): Rename to...
8665         (host_to_fileio_stat): ...this.
8666         Update all references.
8667         * common/common-remote-fileio.c: Rename to...
8668         * common/fileio.c: ...this.  Update all references.
8669         (remote_fileio_to_fio_error): Rename to...
8670         (host_to_fileio_error): ...this.  Update all callers.
8671         (remote_fileio_mode_to_target): Rename to...
8672         (fileio_mode_pack): ...this.  Update all callers.
8673         (remote_fileio_to_fio_mode): Rename to...
8674         (host_to_fileio_mode): ...this.  Update all callers.
8675         (remote_fileio_to_fio_ulong): Rename to...
8676         (host_to_fileio_ulong): ...this.  Update all callers.
8677         (remote_fileio_to_fio_stat): Rename to...
8678         (host_to_fileio_stat): ...this.  Update all callers.
8679
8680 2015-04-09  Andy Wingo  <wingo@igalia.com>
8681
8682         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8683         (frame_functions): Bind gdbscm_frame_read_register to
8684         frame-read-register.
8685         * guile/lib/gdb.scm (frame-read-register): Export.
8686
8687 2015-04-09  Gary Benson <gbenson@redhat.com>
8688
8689         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8690         New declaration.
8691         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8692         New function, factored out the named functions below.
8693         * inf-child.c (gdb/fileio.h): Remove include.
8694         (common-remote-fileio.h): New include.
8695         (inf_child_errno_to_fileio_error): Remove function.  Update
8696         all callers to use remote_fileio_to_fio_error.
8697         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8698
8699 2015-04-09  Andy Wingo  <wingo@igalia.com>
8700
8701         * MAINTAINERS (Write After Approval): Add Andy Wingo.
8702
8703 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8704
8705         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8706         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8707         * configure: Regenerated.
8708
8709 2015-04-09  Pedro Alves  <palves@redhat.com>
8710
8711         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8712         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8713         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8714         * gnulib/import/Makefile.am: Update.
8715         * gnulib/import/Makefile.in: Update.
8716         * gnulib/import/m4/gnulib-cache.m4: Update.
8717         * gnulib/import/m4/gnulib-comp.m4: Update.
8718         * gnulib/import/m4/strtok_r.m4: New file.
8719         * gnulib/import/strtok_r.c: New file.
8720
8721 2015-04-09  Pedro Alves  <palves@redhat.com>
8722
8723         * gnulib/update-gnulib.sh (aclocal version check): Filter out
8724         "called too early to check prototype".
8725
8726 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
8727
8728         PR python/16699
8729         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8730         use a caching mechanism.  Adjust comments and code to reflect
8731         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8732         (cmdpy_completer_handle_brkchars): Adjust call to
8733         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
8734         (cmdpy_completer): Likewise.
8735
8736 2015-04-08  Yao Qi  <yao.qi@linaro.org>
8737
8738         * spu-tdep.c (spu_gdbarch_init): Don't call
8739         set_gdbarch_cannot_step_breakpoint.
8740
8741 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
8742
8743         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8744
8745 2015-04-07  Pedro Alves  <palves@redhat.com>
8746
8747         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8748         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8749         (delete_exited_threads): New declaration.
8750         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8751         * linux-nat.c (linux_nat_update_thread_list): New function.
8752         (linux_nat_add_target): Install it.
8753         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8754         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8755         (delete_exited_threads): New function.
8756
8757 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
8758
8759         * infrun.c (resume) <displaced stepping debug output>: Get the
8760         leader thread's regcache, not resume_ptid's.
8761
8762 2015-04-06  Doug Evans  <xdje42@gmail.com>
8763
8764         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8765         VAR_DOMAIN.
8766         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8767         Include symbol domain in debugging output.
8768
8769 2015-04-06  Pedro Alves  <palves@redhat.com>
8770             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8771
8772         * configure.ac: Remove the mingw32-specific stub-termcap.o
8773         fallback, and instead fallback to the stub termcap on all hosts.
8774         * configure: Regenerate.
8775         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8776         symbols.
8777
8778 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8779
8780         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8781         "top_level" parameter.
8782         (resolve_dynamic_type_internal): Remove the unused "top_level"
8783         parameter.  Update call to is_dynamic_type_internal.
8784         (is_dynamic_type): Update call to is_dynamic_type_internal.
8785         (resolve_dynamic_range): Update call to
8786         resolve_dynamic_type_internal.
8787         (resolve_dynamic_union): Likewise.
8788         (resolve_dynamic_struct): Likewise.
8789         (resolve_dynamic_type): Likewise.
8790
8791 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8792
8793         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8794         TYPE_CODE_REF types so that they are not considered as dynamic
8795         depending on the referenced type.
8796         (resolve_dynamic_type_internal): Likewise.
8797
8798 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8799
8800         * Makefile.in (top_srcdir): New.
8801         * configure: Regenerated.
8802
8803 2015-04-02  Gary Benson <gbenson@redhat.com>
8804
8805         * NEWS: Announce the new default sysroot of "target:".
8806
8807 2015-04-02  Gary Benson <gbenson@redhat.com>
8808
8809         * main.c (captured_main): Set gdb_sysroot to "target:"
8810         if not otherwise set.
8811
8812 2015-04-02  Gary Benson <gbenson@redhat.com>
8813
8814         * exec.c (exec_file_attach): Support "target:" filenames.
8815
8816 2015-04-02  Gary Benson <gbenson@redhat.com>
8817
8818         * solib.c (solib_find): Strip "target:" prefix from sysroot
8819         if accessing local files.
8820
8821 2015-04-02  Gary Benson <gbenson@redhat.com>
8822
8823         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8824         checks and error messages.
8825
8826 2015-04-02  Gary Benson <gbenson@redhat.com>
8827
8828         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8829         (remote_filename_p): Remove declaration.
8830         (remote_bfd_open): Likewise.
8831         * remote.c (remote_bfd_iovec_open): Remove function.
8832         (remote_bfd_iovec_close): Likewise.
8833         (remote_bfd_iovec_pread): Likewise.
8834         (remote_bfd_iovec_stat): Likewise.
8835         (remote_filename_p): Likewise.
8836         (remote_bfd_open): Likewise.
8837         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8838         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8839         (gdb_bfd_open_maybe_remote): Remove function.
8840         (symfile_bfd_open):  Replace remote filename check with
8841         target filename check.
8842         (reread_symbols): Use gdb_bfd_open.
8843         * build-id.c (gdbcore.h): New include.
8844         (build_id_to_debug_bfd): Use gdb_bfd_open.
8845         * infcmd.c (attach_command_post_wait): Remove remote filename
8846         check.
8847         * solib.c (solib_find): Replace remote-specific handling with
8848         target-specific handling.  Update comments where necessary.
8849         (solib_bfd_open): Replace remote-specific handling with
8850         target-specific handling.
8851         (gdb_sysroot_changed): New function.
8852         (_initialize_solib): Call the above when gdb_sysroot changes.
8853         * windows-tdep.c (gdbcore.h): New include.
8854         (windows_xfer_shared_library): Use gdb_bfd_open.
8855
8856 2015-04-02  Gary Benson <gbenson@redhat.com>
8857
8858         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8859         (is_target_filename): New declaration.
8860         (gdb_bfd_has_target_filename): Likewise.
8861         (gdb_bfd_open): Update documentation comment.
8862         * gdb_bfd.c (target.h): New include.
8863         (gdb/fileio.h): Likewise.
8864         (is_target_filename): New function.
8865         (gdb_bfd_has_target_filename): Likewise.
8866         (fileio_errno_to_host): Likewise.
8867         (gdb_bfd_iovec_fileio_open): Likewise.
8868         (gdb_bfd_iovec_fileio_pread): Likewise.
8869         (gdb_bfd_iovec_fileio_close): Likewise.
8870         (gdb_bfd_iovec_fileio_fstat): Likewise.
8871         (gdb_bfd_open): Use target fileio to access paths prefixed
8872         with "target:" where necessary.
8873
8874 2015-04-02  Gary Benson <gbenson@redhat.com>
8875
8876         * target.h (struct target_ops) <to_filesystem_is_local>:
8877         New field.
8878         (target_filesystem_is_local): New macro.
8879         * target-delegates.c: Regenerate.
8880         * remote.c (remote_filesystem_is_local): New function.
8881         (init_remote_ops): Initialize to_filesystem_is_local.
8882
8883 2015-04-02  Gary Benson <gbenson@redhat.com>
8884
8885         * target.h (struct target_ops) <to_fileio_fstat>: New field.
8886         (target_fileio_fstat): New declaration.
8887         * target.c (target_fileio_fstat): New function.
8888         * inf-child.c (inf_child_fileio_fstat): Likewise.
8889         (inf_child_target): Initialize to_fileio_fstat.
8890         * remote.c (init_remote_ops): Likewise.
8891
8892 2015-04-01  Sasha Smundak  <asmundak@google.com>
8893
8894         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8895         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8896         (py-unwind.o): New recipe.
8897         * NEWS: mention Python frame unwinding.
8898         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8899         gdb/unwinder.py and gdb/command/unwinder.py
8900         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8901         list.
8902         (execute_unwinders): New function.
8903         * python/lib/gdb/command/unwinders.py: New file.
8904         * python/lib/gdb/unwinder.py: New file.
8905         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8906         (objfpy_dealloc): Decrement frame_unwinders reference count.
8907         (objfpy_initialize): Create frame_unwinders list.
8908         (objfpy_get_frame_unwinders): New function.
8909         (objfpy_set_frame_unwinders): Ditto.
8910         (objfile_getset): Add frame_unwinders attribute to Objfile.
8911         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8912         (pspy_dealloc): Decrement frame_unwinders reference count.
8913         (pspy_initialize): Create frame_unwinders list.
8914         (pspy_get_frame_unwinders): New function.
8915         (pspy_set_frame_unwinders): Ditto.
8916         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8917         * python/py-unwind.c: New file.
8918         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8919         (objpy_get_frame_unwinders): New prototype.
8920         (gdbpy_initialize_unwind): New prototype.
8921         * python/python.c (gdbpy_apply_type_printers): Call
8922         gdbpy_initialize_unwind.
8923
8924 2015-04-01  Pedro Alves  <palves@redhat.com>
8925
8926         * infrun.c (resume): Check currently_stepping after clearing
8927         stepped_breakpoint, not before.
8928
8929 2015-04-01  Pedro Alves  <palves@redhat.com>
8930
8931         * infrun.c (print_target_wait_results): Print all the ptid
8932         elements.
8933
8934 2015-04-01  Pedro Alves  <palves@redhat.com>
8935
8936         * infrun.c (keep_going): Also discard cleanups if inserting
8937         breakpoints fails.
8938
8939 2015-04-01  Pedro Alves  <palves@redhat.com>
8940
8941         * infrun.c (wait_for_inferior): Install the
8942         finish_thread_state_cleanup cleanup across the whole function, not
8943         just around handle_inferior_event.
8944
8945 2015-04-01  Pedro Alves  <palves@redhat.com>
8946
8947         * infrun.c (resume) <step past permanent breakpoint>: Use
8948         do_target_resume.
8949
8950 2015-04-01  Pedro Alves  <palves@redhat.com>
8951
8952         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8953
8954 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
8955
8956         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8957
8958 2015-04-01  Pedro Alves  <palves@redhat.com>
8959
8960         * linux-thread-db.c (record_thread): Readd the thread to gdb's
8961         list if it was marked exited.
8962
8963 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
8964
8965         * configure: Regenerated.
8966
8967 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8968             Jan Kratochvil  <jan.kratochvil@redhat.com>
8969             Oleg Nesterov  <oleg@redhat.com>
8970
8971         PR corefiles/16092
8972         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8973         New enum identifying the various options of the coredump_filter
8974         file.
8975         (struct smaps_vmflags): New struct.
8976         (use_coredump_filter): New variable.
8977         (decode_vmflags): New function.
8978         (mapping_is_anonymous_p): Likewise.
8979         (dump_mapping_p): Likewise.
8980         (linux_find_memory_regions_full): New variables
8981         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8982         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
8983         parsing of its information.  Implement memory mapping filtering
8984         based on its contents.
8985         (show_use_coredump_filter): New function.
8986         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8987         * NEWS: Mention the possibility of using the
8988         '/proc/PID/coredump_filter' file when generating a corefile.
8989         Mention new command 'set use-coredump-filter'.
8990
8991 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
8992
8993         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8994         read_memory_unsigned_integer.
8995
8996 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8997
8998         * Makefile.in (ZLIB): New.
8999         (ZLIBINC): Likewise.
9000         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9001         (CLIBS): Add $(ZLIB).
9002         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9003         Add -lz to LIBS.
9004         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9005         * top.c (print_gdb_configuration): Remove --with-zlib and
9006         --without-zlib.
9007         * config.in: Regenerated.
9008         * configure: Likewise.
9009
9010 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9011
9012         * NEWS: Mention info os cpus support.
9013         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9014         (struct osdata_type): Add cpus entry, reorder the entries in
9015         alphabetical order.
9016
9017 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9018
9019         * compile/compile.c (compile_to_object): Allow triplets with or
9020         without vendor set.
9021
9022 2015-03-30  Doug Evans  <dje@google.com>
9023
9024         PR c++/18141
9025         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9026         klass in VAR_DOMAIN.
9027
9028 2015-03-30  Gary Benson <gbenson@redhat.com>
9029
9030         * remote.c (remote_mourn_1): Remove function.  Update all callers
9031         to use remote_mourn.
9032         (extended_remote_mourn_1): Remove function.  Update all callers
9033         to use extended_remote_mourn.
9034         (extended_remote_attach_1): Remove function.  Update all callers
9035         to use extended_remote_attach.
9036
9037 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9038
9039         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9040         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9041         (ALLDEPFILES): Add ft32-tdep.c.
9042         * configure.tgt: Add FT32 entry.
9043         * ft32-tdep.c: New file, FT32 target-dependent code.
9044         * ft32-tdep.h: New file, FT32 target-dependent code.
9045
9046 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9047
9048         Revert:
9049         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9050         Code cleanup.
9051         * printcmd.c (print_command_1): Move expr variable scope.
9052
9053 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9054
9055         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9056
9057 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9058
9059         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9060         sections.
9061
9062 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9063
9064         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9065         exception raised while parsing the probe arguments.
9066         Force parsing to be done using the C language parser.
9067         * expression.h (parse_expression_with_language): Declare.
9068         * parse.c (parse_expression_with_language): New function.
9069
9070 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9071
9072         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9073
9074 2015-03-26  Andy Wingo  <wingo@igalia.com>
9075
9076         PR symtab/18148
9077         * dwarf2read.c (struct partial_die_info): Add has_const_value
9078         member.
9079         (add_partial_symbol): Don't punt on symbols that have const_value
9080         attributes.
9081         (read_partial_die): Detect DW_AT_const_value.
9082
9083 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9084
9085         Code cleanup.
9086         * printcmd.c (print_command_1): Move expr variable scope.
9087
9088 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9089
9090         Code cleanup.
9091         * printcmd.c (validate_format): Make the parameter cmdname const.
9092
9093 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9094
9095         * remote.c (_initialize_remote): Update comment.
9096
9097 2015-03-26  Pedro Alves  <palves@redhat.com>
9098             Jon TURNEY  <jon.turney@dronecode.org.uk>
9099
9100         * coffread.c (coff_symfile_read): When constructing the name of an
9101         import stub symbol from import symbol for amd64, only skip the
9102         char after _imp_ if the target is underscored (like i386) and the
9103         char is indeed the target's leading char.
9104
9105 2015-03-25  Pedro Alves  <palves@redhat.com>
9106
9107         * target.h <to_async>: Replace 'callback' and 'context' parameters
9108         with boolean 'enable' parameter.
9109         (target_async): Replace CALLBACK and CONTEXT parameters with
9110         boolean ENABLE parameter.
9111         * inf-loop.c (inferior_event_handler): Adjust.
9112         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9113         (linux_nat_resume): Adjust.
9114         (async_client_callback, async_client_context): Delete.
9115         (handle_target_event): Call inferior_event_handler directly.
9116         (linux_nat_async): Replace 'callback' and 'context' parameters
9117         with boolean 'enable' parameter.  Adjust.  Remove references to
9118         async_client_callback and async_client_context.
9119         (linux_nat_close): Adjust.
9120         * record-btrace.c (record_btrace_async): Replace 'callback' and
9121         'context' parameters with boolean 'enable' parameter.  Adjust.
9122         (record_btrace_resume): Adjust.
9123         * record-full.c (record_full_async): Replace 'callback' and
9124         'context' parameters with boolean 'enable' parameter.  Adjust.
9125         (record_full_resume, record_full_core_resume): Adjust.
9126         * remote.c (struct remote_state) <async_client_callback,
9127         async_client_context>: Delete fields.
9128         (remote_start_remote, extended_remote_attach_1, remote_resume)
9129         (extended_remote_create_inferior): Adjust.
9130         (remote_async_serial_handler): Call inferior_event_handler
9131         directly.
9132         (remote_async): Replace 'callback' and 'context' parameters with
9133         boolean 'enable' parameter.  Adjust.
9134         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9135         Adjust.
9136         * target-delegates.c: Regenerate.
9137
9138 2015-03-25  Gary Benson <gbenson@redhat.com>
9139             Pedro Alves  <palves@redhat.com>
9140
9141         * target.c (fileio_ft_t): New typedef, define object vector.
9142         (fileio_fhandles): New static variable.
9143         (is_closed_fileio_fh): New macro.
9144         (lowest_closed_fd): New static variable.
9145         (acquire_fileio_fd): New function.
9146         (release_fileio_fd): Likewise.
9147         (fileio_fd_to_fh): New macro.
9148         (target_fileio_open): Wrap the file descriptor on success.
9149         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9150         (target_fileio_pread): Likewise.
9151         (target_fileio_close): Likewise.
9152
9153 2015-03-24  Pedro Alves  <palves@redhat.com>
9154
9155         * thread.c (thread_apply_all_command): Take exited threads into
9156         account.
9157
9158 2015-03-24  Pedro Alves  <palves@redhat.com>
9159
9160         * infrun.c (resume, proceed): Mention
9161         switch_back_to_stepped_thread, not switch_back_to_stepping.
9162
9163 2015-03-24  Pedro Alves  <palves@redhat.com>
9164
9165         * infrun.c (user_visible_resume_ptid): Rewrite going from
9166         most-locked to unlocked instead of the opposite.  Move comment ...
9167         * infrun.h (user_visible_resume_ptid): ... here.
9168
9169 2015-03-24  Pedro Alves  <palves@redhat.com>
9170
9171         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9172         to resume the event lwp.  Use the lwp's ptid instead of the passed
9173         in (maybe wildcard) ptid.
9174         (stop_wait_callback): Tweak debug log output.
9175         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9176         TRAP_TRACE.
9177         (linux_nat_filter_event): In debug output, distinguish a
9178         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9179         before trying to resume the lwp.
9180
9181 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9182
9183         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9184         pointer indirection.
9185         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9186         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9187
9188 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9189
9190         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9191         Renames DYN_ATTR_DATA_LOCATION.
9192         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9193         DYN_ATTR_DATA_LOCATION.
9194         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9195         instead of DYN_ATTR_DATA_LOCATION.
9196
9197 2015-03-24  Pedro Alves  <palves@redhat.com>
9198
9199         * breakpoint.c (until_break_command): Adjust call to proceed.
9200         * gdbthread.h (struct thread_control_state) <stepping_command>:
9201         New field.
9202         * infcall.c (run_inferior_call): Adjust call to proceed.
9203         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9204         Adjust calls to proceed.
9205         (set_step_frame): Set the current thread's step_start_function
9206         here.
9207         (step_once): Adjust calls to proceed.
9208         (jump_command, signal_command, until_next_command)
9209         (finish_backward, finish_forward, proceed_after_attach_callback)
9210         (attach_command_post_wait): Adjust calls to proceed.
9211         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9212         (do_target_resume): New function, factored out from ...
9213         (resume): ... here.  Remove 'step' parameter.  Instead, check
9214         currently_stepping to determine whether the thread should be
9215         single-stepped.
9216         (proceed): Remove 'step' parameter and don't set the thread's
9217         step_start_function here.  Adjust call to 'resume'.
9218         (handle_inferior_event): Adjust calls to 'resume'.
9219         (switch_back_to_stepped_thread): Use do_target_resume instead of
9220         'resume'.
9221         (keep_going): Adjust calls to 'resume'.
9222         * infrun.h (proceed): Remove 'step' parameter.
9223         (resume): Likewise.
9224         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9225         'resume'.
9226         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9227
9228 2015-03-24  Pedro Alves  <palves@redhat.com>
9229
9230         * gdbthread.h (struct thread_control_state) <stepping_command>:
9231         New field.
9232         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9233         the thread's stepping_command field.
9234         * infrun.c (resume): Check the thread's stepping_command flag to
9235         determine which threads should be resumed.  Rename 'entry_step'
9236         local to user_step.
9237         (clear_proceed_status_thread): Clear 'stepping_command'.
9238         (schedlock_applies): Change parameter type to struct thread_info
9239         pointer.  Adjust.
9240         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9241         (switch_back_to_stepped_thread): Adjust calls to
9242         'schedlock_applies'.
9243         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9244
9245 2015-03-24  Pedro Alves  <palves@redhat.com>
9246
9247         * infrun.c (step_start_function): Delete and ...
9248         * gdbthread.h (struct thread_control_state) <step_start_function>:
9249         ... now a field here.
9250         * infrun.c (clear_proceed_status_thread): Clear the thread's
9251         step_start_function.
9252         (proceed, process_event_stop_test, print_stop_event): Adjust.
9253
9254 2015-03-24  Pedro Alves  <palves@redhat.com>
9255
9256         * infrun.c (proceed): No longer handle negative step.
9257
9258 2015-03-24  Gary Benson  <gbenson@redhat.com>
9259
9260         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9261         (x86_linux_prepare_to_resume): Likewise.
9262         * x86-linux-nat.c (x86_linux_new_thread):
9263         Moved to nat/x86-linux.c.
9264         (x86_linux_prepare_to_resume): Likewise.
9265         * nat/x86-linux.c (x86_linux_new_thread): New function.
9266         (x86_linux_prepare_to_resume): Likewise.
9267
9268 2015-03-24  Gary Benson  <gbenson@redhat.com>
9269
9270         * nat/x86-linux-dregs.h: New file.
9271         * nat/x86-linux-dregs.c: Likewise.
9272         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9273         (x86-linux-dregs.o): New rule.
9274         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9275         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9276         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9277         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9278         (x86_linux_dr_get): Likewise.
9279         (x86_linux_dr_set): Likewise.
9280         (x86_linux_dr_get_addr): Likewise.
9281         (x86_linux_dr_get_control): Likewise.
9282         (x86_linux_dr_get_status): Likewise.
9283         (update_debug_registers_callback): Likewise.
9284         (x86_linux_dr_set_control): Likewise.
9285         (x86_linux_dr_set_addr): Likewise.
9286         (x86_linux_update_debug_registers): Likewise.
9287
9288 2015-03-24  Gary Benson  <gbenson@redhat.com>
9289
9290         * x86-linux-nat.c (x86_linux_update_debug_registers):
9291         New function, factored out from...
9292         (x86_linux_prepare_to_resume): ...this.
9293
9294 2015-03-24  Gary Benson  <gbenson@redhat.com>
9295
9296         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9297         (x86_linux_dr_set): Likewise.
9298         (x86_linux_dr_get_addr): Likewise.
9299         (x86_linux_dr_get_control): Likewise.
9300         (x86_linux_dr_get_status): Likewise.
9301         (update_debug_registers_callback): Likewise.
9302         (x86_linux_dr_set_control): Likewise.
9303         (x86_linux_dr_set_addr): Likewise.
9304         (x86_linux_prepare_to_resume): Likewise.
9305         (x86_linux_new_thread): Likewise.
9306
9307 2015-03-24  Gary Benson  <gbenson@redhat.com>
9308
9309         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9310         (x86_linux_new_thread): Rename argument.
9311
9312 2015-03-24  Gary Benson  <gbenson@redhat.com>
9313
9314         * nat/x86-linux.h: New file.
9315         * nat/x86-linux.c: Likewise.
9316         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9317         (x86-linux.o): New rule.
9318         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9319         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9320         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9321         (lwp_set_arch_private_info): New declaration.
9322         (lwp_arch_private_info): Likewise.
9323         * linux-nat.c (lwp_set_arch_private_info): New function.
9324         (lwp_arch_private_info): Likewise.
9325         * x86-linux-nat.c: Include nat/x86-linux.h.
9326         (arch_lwp_info): Removed structure.
9327         (update_debug_registers_callback):
9328         Use lwp_set_debug_registers_changed.
9329         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9330         and lwp_set_debug_registers_changed.
9331         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9332
9333 2015-03-24  Gary Benson  <gbenson@redhat.com>
9334
9335         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9336         (lwp_is_stopped): Likewise.
9337         (lwp_stop_reason): Likewise.
9338         * linux-nat.c (ptid_of_lwp): New function.
9339         (lwp_is_stopped): Likewise.
9340         (lwp_is_stopped_by_watchpoint): Likewise.
9341         * x86-linux-nat.c (update_debug_registers_callback):
9342         Use lwp_is_stopped.
9343         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9344         lwp_stop_reason.
9345
9346 2015-03-24  Gary Benson  <gbenson@redhat.com>
9347
9348         * linux-nat.h (linux_stop_lwp): Move declaration to...
9349         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9350
9351 2015-03-24  Gary Benson  <gbenson@redhat.com>
9352
9353         * linux-nat.h: Include nat/linux-nat.h.
9354         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9355         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9356         (iterate_over_lwps_ftype): New typedef.
9357         (iterate_over_lwps): New declaration.
9358         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9359         iterate_over_lwps_ftype.  Update callback return value check.
9360
9361 2015-03-24  Gary Benson  <gbenson@redhat.com>
9362
9363         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9364         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9365
9366 2015-03-24  Gary Benson  <gbenson@redhat.com>
9367
9368         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9369         * linux-nat.c (current_lwp_ptid): New function.
9370         * x86-linux-nat.c: Include nat/linux-nat.h.
9371         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9372         (x86_linux_dr_get_control): Likewise.
9373         (x86_linux_dr_get_status): Likewise.
9374         (x86_linux_dr_set_control): Likewise.
9375         (x86_linux_dr_set_addr): Likewise.
9376
9377 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9378
9379         PR breakpoints/16466
9380         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9381
9382 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9383
9384         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9385         * ser-unix.c (hardwire_setparity): Likewise.
9386
9387 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9388
9389         * NEWS: Mention set/show serial parity command.
9390         * monitor.c (monitor_open): Call serial_setparity.
9391         * remote.c (remote_open_1): Likewise.
9392         * ser-base.c (ser_base_serparity): New function.
9393         * ser-base.h (ser_base_setparity): Add  declaration.
9394         * ser-go32.c (dos_ops): Set "setparity" field.
9395         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9396         state.Parity.
9397         (ser_windows_setparity): New function.
9398         (hardwire_ops): Add ser_windows_setparity.
9399         (tty_ops): Add NULL for setparity field.
9400         (pipe_ops): Add ser_base_setparity.
9401         (tcp_ops): Likewise.
9402         * ser-pipe.c (pipe_ops): Likewise.
9403         * ser-tcp.c (tcp_ops): Likewise.
9404         * ser-unix.c (hardwire_setparity): Add declaration.
9405         (hardwire_raw): Don't reset PARENB flag.
9406         (hardwire_setparity): New function.
9407         (hardwire_ops): Add hardwire_setparity.
9408         * serial.c (serial_setparity): New function.
9409         (serial_parity): New global.
9410         (parity_none, parity_odd, parity_even, parity_enums, parity):
9411         New static globals.
9412         (set_parity): New function.
9413         (_initialize_serial): Add set/show serial parity commands.
9414         * serial.h (GDBPARITY_NONE): Define.
9415         (GDBPARITY_ODD): Define.
9416         (GDBPARITY_EVEN): Define.
9417         (serial_setparity) Add declaration.
9418         (struct serial_ops): Add setparity field.
9419         * target.h (serial_parity): Add declaration.
9420
9421 2015-03-23  Keith Seitz  <keiths@redhat.com>
9422
9423         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9424
9425 2015-03-23  Keith Seitz  <keiths@redhat.com>
9426
9427         * breakpoint.c (parse_breakpoint_sals): Use
9428         linespec_lexer_lex_keyword to ascertain if the user specified
9429         a NULL location.
9430         * linespec.c [IF_KEYWORD_INDEX]: Define.
9431         (linespec_lexer_lex_keyword): Export.
9432         (struct ls_parser) <keyword_ok>: Remove.
9433         A keyword is only a keyword if not followed by another keyword.
9434         (linespec_lexer_lex_one): Remove keyword_ok handling.
9435         Add comment explaining why the parsing stream is not advanced
9436         when a keyword is seen.
9437         (parse_linespec): Remove parser->keyword_ok.
9438         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9439
9440 2015-03-23  Keith Seitz  <keiths@redhat.com>
9441
9442         PR gdb/18021
9443         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9444         if we find a static method with DW_AT_vtable_elem_location.
9445
9446 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9447
9448         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9449         before the second loop, to avoid undefined behavior.  Reported by
9450         Anton Blanchard <anton@samba.org>.
9451
9452 2015-03-20  Keven Boell  <keven.boell@intel.com>
9453
9454         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9455         data_location usage to linked list.
9456         (resolve_dynamic_type_internal): Adapt data_location to
9457         linked list.
9458         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9459         (copy_type_recursive, copy_type): Add copy of linked list.
9460         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9461         (struct dynamic_prop_list): New struct.
9462         * dwarf2read.c (set_die_type): Set data_location data.
9463
9464 2015-03-20  Pedro Alves  <palves@redhat.com>
9465
9466         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9467         inner block and make it const.
9468         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9469
9470 2015-03-20  Pedro Alves  <palves@redhat.com>
9471
9472         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9473         * breakpoint.h (set_breakpoint_condition): Update declaration.
9474
9475 2015-03-20  Pedro Alves  <palves@redhat.com>
9476
9477         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9478
9479 2015-03-20  Pedro Alves  <palves@redhat.com>
9480
9481         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9482
9483 2015-03-20  Pedro Alves  <palves@redhat.com>
9484
9485         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9486
9487 2015-03-20  Pedro Alves  <palves@redhat.com>
9488
9489         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9490         (nto_init_solib_absolute_prefix): Likewise.
9491
9492 2015-03-20  Pedro Alves  <palves@redhat.com>
9493
9494         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9495         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9496
9497 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9498
9499         * config/djgpp/README: Remove gdb.hp.
9500
9501 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9502
9503         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9504         set_gdbarch_cannot_step_breakpoint.
9505
9506 2015-03-19  Pedro Alves  <palves@redhat.com>
9507
9508         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9509         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9510         instead call perror_with_name.
9511         (check_ptrace_stopped_lwp_gone): New function.
9512         (linux_resume_one_lwp): Reimplement as wrapper around
9513         linux_resume_one_lwp_throw that swallows errors if the LWP is
9514         gone.
9515         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9516         swallows errors if the LWP is gone.  Use
9517         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9518
9519 2015-03-19  Pedro Alves  <palves@redhat.com>
9520
9521         * linux-nat.c (status_callback): Return early if the LWP has no
9522         status pending.
9523
9524 2015-03-19  Pedro Alves  <palves@redhat.com>
9525
9526         * linux-nat.c (select_event_lwp_callback): Update comment to no
9527         longer mention SIGTRAP.
9528
9529 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9530
9531         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9532         redirection code to ...
9533         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9534         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9535
9536 2015-03-18  Gary Benson <gbenson@redhat.com>
9537
9538         (remote_protocol_features): Remove the "vFile:fstat" feature.
9539         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9540
9541 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9542
9543         PR tdep/18107
9544         * aarch64-linux-tdep.c: Include xml-syscall.h
9545         (aarch64_linux_get_syscall_number): New function.
9546         (aarch64_linux_init_abi): Call
9547         set_gdbarch_get_syscall_number.
9548         * syscalls/aarch64-linux.xml: New file.
9549
9550 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9551
9552         * ser-base.h (ser_base_setstopbits): Change second argument name
9553         from "rate" to "num".
9554
9555 2015-03-17  Gary Benson <gbenson@redhat.com>
9556             Luke Allardyce <lukeallardyce@gmail.com>
9557
9558         PR gdb/18131
9559         * common/common-remote-fileio.h (sys/stat.h): New include.
9560         (stuct stat): Remove forward declaration.
9561
9562 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9563
9564         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9565         before writing core register notes.
9566
9567 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9568             Pedro Alves  <palves@redhat.com>
9569
9570         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9571         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9572         (tgoto): Wrap with extern "C".
9573
9574 2015-03-16  Pedro Alves  <palves@redhat.com>
9575             Yuanhui Zhang  <asmwarrior@gmail.com>
9576
9577         * stub-termcap.c (tputs): Change prototype.
9578
9579 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9580             Pedro Alves  <palves@redhat.com>
9581
9582         * windows-nat.c (struct thread_info_struct): Rename to ...
9583         (struct windows_thread_info_struct): ... this.
9584         (thread_info): Rename to ...
9585         (windows_thread_info): ... this.
9586         All users updated.
9587
9588 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9589             Pedro Alves  <palves@redhat.com>
9590
9591         * NEWS: New Removed targets and native configurations.
9592
9593 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9594
9595         Remove HPUX.
9596         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9597         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9598         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9599         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9600         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9601         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9602         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9603         hppa-hpux-tdep.c.
9604         * config/ia64/hpux.mh: Remove file.
9605         * config/pa/hpux.mh: Remove file.
9606         * configure: Rebuilt.
9607         * configure.ac (dlgetmodinfo, somread.o): Remove.
9608         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9609         (ia64-*-hpux*): Remove its float format exception.
9610         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9611         * hppa-hpux-nat.c: Remove file.
9612         * hppa-hpux-tdep.c: Remove file.
9613         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9614         Move them here from hppa-tdep.h
9615         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9616         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9617         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9618         Move them to hppa-tdep.c.
9619         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9620         declarations.
9621         * ia64-hpux-nat.c: Remove file.
9622         * ia64-hpux-tdep.c: Remove file.
9623         * ia64-hpux-tdep.h: Remove file.
9624         * inf-ttrace.c: Remove file.
9625         * inf-ttrace.h: Remove file.
9626         * solib-ia64-hpux.c: Remove file.
9627         * solib-ia64-hpux.h: Remove file.
9628         * solib-pa64.c: Remove file.
9629         * solib-pa64.h: Remove file.
9630         * solib-som.c: Remove file.
9631         * solib-som.h: Remove file.
9632         * somread.c: Remove file.
9633
9634 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9635
9636         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9637         * config.in: Regenerate.
9638         * configure: Regenerate.
9639         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9640         define.
9641         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9642         enumerate memory regions if present.
9643
9644 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9645
9646         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9647         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9648         expressions.
9649         (i386fbsd_sigtramp_p): Likewise.
9650
9651 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9652
9653         * MAINTAINERS (Write After Approval): Add John Baldwin.
9654
9655 2015-03-12  Gary Benson <gbenson@redhat.com>
9656
9657         * solib.c (_initialize_solib): Make "set/show sysroot" use
9658         add_setshow_optional_filename_cmd so it can be restored to
9659         empty after being set.
9660
9661 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9662
9663         * Makefile.in (SFILES): New source break-catch-syscall.c.
9664         (COMMON_OBS): New object break-catch-syscall.o.
9665         * break-catch-syscall.c: New file.
9666         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9667         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9668         (struct syscall_catchpoint): Likewise.
9669         (dtor_catch_syscall): Likewise.
9670         (catch_syscall_inferior_data): Likewise.
9671         (struct catch_syscall_inferior_data): Likewise.
9672         (get_catch_syscall_inferior_data): Likewise.
9673         (catch_syscall_inferior_data_cleanup): Likewise.
9674         (insert_catch_syscall): Likewise.
9675         (remove_catch_syscall): Likewise.
9676         (breakpoint_hit_catch_syscall): Likewise.
9677         (print_it_catch_syscall): Likewise.
9678         (print_one_catch_syscall): Likewise.
9679         (print_mention_catch_syscall): Likewise.
9680         (print_recreate_catch_syscall): Likewise.
9681         (catch_syscall_breakpoint_ops): Likewise.
9682         (syscall_catchpoint_p): Likewise.
9683         (create_syscall_event_catchpoint): Likewise.
9684         (catch_syscall_split_args): Likewise.
9685         (catch_syscall_command_1): Likewise.
9686         (is_syscall_catchpoint_enabled): Likewise.
9687         (catch_syscall_enabled): Likewise.
9688         (catching_syscall_number): Likewise.
9689         (catch_syscall_completer): Likewise.
9690         (clear_syscall_counts): Likewise.
9691         (initialize_breakpoint_ops): Move initialization of syscall
9692         catchpoints to break-catch-syscall.c.
9693         (_initialize_breakpoint): Move code related to syscall catchpoints
9694         to break-catch-syscall.c.
9695
9696 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9697
9698         * breakpoint.c (breakpoint_find_if): New function.
9699         * breakpoint.h (breakpoint_find_if): New prototype.
9700
9701 2015-03-11  Gary Benson <gbenson@redhat.com>
9702
9703         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9704         * remote-fileio.c (remote_fileio_to_host_uint): New function.
9705         (remote_fileio_to_host_ulong): Likewise.
9706         (remote_fileio_to_host_mode): Likewise.
9707         (remote_fileio_to_host_time): Likewise.
9708         (remote_fileio_to_host_stat): Likewise.
9709         * remote.c (PACKET_vFile_fstat): New enum value.
9710         (remote_protocol_features): Register the "vFile:fstat" feature.
9711         (remote_hostio_fstat): New function.
9712         (remote_bfd_iovec_stat): Use the above.
9713         (_initialize_remote): Register new "set/show remote
9714         hostio-fstat-packet" command.
9715         * symfile.c (separate_debug_file_exists): Update comment.
9716         * NEWS: Announce new vFile:fstat packet.
9717
9718 2015-03-11  Gary Benson <gbenson@redhat.com>
9719
9720         * common/common-remote-fileio.h: New file.
9721         * common/common-remote-fileio.c: Likewise.
9722         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9723         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9724         (COMMON_OBS): Add common-remote-fileio.o.
9725         (common-remote-fileio.o): New rule.
9726         * remote-fileio.h (common-remote-fileio.h): New include.
9727         * remote-fileio.c (gdb/fileio.h): Do not include.
9728         (remote_fileio_to_be): Moved to common-remote-fileio.h.
9729         (remote_fileio_to_fio_uint): Likewise.
9730         (remote_fileio_to_fio_time): Likewise.
9731         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9732         (remote_fileio_to_fio_mode): Likewise.
9733         (remote_fileio_to_fio_ulong): Likewise.
9734         (remote_fileio_to_fio_stat): Likewise.
9735
9736 2015-03-11  Andy Wingo  <wingo@igalia.com>
9737
9738         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9739         we were checking the cached type, not the cached dynamic type.
9740
9741 2015-03-11  Andy Wingo  <wingo@igalia.com>
9742
9743         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9744         other strings, as these are on the GC'd heap, and will be
9745         collected along with the smob.
9746
9747 2015-03-11  Andy Wingo  <wingo@igalia.com>
9748
9749         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9750         (objfile_functions): Bind gdbscm_objfile_progspace to
9751         objfile-progspace.
9752         * guile/lib/gdb.scm: Add objfile-progspace to exports.
9753
9754 2015-03-11  Andy Wingo  <wingo@igalia.com>
9755
9756         * guile/guile.c (_initialize_guile): Disable automatic
9757         finalization, if Guile offers us that possibility.
9758         * guile/guile.c (call_initialize_gdb_module):
9759         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9760         finalizers in appropriate places.
9761         * configure.ac (AC_TRY_LIBGUILE): Add a check for
9762         scm_set_automatic_finalization_enabled.
9763         * configure: Regenerated.
9764
9765 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9766
9767         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9768         SAL, if possible.
9769
9770 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9771
9772         * s390-linux-nat.c (struct arch_lwp_info): New.
9773         (s390_fix_watch_points): Rename to...
9774         (s390_prepare_to_resume): ...this.  Skip the PER info update
9775         unless the watch points have changed.
9776         (s390_refresh_per_info, s390_new_thread): New functions.
9777         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9778         s390_fix_watch_points.
9779         (s390_remove_watchpoint): Likewise.
9780         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9781         Register s390_prepare_to_resume.
9782
9783 2015-03-09  Pedro Alves  <palves@redhat.com>
9784
9785         Revert:
9786         2015-03-07  Pedro Alves  <palves@redhat.com>
9787         * common/gdb_socket.h: New file.
9788         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9789         sys/socket.h.
9790         (net_open): Use union gdb_sockaddr_u.
9791
9792 2015-03-07  Pedro Alves  <palves@redhat.com>
9793
9794         * configure.ac (build_warnings): Move -Wmissing-prototypes
9795         -Wdeclaration-after-statement -Wmissing-parameter-type
9796         -Wold-style-declaration -Wold-style-definition to the C-specific
9797         set.
9798         * configure: Regenerate.
9799
9800 2015-03-07  Pedro Alves  <palves@redhat.com>
9801
9802         * common/gdb_socket.h: New file.
9803         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9804         sys/socket.h.
9805         (net_open): Use union gdb_sockaddr_u.
9806
9807 2015-03-07  Pedro Alves  <palves@redhat.com>
9808
9809         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9810         (exceptions_state_mc_action_iter)
9811         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9812         Don't define.
9813         [__cplusplus] (try_scope_depth): New global.
9814         [__cplusplus] (exception_try_scope_entry)
9815         (exception_try_scope_exit, gdb_exception_sliced_copy)
9816         (exception_rethrow): New functions.
9817         (throw_exception): In C++ mode, throw
9818         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9819         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9820         (throw_it): In C++ mode, use try_scope_depth.
9821         * common/common-exceptions.h [!__cplusplus]
9822         (exceptions_state_mc_action_iter)
9823         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9824         Don't declare.
9825         [__cplusplus] (exception_try_scope_entry)
9826         (exception_try_scope_exit, exception_rethrow): Declare.
9827         [__cplusplus] (struct exception_try_scope): New struct.
9828         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9829         C++ exceptions.
9830         (struct gdb_exception_RETURN_MASK_ALL)
9831         (struct gdb_exception_RETURN_MASK_ERROR)
9832         (struct gdb_exception_RETURN_MASK_QUIT): New types.
9833
9834 2015-03-07  Pedro Alves  <palves@redhat.com>
9835
9836         * main.c (handle_command_errors): Remove volatile qualifier from
9837         parameter.
9838
9839 2015-03-07  Pedro Alves  <palves@redhat.com>
9840
9841         * breakpoint.c (save_breakpoints): Adjust to avoid code between
9842         TRY and CATCH.
9843         * gdbtypes.c (safe_parse_type): Remove empty line.
9844         (types_deeply_equal):
9845         * guile/scm-frame.c (gdbscm_frame_name):
9846         * linux-thread-db.c (find_new_threads_once):
9847         * python/py-breakpoint.c (bppy_get_commands):
9848         * record-btrace.c (record_btrace_insert_breakpoint)
9849         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9850         (record_btrace_start_replaying): Adjust to avoid code between TRY
9851         and CATCH.
9852
9853 2015-03-07  Pedro Alves  <palves@redhat.com>
9854
9855         * common/common-exceptions.c (struct catcher) <exception>: No
9856         longer a pointer to volatile exception.  Now an exception value.
9857         <mask>: Delete field.
9858         (exceptions_state_mc_init): Remove all parameters.  Adjust.
9859         (exceptions_state_mc): No longer pop the catcher here.
9860         (exceptions_state_mc_catch): New function.
9861         (throw_exception): Adjust.
9862         * common/common-exceptions.h (exceptions_state_mc_init): Remove
9863         all parameters.
9864         (exceptions_state_mc_catch): Declare.
9865         (TRY_CATCH): Rename to ...
9866         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
9867         (CATCH, END_CATCH): New.
9868         All callers adjusted.
9869
9870 2015-03-07  Tom Tromey  <tromey@redhat.com>
9871
9872         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9873
9874 2015-03-07  Pedro Alves  <palves@redhat.com>
9875
9876         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9877         (amd64_epilogue_frame_cache): Normal exception handling code.
9878         * break-catch-throw.c (check_status_exception_catchpoint)
9879         (re_set_exception_catchpoint): Ditto.
9880         * cli/cli-interp.c (safe_execute_command):
9881         * cli/cli-script.c (script_from_file): Ditto.
9882         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9883         Ditto.
9884         * compile/compile-object-run.c (compile_object_run): Ditto.
9885         * cp-abi.c (baseclass_offset): Ditto.
9886         * cp-valprint.c (cp_print_value): Ditto.
9887         * exceptions.c (catch_exceptions_with_msg):
9888         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9889         * frame.c (get_frame_address_in_block_if_available): Ditto.
9890         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9891         (i386_sigtramp_frame_cache): Ditto.
9892         * infcmd.c (post_create_inferior): Ditto.
9893         * linespec.c (parse_linespec, find_linespec_symbols):
9894         * p-valprint.c (pascal_object_print_value): Ditto.
9895         * parse.c (parse_expression_for_completion): Ditto.
9896         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9897         * remote.c (remote_get_noisy_reply): Ditto.
9898         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9899         * solib-svr4.c (solib_svr4_r_map): Ditto.
9900
9901 2015-03-06  Gary Benson  <gbenson@redhat.com>
9902
9903         * common/common-utils.h (startswith): New inline function.
9904         All places where this logic was used updated to use the above.
9905
9906 2015-03-05  Pedro Alves  <palves@redhat.com>
9907
9908         PR gdb/18002
9909         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9910         after reading the breakpoint's shadow memory.
9911
9912 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
9913
9914         * hppabsd-nat.c: Remove file.
9915         * hppaobsd-nat.c: New file.
9916         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
9917         hppaobsd-nat.c.
9918         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9919         hppaobsd-nat.o.
9920
9921 2015-03-04  Pedro Alves  <palves@redhat.com>
9922
9923         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9924         (target_decr_pc_after_break): Delete declaration.
9925         * target.c (default_target_decr_pc_after_break)
9926         (target_decr_pc_after_break): Delete.
9927         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9928         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9929         * linux-thread-db.c (check_event): Likewise.
9930         * infrun.c (adjust_pc_after_break): Likewise.
9931         * darwin-nat.c (cancel_breakpoint): Likewise.
9932         * aix-thread.c (aix_thread_wait): Likewise.
9933         * target-delegates.c: Regenerate.
9934
9935 2015-03-04  Pedro Alves  <palves@redhat.com>
9936
9937         * linux-nat.c (save_sigtrap): Check for breakpoints before
9938         checking watchpoints.
9939         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9940         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9941         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9942         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9943         (linux_nat_stopped_by_sw_breakpoint)
9944         (linux_nat_supports_stopped_by_sw_breakpoint)
9945         (linux_nat_stopped_by_hw_breakpoint)
9946         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9947         (linux_nat_wait_1): Don't re-increment the PC if relying on
9948         SIGTRAP's siginfo->si_code.
9949         (linux_nat_add_target): Install new target methods.
9950         * linux-thread-db.c (check_event): Don't account for breakpoint PC
9951         offset if the target already adjusted the PC.
9952         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9953         (GDB_ARCH_TRAP_BRKPT): New.
9954         (TRAP_HWBKPT): Define if not already defined.
9955
9956 2015-03-04  Pedro Alves  <palves@redhat.com>
9957
9958         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9959         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9960         Delete field.
9961         <stop_reason>: New field.
9962         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9963         (packet_set_cmd_state): New function.
9964         (remote_protocol_features): Register the "swbreak" and "hwbreak"
9965         features.
9966         (remote_query_supported): If not disabled with the corresponding
9967         "set remote foo-packet" command, report support for the swbreak
9968         and hwbreak features.
9969         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9970         field.
9971         <stop_reason>: New field.
9972         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9973         (remote_wait_as): Adjust.
9974         (remote_stopped_by_sw_breakpoint)
9975         (remote_supports_stopped_by_sw_breakpoint)
9976         (remote_stopped_by_hw_breakpoint)
9977         (remote_supports_stopped_by_hw_breakpoint): New functions.
9978         (remote_stopped_by_watchpoint): New function.
9979         (init_remote_ops): Install them.
9980         (_initialize_remote): Register new "set/show remote
9981         swbreak-feature-packet" and "set/show remote
9982         swbreak-feature-packet" commands.
9983
9984 2015-03-04  Pedro Alves  <palves@redhat.com>
9985
9986         * btrace.h: Include target/waitstatus.h.
9987         (struct btrace_thread_info) <stop_reason>: New field.
9988         * record-btrace.c (record_btrace_step_thread): Use
9989         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9990         (record_btrace_decr_pc_after_break): Delete.
9991         (record_btrace_stopped_by_sw_breakpoint)
9992         (record_btrace_supports_stopped_by_sw_breakpoint)
9993         (record_btrace_stopped_by_hw_breakpoint)
9994         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9995         (init_record_btrace_ops): Install them.
9996         * record-full.c (record_full_hw_watchpoint): Delete and replace
9997         with ...
9998         (record_full_stop_reason): ... this throughout.
9999         (record_full_exec_insn): Adjust.
10000         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10001         (record_full_wait_1): Adjust.  Use
10002         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10003         (record_full_stopped_by_watchpoint): Adjust.
10004         (record_full_stopped_by_sw_breakpoint)
10005         (record_full_supports_stopped_by_sw_breakpoint)
10006         (record_full_supports_stopped_by_sw_breakpoint)
10007         (record_full_stopped_by_hw_breakpoint)
10008         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10009         (init_record_full_ops, init_record_full_core_ops): Install them.
10010         * record.c (record_check_stopped_by_breakpoint): New function.
10011         * record.h: Include target/waitstatus.h.
10012         (record_check_stopped_by_breakpoint): New declaration.
10013
10014 2015-03-04  Pedro Alves  <palves@redhat.com>
10015
10016         enum lwp_stop_reason -> enum target_stop_reason
10017         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10018         (linux_nat_stopped_by_watchpoint, status_callback)
10019         (linux_nat_wait_1): Adjust.
10020         * linux-nat.h (enum lwp_stop_reason): Delete.
10021         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10022         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10023         * target/waitstatus.h (enum target_stop_reason): New.
10024
10025 2015-03-04  Pedro Alves  <palves@redhat.com>
10026
10027         * breakpoint.c (need_moribund_for_location_type): New function.
10028         (bpstat_stop_status): Don't skipping checking moribund locations
10029         of breakpoint types which the target tell caused a stop.
10030         (program_breakpoint_here_p): New function, factored out from ...
10031         (bp_loc_is_permanent): ... this.
10032         (update_global_location_list): Don't create a moribund location if
10033         the target supports reporting stops of the type of the removed
10034         breakpoint.
10035         * breakpoint.h (program_breakpoint_here_p): New declaration.
10036         * infrun.c (adjust_pc_after_break): Return early if the target has
10037         already adjusted the PC.  Add comments.
10038         (handle_signal_stop): If nothing explains a signal, and the target
10039         tells us the stop was caused by a software breakpoint, check if
10040         there's a breakpoint instruction in the memory.  If so, adjust the
10041         PC before presenting the stop to the user.  Otherwise, ignore the
10042         trap.  If nothing explains a signal, and the target tells us the
10043         stop was caused by a hardware breakpoint, ignore the trap.
10044         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10045         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10046         to_supports_stopped_by_hw_breakpoint>: New fields.
10047         (target_stopped_by_sw_breakpoint)
10048         (target_supports_stopped_by_sw_breakpoint)
10049         (target_stopped_by_hw_breakpoint)
10050         (target_supports_stopped_by_hw_breakpoint): Define.
10051         * target-delegates.c: Regenerate.
10052
10053 2015-03-04  Pedro Alves  <palves@redhat.com>
10054
10055         * infrun.c (follow_fork_inferior): Use the whole of the
10056         inferior_ptid and pending_follow.related_pid ptids instead of
10057         building ptids from the process components.  Adjust verbose output
10058         to use target_pid_to_str.
10059         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10060         inferior_ptid and pending_follow.related_pid ptids instead of
10061         building ptids from the process components.
10062
10063 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10064
10065         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10066         (inf_ptrace_insert_fork_catchpoint): New function.
10067         (inf_ptrace_remove_fork_catchpoint): New function.
10068         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10069
10070 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10071
10072         * s390-linux-tdep.c (s390_register_name): Return empty string
10073         instead of NULL for registers that shouldn't be visible.
10074
10075 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10076
10077         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10078         XML file for 64-bit targets.
10079
10080 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10081
10082         * target.h (find_default_create_inferior): Remove declaration.
10083         (find_default_attach): Likewise.
10084
10085 2015-03-03  Pedro Alves  <palves@redhat.com>
10086
10087         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10088         Use ptid_get_pid to get the overall process id when resuming all
10089         threads.
10090
10091 2015-03-03  Pedro Alves  <palves@redhat.com>
10092
10093         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10094         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10095         * inf-ptrace.c (get_ptrace_pid): New function.
10096         (inf_ptrace_resume): Use it.
10097         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10098         to the lower layer.
10099
10100 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10101
10102         * nat/linux-btrace.c: Include sys/utsname.h.
10103         (linux_determine_kernel_ptr_bits): New.
10104         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10105         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10106         ptr_bits.
10107
10108 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10109
10110         * btrace.c (ftrace_update_function): Treat return as tailcall for
10111         "_dl_runtime_resolve".
10112
10113 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10114
10115         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10116         * btrace.c (ftrace_debug): Do not print the line range.
10117         (ftrace_skip_file, ftrace_update_lines): Remove.
10118         (ftrace_new_function): Remove lbegin and lend initialization.
10119         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10120         * record-btrace.c (btrace_compute_src_line_range): New.
10121         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10122
10123 2015-03-02  Pedro Alves  <palves@redhat.com>
10124
10125         * infrun.c (follow_exec): Delete all threads of the process except
10126         the event thread.  Extended comments.
10127
10128 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10129
10130         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10131
10132 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10133
10134         * utils.h: Remove <stdbool.h> #include.
10135         (producer_is_gcc): Change return type to "int".
10136         * utils.c (producer_is_gcc): Change return type to int.
10137         Return 1 instead of true, and 0 instead of false.
10138         Adjust function documentation accordingly.
10139
10140 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10141
10142         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10143         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10144         present.
10145         (s390_linux_store_inferior_registers): Likewise.
10146         (s390_get_hwcap): Remove function.  Embed its logic...
10147         (s390_read_description): ...here.  Yield a target description with
10148         vector registers if applicable.
10149         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10150         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10151         "features/s390x-tevx-linux64.c".
10152         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10153         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10154         for "GNU/Linux-specific registers".
10155         (s390_dwarf_reg_r0l): New enum value.
10156         (s390_dwarf_reg_to_regnum): Support vector registers.
10157         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10158         of GPR lower halves.
10159         (regnum_is_vxr_full): New function.
10160         (s390_register_name): New function.
10161         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10162         f0-f15 and v0l-v15l.
10163         (s390_pseudo_register_type): Likewise.
10164         (s390_pseudo_register_read): Likewise.
10165         (s390_pseudo_register_write): Likewise.
10166         (s390_value_from_register): Account for the fact that values are
10167         placed left-justified in vector registers.
10168         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10169         the vector reggroup and omit them from the general reggroup.
10170         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10171         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10172         (s390_iterate_over_regset_sections): Add iterations for the two
10173         new vector regsets.
10174         (s390_core_read_description): Yield a target description with
10175         vector registers if applicable.
10176         (s390_gdbarch_init): Handle target descriptions with vector
10177         registers.  Add "register_name" gdbarch method.
10178         (_initialize_s390_tdep): Call new tdesc initialization functions.
10179         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10180         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10181         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10182         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10183         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10184         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10185         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10186         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10187         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10188         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10189         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10190         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10191         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10192         (S390_NUM_REGS): Adjust value.
10193         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10194         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10195         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10196         * NEWS: Announce S/390 vector register support.
10197
10198 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10199
10200         * features/s390-tevx-linux64.xml: New file.
10201         * features/s390-vx-linux64.xml: New file.
10202         * features/s390-vx.xml: New file.
10203         * features/s390x-tevx-linux64.xml: New file.
10204         * features/s390x-vx-linux64.xml: New file.
10205         * features/Makefile (WHICH): Add s390-vx-linux64,
10206         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10207         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10208         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10209         macros.
10210         * features/s390-tevx-linux64.c: New generated file.
10211         * features/s390-vx-linux64.c: Likewise.
10212         * features/s390x-tevx-linux64.c: Likewise.
10213         * features/s390x-vx-linux64.c: Likewise.
10214         * regformats/s390-tevx-linux64.dat: Likewise.
10215         * regformats/s390-vx-linux64.dat: Likewise.
10216         * regformats/s390x-tevx-linux64.dat: Likewise.
10217         * regformats/s390x-vx-linux64.dat: Likewise.
10218
10219 2015-02-28  Doug Evans  <xdje42@gmail.com>
10220
10221         * symtab.h (struct symtab) <next>: Fix comment.
10222
10223 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10224
10225         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10226         python_GdbMethods.
10227
10228 2015-02-27  Pedro Alves  <palves@redhat.com>
10229
10230         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10231
10232 2015-02-27  Pedro Alves  <palves@redhat.com>
10233
10234         * common/common-exceptions.h (exception_none): Declare.
10235         * common/common-exceptions.c (exception_none): Moved from
10236         exceptions.c.
10237         (exceptions_state_mc_init): Use exception_none.
10238         * exceptions.c (exception_none): Move to
10239         common/common-exceptions.c.
10240         * exceptions.h (exception_none): Move to
10241         common/common-exceptions.h.
10242
10243 2015-02-27  Pedro Alves  <palves@redhat.com>
10244
10245         * main.c (catch_command_errors, catch_command_errors_const):
10246         Remove 'mask' argument.  Adjust.
10247         (captured_main): Adjust callers.
10248
10249 2015-02-27  Pedro Alves  <palves@redhat.com>
10250
10251         * python/python-internal.h: Include "extension-priv.h".
10252
10253 2015-02-27  Pedro Alves  <palves@redhat.com>
10254
10255         * breakpoint.h (enum print_stop_action): Move further up in the
10256         file.
10257
10258 2015-02-27  Pedro Alves  <palves@redhat.com>
10259
10260         * gdbarch.sh: Include regcache.h.
10261         * gdbarch.h: Regenerate.
10262
10263 2015-02-27  Pedro Alves  <palves@redhat.com>
10264
10265         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10266         Remove duplicate const.
10267         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10268         duplicate const.
10269
10270 2015-02-27  Pedro Alves  <palves@redhat.com>
10271
10272         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10273         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10274         * features/feature_to_c.sh: Tag the generated xml_builtin array
10275         with extern const in C++ mode.
10276
10277 2015-02-27  Tom Tromey  <tromey@redhat.com>
10278
10279         * minidebug.c (struct lzma_stream): Rename to ...
10280         (struct gdb_lzma_stream): ... this.
10281         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10282
10283 2015-02-27  Pedro Alves  <palves@redhat.com>
10284
10285         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10286         function.
10287         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10288         (mi_cmd_stack_list_variables): Use it.
10289
10290 2015-02-27  Pedro Alves  <palves@redhat.com>
10291
10292         * x86-linux-nat.c (u_debugreg_offset): New function.
10293         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10294
10295 2015-02-27  Pedro Alves  <palves@redhat.com>
10296
10297         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10298         declaration.
10299         Include break-common.h.
10300
10301 2015-02-27  Tom Tromey  <tromey@redhat.com>
10302             Pedro Alves <palves@redhat.com>
10303
10304         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10305         local used to iterate over enums.
10306         * completer.c (signal_completer): Likewise.
10307         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10308         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10309         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10310         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10311         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10312         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10313         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10314
10315 2015-02-27  Pedro Alves  <palves@redhat.com>
10316
10317         * target.h: Include "infrun.h".
10318
10319 2015-02-27  Pedro Alves  <palves@redhat.com>
10320
10321         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10322
10323 2015-02-27  Pedro Alves  <palves@redhat.com>
10324
10325         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10326         (IPA_SYM): Use it.
10327         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10328
10329 2015-02-27  Pedro Alves  <palves@redhat.com>
10330
10331         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10332         cli_mld_erase_entire_line, and make it extern "C".
10333         * common/common-defs.h (EXTERN_C): New.
10334         * completer.c (_rl_completion_prefix_display_length)
10335         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10336         out of gdb_display_match_list_1.
10337         (_rl_qsort_string_compare): Move declaration out of
10338         gdb_display_match_list_1, and make it extern "C".
10339         * defs.h (re_comp): Use EXTERN_C.
10340         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10341         and make it extern "C".
10342         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10343         and make it extern "C".
10344         (main): Move declaration out of maintenance_set_profile_cmd.
10345         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10346         EXTERN_C.
10347
10348 2015-02-27  Pedro Alves  <palves@redhat.com>
10349
10350         * python/python.c (GdbMethods): Rename to ...
10351         (python_GdbMethods): ... this and make extern.
10352         (GdbModuleDef): Rename to ...
10353         (python_GdbModuleDef): ... this and make extern.
10354
10355 2015-02-27  Pedro Alves  <palves@redhat.com>
10356
10357         * record-btrace.c (set_record_btrace_cmdlist)
10358         (show_record_btrace_cmdlist): Remove redefinitions.
10359
10360 2015-02-27  Tom Tromey  <tromey@redhat.com>
10361             Pedro Alves  <palves@redhat.com>
10362
10363         * dwarf2-frame.c (enum cfa_how_kind, struct
10364         dwarf2_frame_state_reg_info): Move out of struct
10365         dwarf2_frame_state.
10366         * dwarf2read.c (struct tu_stats): Move out of struct
10367         dwarf2_per_objfile.
10368         (struct file_entry): Move out of struct line_header.
10369         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10370         typedef_field_list): Move out of struct field_info.
10371         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10372         Move out of struct dynamic_prop.
10373         (union type_owner, union field_location, struct field, struct
10374         range_bounds, union type_specific): Move out of struct main_type.
10375         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10376         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10377         (struct call_site_target, union call_site_parameter_u, struct
10378         call_site_parameter): Move out of struct call_site.
10379         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10380         m32c_prologue.
10381         (enum srcdest_kind): Move out of struct srcdest.
10382         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10383         * prologue-value.h (enum prologue_value_kind): Move out of struct
10384         prologue_value.
10385         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10386         gdbarch_tdep.
10387         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10388         out of struct field_info.
10389         * symfile.h (struct other_sections): Move out of struct
10390         section_addr_info.
10391         * symtab.c (struct symbol_cache_slot): Move out struct
10392         block_symbol_cache.
10393         * target-descriptions.c (enum tdesc_type_kind): Move out of
10394         typedef struct tdesc_type.
10395         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10396         struct tui_line_or_address.
10397         * value.c (enum internalvar_kind, union internalvar_data): Move
10398         out of struct internalvar.
10399         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10400         gdbarch_tdep.
10401
10402 2015-02-27  Tom Tromey  <tromey@redhat.com>
10403             Pedro Alves  <palves@redhat.com>
10404
10405         Rename symbols whose names are reserved C++ keywords throughout.
10406
10407 2015-02-27  Pedro Alves  <palves@redhat.com>
10408
10409         * Makefile.in (COMPILER): New, get it from autoconf.
10410         (COMPILE.pre, CC_LD): Use COMPILER.
10411         (CXX): Get from autoconf instead.
10412         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10413         * acinclude.m4: Include build-with-cxx.m4.
10414         * build-with-cxx.m4: New file.
10415         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10416         Disable -Werror by default if building in C++ mode.
10417         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10418         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10419         Run supported-warning-flags tests with the C++ compiler.
10420         Save/restore CXXFLAGS too.
10421         * configure: Regenerate.
10422
10423 2015-02-27  Pedro Alves  <palves@redhat.com>
10424
10425         * libiberty.m4: New file.
10426         * acinclude.m4: Include libiberty.m4.
10427         * configure.ac: Call libiberty_INIT.
10428         * config.in, configure: Regenerate.
10429
10430 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10431
10432         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10433         31-bit targets, but 64-bit targets as well.
10434         (s390_gnu_triplet_regexp): New function.
10435         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10436         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10437         method.
10438
10439 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10440
10441         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10442         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10443         from CONTEXT_DEBUGGER.
10444
10445 2015-02-26  Doug Evans  <dje@google.com>
10446
10447         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10448         CHECK_TYPEDEF.
10449         (set_type_vptr_fieldno): Ditto.
10450         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10451         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10452
10453 2015-02-26  Pedro Alves  <palves@redhat.com>
10454
10455         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10456         * complaints.c (vcomplaint): Pass argument FMT directly to
10457         printf-like functions instead of complaint->fmt.
10458         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10459         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10460         * compile/compile-loc2c.c (pushf, unary, binary): Add
10461         ATTRIBUTE_PRINTF.
10462         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10463         to pushf.
10464         (BINARY): Pass string literal as format string to 'binary'.
10465         * compile/compile-object-load.c (link_callbacks_einfo): Add
10466         ATTRIBUTE_PRINTF.
10467         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10468
10469 2015-02-26  Pedro Alves  <palves@redhat.com>
10470
10471         * windows-termcap.c: Rename to ...
10472         * stub-termcap.c: ... this.  Adjust header line.
10473         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10474         windows-termcap.c.
10475         * configure: Regenerate.
10476         * configure.ac: Refer to stub-termcap.o instead of
10477         windows-termcap.o.
10478         * gdb_curses.h: Mention stub-termcap.c instead of
10479         windows-termcap.c.
10480
10481 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10482
10483         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10484         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10485
10486 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10487
10488         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10489
10490 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10491
10492         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10493         bfd_canonicalize_symtab.
10494
10495 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10496
10497         * amd64fbsd-nat.c: Include sys/user.h.
10498         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10499         instead of KERN_PS_STRINGS to locate the signal trampoline.
10500         * i386fbsd-nat.c: Include sys/user.h.
10501         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10502         instead of KERN_PS_STRINGS to locate the signal trampoline.
10503         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10504         (amd64fbsd_sigtramp_p): New.
10505         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10506         longer set default values.
10507         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10508         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10509         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10510         (i386fbsd_freebsd4_sigtramp_start)
10511         (i386fbsd_freebsd4_sigtramp_middle)
10512         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10513         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10514         (i386fbsd_sigtramp_p): New.
10515         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10516         longer set default values.
10517         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10518
10519 2015-02-25  John Baldwin  <jhb@freebsd.org>
10520
10521         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10522         get_frame_register instead of frame_unwind_register_unsigned.
10523
10524 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10525
10526         PR build/18033
10527         * compile/compile-c-support.c (c_compute_program): Change // comment.
10528         * compile/compile-object-load.c (setup_sections): Change // comment.
10529
10530 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10531
10532         PR build/18033:
10533         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10534
10535 2015-02-23  Pedro Alves  <palves@redhat.com>
10536
10537         * remote.c (skip_to_semicolon): New function.
10538         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10539         special case the stop reasons that look like hex numbers
10540         upfront.  Instead handle real register numbers after matching
10541         all the known stop reasons.
10542
10543 2015-02-21  Doug Evans  <dje@google.com>
10544
10545         PR c++/17976, symtab/17821
10546         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10547         is_in_anonymous.  All callers updated.
10548         (find_symbol_in_baseclass): Ditto.
10549         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10550         for symbols in an anonymous namespace.
10551         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10552         DW_AT_name directly.
10553         (dwarf2_name): Convert missing namespace name to
10554         CP_ANONYMOUS_NAMESPACE_STR.
10555
10556 2015-02-20  Pedro Alves  <palves@redhat.com>
10557
10558         * linux-nat.c (linux_handle_extended_wait): Call
10559         thread_db_notice_clone whenever a new clone LWP is detected.
10560         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10561         functions.
10562         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10563         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10564         (linux_unstop_all_lwps): Declare.
10565         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10566         (thread_get_info_callback): Delete.
10567         (thread_from_lwp): Use td_thr_get_info and record_thread.
10568         (thread_db_attach_lwp): Delete.
10569         (thread_db_notice_clone): New function.
10570         (try_thread_db_load_1): If /proc is mounted and shows the
10571         process'es task list, walk over all LWPs and call thread_from_lwp
10572         instead of relying on td_ta_thr_iter.
10573         (attach_thread): Don't call check_thread_signals here.  Split the
10574         tail part of the function (which adds the thread to the core GDB
10575         thread list) to ...
10576         (record_thread): ... this function.  Call check_thread_signals
10577         here.
10578         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10579         call thread_from_lwp.
10580         (thread_db_update_thread_list): Rename to ...
10581         (thread_db_update_thread_list_org): ... this.
10582         (thread_db_update_thread_list): New function.
10583         (thread_db_find_thread_from_tid): Delete.
10584         (thread_db_get_ada_task_ptid): Simplify.
10585         * nat/linux-procfs.c: Include <sys/stat.h>.
10586         (linux_proc_task_list_dir_exists): New function.
10587         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10588
10589 2015-02-20  Pedro Alves  <palves@redhat.com>
10590
10591         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10592         main LWP.  Handle the case of waitpid returning 0 if we're already
10593         attached to the LWP.  Don't set the LWP's last_resume_kind to
10594         resume_stop if we already knew about the LWP.
10595         (linux_nat_filter_event): Add debug logs.
10596
10597 2015-02-20  Pedro Alves  <palves@redhat.com>
10598
10599         * target.h (forward_target_decr_pc_after_break): Delete
10600         declaration.
10601
10602 2015-02-20  Pedro Alves  <palves@redhat.com>
10603
10604         PR threads/18006
10605         * linux-thread-db.c (thread_get_info_callback): Return early if
10606         the thread's lwp id is -1.
10607
10608 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10609
10610         GDB 7.9 released.
10611
10612 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10613
10614         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10615         (dtrace_get_probes) Change type of variable 'dof'.
10616
10617 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10618
10619         PR breakpoints/16812
10620         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10621         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10622         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10623
10624 2015-02-19  David Taylor  <dtaylor@emc.com>
10625
10626         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10627
10628 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10629
10630         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10631         function.
10632         (tui_putc): Don't call tui_handle_resize_during_io.
10633         (tui_getc): Likewise.
10634         (tui_mld_getc): Likewise.
10635         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10636         (tui_sigwinch_token): New static variable.
10637         (tui_initialize_win): Adjust documentation.  Set
10638         tui_sigwinch_token.
10639         (tui_async_resize_screen): New asynchronous callback.
10640         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10641         invoke tui_async_resize_screen.
10642
10643 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10644
10645         * configure: Regenerated.
10646         * configure.ac: Use GDB_AC_TRANSFORM.
10647         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10648         * acinclude.m4: sinclude transform.m4.
10649         * transform.m4: New file.
10650         (GDB_AC_TRANSFORM): New macro.
10651
10652 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10653
10654         * NEWS: Announce the support for DTrace SDT probes.
10655
10656 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10657
10658         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10659         (amd64_dtrace_parse_probe_argument): New function.
10660         (amd64_dtrace_probe_is_enabled): Likewise.
10661         (amd64_dtrace_enable_probe): Likewise.
10662         (amd64_dtrace_disable_probe): Likewise.
10663         (amd64_linux_init_abi): Register the
10664         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10665         `gdbarch_dtrace_disable_probe' and
10666         `gdbarch_dtrace_probe_is_enabled' hooks.
10667         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10668         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10669         (amd64_dtrace_enable_probe_sequence): Likewise.
10670         (amd64_dtrace_disable_probe_sequence): Likewise.
10671
10672 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10673
10674         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10675         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10676         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10677         handle ELF files.
10678         * Makefile.in (SFILES): dtrace-probe.c added.
10679         * configure: Regenerate.
10680         * dtrace-probe.c: New file.
10681         (SHT_SUNW_dof): New constant.
10682         (dtrace_probe_type): New enum.
10683         (dtrace_probe_arg): New struct.
10684         (dtrace_probe_arg_s): New typedef.
10685         (struct dtrace_probe_enabler): New struct.
10686         (dtrace_probe_enabler_s): New typedef.
10687         (dtrace_probe): New struct.
10688         (dtrace_probe_is_linespec): New function.
10689         (dtrace_dof_sect_type): New enum.
10690         (dtrace_dof_dofh_ident): Likewise.
10691         (dtrace_dof_encoding): Likewise.
10692         (DTRACE_DOF_ENCODE_LSB): Likewise.
10693         (DTRACE_DOF_ENCODE_MSB): Likewise.
10694         (dtrace_dof_hdr): New struct.
10695         (dtrace_dof_sect): Likewise.
10696         (dtrace_dof_provider): Likewise.
10697         (dtrace_dof_probe): Likewise.
10698         (DOF_UINT): New macro.
10699         (DTRACE_DOF_PTR): Likewise.
10700         (DTRACE_DOF_SECT): Likewise.
10701         (dtrace_process_dof_probe): New function.
10702         (dtrace_process_dof): Likewise.
10703         (dtrace_build_arg_exprs): Likewise.
10704         (dtrace_get_arg): Likewise.
10705         (dtrace_get_probes): Likewise.
10706         (dtrace_get_probe_argument_count): Likewise.
10707         (dtrace_can_evaluate_probe_arguments): Likewise.
10708         (dtrace_evaluate_probe_argument): Likewise.
10709         (dtrace_compile_to_ax): Likewise.
10710         (dtrace_probe_destroy): Likewise.
10711         (dtrace_gen_info_probes_table_header): Likewise.
10712         (dtrace_gen_info_probes_table_values): Likewise.
10713         (dtrace_probe_is_enabled): Likewise.
10714         (dtrace_probe_ops): New variable.
10715         (info_probes_dtrace_command): New function.
10716         (_initialize_dtrace_probe): Likewise.
10717         (dtrace_type_name): Likewise.
10718
10719 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10720
10721         * gdbarch.sh (dtrace_parse_probe_argument): New.
10722         (dtrace_probe_is_enabled): Likewise.
10723         (dtrace_enable_probe): Likewise.
10724         (dtrace_disable_probe): Likewise.
10725         * gdbarch.c: Regenerate.
10726         * gdbarch.h: Regenerate.
10727
10728 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10729
10730         * stap-probe.c (stap_probe_ops): Add NULLs in the static
10731         stap_probe_ops for `enable_probe' and `disable_probe'.
10732         * probe.c (enable_probes_command): New function.
10733         (disable_probes_command): Likewise.
10734         (_initialize_probe): Define the cli commands `enable probe' and
10735         `disable probe'.
10736         (parse_probe_linespec): New function.
10737         (info_probes_for_ops): Use parse_probe_linespec.
10738         * probe.h (probe_ops): New hooks `enable_probe' and
10739         `disable_probe'.
10740
10741 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10742
10743         * probe.c (compute_probe_arg): Moved from stap-probe.c
10744         (compile_probe_arg): Likewise.
10745         (probe_funcs): Likewise.
10746         * stap-probe.c (compute_probe_arg): Moved to probe.c.
10747         (compile_probe_arg): Likewise.
10748         (probe_funcs): Likewise.
10749
10750 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10751
10752         * probe.c (print_ui_out_not_applicables): New function.
10753         (exists_probe_with_pops): Likewise.
10754         (info_probes_for_ops): Do not include column headers for probe
10755         types for which no probe has been actually found on any object.
10756         Also invoke `print_ui_out_not_applicables' in order to match the
10757         column rows with the header when probes of several types are
10758         listed.
10759         Print the "Type" column.
10760         * probe.h (probe_ops): Added a new probe operation `type_name'.
10761         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10762         (stap_type_name): New function.
10763
10764 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
10765
10766         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10767         (key_is_command_char): Delete.
10768
10769 2015-02-17  Pedro Alves  <palves@redhat.com>
10770
10771         * tui/tui.c (tui_enable): Resize windows before anything
10772         might show a window.
10773
10774 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10775
10776         PR gdb/17984
10777         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10778         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10779         call.
10780         * aarch64-tdep.h (tdesc_aarch64): Declare.
10781
10782 2015-02-12  Mark Wielaard  <mjw@redhat.com>
10783
10784         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10785
10786 2015-02-13  Doug Evans  <dje@google.com>
10787
10788         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10789         anonymous_namespace to is_in_anonymous for consistency with the rest
10790         of the file.
10791         (cp_lookup_bare_symbol): Fix typo in comment.
10792         (cp_search_static_and_baseclasses): Ditto.
10793         (search_symbol_list): Use vertical space in comment better.
10794         (reset_directive_searched): Ditto. Fix typo.
10795         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10796
10797 2015-02-13  Yao Qi  <yao.qi@arm.com>
10798
10799         * MAINTAINERS: Update my email address.
10800
10801 2015-02-12  Doug Evans  <dje@google.com>
10802
10803         * symtab.c (completion_list_add_name): Fix memory leak.
10804
10805 2015-02-12  Doug Evans  <dje@google.com>
10806
10807         * completer.c (complete_line): Remove incorrect comment.
10808
10809 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10810
10811         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10812         (py_print_frame): Use RETURN_MASK_ERROR.
10813
10814 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10815
10816         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10817         function comment.  Wrap all function that can throw in cleanups.
10818         (gdbpy_apply_frame_filter): Wrap all function that can throw in
10819         cleanups.
10820
10821 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10822
10823         * python/py-framefilter.c (py_print_frame): Substitute goto error.
10824         Remove the error label.
10825
10826 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10827
10828         * python/py-framefilter.c (py_print_frame): Put conditional code paths
10829         with goto first, indent the former else codepath left.  Put variable
10830         'elided' to a new inner block.
10831
10832 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10833
10834         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10835
10836 2015-02-11  Pedro Alves  <palves@redhat.com>
10837
10838         * xcoffread.c (within_function): Delete.
10839
10840 2015-02-11  Tom Tromey  <tromey@redhat.com>
10841             Pedro Alves <palves@redhat.com>
10842
10843         * breakpoint.c (base_breakpoint_ops): Delete.
10844         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10845         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10846         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10847         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10848         * python/py-arch.c (arch_object_type): Make extern.
10849         * python/py-block.c (block_syms_iterator_object_type): Make extern.
10850         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10851         * python/py-cmd.c (cmdpy_object_type): Make extern.
10852         * python/py-continueevent.c (continue_event_object_type)
10853         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10854         parameter.  Update all callers.
10855         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10856         * python/py-exitedevent.c (exited_event_object_type): Make extern.
10857         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10858         * python/py-function.c (fnpy_object_type): Make extern.
10859         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10860         * python/py-infevents.c (call_pre_event_object_type)
10861         (inferior_call_post_event_object_type).
10862         (memory_changed_event_object_type): Make extern.
10863         * python/py-infthread.c (thread_object_type): Make extern.
10864         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10865         * python/py-linetable.c (linetable_entry_object_type)
10866         (linetable_object_type, ltpy_iterator_object_type): Make extern.
10867         * python/py-newobjfileevent.c (new_objfile_event_object_type)
10868         (clear_objfiles_event_object_type): Make extern.
10869         * python/py-objfile.c (objfile_object_type): Make extern.
10870         * python/py-param.c (parmpy_object_type): Make extern.
10871         * python/py-progspace.c (pspace_object_type): Make extern.
10872         * python/py-signalevent.c (signal_event_object_type): Make extern.
10873         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10874         * python/py-type.c (type_object_type, field_object_type)
10875         (type_iterator_object_type): Make extern.
10876         * python/python.c (python_extension_script_ops)
10877         (python_extension_ops): Make extern.
10878         * stap-probe.c (stap_probe_ops): Make extern.
10879
10880 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
10881
10882         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10883         because the event thread is not the current thread.
10884
10885 2015-02-11  Doug Evans  <xdje42@gmail.com>
10886
10887         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10888         been initialized yet, return NULL.
10889
10890 2015-02-11  Doug Evans  <dje@google.com>
10891
10892         * symfile.h (new_symfile_objfile): Delete.
10893         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10894         All callers updated.
10895
10896 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10897
10898         * tui/tui-io.c (tui_handle_resize_during_io): Call
10899         tui_update_gdb_sizes() after resizing the screen.
10900         * tui/tui.c (tui_enable): Resize the terminal before
10901         calling tui_update_gdb_sizes().
10902
10903 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10904
10905         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10906         line before printing a newline.
10907
10908 2015-02-11  Mark Wielaard  <mjw@redhat.com>
10909
10910         * utils.c (producer_is_gcc): Return true or false.
10911
10912 2015-02-10  Mark Wielaard  <mjw@redhat.com>
10913
10914         * utils.h (producer_is_gcc): Change return type to bool. Add major
10915         argument.
10916         * utils.c (producer_is_gcc): Likewise.
10917         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10918         * dwarf2read.c (check_producer): Likewise.
10919
10920 2015-02-10  Pedro Alves  <palves@redhat.com>
10921
10922         * infrun.c (displaced_step_fixup): Switch to the event thread
10923         before calling gdbarch_displaced_step_fixup.
10924
10925 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
10926
10927         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10928
10929 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
10930
10931         * ada-varobj.c (ada_name_of_child): Constify parent.
10932         (ada_path_expr_of_child): Same.
10933         (ada_value_of_child): Same.
10934         (ada_type_of_child): Same.
10935         * c-varobj.c (c_is_path_expr_parent): Same.
10936         (c_describe_child): Same.
10937         (c_name_of_child): Same.
10938         (c_value_of_child): Same.
10939         (c_type_of_child): Same.
10940         (cplus_number_of_children): Same.
10941         (cplus_describe_child): Constify var.
10942         (cplus_name_of_child): Constify parent.
10943         (cplus_value_of_child): Same.
10944         (cplus_type_of_child): Same.
10945         * jv-varobj.c (java_name_of_child): Same.
10946         (java_value_of_child): Same.
10947         (java_type_of_child): Same.
10948         * varobj.c (value_of_child): Same.
10949         (varobj_default_is_path_expr_parent): Constify var, parent and return
10950         value.
10951         (varobj_get_path_expr): Constify var, modify path_expr through
10952         mutable_var.
10953         (install_new_value): Constify parent.
10954         (value_of_child): Constify parent.
10955         * varobj.h (struct varobj): Constify parent.
10956         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10957         type_of_child.
10958         (varobj_get_path_expr): Constify var.
10959         (varobj_get_path_expr_parent): Constify var and return value.
10960
10961 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
10962
10963         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10964         (arm_prologue_this_id): Move PC and SP limit checks to
10965         arm_prologue_unwind_stop_reason.
10966         (arm_prologue_unwind) <stop_reason> : Set to
10967         arm_prologue_unwind_stop_reason.
10968
10969 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10970
10971         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10972         DW_LANG_Fortran08 as language_fortran.
10973
10974 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
10975
10976         PR remote/17946
10977         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10978         of pointer against char.
10979
10980 2015-02-09  Mark Wielaard  <mjw@redhat.com>
10981
10982         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10983         (c_type_print_modifier): Likewise.
10984         * dwarf2read.c (read_tag_atomic_type): New function.
10985         (read_type_die_1): Handle DW_TAG_atomic_type.
10986         * gdbtypes.c (make_atomic_type): New function.
10987         (recursive_dump_type): Handle TYPE_ATOMIC.
10988         * gdbtypes.h (enum type_flag_values): Renumber.
10989         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10990         (TYPE_ATOMIC): New macro.
10991         (make_atomic_type): Declare.
10992
10993 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
10994
10995         * btrace.c (ftrace_find_call): Skip gaps.
10996         (ftrace_new_function): Initialize level.
10997         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10998         (ftrace_new_switch): Update
10999         level computation.
11000         (ftrace_new_gap): New.
11001         (ftrace_update_function): Create new function after gap.
11002         (btrace_compute_ftrace_bts): Create gap on error.
11003         (btrace_stitch_bts): Update parameters.  Clear trace if it
11004         becomes empty.
11005         (btrace_stitch_trace): Update parameters.  Update callers.
11006         (btrace_clear): Reset the number of gaps.
11007         (btrace_insn_get): Return NULL if the iterator points to a gap.
11008         (btrace_insn_number): Return zero if the iterator points to a gap.
11009         (btrace_insn_end): Allow gaps at the end.
11010         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11011         (btrace_find_insn_by_number): Assert that the found iterator does
11012         not point to a gap.
11013         (btrace_call_next, btrace_call_prev): Assert that the last function
11014         is not a gap.
11015         * btrace.h (btrace_bts_error): New.
11016         (btrace_function): Update comment.
11017         (btrace_function) <insn, insn_offset, number>: Update comment.
11018         (btrace_function) <errcode>: New.
11019         (btrace_thread_info) <ngaps>: New.
11020         (btrace_thread_info) <replay>: Update comment.
11021         (btrace_insn_get): Update comment.
11022         * record-btrace.c (btrace_ui_out_decode_error): New.
11023         (record_btrace_info): Print number of gaps.
11024         (btrace_insn_history, btrace_call_history): Call
11025         btrace_ui_out_decode_error for gaps.
11026         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11027
11028 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11029
11030         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11031         * nat/linux-btrace.c: (btrace_this_cpu): New.
11032         (cpu_supports_bts): Call btrace_this_cpu.
11033         (intel_supports_bts): Add cpu parameter.
11034
11035 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11036
11037         * btrace.h (btrace_insn_class): New.
11038         (btrace_insn) <size, iclass>: New.
11039         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11040         Use instruction classification.
11041         (ftrace_new_return): Update parameters.  Update users.
11042         (ftrace_update_function): Update parameters.  Update users.  Use
11043         instruction classification.
11044         (ftrace_update_insns): Update parameters.  Update users.
11045         (ftrace_classify_insn): New.
11046         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11047         TRY_CATCH around call to gdb_insn_length.
11048
11049 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11050
11051         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11052         Update parameters.  Update users.
11053
11054 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11055
11056         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11057         (btrace_conf_bts_attributes): New.
11058         (btrace_conf_children): Add attributes.
11059         * common/btrace-common.h (btrace_config_bts): New.
11060         (btrace_config)<bts>: New.
11061         (btrace_config): Update comment.
11062         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11063         Use config.
11064         * features/btrace-conf.dtd: Increment version.  Add size
11065         attribute to bts element.
11066         * record-btrace.c (set_record_btrace_bts_cmdlist,
11067         show_record_btrace_bts_cmdlist): New.
11068         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11069         record_btrace_print_conf, cmd_set_record_btrace_bts,
11070         cmd_show_record_btrace_bts): New.
11071         (record_btrace_info): Call record_btrace_print_conf.
11072         (_initialize_record_btrace): Add commands.
11073         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11074         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11075         (btrace_sync_conf): Synchronize bts size.
11076         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11077         * NEWS: Announce new commands and new packets.
11078
11079 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11080
11081         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11082         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11083         (x86_linux_btrace_conf): New.
11084         (x86_linux_create_target): Initialize to_btrace_conf.
11085         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11086         Check format.  Split into this and ...
11087         (linux_enable_bts): ... this.
11088         (linux_btrace_conf): New.
11089         (perf_event_skip_record): Renamed into ...
11090         (perf_event_skip_bts_record): ... this.  Updated users.
11091         (linux_disable_btrace): Split into this and ...
11092         (linux_disable_bts): ... this.
11093         (linux_read_btrace): Check format.
11094         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11095         (linux_btrace_conf): New.
11096         (btrace_target_info)<ptid>: Moved.
11097         (btrace_target_info)<conf>: New.
11098         (btrace_target_info): Split into this and ...
11099         (btrace_tinfo_bts): ... this.  Updated users.
11100         * btrace.c (btrace_enable): Update parameters.
11101         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11102         (btrace_conf_children, btrace_conf_attributes)
11103         (btrace_conf_elements): New.
11104         * btrace.h (btrace_enable): Update parameters.
11105         (btrace_conf, parse_xml_btrace_conf): New.
11106         * common/btrace-common.h (btrace_config): New.
11107         * feature/btrace-conf.dtd: New.
11108         * record-btrace.c (record_btrace_conf): New.
11109         (record_btrace_cmdlist): New.
11110         (record_btrace_enable_warn, record_btrace_open): Pass
11111         &record_btrace_conf.
11112         (record_btrace_info): Print recording format.
11113         (cmd_record_btrace_bts_start): New.
11114         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11115         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11116         Add "record bts" alias command.
11117         * remote.c (remote_state)<btrace_config>: New.
11118         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11119         (remote_protocol_features): Add qXfer:btrace-conf:read.
11120         (remote_open_1): Call remote_btrace_reset.
11121         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11122         (btrace_target_info)<conf>: New.
11123         (btrace_sync_conf, btrace_read_config): New.
11124         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11125         btrace_read_conf.
11126         (remote_btrace_conf): New.
11127         (init_remote_ops): Initialize to_btrace_conf.
11128         (_initialize_remote): Add qXfer:btrace-conf packet.
11129         * target.c (target_enable_btrace): Update parameters.
11130         (target_btrace_conf): New.
11131         * target.h (target_enable_btrace): Update parameters.
11132         (target_btrace_conf): New.
11133         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11134         (target_ops)<to_enable_btrace>: Update parameters and comment.
11135         (target_ops)<to_btrace_conf>: New.
11136         * target-delegates: Regenerate.
11137         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11138         (target_debug_print_const_struct_btrace_target_info_p): New.
11139         * NEWS: Announce new command and new packet.
11140
11141 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11142
11143         * nat/linux-btrace.h (perf_event_buffer): New.
11144         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11145         <bts>: ... this.
11146         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11147         (perf_event_buffer_size, perf_event_buffer_begin)
11148         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11149         Updated users.
11150         (perf_event_new_data): New.
11151
11152 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11153
11154         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11155         * record-btrace.c (record_btrace_open): Remove call to
11156         target_supports_btrace.
11157         * remote.c (remote_supports_btrace): Update parameters.
11158         * target.c (target_supports_btrace): Update parameters.
11159         * target.h (to_supports_btrace, target_supports_btrace): Update
11160         parameters.
11161         * target-delegates.c: Regenerate.
11162         * target-debug.h (target_debug_print_enum_btrace_format): New.
11163         * nat/linux-btrace.c
11164         (kernel_supports_btrace): Rename into ...
11165         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11166         (intel_supports_btrace): Rename into ...
11167         (intel_supports_bts): ... this.  Update users.
11168         (cpu_supports_btrace): Rename into ...
11169         (cpu_supports_bts): ... this.  Update users.
11170         (linux_supports_btrace): Update parameters.  Split into this and ...
11171         (linux_supports_bts): ... this.
11172         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11173
11174 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11175
11176         * Makefile.in (SFILES): Add common/btrace-common.c.
11177         (COMMON_OBS): Add common/btrace-common.o.
11178         (btrace-common.o): Add build rules.
11179         * btrace.c (parse_xml_btrace): Update parameters.
11180         (parse_xml_btrace_block): Set format field.
11181         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11182         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11183         (btrace_compute_ftrace): Split into this and...
11184         (btrace_compute_ftrace_bts): ...this.
11185         (btrace_stitch_trace): Split into this and...
11186         (btrace_stitch_bts): ...this.
11187         * btrace.h (parse_xml_btrace): Update parameters.
11188         (make_cleanup_btrace_data): New.
11189         * common/btrace-common.c: New.
11190         * common/btrace-common.h: Include common-defs.h.
11191         (btrace_block_s): Update comment.
11192         (btrace_format): New.
11193         (btrace_format_string): New.
11194         (btrace_data_bts): New.
11195         (btrace_data): New.
11196         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11197         * remote.c (remote_read_btrace): Update parameters.
11198         * target.c (target_read_btrace): Update parameters.
11199         * target.h (target_read_btrace): Update parameters.
11200         (target_ops)<to_read_btrace>: Update parameters.
11201         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11202         * target-delegates.c: Regenerate.
11203         * target-debug (target_debug_print_struct_btrace_data_p): New.
11204         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11205         (linux_read_bts): ...this.
11206         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11207
11208 2015-02-06  Doug Evans  <dje@google.com>
11209
11210         * remote-m32r-sdi.c: Include symfile.h.
11211
11212 2015-02-06  Doug Evans  <dje@google.com>
11213
11214         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11215         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11216         to here.
11217
11218 2015-02-06  Pedro Alves  <palves@redhat.com>
11219
11220         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11221
11222 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11223
11224         PR gdb/15678
11225         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11226         (enable_count_command): Check args for NULL value.
11227
11228 2015-02-05  Doug Evans  <xdje42@gmail.com>
11229
11230         * guile/scm-frame.c: Fix spelling errors in a comment.
11231
11232 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11233
11234         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11235         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11236         return type.
11237
11238 2015-02-04  Pedro Alves  <palves@redhat.com>
11239
11240         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11241         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11242         returns true.
11243         (resume_stopped_resumed_lwps): Don't check whether the thread is
11244         marked as executing.
11245         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11246
11247 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11248
11249         * regset.h (struct regset): Add flags field.
11250         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11251         * corelow.c (get_core_register_section): Add warning if the size
11252         exceeds the requested size and the regset does not have the
11253         REGSET_VARIABLE_SIZE flag set.
11254         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11255         flag.
11256         * armbsd-tdep.c (armbsd_gregset): Likewise.
11257         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11258         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11259         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11260         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11261
11262 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11263
11264         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11265         For ".reg-xstate", explicitly specify the requested section size
11266         via X86_XSTATE_SIZE instead of just 0 on input and
11267         X86_XSTATE_MAX_SIZE on output.
11268         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11269         Likewise.
11270
11271 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11272
11273         PR corefiles/17808:
11274         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11275         function type, particularly its SIZE parameter.
11276         * gdbarch.h: Regenerate.
11277         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11278         actual against required size using ">=" instead of "==".
11279         (amd64_collect_fpregset): Likewise.
11280         * i386-tdep.c (i386_supply_gregset): Likewise.
11281         (i386_collect_gregset): Likewise.
11282         (i386_supply_fpregset): Likewise.
11283         (i386_collect_fpregset): Likewise.
11284         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11285         (mips_fill_gregset_wrapper): Likewise.
11286         (mips_supply_fpregset_wrapper): Likewise.
11287         (mips_fill_fpregset_wrapper): Likewise.
11288         (mips64_supply_gregset_wrapper): Likewise.
11289         (mips64_fill_gregset_wrapper): Likewise.
11290         (mips64_supply_fpregset_wrapper): Likewise.
11291         (mips64_fill_fpregset_wrapper): Likewise.
11292         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11293         (am33_supply_fpregset_method): Likewise.
11294         (am33_collect_gregset_method): Likewise.
11295         (am33_collect_fpregset_method): Likewise.
11296
11297 2015-02-04  Doug Evans  <dje@google.com>
11298             Pedro Alves  <palves@redhat.com>
11299             Eli Zaretskii  <eliz@gnu.org>
11300
11301         PR tui/17810
11302         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11303         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11304         * tui/tui-file.c: #include tui/tui-command.h.
11305         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11306         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11307         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11308
11309 2015-02-04  Pedro Alves  <palves@redhat.com>
11310
11311         Fix build breakage.
11312         * event-loop.c (gdb_do_one_event): Add default switch case.
11313
11314 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11315
11316         Filter out inferior gcc option -fpreprocessed.
11317         * compile/compile.c (filter_args): New function.
11318         (get_args): Use it.
11319
11320 2015-02-03  Pedro Alves  <palves@redhat.com>
11321
11322         * event-loop.c: Don't declare nor define a queue type for
11323         gdb_event_p.
11324         (event_queue): Delete.
11325         (create_event, create_file_event, gdb_event_xfree)
11326         (initialize_event_loop, process_event): Delete.
11327         (gdb_do_one_event): Return as soon as one event is handled.
11328         (handle_file_event): Change prototype.  Used the passed in
11329         file_handler pointer and ready_mask instead of looping over all
11330         file handlers.
11331         (gdb_wait_for_event): Update the poll/select timeouts before
11332         blocking.  Run event handlers directly instead of queueing events.
11333         Return as soon as one event is handled.
11334         (struct async_event_handler_data): Delete.
11335         (invoke_async_event_handler): Delete.
11336         (check_async_event_handlers): Change return type to int.  Run
11337         event handlers directly instead of queueing events.  Return as
11338         soon as one event is handled.
11339         (handle_timer_event): Delete.
11340         (update_wait_timeout): New function, factored out from
11341         poll_timers.
11342         (poll_timers): Reimplement.
11343         * event-loop.h (initialize_event_loop): Delete declaration.
11344         * top.c (gdb_init): Don't call initialize_event_loop.
11345
11346 2015-02-03  Pedro Alves  <palves@redhat.com>
11347
11348         * event-loop.c (clear_async_event_handler): New function.
11349         * event-loop.h (clear_async_event_handler): New declaration.
11350         * record-btrace.c (record_btrace_async): New function.
11351         (init_record_btrace_ops): Install record_btrace_async.
11352         * record-full.c (record_full_async): New function.
11353         (record_full_resume): Don't mark the async event source here.
11354         (init_record_full_ops): Install record_full_async.
11355         (record_full_core_resume): Don't mark the async event source here.
11356         (init_record_full_core_ops): Install record_full_async.
11357         * remote.c (remote_async): Mark and clear the async stop reply
11358         queue event-loop token as appropriate.
11359
11360 2015-02-03  Pedro Alves  <palves@redhat.com>
11361
11362         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11363         target_is_async_p instead of target_can_async.
11364         (linux_nat_wait): Use target_is_async_p instead of
11365         target_can_async.  Don't enable async here.
11366         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11367         target_is_async_p instead of target_can_async.
11368
11369 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11370
11371         * varobj.h (lang_varobj_ops): Mention which return values need
11372         to be freed.
11373
11374 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11375
11376         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11377
11378 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11379
11380         PR gdb/17856:
11381         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11382         results found in the cache.
11383
11384 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11385
11386         PR gdb/17854:
11387         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11388         when allocating a new one.
11389
11390 2015-02-01  Tom Tromey  <tom@tromey.com>
11391
11392         * MAINTAINERS: Remove myself.
11393
11394 2015-01-31  Doug Evans  <xdje42@gmail.com>
11395
11396         * dwarf2read.c (process_structure_scope): Update setting of
11397         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11398         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11399         (set_type_vptr_fieldno): New function.
11400         (internal_type_vptr_basetype): New function.
11401         (set_type_vptr_basetype): New function.
11402         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11403         TYPE_VPTR_BASETYPE.
11404         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11405         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11406         (print_cplus_stuff): ... moved here.
11407         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11408         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11409         moved to ...
11410         (struct cplus_struct_type): ... here.  All uses updated.
11411         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11412         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11413         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11414         * stabsread.c (read_tilde_fields): Update setting of
11415         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11416
11417 2015-01-31  Doug Evans  <xdje42@gmail.com>
11418
11419         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11420         to self_p.
11421         (cp_print_class_member): Rename local domain to self_type.
11422         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11423         domain_type to self_type.
11424         (set_die_type) <need_gnat_info>: Handle
11425         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11426         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11427         TYPE_SPECIFIC_SELF_TYPE.
11428         * gdbtypes.c (internal_type_self_type): New function.
11429         (set_type_self_type): New function.
11430         (smash_to_memberptr_type): Rename parameter domain to self_type.
11431         Update setting of TYPE_SELF_TYPE.
11432         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11433         (smash_to_method_type): Rename parameter domain to self_type.
11434         Update setting of TYPE_SELF_TYPE.
11435         (check_stub_method): Call smash_to_method_type.
11436         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11437         (copy_type_recursive): Ditto.
11438         * gdbtypes.h (enum type_specific_kind): New value
11439         TYPE_SPECIFIC_SELF_TYPE.
11440         (struct main_type) <type_specific>: New member self_type.
11441         (struct cplus_struct_type) <fn_field.type>: Update comment.
11442         (TYPE_SELF_TYPE): Rewrite.
11443         (internal_type_self_type, set_type_self_type): Declare.
11444         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11445         self_type.
11446         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11447         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11448         TYPE_TARGET_TYPE.
11449         * stabsread.c (read_member_functions): Mark methods with
11450         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11451         TYPE_SELF_TYPE.
11452
11453 2015-01-31  Doug Evans  <xdje42@gmail.com>
11454
11455         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11456         All uses updated.
11457
11458 2015-01-31  Doug Evans  <xdje42@gmail.com>
11459
11460         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11461         or unions.  Return zero if union.
11462         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11463         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11464         gnuv3_get_vtable.
11465         (compute_vtable_size): Assert only passed structs.
11466         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11467
11468 2015-01-31  Doug Evans  <xdje42@gmail.com>
11469
11470         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11471         kinds.
11472
11473 2015-01-31  Gary Benson <gbenson@redhat.com>
11474             Doug Evans  <dje@google.com>
11475
11476         PR cli/9007
11477         PR cli/11920
11478         PR cli/15548
11479         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11480         reached.
11481         * common/common-exceptions.h (enum errors)
11482         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11483         * completer.h (get_max_completions_reached_message): New declaration.
11484         (max_completions): Likewise.
11485         (completion_tracker_t): New typedef.
11486         (new_completion_tracker): New declaration.
11487         (make_cleanup_free_completion_tracker): Likewise.
11488         (maybe_add_completion_enum): New enum.
11489         (maybe_add_completion): New declaration.
11490         (throw_max_completions_reached_error): Likewise.
11491         * completer.c (max_completions): New global variable.
11492         (new_completion_tracker): New function.
11493         (free_completion_tracker): Likewise.
11494         (make_cleanup_free_completion_tracker): Likewise.
11495         (maybe_add_completions): Likewise.
11496         (throw_max_completions_reached_error): Likewise.
11497         (complete_line): Remove duplicates and limit result to max_completions
11498         entries.
11499         (get_max_completions_reached_message): New function.
11500         (gdb_display_match_list): Handle max_completions.
11501         (_initialize_completer): New declaration and function.
11502         * symtab.c: Include completer.h.
11503         (completion_tracker): New static variable.
11504         (completion_list_add_name): Call maybe_add_completion.
11505         (default_make_symbol_completion_list_break_on_1): Renamed from
11506         default_make_symbol_completion_list_break_on.  Maintain
11507         completion_tracker across calls to completion_list_add_name.
11508         (default_make_symbol_completion_list_break_on): New function.
11509         * top.c (init_main): Set rl_completion_display_matches_hook.
11510         * tui/tui-io.c: Include completer.h.
11511         (tui_old_rl_display_matches_hook): New static global.
11512         (tui_rl_display_match_list): Notify user if max-completions reached.
11513         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11514         * NEWS (New Options): Mention set/show max-completions.
11515
11516 2015-01-31  Gary Benson  <gbenson@redhat.com>
11517
11518         * symtab.c (struct add_name_data) <code>: New field.
11519         Updated comments.
11520         (add_symtab_completions): New function.
11521         (symtab_expansion_callback): Likewise.
11522         (default_make_symbol_completion_list_break_on): Set datum.code.
11523         Move minimal symbol scan before calling expand_symtabs_matching.
11524         Scan known primary symtabs for externs and statics before calling
11525         expand_symtabs_matching.  Pass symtab_expansion_callback as
11526         expansion_notify argument to expand_symtabs_matching.  Do not scan
11527         primary symtabs for externs and statics after calling
11528         expand_symtabs_matching.
11529
11530 2015-01-31  Gary Benson  <gbenson@redhat.com>
11531
11532         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11533         (struct quick_symbol_functions) <expand_symtabs_matching>:
11534         New argument expansion_notify.  All uses updated.
11535         (expand_symtabs_matching): New argument expansion_notify.
11536         All uses updated.
11537         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11538         Also print expansion notify.
11539         * symtab.c (expand_symtabs_matching_via_partial): Call
11540         expansion_notify whenever a partial symbol table is expanded.
11541         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11542         expansion_notify whenever a symbol table is instantiated.
11543
11544 2015-01-31  Doug Evans  <xdje42@gmail.com>
11545
11546         * cli-out.c: #include completer.h, readline/readline.h.
11547         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11548         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11549         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11550         * cli-out.h (cli_display_match_list): Declare.
11551         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11552         (ELLIPSIS_LEN): Ditto.
11553         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11554         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11555         (gdb_fnprint, gdb_print_filename): Ditto.
11556         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11557         (gdb_display_match_list): Ditto.
11558         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11559         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11560         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11561         (match_list_displayer): New struct.
11562         (gdb_display_match_list): Declare.
11563         * top.c (init_main): Set rl_completion_display_matches_hook.
11564         * tui/tui-io.c: #include completer.h.
11565         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11566         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11567         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11568         (tui_mld_getc, tui_mld_read_key): Ditto.
11569         (tui_rl_display_match_list): Rewrite.
11570         (tui_handle_resize_during_io): New arg for_completion.  All callers
11571         updated.
11572
11573 2015-01-31  Doug Evans  <xdje42@gmail.com>
11574
11575         Add symbol lookup cache.
11576         * NEWS: Document new options and commands.
11577         * symtab.c (symbol_cache_key): New static global.
11578         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11579         (SYMBOL_LOOKUP_FAILED): New macro.
11580         (symbol_cache_slot_state): New enum.
11581         (block_symbol_cache): New struct.
11582         (symbol_cache): New struct.
11583         (new_symbol_cache_size, symbol_cache_size): New static globals.
11584         (hash_symbol_entry, eq_symbol_entry): New functions.
11585         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11586         (make_symbol_cache, free_symbol_cache): New functions.
11587         (get_symbol_cache, symbol_cache_cleanup): New function.
11588         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11589         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11590         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11591         (symbol_cache_flush, symbol_cache_dump): New functions.
11592         (maintenance_print_symbol_cache): New function.
11593         (maintenance_flush_symbol_cache): New function.
11594         (symbol_cache_stats): New function.
11595         (maintenance_print_symbol_cache_statistics): New function.
11596         (symtab_new_objfile_observer): New function.
11597         (symtab_free_objfile_observer): New function.
11598         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11599         (_initialize_symtab): Init symbol_cache_key.  New parameter
11600         maint symbol-cache-size.  New maint commands print symbol-cache,
11601         print symbol-cache-statistics, flush-symbol-cache.
11602         Install new_objfile, free_objfile observers.
11603
11604 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11605
11606         PR symtab/17855
11607         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11608         to end.
11609
11610 2015-01-31  Doug Evans  <xdje42@gmail.com>
11611
11612         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11613         * auto-load.c: #include ctype.h.
11614         (struct auto_load_pspace_info): Replace member loaded_scripts with
11615         new members loaded_script_files, loaded_script_texts.
11616         (auto_load_pspace_data_cleanup): Update.
11617         (init_loaded_scripts_info): Update.
11618         (get_auto_load_pspace_data_for_loading): Update.
11619         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11620         updated.
11621         (maybe_add_script_text): New function.
11622         (clear_section_scripts): Update.
11623         (source_script_file, execute_script_contents): New functions.
11624         (source_section_scripts): Add support for
11625         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11626         (print_scripts): New function.
11627         (auto_load_info_scripts): Also print inlined scripts.
11628         (maybe_print_unsupported_script_warning): Renamed from
11629         unsupported_script_warning_print.  All callers updated.
11630         (maybe_print_script_not_found_warning): Renamed from
11631         script_not_found_warning_print.  All callers updated.
11632         * extension-priv.h (struct extension_language_script_ops): New member
11633         objfile_script_executor.
11634         * extension.c (ext_lang_objfile_script_executor): New function.
11635         * extension.h (objfile_script_executor_func): New typedef.
11636         (ext_lang_objfile_script_executor): Declare.
11637         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11638         * guile/guile.c (guile_extension_script_ops): Update.
11639         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11640         * python/python.c (python_extension_script_ops): Update.
11641         (gdbpy_execute_objfile_script): New function.
11642
11643 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11644
11645         * tui/tui-io.c (tui_expand_tabs): New function.
11646         (tui_puts, tui_redisplay_readline): Expand TABs into the
11647         appropriate number of spaces.
11648         * tui/tui-regs.c: Include tui-io.h.
11649         (tui_register_format): Call tui_expand_tabs to expand TABs into
11650         the appropriate number of spaces.
11651         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11652
11653 2015-01-30  Doug Evans  <dje@google.com>
11654
11655         * NEWS: "info source" command now display producer string if present.
11656         * source.c (source_info): Print producer string if present.
11657
11658 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11659
11660         * varobj.c (varobj_delete): Fix comment.
11661
11662 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11663
11664         * varobj.c (create_child): Modify comment.
11665
11666 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11667
11668         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11669         parameter.
11670         (ada_name_of_variable): Same.
11671         (ada_path_expr_of_child): Same.
11672         (ada_value_of_variable): Same.
11673         (ada_value_is_changeable_p): Same.
11674         (ada_value_has_mutated): Same.
11675         * c-varobj.c (varobj_is_anonymous_child): Same.
11676         (c_is_path_expr_parent): Same.
11677         (c_number_of_children): Same.
11678         (c_name_of_variable): Same.
11679         (c_path_expr_of_child): Same.
11680         (get_type): Same.
11681         (c_value_of_variable): Same.
11682         (cplus_number_of_children): Same.
11683         (cplus_name_of_variable): Same.
11684         (cplus_path_expr_of_child): Same.
11685         (cplus_value_of_variable): Same.
11686         * jv-varobj.c (java_number_of_children): Same.
11687         (java_name_of_variable): Same.
11688         (java_path_expr_of_child): Same.
11689         (java_value_of_variable): Same.
11690         * varobj.c (number_of_children): Same.
11691         (name_of_variable): Same.
11692         (is_root_p): Same.
11693         (varobj_ensure_python_env): Same.
11694         (varobj_get_objname): Same.
11695         (varobj_get_expression): Same.
11696         (varobj_get_display_format): Same.
11697         (varobj_get_display_hint): Same.
11698         (varobj_has_more): Same.
11699         (varobj_get_thread_id): Same.
11700         (varobj_get_frozen): Same.
11701         (dynamic_varobj_has_child_method): Same.
11702         (varobj_get_gdb_type): Same.
11703         (is_path_expr_parent): Same.
11704         (varobj_default_is_path_expr_parent): Same.
11705         (varobj_get_language): Same.
11706         (varobj_get_attributes): Same.
11707         (varobj_is_dynamic_p): Same.
11708         (varobj_get_child_range): Same.
11709         (varobj_value_has_mutated): Same.
11710         (varobj_get_value_type): Same.
11711         (number_of_children): Same.
11712         (name_of_variable): Same.
11713         (check_scope): Same.
11714         (varobj_editable_p): Same.
11715         (varobj_value_is_changeable_p): Same.
11716         (varobj_floating_p): Same.
11717         (varobj_default_value_is_changeable_p): Same.
11718
11719 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11720
11721         * varobj.c (varobj_get_path_expr): Set var->path_expr.
11722         * c-varobj.c (c_path_expr_of_child): Set local var instead of
11723         child->path_expr.
11724         (cplus_path_expr_of_child): Same.
11725
11726 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11727
11728         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11729         result.
11730         (mi_cmd_var_info_expression): Same.
11731         * varobj.c (varobj_get_expression): Mention in the comment that
11732         the result must by freed by the caller.
11733
11734 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11735
11736         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11737         varobj_get_type.
11738         (varobj_update_one): Same.
11739         * varobj.c (update_type_if_necessary): Free curr_type_str and
11740         new_type_str.
11741         (varobj_get_type): Specify in comment that the result needs to be
11742         freed by the caller.
11743
11744 2015-01-29  Doug Evans  <dje@google.com>
11745
11746         PR symtab/17890
11747         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11748
11749 2015-01-25  Mark Wielaard  <mjw@redhat.com>
11750
11751         * dwarf2read.c (checkproducer): Call producer_is_gcc.
11752         * utils.c (producer_is_gcc_ge_4): Likewise.
11753         (producer_is_gcc): New function.
11754         * utils.h (producer_is_gcc): New declaration.
11755
11756 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11757
11758         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11759         kind.
11760         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11761         parameter by "addr_stack" parameter.
11762         (resolve_dynamic_range): Replace "addr" parameter by
11763         "stack_addr" parameter.  Update function documentation.
11764         Update code accordingly.
11765         (resolve_dynamic_array, resolve_dynamic_union)
11766         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11767         (resolve_dynamic_type): Update code, following the changes made
11768         to resolve_dynamic_type_internal's interface.
11769         * dwarf2loc.h (struct property_addr_info): New.
11770         (dwarf2_evaluate_property): Replace "address" parameter
11771         by "addr_stack" parameter.  Adjust function documentation.
11772         (struct dwarf2_offset_baton): New.
11773         (struct dwarf2_property_baton): Update documentation of
11774         field "referenced_type" to be more general. New field
11775         "offset_info" in union data field.
11776         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11777         parameter by "addr_stack" parameter.  Adjust code accordingly.
11778         Add support for PROP_ADDR_OFFSET properties.
11779         * dwarf2read.c (attr_to_dynamic_prop): Add support for
11780         DW_AT_data_member_location attributes as well.  Use case
11781         statements instead of if/else condition.
11782
11783 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11784
11785         * ada-varobj.c (ada_varobj_get_array_number_of_children):
11786         Return zero if PARENT_VALUE is NULL and parent_type's
11787         range type is dynamic.
11788
11789 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11790
11791         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11792         nonzero if the type's subtype is dynamic.
11793         (resolve_dynamic_range): Also resolve the range's subtype.
11794
11795 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
11796
11797         Pushed by Joel Brobecker  <brobecker@adacore.com>.
11798         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11799
11800 2015-01-27  Doug Evans  <dje@google.com>
11801
11802         * NEWS: Mention gdb.Objfile.username.
11803         * python/py-objfile.c (objfpy_get_username): New function.
11804         (objfile_getset): Add "username".
11805
11806 2015-01-24  Mark Wielaard  <mjw@redhat.com>
11807
11808         * stack.c (return_command): Markup warning message with _.
11809
11810 2015-01-24  Doug Evans  <xdje42@gmail.com>
11811
11812         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11813
11814 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11815
11816         Fix 100x slowdown regression on DWZ files.
11817         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11818         (struct line_header): Add offset and offset_in_dwz.
11819         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11820         (free_line_header_voidp): New declaration.
11821         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11822         functions.
11823         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11824         (handle_DW_AT_stmt_list): Use line_header_hash.
11825         (free_line_header_voidp): New function.
11826         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11827         (dwarf_decode_lines): New parameter decode_mapping, use it.
11828         (dwarf2_free_objfile): Free line_header_hash.
11829
11830 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
11831
11832         PR gdb/17416
11833         * valops.c (value_rtti_indirect_type): Catch exception thrown by
11834         value_ind.
11835
11836 2015-01-15  Mark Wielaard  <mjw@redhat.com>
11837
11838         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11839         DW_AT_noreturn.
11840         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11841         calling_convention an 8 bit bit field.
11842         (TYPE_NO_RETURN): New macro.
11843         * infcmd.c (finish_command): Query if function does not return
11844         normally.
11845         * stack.c (return_command): Likewise.
11846
11847 2015-01-23  Pedro Alves  <palves@redhat.com>
11848
11849         * linux-nat.c (linux_is_async_p): New macro.
11850         (linux_nat_is_async_p):
11851         (linux_nat_terminal_inferior): Check whether the target can async
11852         instead of whether it is already async.
11853         (linux_nat_terminal_ours): Don't check whether the target is
11854         async.
11855         (linux_async_pipe): Use linux_is_async_p.
11856
11857 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11858
11859         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11860         '-ascending'.
11861         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11862         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11863         Sort tp_array using tp_array_compar.
11864         (_initialize_thread): Extend thread_apply_all_command help.
11865
11866 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11867
11868         * corelow.c (core_open): Call also thread_command.
11869         * gdbthread.h (thread_command): New prototype moved from ...
11870         * thread.c (thread_command): ... here.
11871         (thread_command): Make it global.
11872
11873 2015-01-22  Pedro Alves  <palves@redhat.com>
11874
11875         * configure.ac [*mingw32*]: Check $curses_found instead of
11876         $prefer_curses.
11877         * configure: Regenerate.
11878         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11879         HAVE_NCURSES_NCURSES_H checks.
11880
11881 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11882
11883         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11884         fails with the 1st arg NULL, try again with "unknown".  Don't test
11885         the "cup" capability: it isn't supported by the Windows port of
11886         ncurses, but the Windows console driver is still capable of
11887         supporting TUI.
11888
11889 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11890
11891         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11892
11893 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11894
11895         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11896         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
11897         reason that "make TAGS" is broken.
11898
11899 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
11900
11901         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11902         and check additional store instructions.
11903
11904 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11905
11906         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11907
11908 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11909
11910         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11911         ppc_canonicalize_syscall, ppc_linux_syscall_record,
11912         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11913         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11914         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11915         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11916         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11917         ppc_process_record_op19, ppc_process_record_op31,
11918         ppc_process_record_op59, ppc_process_record_op60,
11919         ppc_process_record_op63): Likewise.
11920
11921 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
11922
11923         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11924         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11925         strerror.
11926
11927 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
11928
11929         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11930         ppc_process_record_op31, ppc_process_record_op59,
11931         ppc_process_record_op60, ppc_process_record_op63,
11932         ppc_process_record): Fix -Wformat warning.
11933         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11934         Remove unused variables.
11935
11936 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
11937
11938         * MAINTAINERS (Write After Approval): Add "Chen Gang".
11939
11940 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
11941
11942         * configure.ac [*mingw32*]: Only add windows-termcap.o to
11943         CONFIG_OBS if not building with a curses library.
11944         * configure: Regenerate.
11945
11946         * windows-termcap.c: Include defs.h.  Make the whole body empty if
11947         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11948         HAVE_NCURSES_NCURSES_H is defined.
11949
11950 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
11951
11952         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11953         from end of line to start of next line.
11954
11955 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11956
11957         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11958         Scan PLT stub backward for reverse debugging.
11959         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11960
11961 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11962             Ulrich Weigand  <uweigand@de.ibm.com>
11963
11964         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11965         gdb_target_obs.
11966         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11967         record.
11968         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11969         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11970         (ppc_linux_init_abi): Set process_record, process_record_signal.
11971         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11972         ppc_linux_record_tdep to gdbarch_tdep.
11973         (ppc_process_record): New declaration.
11974         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11975         ppc_process_record_op19, ppc_process_record_op31,
11976         ppc_process_record_op59, ppc_process_record_op60,
11977         ppc_process_record_op63, ppc_process_record): New functions.
11978
11979 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
11980
11981         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11982         rs6000_in_function_epilogue_frame_p and add an argument
11983         for frame_info.
11984         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11985         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11986         New functions.
11987         (rs6000_epilogue_frame_unwind): New.
11988         (rs6000_gdbarch_init): Append epilogue unwinder.
11989
11990 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11991
11992         * nat/linux-personality.c: Replace "#ifndef
11993         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11994         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11995         systems.
11996
11997 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
11998
11999         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12000         functions.
12001         (_initialize_tui_win) <border-kind, border-mode>:
12002         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12003         (tui_set_tab_width_command): Fix the commentary.
12004
12005         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12006
12007         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12008         Doc fix.
12009         (tui_set_tab_width_command): Delete and recreate the source and
12010         the disassembly windows, to show the effect of the changed tab
12011         size immediately.
12012
12013         * tui/tui-data.h (LINE_PREFIX): Make shorter
12014         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12015         "Thread NNNNN.XXXX" thread ID notation on Windows.
12016
12017 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12018
12019         Fix gcc-5 compilation.
12020         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12021
12022 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12023
12024         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12025         (linux-personality.o): New rule.
12026         * common/common-defs.h: Include <stdint.h>.
12027         * config/aarch64/linux.mh (NATDEPFILES): Include
12028         linux-personality.o.
12029         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12030         * config/arm/linux.mh (NATDEPFILES): Likewise.
12031         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12032         * config/i386/linux.mh (NATDEPFILES): Likewise.
12033         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12034         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12035         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12036         * config/mips/linux.mh (NATDEPFILES): Likewise.
12037         * config/pa/linux.mh (NATDEPFILES): Likewise.
12038         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12039         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12040         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12041         * config/s390/linux.mh (NATDEPFILES): Likewise.
12042         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12043         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12044         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12045         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12046         * defs.h: Remove #include <stdint.h> (moved to
12047         common/common-defs.h).
12048         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12049         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12050         nat/linux-personality.c).
12051         (linux_nat_create_inferior): Remove code to disable address space
12052         randomization (moved to nat/linux-personality.c).  Create cleanup
12053         to disable address space randomization.
12054         * nat/linux-personality.c: New file.
12055         * nat/linux-personality.h: Likewise.
12056
12057 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12058
12059         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12060         common/posix-strerror.c.
12061         (posix-strerror.o): New rule.
12062         (mingw-strerror.o): Likewise.
12063         * common/common-utils.h (safe_strerror): Move prototype to here,
12064         from utils.h.
12065         * common/common.host: New file.
12066         * common/mingw-strerror.c: Likewise.
12067         * common/posix-strerror.c: Likewise.
12068         * configure: Regenerated.
12069         * configure.ac: Source common/common.host.  Add variable
12070         common_host_obs to gdb_host_obs.
12071         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12072         gdb/common/posix-strerror.c when warning about the use of
12073         strerror.
12074         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12075         common/mingw-strerror.c.
12076         * posix-hdep.c (safe_strerror): Remove definition; move it to
12077         common/posix-hdep.c.
12078         * utils.h (safe_strerror): Remove prototype; move to
12079         common/common-utils.h.
12080
12081 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12082
12083         GDB 7.8.2 released.
12084
12085 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12086
12087         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12088         ___XA type if the array has already been fixed.
12089
12090 2015-01-14  Yao Qi  <yao@codesourcery.com>
12091
12092         * Makefile.in (ppc-linux.o): New rule.
12093         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12094         * configure.ac: AC_CHECK_FUNCS(getauxval).
12095         * config.in: Re-generated.
12096         * configure: Re-generated.
12097         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12098         Declare.
12099         * nat/ppc-linux.c: New file.
12100         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12101         Call ppc64_64bit_inferior_p.
12102
12103 2015-01-14  Yao Qi  <yao@codesourcery.com>
12104
12105         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12106         nat/ppc-linux.h.
12107         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12108         (PPC_FEATURE_HAS_DFP): Likewise.
12109         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12110         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12111         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12112         Include "nat/ppc-linux.h".
12113         * nat/ppc-linux.h: New file.
12114         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12115
12116 2015-01-14  Pedro Alves  <palves@redhat.com>
12117
12118         PR gdb/17525
12119         * breakpoint.c: Include "interps.h".
12120         (bpstat_do_actions_1): Also check whether the interpreter is
12121         async.
12122
12123 2015-01-14  Pedro Alves  <palves@redhat.com>
12124
12125         PR cli/17828
12126         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12127         reinstall if the interpreter is sync.
12128
12129 2015-01-13  Doug Evans  <dje@google.com>
12130
12131         * objfiles.c (objfile_filename): New function.
12132         * objfiles.h (objfile_filename): Declare it.
12133         (objfile_name): Add function comment.
12134         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12135         bfd file name (which may be realpath'd), and the original name.
12136
12137 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12138
12139         * NEWS: Create a new section for the next release branch.
12140         Rename the section of the current branch, now that it has
12141         been cut.
12142
12143 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12144
12145         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12146         * version.in: Bump version to 7.9.50.DATE-cvs.
12147
12148 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12149
12150         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12151         Remove trailing new-line in argument of call to warning.
12152
12153 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12154
12155         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12156         new-line in argument of call to "warning".
12157
12158 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12159
12160         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12161         in static block, then try searching for primitive types.
12162
12163 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12164
12165         * top.h (gdb_add_history): Declare.
12166         * top.c (command_count): New variable.
12167         (gdb_add_history): New function.
12168         (gdb_safe_append_history): New static function.
12169         (quit_force): Call it.
12170         (command_line_input): Use gdb_add_history instead of
12171         add_history.
12172         * event-top.c (command_line_handler): Likewise.
12173
12174 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12175
12176         PR gdb/17046
12177         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12178         <setjmp.h> #include.
12179
12180 2015-01-11  Doug Evans  <xdje42@gmail.com>
12181
12182         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12183
12184 2015-01-11  Doug Evans  <xdje42@gmail.com>
12185
12186         PR gdb/15830
12187         * NEWS: The "maint demangle" command is renamed as "demangle".
12188         * demangle.c: #include cli/cli-utils.h, language.h.
12189         (demangle_command): New function.
12190         (_initialize_demangle): Add new command "demangle".
12191         * maint.c (maintenance_demangle): Stub out.
12192         (_initialize_maint_cmds): Update help text for "maint demangle",
12193         and mark as deprecated.
12194
12195 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12196
12197         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12198         inferior_thread is a function.
12199
12200 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12201
12202         * Makefile.in (.y.c): Don't munge yacc's #line
12203         directives.
12204
12205 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12206
12207         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12208         to prompt for input.
12209         * tui/tui-hooks.c (tui_query_hook): Remove.
12210         (tui_install_hooks): Don't set deprecated_query_hook.
12211         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12212         height calculation.  Always update the command window's cur_line.
12213
12214 2015-01-09  Pedro Alves  <palves@redhat.com>
12215
12216         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12217         function.
12218         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12219         declaration.
12220         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12221         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12222         stop_reason.
12223         (check_stopped_by_watchpoint): New function.
12224         (save_sigtrap): Reimplement.
12225         (linux_nat_stopped_by_watchpoint): Adjust.
12226         (linux_nat_lp_status_is_event): Delete.
12227         (stop_wait_callback): Only call save_sigtrap after storing the
12228         pending status.
12229         (status_callback): If the thread had been stopped for a breakpoint
12230         that has since been removed, discard the event and resume the LWP.
12231         (count_events_callback, select_event_lwp_callback): Use
12232         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12233         (cancel_breakpoint): Rename to ...
12234         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12235         stopped for a software breakpoint or hardware breakpoint.
12236         (select_event_lwp): Only give preference to the stepping LWP in
12237         all-stop mode.  Adjust comments.
12238         (stop_and_resume_callback): Remove references to new_pending_p.
12239         (linux_nat_filter_event): Likewise.  Leave exit events of the
12240         leader thread pending here.  Handle signal short circuiting here.
12241         Only call save_sigtrap after storing the pending waitstatus.
12242         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12243         new_pending.  Don't handle leaving events the caller is not
12244         interested in pending here, nor handle signal short-circuiting
12245         here.  Also give equal priority to all LWPs that have had events
12246         in non-stop mode.  If reporting a software breakpoint event,
12247         unadjust the LWP's PC.
12248         * linux-nat.h (enum lwp_stop_reason): New.
12249         (struct lwp_info) <stop_pc>: New field.
12250         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12251         (struct lwp_info) <stop_reason>: New field.
12252         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12253
12254 2015-01-09  Pedro Alves  <palves@redhat.com>
12255
12256         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12257         Set the LWP's 'resumed' flag.
12258
12259 2015-01-09  Pedro Alves  <palves@redhat.com>
12260
12261         * linux-nat.c (linux_resume_one_lwp): New function.
12262         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12263         (linux_nat_resume): Use lwp_status_pending_p and
12264         linux_resume_one_lwp.
12265         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12266         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12267         (status_callback, running_callback): Use lwp_status_pending_p.
12268         (lwp_status_pending_p): New function.
12269         (stop_and_resume_callback): Use lwp_status_pending_p.
12270         (linux_nat_filter_event): Use linux_resume_one_lwp.
12271         (linux_nat_wait_1): Always use status_callback to look for an LWP
12272         with a pending status.  Use linux_resume_one_lwp.
12273         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12274         linux_resume_one_lwp.
12275
12276 2015-01-09  Pedro Alves  <palves@redhat.com>
12277
12278         * breakpoint.c (bp_location_inserted_here_p): New function,
12279         factored out from ...
12280         (breakpoint_inserted_here_p): ... here.  Use
12281         ALL_BP_LOCATIONS_AT_ADDR.
12282         (software_breakpoint_inserted_here_p): Use
12283         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12284
12285 2014-01-09  Pedro Alves  <palves@redhat.com>
12286
12287         Skip enabling event reporting if the kernel supports
12288         PTRACE_EVENT_CLONE.
12289         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12290         (thread_db_use_events): New function.
12291         (try_thread_db_load_1): Check thread_db_use_events before enabling
12292         event reporting.
12293         (update_thread_state): New function.
12294         (attach_thread): Use it.  Check thread_db_use_events before
12295         enabling event reporting.
12296         (thread_db_detach): Check thread_db_use_events before disabling
12297         event reporting.
12298         (find_new_threads_callback): Check thread_db_use_events before
12299         enabling event reporting.  Update the thread's state if not using
12300         libthread_db events.
12301
12302 2015-01-09  Pedro Alves  <palves@redhat.com>
12303
12304         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12305         about to wait for is > 0.
12306         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12307         the kernel thread ID is -1.
12308
12309 2015-01-09  Pedro Alves  <palves@redhat.com>
12310
12311         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12312         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12313         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12314         ptrace option flags.
12315         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12316         field.
12317         * nat/linux-procfs.c: Include <dirent.h>.
12318         (linux_proc_get_int): New parameter "warn".  Handle it.
12319         (linux_proc_get_tgid): Adjust.
12320         (linux_proc_get_tracerpid): Rename to ...
12321         (linux_proc_get_tracerpid_nowarn): ... this.
12322         (linux_proc_pid_get_state): New function, factored out from
12323         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12324         and handle it.
12325         (linux_proc_pid_is_gone): New function.
12326         (linux_proc_pid_is_stopped): Adjust.
12327         (linux_proc_pid_is_zombie_maybe_warn)
12328         (linux_proc_pid_is_zombie_nowarn): New functions.
12329         (linux_proc_pid_is_zombie): Use
12330         linux_proc_pid_is_zombie_maybe_warn.
12331         (linux_proc_attach_tgid_threads): New function.
12332         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12333         (linux_proc_get_tracerpid): Rename to ...
12334         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12335         (linux_proc_pid_is_gone): New declaration.
12336         (linux_proc_pid_is_zombie): Update comment.
12337         (linux_proc_pid_is_zombie_nowarn): New declaration.
12338         (linux_proc_attach_lwp_func): New typedef.
12339         (linux_proc_attach_tgid_threads): New declaration.
12340         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12341         use nowarn functions.
12342         (linux_ptrace_attach_fail_reason_string): Move here from
12343         gdbserver/linux-low.c and rename.
12344         (ptrace_supports_feature): If the current ptrace options are not
12345         known yet, check them now, instead of asserting.
12346         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12347         Declare.
12348
12349 2015-01-09  Pedro Alves  <palves@redhat.com>
12350
12351         * linux-thread-db.c (thread_db_find_new_threads_silently)
12352         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12353         (find_new_threads_once): Print debug output on gdb_stdlog.
12354
12355 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12356             Pedro Alves  <palves@redhat.com>
12357
12358         * compile/compile.c: Include "gdb_wait.h".
12359         (do_rmdir): Check return value, and free 'zap'.
12360
12361 2015-01-08  Pedro Alves  <palves@redhat.com>
12362             Yao Qi  <yao@codesourcery.com>
12363
12364         * dwarf2loc.c (indirect_pieced_value): Don't call
12365         gdb_sign_extend.  Call extract_signed_integer instead.
12366         * utils.c (gdb_sign_extend): Remove.
12367         * utils.h (gdb_sign_extend): Remove declaration.
12368
12369 2015-01-07  Pierre Muller  <muller@sourceware.org>
12370
12371         PR symtab/17811
12372         * stabsread.c (define_symbol): Set language for C++ special symbols.
12373
12374 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12375
12376         * inflow.c (initial_gdb_ttystate): Tweak comment.
12377
12378 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12379
12380         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12381         comment documenting function.
12382
12383 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12384
12385         * terminal.h (set_initial_gdb_ttystate): Declare.
12386         * inflow.c (initial_gdb_ttystate): New static variable.
12387         (set_initial_gdb_ttystate): New setter.
12388         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12389         instead of our current terminal state.
12390         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12391
12392 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12393
12394         * guile/scm-type.c (tyscm_array_1): Add comment.
12395         * python/py-type.c (typy_array_1): Add comment.
12396
12397 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12398
12399         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12400         error if N2 is equal to N1 - 1.
12401
12402 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12403
12404         * python/py-type.c (typy_array_1): Do not raise negative-length
12405         exception if N2 is equal to N1 - 1.
12406
12407 2015-01-03  Doug Evans  <xdje42@gmail.com>
12408
12409         * c-exp.y: Whitespace cleanup.
12410         (classify_inner_name): Remove extra ;.
12411
12412 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12413
12414         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12415         offset signed.
12416
12417 2015-01-02  Doug Evans  <dje@google.com>
12418
12419         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12420
12421 2015-01-02  Doug Evans  <dje@google.com>
12422
12423         * symtab.h (struct symbol): Fix typo in comment.
12424
12425 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12426
12427         Update year range in copyright notice of all files.
12428
12429 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12430
12431         * top.c (print_gdb_version): Update copyright year to 2015.
12432
12433 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12434
12435         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12436
12437 For older changes see ChangeLog-2014.
12438 \f
12439 Local Variables:
12440 mode: change-log
12441 left-margin: 8
12442 fill-column: 74
12443 version-control: never
12444 coding: utf-8
12445 End: