Rename emit_insn to aarch64_emit_insn
[external/binutils.git] / gdb / ChangeLog
1 2015-10-12  Yao Qi  <yao.qi@linaro.org>
2
3         * arch/aarch64-insn.c (emit_insn): Rename to ...
4         (aarch64_emit_insn): ... it.  All callers updated.
5
6 2015-10-12  Yao Qi  <yao.qi@linaro.org>
7
8         * aarch64-linux-tdep.c: Include arch-utils.h.
9         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
10         set_gdbarch_displaced_step_copy_insn,
11         set_gdbarch_displaced_step_fixup,
12         set_gdbarch_displaced_step_free_closure,
13         set_gdbarch_displaced_step_location,
14         and set_gdbarch_displaced_step_hw_singlestep.
15         * aarch64-tdep.c (struct displaced_step_closure): New.
16         (struct aarch64_displaced_step_data): New.
17         (aarch64_displaced_step_b): New function.
18         (aarch64_displaced_step_b_cond): Likewise.
19         (aarch64_register): Likewise.
20         (aarch64_displaced_step_cb): Likewise.
21         (aarch64_displaced_step_tb): Likewise.
22         (aarch64_displaced_step_adr): Likewise.
23         (aarch64_displaced_step_ldr_literal): Likewise.
24         (aarch64_displaced_step_others): Likewise.
25         (aarch64_displaced_step_copy_insn): Likewise.
26         (aarch64_displaced_step_fixup): Likewise.
27         (aarch64_displaced_step_hw_singlestep): Likewise.
28         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
29         (aarch64_displaced_step_copy_insn): Declare.
30         (aarch64_displaced_step_fixup): Declare.
31         (aarch64_displaced_step_hw_singlestep): Declare.
32         * arch/aarch64-insn.c (emit_insn): Moved from
33         gdbserver/linux-aarch64-low.c.
34         (emit_load_store): Likewise.
35         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
36         gdbserver/linux-aarch64-low.c.
37         (struct aarch64_register): Likewise.
38         (struct aarch64_memory_operand): Likewise.
39         (ENCODE): Likewise.
40         (can_encode_int32): New macro.
41         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
42         (emit_tb, emit_nop): Likewise.
43         (emit_insn): Declare.
44         (emit_load_store): Declare.
45
46 2015-10-12  Yao Qi  <yao.qi@linaro.org>
47
48         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
49         gdbserver/linux-aarch64-low.c.
50         (aarch64_relocate_instruction): Likewise.
51         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
52         (struct aarch64_insn_data): Moved from
53         gdbserver/linux-aarch64-low.c.
54         (struct aarch64_insn_visitor): Likewise.
55         (aarch64_relocate_instruction): Declare.
56
57 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
58
59         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
60         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
61         to the returned value.
62
63 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
64
65         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
66         is large enough for BIT_SIZE.  Update function comment.
67
68 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
69
70         * ada-lang.c (ada_value_primitive_packed_val): Move
71         src_len variable to local block where used.  Override
72         BIT_SIZE if bigger than size of resolved type.
73
74 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
75
76         * gdbtypes.h (is_scalar_type): Add extern declaration.
77         * gdbtypes.c (is_scalar_type): Make non-static.
78         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
79         to compute IS_SCALAR instead of doing it ourselves.
80
81 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
82
83         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
84         of case where TYPE is dynamic.
85
86 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
87
88         * ada-lang.c (ada_unpack_from_contents): New function,
89         extracted from ada_value_primitive_packed_val.
90         (ada_value_primitive_packed_val): Replace extracted out code
91         by call to ada_unpack_from_contents.
92
93 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
94
95         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
96         variable declarations.
97
98 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
99
100         * ada-lang.c (ada_value_primitive_packed_val): Change the type
101         of local variables src and unpacked to "gdb_type *" instead of
102         "unsigned char *".
103
104 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
105
106         * ada-lang.c (ada_value_primitive_packed_val): Make the name
107         of various local variables more explicit and consistent.
108         No real code change otherwise.
109
110 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
111
112         * i386-tdep.h (struct gdbarch_tdep): Change type of
113         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
114
115 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
116
117         * cris-tdep.c (struct instruction_environment): Change type of
118         byte_order to enum bfd_endian.
119
120 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
121
122         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
123         enum gdb_syscall casts.
124
125 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
126
127         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
128         * arm-tdep.c (struct stack_item): Likewise.
129         (push_stack_item): Add gdb_byte* cast.
130         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
131         (push_stack_item): Add gdb_byte* cast.
132         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
133         and add cast.
134         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
135         (push_stack_item): Add gdb_byte* cast.
136         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
137         add cast.
138         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
139         gdb_byte*.
140         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
141         gdb_byte* and remove unnecessary cast.
142         (h8300h_extract_return_value): Likewise.
143         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
144         (h8300h_store_return_value): Likewise.
145         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
146         gdb_byte* and remove unnecessary cast.
147         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
148         and add cast.
149         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
150         gdb_byte* and remove unnecessary cast.
151         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
152         valbuf.
153         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
154         (mep_pseudo_cr64_read): Likewise.
155         (mep_pseudo_csr_write): Likewise.
156         (mep_pseudo_cr32_write): Likewise.
157         (mep_pseudo_cr64_write): Likewise.
158         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
159         gdb_byte* and add cast.
160         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
161         gdb_byte* and remove unnecessary cast.
162         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
163         valbuf.
164         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
165         gdb_byte*.
166         * printcmd.c (void): Likewise.
167         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
168         gdb_byte* and add cast.
169         (infpy_write_memory): Likewise.
170         (infpy_search_memory): Likewise.
171         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
172         and add cast.
173         (regcache_raw_write_unsigned): Likewise.
174         (regcache_cooked_write_signed): Likewise.
175         (regcache_cooked_write_unsigned): Likewise.
176         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
177         gdb_byte*.
178
179 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
180
181         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
182         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
183
184 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
185
186         * stack.c (print_stack_frame):
187         * utils.c (printchar): Fix typos in commentary.
188
189 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
190
191         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
192         (PostfixExpression): Support `expr.sizeof' expressions.
193         (PrimaryExpression): Support `typeof(expr)' expressions.
194
195 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
196
197         * MAINTAINERS: Update my email address.
198
199 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
200
201         * record-btrace.c (record_btrace_resume): Fix void return.
202
203 2015-10-07  Yao Qi  <yao.qi@linaro.org>
204
205         * aarch64-tdep.c: Include opcode/aarch64.h.
206         (submask): Move it above.
207         (bit): Likewise.
208         (bits): Likewise.
209         (aarch64_software_single_step): Call aarch64_decode_insn.
210         Decode instruction by aarch64_inst instead of using
211         aarch64_decode_bcond and decode_masked_match.
212
213 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
214
215         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
216         only when the file is binary.
217
218 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
219
220         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
221         subroutine handling.
222
223 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
224
225         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
226
227 2015-09-30  Doug Evans  <dje@google.com>
228
229         * dwarf2read.c (setup_type_unit_groups): Add comment.
230
231 2015-09-30  Pedro Alves  <palves@redhat.com>
232
233         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
234         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
235         (x86_linux_create_target): Don't install
236         x86_linux_always_non_stop_p.
237
238 2015-09-30  Don Breazeal  <donb@codesourcery.com>
239
240         * remote.c (remote_parse_stop_reply): Call strprefix instead
241         of strncmp.
242
243 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
244
245         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
246         * gdbarch.h: Regenerate.
247         * i386-tdep.c (i386_gdbarch_init): Remove cast to
248         struct gdbarch_tdep_info *.
249         * mips-tdep.c (mips_gdbarch_init): Likewise.
250         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
251         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
252         * spu-multiarch.c (spu_gdbarch): Likewise.
253
254 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
255
256         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
257         record a NULL value.
258
259 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
260
261         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
262         and union arguments the same as pointer arguments when determining
263         size of argument.
264
265 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
266
267         * ft32-tdep.c: #include "opcode/ft32.h".
268         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
269         (ft32_analyze_prologue): Use FT32_* macros.
270
271 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
272
273         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
274         comment.
275
276 2015-09-28  Doug Evans  <dje@google.com>
277
278         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
279
280 2015-09-28  Doug Evans  <dje@google.com>
281
282         * common/filestuff.c (make_cleanup_close): Update comment.
283
284 2015-09-26  Simon Marchi  <simark@nova.polymtl.ca>
285
286         * btrace.c (parse_xml_btrace_block): Fix cast of
287         xml_find_attribute's return value.
288         * memory-map.c (memory_map_start_memory): Likewise.
289         * solib-svr4.c (library_list_start_library): Likewise.
290         * solib-target.c (library_list_start_segment): Likewise.
291         (library_list_start_section): Likewise.
292         * tracepoint.c (traceframe_info_start_memory): Likewise.
293
294 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
295
296         * d-namespace.c (d_lookup_symbol): New arg langdef.
297         All callers updated.  Support looking up symbol as a primitive type.
298         (lookup_module_scope): New arg langdef.  All callers updated.
299         Call d_lookup_symbol directly for simple bare symbols.
300
301 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
302
303         * macrocmd.c (print_macro_callback): Add cast(s).
304         * macrotab.c (macro_bcache_str): Likewise.
305         (new_macro_definition): Likewise.
306         * main.c (captured_main): Likewise.
307         * maint.c (print_bfd_section_info): Likewise.
308         * mdebugread.c (mdebug_build_psymtabs): Likewise.
309         (basic_type): Likewise.
310         * memattr.c (mem_region_cmp): Likewise.
311         * memory-map.c (memory_map_start_memory): Likewise.
312         (memory_map_end_memory): Likewise.
313         (memory_map_start_property): Likewise.
314         (memory_map_end_property): Likewise.
315         (clear_result): Likewise.
316         * memrange.c (compare_mem_ranges): Likewise.
317         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
318         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
319         * mi/mi-console.c (mi_console_file_delete): Likewise.
320         (mi_console_file_fputs): Likewise.
321         (mi_console_raw_packet): Likewise.
322         (mi_console_file_flush): Likewise.
323         (mi_console_set_raw): Likewise.
324         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
325         (mi_new_thread): Likewise.
326         (mi_thread_exit): Likewise.
327         (mi_record_changed): Likewise.
328         (mi_inferior_added): Likewise.
329         (mi_inferior_appeared): Likewise.
330         (mi_inferior_exit): Likewise.
331         (mi_inferior_removed): Likewise.
332         (mi_interp_data): Likewise.
333         (mi_on_normal_stop): Likewise.
334         (mi_traceframe_changed): Likewise.
335         (mi_tsv_created): Likewise.
336         (mi_tsv_deleted): Likewise.
337         (mi_tsv_modified): Likewise.
338         (mi_breakpoint_created): Likewise.
339         (mi_breakpoint_deleted): Likewise.
340         (mi_breakpoint_modified): Likewise.
341         (mi_output_running_pid): Likewise.
342         (mi_inferior_count): Likewise.
343         (mi_solib_loaded): Likewise.
344         (mi_solib_unloaded): Likewise.
345         (mi_command_param_changed): Likewise.
346         (mi_memory_changed): Likewise.
347         (report_initial_inferior): Likewise.
348         (mi_ui_out): Likewise.
349         (mi_set_logging): Likewise.
350         * mi/mi-main.c (collect_cores): Likewise.
351         (print_one_inferior): Likewise.
352         (free_vector_of_ints): Likewise.
353         (free_splay_tree): Likewise.
354         (mi_execute_command): Likewise.
355         * mi/mi-out.c (mi_table_body): Likewise.
356         (mi_table_end): Likewise.
357         (mi_table_header): Likewise.
358         (mi_begin): Likewise.
359         (mi_end): Likewise.
360         (mi_field_int): Likewise.
361         (mi_field_string): Likewise.
362         (mi_field_fmt): Likewise.
363         (mi_flush): Likewise.
364         (mi_redirect): Likewise.
365         (field_separator): Likewise.
366         (mi_open): Likewise.
367         (mi_close): Likewise.
368         (mi_out_buffered): Likewise.
369         (mi_out_rewind): Likewise.
370         (mi_out_put): Likewise.
371         (mi_version): Likewise.
372         (mi_out_data_dtor): Likewise.
373         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
374         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
375         * minidebug.c (lzma_open): Likewise.
376         (lzma_pread): Likewise.
377         (lzma_close): Likewise.
378         (lzma_stat): Likewise.
379         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
380         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
381         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
382         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
383         (mips_micro_frame_cache): Likewise.
384         (mips_insn32_frame_cache): Likewise.
385         (mips_stub_frame_cache): Likewise.
386         (gdb_print_insn_mips): Likewise.
387         (value_of_mips_user_reg): Likewise.
388         (mips_gdbarch_init): Likewise.
389         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
390         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
391         (mipsnbsd_supply_gregset): Likewise.
392         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
393         (am33_collect_gregset_method): Likewise.
394         (am33_collect_fpregset_method): Likewise.
395         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
396         * moxie-tdep.c (moxie_frame_cache): Likewise.
397         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
398         (msp430_analyze_frame_prologue): Likewise.
399         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
400         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
401         (nios2_collect_gregset): Likewise.
402         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
403         (nios2_stub_frame_cache): Likewise.
404         * objc-lang.c (find_methods): Likewise.
405         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
406         (get_objfile_pspace_data): Likewise.
407         (get_objfile_bfd_data): Likewise.
408         (objfile_bfd_data_free): Likewise.
409         (add_to_objfile_sections): Likewise.
410         (do_free_objfile_cleanup): Likewise.
411         (resume_section_map_updates_cleanup): Likewise.
412         * opencl-lang.c (builtin_opencl_type): Likewise.
413         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
414         * osdata.c (osdata_start_osdata): Likewise.
415         (osdata_start_item): Likewise.
416         (osdata_start_column): Likewise.
417         (osdata_end_column): Likewise.
418         (clear_parsing_data): Likewise.
419         (osdata_free_cleanup): Likewise.
420         * parse.c (type_stack_cleanup): Likewise.
421         (exp_uses_objfile_iter): Likewise.
422         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
423         (ppc_linux_collect_gregset): Likewise.
424         (ppu2spu_prev_arch): Likewise.
425         (ppu2spu_this_id): Likewise.
426         (ppu2spu_prev_register): Likewise.
427         (ppu2spu_unwind_register): Likewise.
428         (ppu2spu_sniffer): Likewise.
429         (ppu2spu_dealloc_cache): Likewise.
430         (ppc_linux_init_abi): Likewise.
431         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
432         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
433         * progspace.c (restore_program_space): Likewise.
434         * psymtab.c (find_pc_sect_psymtab): Likewise.
435         (compare_psymbols): Likewise.
436         (psymbol_bcache_full): Likewise.
437         (allocate_psymtab): Likewise.
438         (discard_psymtabs_upto): Likewise.
439         * python/py-block.c (set_block): Likewise.
440         (del_objfile_blocks): Likewise.
441         * python/py-breakpoint.c (build_bp_list): Likewise.
442         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
443         (build_inferior_list): Likewise.
444         (py_free_inferior): Likewise.
445         * python/py-objfile.c (py_free_objfile): Likewise.
446         (objfile_to_objfile_object): Likewise.
447         * python/py-prettyprint.c (py_restore_tstate): Likewise.
448         * python/py-progspace.c (py_free_pspace): Likewise.
449         (pspace_to_pspace_object): Likewise.
450         * python/py-symbol.c (set_symbol): Likewise.
451         (del_objfile_symbols): Likewise.
452         * python/py-symtab.c (set_sal): Likewise.
453         (set_symtab): Likewise.
454         (del_objfile_symtab): Likewise.
455         (del_objfile_sal): Likewise.
456         * python/py-type.c (save_objfile_types): Likewise.
457         (set_type): Likewise.
458         * python/py-unwind.c (pyuw_prev_register): Likewise.
459         (pyuw_on_new_gdbarch): Likewise.
460         * python/py-utils.c (py_decref): Likewise.
461         (py_xdecref): Likewise.
462         (gdb_py_generic_dict): Likewise.
463         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
464         (gdbpy_clone_xmethod_worker_data): Likewise.
465         (gdbpy_get_xmethod_arg_types): Likewise.
466         (gdbpy_get_xmethod_result_type): Likewise.
467         (gdbpy_invoke_xmethod): Likewise.
468         * python/python.c (gdbpy_apply_type_printers): Likewise.
469         (gdbpy_free_type_printers): Likewise.
470         * record-btrace.c (record_btrace_disable_callback): Likewise.
471         (bfcache_hash): Likewise.
472         (bfcache_eq): Likewise.
473         (btrace_get_frame_function): Likewise.
474         (record_btrace_frame_unwind_stop_reason): Likewise.
475         (record_btrace_frame_this_id): Likewise.
476         (record_btrace_frame_prev_register): Likewise.
477         (record_btrace_frame_dealloc_cache): Likewise.
478         * record-full.c (record_full_message_wrapper): Likewise.
479         (record_full_save_cleanups): Likewise.
480         * regcache.c (regcache_descr): Likewise.
481         (do_regcache_xfree): Likewise.
482         (do_regcache_invalidate): Likewise.
483         (do_cooked_read): Likewise.
484         (regcache_transfer_regset): Likewise.
485         * reggroups.c (reggroup_add): Likewise.
486         (reggroup_next): Likewise.
487         (reggroup_prev): Likewise.
488         * remote-fileio.c (do_remote_fileio_request): Likewise.
489         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
490         (do_notif_event_xfree): Likewise.
491         * remote.c (get_remote_arch_state): Likewise.
492         (remote_pspace_data_cleanup): Likewise.
493         (get_remote_exec_file): Likewise.
494         (set_pspace_remote_exec_file): Likewise.
495         (compare_pnums): Likewise.
496         (clear_threads_listing_context): Likewise.
497         (remote_newthread_step): Likewise.
498         (start_thread): Likewise.
499         (end_thread): Likewise.
500         (remove_child_of_pending_fork): Likewise.
501         (remove_stop_reply_for_inferior): Likewise.
502         (remove_stop_reply_of_remote_state): Likewise.
503         (remote_notif_remove_once_on_match): Likewise.
504         (stop_reply_match_ptid_and_ws): Likewise.
505         (kill_child_of_pending_fork): Likewise.
506         (register_remote_g_packet_guess): Likewise.
507         (remote_read_description_p): Likewise.
508         (remote_read_description): Likewise.
509         (free_actions_list_cleanup_wrapper): Likewise.
510         (remote_async_serial_handler): Likewise.
511         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
512         (rl78_analyze_frame_prologue): Likewise.
513         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
514         (ppc_supply_fpregset): Likewise.
515         (ppc_supply_vsxregset): Likewise.
516         (ppc_supply_vrregset): Likewise.
517         (ppc_collect_gregset): Likewise.
518         (ppc_collect_fpregset): Likewise.
519         (ppc_collect_vsxregset): Likewise.
520         (ppc_collect_vrregset): Likewise.
521         (e500_move_ev_register): Likewise.
522         (do_regcache_raw_write): Likewise.
523         (rs6000_frame_cache): Likewise.
524         (rs6000_epilogue_frame_cache): Likewise.
525         (rs6000_gdbarch_init): Likewise.
526         * rx-tdep.c (rx_get_opcode_byte): Likewise.
527         (rx_analyze_frame_prologue): Likewise.
528         (rx_frame_type): Likewise.
529         (rx_frame_sniffer_common): Likewise.
530         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
531         (s390_frame_unwind_cache): Likewise.
532         (s390_stub_frame_unwind_cache): Likewise.
533         (s390_sigtramp_frame_unwind_cache): Likewise.
534         * score-tdep.c (score_make_prologue_cache): Likewise.
535         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
536         (sentinel_frame_prev_arch): Likewise.
537         * ser-base.c (fd_event): Likewise.
538         (push_event): Likewise.
539         (ser_base_write): Likewise.
540         * ser-pipe.c (pipe_close): Likewise.
541         * serial.c (serial_write): Likewise.
542         * sh-tdep.c (sh_frame_cache): Likewise.
543         (sh_stub_this_id): Likewise.
544         * sh64-tdep.c (sh64_frame_cache): Likewise.
545         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
546         (library_list_start_library): Likewise.
547         (library_list_start_list): Likewise.
548         (solib_aix_free_library_list): Likewise.
549         * solib-darwin.c (get_darwin_info): Likewise.
550         * solib-dsbt.c (get_dsbt_info): Likewise.
551         * solib-spu.c (append_ocl_sos): Likewise.
552         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
553         (get_svr4_info): Likewise.
554         (library_list_start_library): Likewise.
555         (svr4_library_list_start_list): Likewise.
556         (hash_probe_and_action): Likewise.
557         (equal_probe_and_action): Likewise.
558         (svr4_update_solib_event_breakpoint): Likewise.
559         (set_solib_svr4_fetch_link_map_offsets): Likewise.
560         (svr4_fetch_link_map_offsets): Likewise.
561         (svr4_have_link_map_offsets): Likewise.
562         * solib-target.c (library_list_start_segment): Likewise.
563         (library_list_start_section): Likewise.
564         (library_list_start_library): Likewise.
565         (library_list_end_library): Likewise.
566         (library_list_start_list): Likewise.
567         (solib_target_free_library_list): Likewise.
568         * solib.c (solib_ops): Likewise.
569         (set_solib_ops): Likewise.
570         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
571         * sparc-tdep.c (sparc_frame_cache): Likewise.
572         (sparc32_frame_cache): Likewise.
573         (sparc32_supply_gregset): Likewise.
574         (sparc32_collect_gregset): Likewise.
575         (sparc32_supply_fpregset): Likewise.
576         (sparc32_collect_fpregset): Likewise.
577         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
578         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
579         (sparc64_collect_gregset): Likewise.
580         (sparc64_supply_fpregset): Likewise.
581         (sparc64_collect_fpregset): Likewise.
582         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
583         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
584         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
585         (sparc64obsd_trapframe_cache): Likewise.
586         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
587         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
588         * spu-multiarch.c (spu_gdbarch): Likewise.
589         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
590         (spu2ppu_prev_arch): Likewise.
591         (spu2ppu_this_id): Likewise.
592         (spu2ppu_prev_register): Likewise.
593         (spu2ppu_dealloc_cache): Likewise.
594         (spu_dis_asm_print_address): Likewise.
595         (gdb_print_insn_spu): Likewise.
596         (spu_get_overlay_table): Likewise.
597         * stabsread.c (rs6000_builtin_type): Likewise.
598         * stack.c (do_print_variable_and_value): Likewise.
599         * stap-probe.c (get_stap_base_address_1): Likewise.
600         * symfile-debug.c (debug_qf_has_symbols): Likewise.
601         (debug_qf_find_last_source_symtab): Likewise.
602         (debug_qf_forget_cached_source_info): Likewise.
603         (debug_qf_map_symtabs_matching_filename): Likewise.
604         (debug_qf_lookup_symbol): Likewise.
605         (debug_qf_print_stats): Likewise.
606         (debug_qf_dump): Likewise.
607         (debug_qf_relocate): Likewise.
608         (debug_qf_expand_symtabs_for_function): Likewise.
609         (debug_qf_expand_all_symtabs): Likewise.
610         (debug_qf_expand_symtabs_with_fullname): Likewise.
611         (debug_qf_map_matching_symbols): Likewise.
612         (debug_qf_expand_symtabs_matching): Likewise.
613         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
614         (debug_qf_map_symbol_filenames): Likewise.
615         (debug_sym_get_probes): Likewise.
616         (debug_sym_new_init): Likewise.
617         (debug_sym_init): Likewise.
618         (debug_sym_read): Likewise.
619         (debug_sym_read_psymbols): Likewise.
620         (debug_sym_finish): Likewise.
621         (debug_sym_offsets): Likewise.
622         (debug_sym_read_linetable): Likewise.
623         (debug_sym_relocate): Likewise.
624         (uninstall_symfile_debug_logging): Likewise.
625         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
626         * symfile.c (place_section): Likewise.
627         (add_section_size_callback): Likewise.
628         (load_progress): Likewise.
629         (load_section_callback): Likewise.
630         (clear_memory_write_data): Likewise.
631         (allocate_symtab): Likewise.
632         * symmisc.c (maintenance_expand_file_matcher): Likewise.
633         * symtab.c (lookup_symtab_callback): Likewise.
634         (hash_demangled_name_entry): Likewise.
635         (eq_demangled_name_entry): Likewise.
636         (get_symbol_cache): Likewise.
637         (symbol_cache_cleanup): Likewise.
638         (set_symbol_cache_size): Likewise.
639         (symbol_cache_flush): Likewise.
640         (maintenance_print_symbol_cache): Likewise.
641         (maintenance_print_symbol_cache_statistics): Likewise.
642         (delete_filename_seen_cache): Likewise.
643         (output_partial_symbol_filename): Likewise.
644         (search_symbols_file_matches): Likewise.
645         (search_symbols_name_matches): Likewise.
646         (do_free_completion_list): Likewise.
647         (maybe_add_partial_symtab_filename): Likewise.
648         (get_main_info): Likewise.
649         (main_info_cleanup): Likewise.
650         * target-dcache.c (target_dcache_cleanup): Likewise.
651         (target_dcache_init_p): Likewise.
652         (target_dcache_invalidate): Likewise.
653         (target_dcache_get): Likewise.
654         (target_dcache_get_or_init): Likewise.
655         * target-descriptions.c (target_find_description): Likewise.
656         (tdesc_find_type): Likewise.
657         (tdesc_data_cleanup): Likewise.
658         (tdesc_find_arch_register): Likewise.
659         (tdesc_register_name): Likewise.
660         (tdesc_register_type): Likewise.
661         (tdesc_register_reggroup_p): Likewise.
662         (set_tdesc_pseudo_register_name): Likewise.
663         (set_tdesc_pseudo_register_type): Likewise.
664         (set_tdesc_pseudo_register_reggroup_p): Likewise.
665         (tdesc_use_registers): Likewise.
666         (free_target_description): Likewise.
667         * target-memory.c (compare_block_starting_address): Likewise.
668         (cleanup_request_data): Likewise.
669         (cleanup_write_requests_vector): Likewise.
670         * target.c (open_target): Likewise.
671         (cleanup_restore_target_terminal): Likewise.
672         (free_memory_read_result_vector): Likewise.
673         * thread.c (disable_thread_stack_temporaries): Likewise.
674         (finish_thread_state_cleanup): Likewise.
675         (do_restore_current_thread_cleanup): Likewise.
676         (restore_current_thread_cleanup_dtor): Likewise.
677         (set_thread_refcount): Likewise.
678         (tp_array_compar): Likewise.
679         (do_captured_thread_select): Likewise.
680         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
681         (tic6x_stub_this_id): Likewise.
682         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
683         * top.c (do_restore_instream_cleanup): Likewise.
684         (gdb_readline_wrapper_cleanup): Likewise.
685         (kill_or_detach): Likewise.
686         (print_inferior_quit_action): Likewise.
687         * tracefile-tfile.c (match_blocktype): Likewise.
688         (build_traceframe_info): Likewise.
689         * tracefile.c (trace_file_writer_xfree): Likewise.
690         * tracepoint.c (memrange_cmp): Likewise.
691         (do_collect_symbol): Likewise.
692         (do_clear_collection_list): Likewise.
693         (do_restore_current_traceframe_cleanup): Likewise.
694         (restore_current_traceframe_cleanup_dtor): Likewise.
695         (free_current_marker): Likewise.
696         (traceframe_info_start_memory): Likewise.
697         (traceframe_info_start_tvar): Likewise.
698         (free_result): Likewise.
699         * tramp-frame.c (tramp_frame_cache): Likewise.
700         * tui/tui-file.c (tui_file_delete): Likewise.
701         (tui_fileopen): Likewise.
702         (tui_sfileopen): Likewise.
703         (tui_file_isatty): Likewise.
704         (tui_file_rewind): Likewise.
705         (tui_file_put): Likewise.
706         (tui_file_fputs): Likewise.
707         (tui_file_get_strbuf): Likewise.
708         (tui_file_adjust_strbuf): Likewise.
709         (tui_file_flush): Likewise.
710         * tui/tui-layout.c (make_command_window): Likewise.
711         (make_data_window): Likewise.
712         (show_source_disasm_command): Likewise.
713         (show_data): Likewise.
714         (make_source_or_disasm_window): Likewise.
715         (show_source_or_disasm_and_command): Likewise.
716         * tui/tui-out.c (tui_field_int): Likewise.
717         (tui_field_string): Likewise.
718         (tui_field_fmt): Likewise.
719         (tui_text): Likewise.
720         * typeprint.c (hash_typedef_field): Likewise.
721         (eq_typedef_field): Likewise.
722         (do_free_typedef_hash): Likewise.
723         (copy_typedef_hash_element): Likewise.
724         (do_free_global_table): Likewise.
725         (find_global_typedef): Likewise.
726         (find_typedef_in_hash): Likewise.
727         * ui-file.c (ui_file_write_for_put): Likewise.
728         (do_ui_file_xstrdup): Likewise.
729         (mem_file_delete): Likewise.
730         (mem_file_rewind): Likewise.
731         (mem_file_put): Likewise.
732         (mem_file_write): Likewise.
733         (stdio_file_delete): Likewise.
734         (stdio_file_flush): Likewise.
735         (stdio_file_read): Likewise.
736         (stdio_file_write): Likewise.
737         (stdio_file_write_async_safe): Likewise.
738         (stdio_file_fputs): Likewise.
739         (stdio_file_isatty): Likewise.
740         (stdio_file_fseek): Likewise.
741         (tee_file_delete): Likewise.
742         (tee_file_flush): Likewise.
743         (tee_file_write): Likewise.
744         (tee_file_fputs): Likewise.
745         (tee_file_isatty): Likewise.
746         * ui-out.c (do_cleanup_table_end): Likewise.
747         (do_cleanup_end): Likewise.
748         * user-regs.c (user_reg_add): Likewise.
749         (user_reg_map_name_to_regnum): Likewise.
750         (usernum_to_user_reg): Likewise.
751         (maintenance_print_user_registers): Likewise.
752         * utils.c (do_bfd_close_cleanup): Likewise.
753         (do_fclose_cleanup): Likewise.
754         (do_obstack_free): Likewise.
755         (do_ui_file_delete): Likewise.
756         (do_ui_out_redirect_pop): Likewise.
757         (do_free_section_addr_info): Likewise.
758         (restore_integer): Likewise.
759         (do_unpush_target): Likewise.
760         (do_htab_delete_cleanup): Likewise.
761         (do_restore_ui_file): Likewise.
762         (do_value_free): Likewise.
763         (do_free_so): Likewise.
764         (free_current_contents): Likewise.
765         (do_regfree_cleanup): Likewise.
766         (core_addr_hash): Likewise.
767         (core_addr_eq): Likewise.
768         (do_free_char_ptr_vec): Likewise.
769         * v850-tdep.c (v850_frame_cache): Likewise.
770         * varobj.c (do_free_variable_cleanup): Likewise.
771         * vax-tdep.c (vax_supply_gregset): Likewise.
772         (vax_frame_cache): Likewise.
773         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
774         * xml-support.c (gdb_xml_body_text): Likewise.
775         (gdb_xml_values_cleanup): Likewise.
776         (gdb_xml_start_element): Likewise.
777         (gdb_xml_start_element_wrapper): Likewise.
778         (gdb_xml_end_element): Likewise.
779         (gdb_xml_end_element_wrapper): Likewise.
780         (gdb_xml_cleanup): Likewise.
781         (gdb_xml_fetch_external_entity): Likewise.
782         (gdb_xml_parse_attr_enum): Likewise.
783         (xinclude_start_include): Likewise.
784         (xinclude_end_include): Likewise.
785         (xml_xinclude_default): Likewise.
786         (xml_xinclude_start_doctype): Likewise.
787         (xml_xinclude_end_doctype): Likewise.
788         (xml_xinclude_cleanup): Likewise.
789         (xml_fetch_content_from_file): Likewise.
790         * xml-syscall.c (free_syscalls_info): Likewise.
791         (syscall_start_syscall): Likewise.
792         * xml-tdesc.c (tdesc_end_arch): Likewise.
793         (tdesc_end_osabi): Likewise.
794         (tdesc_end_compatible): Likewise.
795         (tdesc_start_target): Likewise.
796         (tdesc_start_feature): Likewise.
797         (tdesc_start_reg): Likewise.
798         (tdesc_start_union): Likewise.
799         (tdesc_start_struct): Likewise.
800         (tdesc_start_flags): Likewise.
801         (tdesc_start_field): Likewise.
802         (tdesc_start_vector): Likewise.
803         (fetch_available_features_from_target): Likewise.
804         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
805         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
806         (xtensa_frame_cache): Likewise.
807         (xtensa_frame_prev_register): Likewise.
808         (xtensa_extract_return_value): Likewise.
809
810 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
811
812         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
813         (aarch64_make_stub_cache): Likewise.
814         (value_of_aarch64_user_reg): Likewise.
815         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
816         (get_ada_inferior_data): Likewise.
817         (get_ada_pspace_data): Likewise.
818         (ada_pspace_data_cleanup): Likewise.
819         (ada_complete_symbol_matcher): Likewise.
820         (ada_exc_search_name_matches): Likewise.
821         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
822         (get_ada_tasks_inferior_data): Likewise.
823         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
824         (splay_obstack_alloc): Likewise.
825         (splay_obstack_free): Likewise.
826         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
827         (alpha_linux_collect_gregset): Likewise.
828         (alpha_linux_supply_fpregset): Likewise.
829         (alpha_linux_collect_fpregset): Likewise.
830         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
831         * alpha-tdep.c (alpha_lds): Likewise.
832         (alpha_sts): Likewise.
833         (alpha_sigtramp_frame_unwind_cache): Likewise.
834         (alpha_heuristic_frame_unwind_cache): Likewise.
835         (alpha_supply_int_regs): Likewise.
836         (alpha_fill_int_regs): Likewise.
837         (alpha_supply_fp_regs): Likewise.
838         (alpha_fill_fp_regs): Likewise.
839         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
840         (alphanbsd_aout_supply_gregset): Likewise.
841         (alphanbsd_supply_gregset): Likewise.
842         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
843         (amd64_x32_linux_init_abi): Likewise.
844         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
845         (amd64_collect_native_gregset): Likewise.
846         * amd64-tdep.c (amd64_frame_cache): Likewise.
847         (amd64_sigtramp_frame_cache): Likewise.
848         (amd64_epilogue_frame_cache): Likewise.
849         (amd64_supply_fxsave): Likewise.
850         (amd64_supply_xsave): Likewise.
851         (amd64_collect_fxsave): Likewise.
852         (amd64_collect_xsave): Likewise.
853         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
854         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
855         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
856         (arm_linux_collect_gregset): Likewise.
857         (arm_linux_supply_nwfpe): Likewise.
858         (arm_linux_collect_nwfpe): Likewise.
859         (arm_linux_supply_vfp): Likewise.
860         (arm_linux_collect_vfp): Likewise.
861         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
862         (arm_prologue_unwind_stop_reason): Likewise.
863         (arm_prologue_this_id): Likewise.
864         (arm_prologue_prev_register): Likewise.
865         (arm_exidx_data_free): Likewise.
866         (arm_find_exidx_entry): Likewise.
867         (arm_stub_this_id): Likewise.
868         (arm_m_exception_this_id): Likewise.
869         (arm_m_exception_prev_register): Likewise.
870         (arm_normal_frame_base): Likewise.
871         (gdb_print_insn_arm): Likewise.
872         (arm_objfile_data_free): Likewise.
873         (arm_record_special_symbol): Likewise.
874         (value_of_arm_user_reg): Likewise.
875         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
876         (armbsd_supply_gregset): Likewise.
877         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
878         (get_auto_load_pspace_data): Likewise.
879         (hash_loaded_script_entry): Likewise.
880         (eq_loaded_script_entry): Likewise.
881         (clear_section_scripts): Likewise.
882         (collect_matching_scripts): Likewise.
883         * auxv.c (auxv_inferior_data_cleanup): Likewise.
884         (get_auxv_inferior_data): Likewise.
885         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
886         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
887         * bfd-target.c (target_bfd_xfer_partial): Likewise.
888         (target_bfd_xclose): Likewise.
889         (target_bfd_get_section_table): Likewise.
890         * bfin-tdep.c (bfin_frame_cache): Likewise.
891         * block.c (find_block_in_blockvector): Likewise.
892         (call_site_for_pc): Likewise.
893         (block_find_non_opaque_type_preferred): Likewise.
894         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
895         (signal_catchpoint_remove_location): Likewise.
896         (signal_catchpoint_breakpoint_hit): Likewise.
897         (signal_catchpoint_print_one): Likewise.
898         (signal_catchpoint_print_mention): Likewise.
899         (signal_catchpoint_print_recreate): Likewise.
900         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
901         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
902         (bp_location_compare_addrs): Likewise.
903         (get_first_locp_gte_addr): Likewise.
904         (check_tracepoint_command): Likewise.
905         (do_map_commands_command): Likewise.
906         (get_breakpoint_objfile_data): Likewise.
907         (free_breakpoint_probes): Likewise.
908         (do_captured_breakpoint_query): Likewise.
909         (compare_breakpoints): Likewise.
910         (bp_location_compare): Likewise.
911         (bpstat_remove_breakpoint_callback): Likewise.
912         (do_delete_breakpoint_cleanup): Likewise.
913         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
914         (bsd_uthread_set_collect_uthread): Likewise.
915         (bsd_uthread_activate): Likewise.
916         (bsd_uthread_fetch_registers): Likewise.
917         (bsd_uthread_store_registers): Likewise.
918         * btrace.c (check_xml_btrace_version): Likewise.
919         (parse_xml_btrace_block): Likewise.
920         (parse_xml_btrace_pt_config_cpu): Likewise.
921         (parse_xml_btrace_pt_raw): Likewise.
922         (parse_xml_btrace_pt): Likewise.
923         (parse_xml_btrace_conf_bts): Likewise.
924         (parse_xml_btrace_conf_pt): Likewise.
925         (do_btrace_data_cleanup): Likewise.
926         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
927         * charset.c (cleanup_iconv): Likewise.
928         (do_cleanup_iterator): Likewise.
929         * cli-out.c (cli_uiout_dtor): Likewise.
930         (cli_table_begin): Likewise.
931         (cli_table_body): Likewise.
932         (cli_table_end): Likewise.
933         (cli_table_header): Likewise.
934         (cli_begin): Likewise.
935         (cli_end): Likewise.
936         (cli_field_int): Likewise.
937         (cli_field_skip): Likewise.
938         (cli_field_string): Likewise.
939         (cli_field_fmt): Likewise.
940         (cli_spaces): Likewise.
941         (cli_text): Likewise.
942         (cli_message): Likewise.
943         (cli_wrap_hint): Likewise.
944         (cli_flush): Likewise.
945         (cli_redirect): Likewise.
946         (out_field_fmt): Likewise.
947         (field_separator): Likewise.
948         (cli_out_set_stream): Likewise.
949         * cli/cli-cmds.c (compare_symtabs): Likewise.
950         * cli/cli-dump.c (call_dump_func): Likewise.
951         (restore_section_callback): Likewise.
952         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
953         (do_restore_user_call_depth): Likewise.
954         (do_free_command_lines_cleanup): Likewise.
955         * coff-pe-read.c (get_section_vmas): Likewise.
956         (pe_as16): Likewise.
957         (pe_as32): Likewise.
958         * coffread.c (coff_symfile_read): Likewise.
959         * common/agent.c (agent_look_up_symbols): Likewise.
960         * common/filestuff.c (do_close_cleanup): Likewise.
961         * common/format.c (free_format_pieces_cleanup): Likewise.
962         * common/vec.c (vec_o_reserve): Likewise.
963         * compile/compile-c-support.c (print_one_macro): Likewise.
964         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
965         (eq_symbol_error): Likewise.
966         (del_symbol_error): Likewise.
967         (error_symbol_once): Likewise.
968         (gcc_convert_symbol): Likewise.
969         (gcc_symbol_address): Likewise.
970         (hash_symname): Likewise.
971         (eq_symname): Likewise.
972         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
973         (eq_type_map_instance): Likewise.
974         (insert_type): Likewise.
975         (convert_type): Likewise.
976         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
977         (setup_sections): Likewise.
978         (link_hash_table_free): Likewise.
979         (copy_sections): Likewise.
980         * compile/compile-object-run.c (do_module_cleanup): Likewise.
981         * compile/compile.c (compile_print_value): Likewise.
982         (do_rmdir): Likewise.
983         (cleanup_compile_instance): Likewise.
984         (cleanup_unlink_file): Likewise.
985         * completer.c (free_completion_tracker): Likewise.
986         * corelow.c (add_to_spuid_list): Likewise.
987         * cp-namespace.c (reset_directive_searched): Likewise.
988         * cp-support.c (reset_directive_searched): Likewise.
989         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
990         (cris_frame_unwind_cache): Likewise.
991         * d-lang.c (builtin_d_type): Likewise.
992         * d-namespace.c (reset_directive_searched): Likewise.
993         * dbxread.c (dbx_free_symfile_info): Likewise.
994         (do_free_bincl_list_cleanup): Likewise.
995         * disasm.c (hash_dis_line_entry): Likewise.
996         (eq_dis_line_entry): Likewise.
997         (dis_asm_print_address): Likewise.
998         (fprintf_disasm): Likewise.
999         (do_ui_file_delete): Likewise.
1000         * doublest.c (convert_floatformat_to_doublest): Likewise.
1001         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1002         (dummy_frame_prev_register): Likewise.
1003         (dummy_frame_this_id): Likewise.
1004         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1005         (cache_eq): Likewise.
1006         (cache_find): Likewise.
1007         (tailcall_frame_this_id): Likewise.
1008         (dwarf2_tailcall_prev_register_first): Likewise.
1009         (tailcall_frame_prev_register): Likewise.
1010         (tailcall_frame_dealloc_cache): Likewise.
1011         (tailcall_frame_prev_arch): Likewise.
1012         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1013         (dwarf2_frame_set_init_reg): Likewise.
1014         (dwarf2_frame_init_reg): Likewise.
1015         (dwarf2_frame_set_signal_frame_p): Likewise.
1016         (dwarf2_frame_signal_frame_p): Likewise.
1017         (dwarf2_frame_set_adjust_regnum): Likewise.
1018         (dwarf2_frame_adjust_regnum): Likewise.
1019         (clear_pointer_cleanup): Likewise.
1020         (dwarf2_frame_cache): Likewise.
1021         (find_cie): Likewise.
1022         (dwarf2_frame_find_fde): Likewise.
1023         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1024         (free_dwarf_expr_context_cleanup): Likewise.
1025         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1026         (locexpr_get_frame_base): Likewise.
1027         (loclist_find_frame_base_location): Likewise.
1028         (loclist_get_frame_base): Likewise.
1029         (dwarf_expr_dwarf_call): Likewise.
1030         (dwarf_expr_get_base_type): Likewise.
1031         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1032         (dwarf_expr_get_obj_addr): Likewise.
1033         (entry_data_value_coerce_ref): Likewise.
1034         (entry_data_value_copy_closure): Likewise.
1035         (entry_data_value_free_closure): Likewise.
1036         (get_frame_address_in_block_wrapper): Likewise.
1037         (dwarf2_evaluate_property): Likewise.
1038         (dwarf2_compile_property_to_c): Likewise.
1039         (needs_frame_read_addr_from_reg): Likewise.
1040         (needs_frame_get_reg_value): Likewise.
1041         (needs_frame_frame_base): Likewise.
1042         (needs_frame_frame_cfa): Likewise.
1043         (needs_frame_tls_address): Likewise.
1044         (needs_frame_dwarf_call): Likewise.
1045         (needs_dwarf_reg_entry_value): Likewise.
1046         (get_ax_pc): Likewise.
1047         (locexpr_read_variable): Likewise.
1048         (locexpr_read_variable_at_entry): Likewise.
1049         (locexpr_read_needs_frame): Likewise.
1050         (locexpr_describe_location): Likewise.
1051         (locexpr_tracepoint_var_ref): Likewise.
1052         (locexpr_generate_c_location): Likewise.
1053         (loclist_read_variable): Likewise.
1054         (loclist_read_variable_at_entry): Likewise.
1055         (loclist_describe_location): Likewise.
1056         (loclist_tracepoint_var_ref): Likewise.
1057         (loclist_generate_c_location): Likewise.
1058         * dwarf2read.c (line_header_hash_voidp): Likewise.
1059         (line_header_eq_voidp): Likewise.
1060         (dwarf2_has_info): Likewise.
1061         (dwarf2_get_section_info): Likewise.
1062         (locate_dwz_sections): Likewise.
1063         (hash_file_name_entry): Likewise.
1064         (eq_file_name_entry): Likewise.
1065         (delete_file_name_entry): Likewise.
1066         (dw2_setup): Likewise.
1067         (dw2_get_file_names_reader): Likewise.
1068         (dw2_find_pc_sect_compunit_symtab): Likewise.
1069         (hash_signatured_type): Likewise.
1070         (eq_signatured_type): Likewise.
1071         (add_signatured_type_cu_to_table): Likewise.
1072         (create_debug_types_hash_table): Likewise.
1073         (lookup_dwo_signatured_type): Likewise.
1074         (lookup_dwp_signatured_type): Likewise.
1075         (lookup_signatured_type): Likewise.
1076         (hash_type_unit_group): Likewise.
1077         (eq_type_unit_group): Likewise.
1078         (get_type_unit_group): Likewise.
1079         (process_psymtab_comp_unit_reader): Likewise.
1080         (sort_tu_by_abbrev_offset): Likewise.
1081         (process_skeletonless_type_unit): Likewise.
1082         (psymtabs_addrmap_cleanup): Likewise.
1083         (dwarf2_read_symtab): Likewise.
1084         (psymtab_to_symtab_1): Likewise.
1085         (die_hash): Likewise.
1086         (die_eq): Likewise.
1087         (load_full_comp_unit_reader): Likewise.
1088         (reset_die_in_process): Likewise.
1089         (free_cu_line_header): Likewise.
1090         (handle_DW_AT_stmt_list): Likewise.
1091         (hash_dwo_file): Likewise.
1092         (eq_dwo_file): Likewise.
1093         (hash_dwo_unit): Likewise.
1094         (eq_dwo_unit): Likewise.
1095         (create_dwo_cu_reader): Likewise.
1096         (create_dwo_unit_in_dwp_v1): Likewise.
1097         (create_dwo_unit_in_dwp_v2): Likewise.
1098         (lookup_dwo_unit_in_dwp): Likewise.
1099         (dwarf2_locate_dwo_sections): Likewise.
1100         (dwarf2_locate_common_dwp_sections): Likewise.
1101         (dwarf2_locate_v2_dwp_sections): Likewise.
1102         (hash_dwp_loaded_cutus): Likewise.
1103         (eq_dwp_loaded_cutus): Likewise.
1104         (lookup_dwo_cutu): Likewise.
1105         (abbrev_table_free_cleanup): Likewise.
1106         (dwarf2_free_abbrev_table): Likewise.
1107         (find_partial_die_in_comp_unit): Likewise.
1108         (free_line_header_voidp): Likewise.
1109         (follow_die_offset): Likewise.
1110         (follow_die_sig_1): Likewise.
1111         (free_heap_comp_unit): Likewise.
1112         (free_stack_comp_unit): Likewise.
1113         (dwarf2_free_objfile): Likewise.
1114         (per_cu_offset_and_type_hash): Likewise.
1115         (per_cu_offset_and_type_eq): Likewise.
1116         (get_die_type_at_offset): Likewise.
1117         (partial_die_hash): Likewise.
1118         (partial_die_eq): Likewise.
1119         (dwarf2_per_objfile_free): Likewise.
1120         (hash_strtab_entry): Likewise.
1121         (eq_strtab_entry): Likewise.
1122         (add_string): Likewise.
1123         (hash_symtab_entry): Likewise.
1124         (eq_symtab_entry): Likewise.
1125         (delete_symtab_entry): Likewise.
1126         (cleanup_mapped_symtab): Likewise.
1127         (add_indices_to_cpool): Likewise.
1128         (hash_psymtab_cu_index): Likewise.
1129         (eq_psymtab_cu_index): Likewise.
1130         (add_address_entry_worker): Likewise.
1131         (unlink_if_set): Likewise.
1132         (write_one_signatured_type): Likewise.
1133         (save_gdb_index_command): Likewise.
1134         * elfread.c (elf_symtab_read): Likewise.
1135         (elf_gnu_ifunc_cache_hash): Likewise.
1136         (elf_gnu_ifunc_cache_eq): Likewise.
1137         (elf_gnu_ifunc_record_cache): Likewise.
1138         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1139         (elf_get_probes): Likewise.
1140         (probe_key_free): Likewise.
1141         * f-lang.c (builtin_f_type): Likewise.
1142         * frame-base.c (frame_base_append_sniffer): Likewise.
1143         (frame_base_set_default): Likewise.
1144         (frame_base_find_by_frame): Likewise.
1145         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1146         (frame_unwind_append_unwinder): Likewise.
1147         (frame_unwind_find_by_frame): Likewise.
1148         * frame.c (frame_addr_hash): Likewise.
1149         (frame_addr_hash_eq): Likewise.
1150         (frame_stash_find): Likewise.
1151         (do_frame_register_read): Likewise.
1152         (unwind_to_current_frame): Likewise.
1153         (frame_cleanup_after_sniffer): Likewise.
1154         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1155         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1156         * ft32-tdep.c (ft32_frame_cache): Likewise.
1157         * gcore.c (do_bfd_delete_cleanup): Likewise.
1158         (gcore_create_callback): Likewise.
1159         * gdb_bfd.c (hash_bfd): Likewise.
1160         (eq_bfd): Likewise.
1161         (gdb_bfd_open): Likewise.
1162         (free_one_bfd_section): Likewise.
1163         (gdb_bfd_ref): Likewise.
1164         (gdb_bfd_unref): Likewise.
1165         (get_section_descriptor): Likewise.
1166         (gdb_bfd_map_section): Likewise.
1167         (gdb_bfd_crc): Likewise.
1168         (gdb_bfd_mark_parent): Likewise.
1169         (gdb_bfd_record_inclusion): Likewise.
1170         (gdb_bfd_requires_relocations): Likewise.
1171         (print_one_bfd): Likewise.
1172         * gdbtypes.c (type_pair_hash): Likewise.
1173         (type_pair_eq): Likewise.
1174         (builtin_type): Likewise.
1175         (objfile_type): Likewise.
1176         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1177         (vtable_address_point_offset): Likewise.
1178         (gnuv3_get_vtable): Likewise.
1179         (hash_value_and_voffset): Likewise.
1180         (eq_value_and_voffset): Likewise.
1181         (compare_value_and_voffset): Likewise.
1182         (compute_vtable_size): Likewise.
1183         (gnuv3_get_typeid_type): Likewise.
1184         * go-lang.c (builtin_go_type): Likewise.
1185         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1186         (bkscm_eq_block_smob): Likewise.
1187         (bkscm_objfile_block_map): Likewise.
1188         (bkscm_del_objfile_blocks): Likewise.
1189         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1190         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1191         (gdbscm_disasm_print_address): Likewise.
1192         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1193         (frscm_eq_frame_smob): Likewise.
1194         (frscm_inferior_frame_map): Likewise.
1195         (frscm_del_inferior_frames): Likewise.
1196         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1197         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1198         (ofscm_objfile_smob_from_objfile): Likewise.
1199         * guile/scm-ports.c (ioscm_write): Likewise.
1200         (ioscm_file_port_delete): Likewise.
1201         (ioscm_file_port_rewind): Likewise.
1202         (ioscm_file_port_put): Likewise.
1203         (ioscm_file_port_write): Likewise.
1204         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1205         (psscm_pspace_smob_from_pspace): Likewise.
1206         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1207         (scscm_recording_unwind_handler): Likewise.
1208         (gdbscm_with_catch): Likewise.
1209         (scscm_call_0_body): Likewise.
1210         (scscm_call_1_body): Likewise.
1211         (scscm_call_2_body): Likewise.
1212         (scscm_call_3_body): Likewise.
1213         (scscm_call_4_body): Likewise.
1214         (scscm_apply_1_body): Likewise.
1215         (scscm_eval_scheme_string): Likewise.
1216         (gdbscm_safe_eval_string): Likewise.
1217         (scscm_source_scheme_script): Likewise.
1218         (gdbscm_safe_source_script): Likewise.
1219         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1220         (gdbscm_call_scm_from_stringn): Likewise.
1221         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1222         (syscm_eq_symbol_smob): Likewise.
1223         (syscm_get_symbol_map): Likewise.
1224         (syscm_del_objfile_symbols): Likewise.
1225         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1226         (stscm_eq_symtab_smob): Likewise.
1227         (stscm_objfile_symtab_map): Likewise.
1228         (stscm_del_objfile_symtabs): Likewise.
1229         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1230         (tyscm_eq_type_smob): Likewise.
1231         (tyscm_type_map): Likewise.
1232         (tyscm_copy_type_recursive): Likewise.
1233         (save_objfile_types): Likewise.
1234         * guile/scm-utils.c (extract_arg): Likewise.
1235         * h8300-tdep.c (h8300_frame_cache): Likewise.
1236         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1237         * hppa-tdep.c (compare_unwind_entries): Likewise.
1238         (find_unwind_entry): Likewise.
1239         (hppa_frame_cache): Likewise.
1240         (hppa_stub_frame_unwind_cache): Likewise.
1241         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1242         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1243         (hppaobsd_supply_fpregset): Likewise.
1244         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1245         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1246         * i386-tdep.c (i386_frame_cache): Likewise.
1247         (i386_epilogue_frame_cache): Likewise.
1248         (i386_sigtramp_frame_cache): Likewise.
1249         (i386_supply_gregset): Likewise.
1250         (i386_collect_gregset): Likewise.
1251         (i386_gdbarch_init): Likewise.
1252         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1253         (i386obsd_trapframe_cache): Likewise.
1254         * i387-tdep.c (i387_supply_fsave): Likewise.
1255         (i387_collect_fsave): Likewise.
1256         (i387_supply_fxsave): Likewise.
1257         (i387_collect_fxsave): Likewise.
1258         (i387_supply_xsave): Likewise.
1259         (i387_collect_xsave): Likewise.
1260         * ia64-tdep.c (ia64_frame_cache): Likewise.
1261         (ia64_sigtramp_frame_cache): Likewise.
1262         * infcmd.c (attach_command_continuation): Likewise.
1263         (attach_command_continuation_free_args): Likewise.
1264         * inferior.c (restore_inferior): Likewise.
1265         (delete_thread_of_inferior): Likewise.
1266         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1267         (get_inflow_inferior_data): Likewise.
1268         (inflow_inferior_exit): Likewise.
1269         * infrun.c (displaced_step_clear_cleanup): Likewise.
1270         (restore_current_uiout_cleanup): Likewise.
1271         (release_stop_context_cleanup): Likewise.
1272         (do_restore_infcall_suspend_state_cleanup): Likewise.
1273         (do_restore_infcall_control_state_cleanup): Likewise.
1274         (restore_inferior_ptid): Likewise.
1275         * inline-frame.c (block_starting_point_at): Likewise.
1276         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1277         * jit.c (get_jit_objfile_data): Likewise.
1278         (get_jit_program_space_data): Likewise.
1279         (jit_object_close_impl): Likewise.
1280         (jit_find_objf_with_entry_addr): Likewise.
1281         (jit_breakpoint_deleted): Likewise.
1282         (jit_unwind_reg_set_impl): Likewise.
1283         (jit_unwind_reg_get_impl): Likewise.
1284         (jit_dealloc_cache): Likewise.
1285         (jit_frame_sniffer): Likewise.
1286         (jit_frame_prev_register): Likewise.
1287         (jit_prepend_unwinder): Likewise.
1288         (jit_inferior_exit_hook): Likewise.
1289         (free_objfile_data): Likewise.
1290         * jv-lang.c (jv_per_objfile_free): Likewise.
1291         (get_dynamics_objfile): Likewise.
1292         (get_java_class_symtab): Likewise.
1293         (builtin_java_type): Likewise.
1294         * language.c (language_string_char_type): Likewise.
1295         (language_bool_type): Likewise.
1296         (language_lookup_primitive_type): Likewise.
1297         (language_lookup_primitive_type_as_symbol): Likewise.
1298         * linespec.c (hash_address_entry): Likewise.
1299         (eq_address_entry): Likewise.
1300         (iterate_inline_only): Likewise.
1301         (iterate_name_matcher): Likewise.
1302         (decode_line_2_compare_items): Likewise.
1303         (collect_one_symbol): Likewise.
1304         (compare_symbols): Likewise.
1305         (compare_msymbols): Likewise.
1306         (add_symtabs_to_list): Likewise.
1307         (collect_symbols): Likewise.
1308         (compare_msyms): Likewise.
1309         (add_minsym): Likewise.
1310         (cleanup_linespec_result): Likewise.
1311         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1312         * linux-nat.c (delete_lwp_cleanup): Likewise.
1313         (count_events_callback): Likewise.
1314         (select_event_lwp_callback): Likewise.
1315         (resume_stopped_resumed_lwps): Likewise.
1316         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1317         (invalidate_linux_cache_inf): Likewise.
1318         (get_linux_inferior_data): Likewise.
1319         (linux_find_memory_regions_thunk): Likewise.
1320         (linux_make_mappings_callback): Likewise.
1321         (linux_corefile_thread_callback): Likewise.
1322         (find_mapping_size): Likewise.
1323         * linux-thread-db.c (find_new_threads_callback): Likewise.
1324         * lm32-tdep.c (lm32_frame_cache): Likewise.
1325         * m2-lang.c (builtin_m2_type): Likewise.
1326         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1327         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1328         (m32r_linux_supply_gregset): Likewise.
1329         (m32r_linux_collect_gregset): Likewise.
1330         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1331         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1332         * m68k-tdep.c (m68k_frame_cache): Likewise.
1333         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1334         (m68kbsd_supply_gregset): Likewise.
1335         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1336         * m88k-tdep.c (m88k_frame_cache): Likewise.
1337         (m88k_supply_gregset): Likewise.
1338
1339 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1340
1341         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1342         to allocation result assignment.
1343         * ada-exp.y (write_object_renaming): Likewise.
1344         (write_ambiguous_var): Likewise.
1345         (ada_nget_field_index): Likewise.
1346         (write_var_or_type): Likewise.
1347         * ada-lang.c (ada_decode_symbol): Likewise.
1348         (ada_value_assign): Likewise.
1349         (value_pointer): Likewise.
1350         (cache_symbol): Likewise.
1351         (add_nonlocal_symbols): Likewise.
1352         (ada_name_for_lookup): Likewise.
1353         (symbol_completion_add): Likewise.
1354         (ada_to_fixed_type_1): Likewise.
1355         (ada_get_next_arg): Likewise.
1356         (defns_collected): Likewise.
1357         * ada-lex.l (processId): Likewise.
1358         (processString): Likewise.
1359         * ada-tasks.c (read_known_tasks_array): Likewise.
1360         (read_known_tasks_list): Likewise.
1361         * ada-typeprint.c (decoded_type_name): Likewise.
1362         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1363         * amd64-tdep.c (amd64_push_arguments): Likewise.
1364         (amd64_displaced_step_copy_insn): Likewise.
1365         (amd64_classify_insn_at): Likewise.
1366         (amd64_relocate_instruction): Likewise.
1367         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1368         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1369         (initialize_current_architecture): Likewise.
1370         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1371         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1372         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1373         (arm_push_dummy_call): Likewise.
1374         (extend_buffer_earlier): Likewise.
1375         (arm_adjust_breakpoint_address): Likewise.
1376         (arm_skip_stub): Likewise.
1377         * auto-load.c (filename_is_in_pattern): Likewise.
1378         (maybe_add_script_file): Likewise.
1379         (maybe_add_script_text): Likewise.
1380         (auto_load_objfile_script_1): Likewise.
1381         * auxv.c (ld_so_xfer_auxv): Likewise.
1382         * ax-general.c (new_agent_expr): Likewise.
1383         (grow_expr): Likewise.
1384         (ax_reg_mask): Likewise.
1385         * bcache.c (bcache_full): Likewise.
1386         * breakpoint.c (program_breakpoint_here_p): Likewise.
1387         * btrace.c (parse_xml_raw): Likewise.
1388         * build-id.c (build_id_to_debug_bfd): Likewise.
1389         * buildsym.c (end_symtab_with_blockvector): Likewise.
1390         * c-exp.y (string_exp): Likewise.
1391         (qualified_name): Likewise.
1392         (write_destructor_name): Likewise.
1393         (operator_stoken): Likewise.
1394         (parse_number): Likewise.
1395         (scan_macro_expansion): Likewise.
1396         (yylex): Likewise.
1397         (c_print_token): Likewise.
1398         * c-lang.c (c_get_string): Likewise.
1399         (emit_numeric_character): Likewise.
1400         * charset.c (wchar_iterate): Likewise.
1401         * cli/cli-cmds.c (complete_command): Likewise.
1402         (make_command): Likewise.
1403         * cli/cli-dump.c (restore_section_callback): Likewise.
1404         (restore_binary_file): Likewise.
1405         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1406         * cli/cli-script.c (execute_control_command): Likewise.
1407         * cli/cli-setshow.c (do_set_command): Likewise.
1408         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1409         (read_pe_exported_syms): Likewise.
1410         * coffread.c (coff_read_struct_type): Likewise.
1411         (coff_read_enum_type): Likewise.
1412         * common/btrace-common.c (btrace_data_append): Likewise.
1413         * common/buffer.c (buffer_grow): Likewise.
1414         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1415         * common/format.c (parse_format_string): Likewise.
1416         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1417         * common/xml-utils.c (xml_escape_text): Likewise.
1418         * compile/compile-object-load.c (copy_sections): Likewise.
1419         (compile_object_load): Likewise.
1420         * compile/compile-object-run.c (compile_object_run): Likewise.
1421         * completer.c (filename_completer): Likewise.
1422         * corefile.c (read_memory_typed_address): Likewise.
1423         (write_memory_unsigned_integer): Likewise.
1424         (write_memory_signed_integer): Likewise.
1425         (complete_set_gnutarget): Likewise.
1426         * corelow.c (get_core_register_section): Likewise.
1427         * cp-name-parser.y (d_grab): Likewise.
1428         (allocate_info): Likewise.
1429         (cp_new_demangle_parse_info): Likewise.
1430         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1431         (cp_lookup_symbol_in_namespace): Likewise.
1432         (lookup_namespace_scope): Likewise.
1433         (find_symbol_in_baseclass): Likewise.
1434         (cp_lookup_nested_symbol): Likewise.
1435         (cp_lookup_transparent_type_loop): Likewise.
1436         * cp-support.c (copy_string_to_obstack): Likewise.
1437         (make_symbol_overload_list): Likewise.
1438         (make_symbol_overload_list_namespace): Likewise.
1439         (make_symbol_overload_list_adl_namespace): Likewise.
1440         (first_component_command): Likewise.
1441         * cp-valprint.c (cp_print_value): Likewise.
1442         * ctf.c (ctf_xfer_partial): Likewise.
1443         * d-exp.y (StringExp): Likewise.
1444         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1445         (lookup_module_scope): Likewise.
1446         (find_symbol_in_baseclass): Likewise.
1447         (d_lookup_nested_symbol): Likewise.
1448         * dbxread.c (find_stab_function_addr): Likewise.
1449         (read_dbx_symtab): Likewise.
1450         (dbx_end_psymtab): Likewise.
1451         (cp_set_block_scope): Likewise.
1452         * dcache.c (dcache_alloc): Likewise.
1453         * demangle.c (_initialize_demangler): Likewise.
1454         * dicos-tdep.c (dicos_load_module_p): Likewise.
1455         * dictionary.c (dict_create_hashed_expandable): Likewise.
1456         (dict_create_linear_expandable): Likewise.
1457         (expand_hashtable): Likewise.
1458         (add_symbol_linear_expandable): Likewise.
1459         * dwarf2-frame.c (add_cie): Likewise.
1460         (add_fde): Likewise.
1461         (dwarf2_build_frame_info): Likewise.
1462         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1463         (dwarf_expr_fetch_address): Likewise.
1464         (add_piece): Likewise.
1465         (execute_stack_op): Likewise.
1466         * dwarf2loc.c (chain_candidate): Likewise.
1467         (dwarf_entry_parameter_to_value): Likewise.
1468         (read_pieced_value): Likewise.
1469         (write_pieced_value): Likewise.
1470         * dwarf2read.c (dwarf2_read_section): Likewise.
1471         (add_type_unit): Likewise.
1472         (read_comp_units_from_section): Likewise.
1473         (fixup_go_packaging): Likewise.
1474         (dwarf2_compute_name): Likewise.
1475         (dwarf2_physname): Likewise.
1476         (create_dwo_unit_in_dwp_v1): Likewise.
1477         (create_dwo_unit_in_dwp_v2): Likewise.
1478         (read_func_scope): Likewise.
1479         (read_call_site_scope): Likewise.
1480         (dwarf2_attach_fields_to_type): Likewise.
1481         (process_structure_scope): Likewise.
1482         (mark_common_block_symbol_computed): Likewise.
1483         (read_common_block): Likewise.
1484         (abbrev_table_read_table): Likewise.
1485         (guess_partial_die_structure_name): Likewise.
1486         (fixup_partial_die): Likewise.
1487         (add_file_name): Likewise.
1488         (dwarf2_const_value_data): Likewise.
1489         (dwarf2_const_value_attr): Likewise.
1490         (build_error_marker_type): Likewise.
1491         (guess_full_die_structure_name): Likewise.
1492         (anonymous_struct_prefix): Likewise.
1493         (typename_concat): Likewise.
1494         (dwarf2_canonicalize_name): Likewise.
1495         (dwarf2_name): Likewise.
1496         (write_constant_as_bytes): Likewise.
1497         (dwarf2_fetch_constant_bytes): Likewise.
1498         (copy_string): Likewise.
1499         (parse_macro_definition): Likewise.
1500         * elfread.c (elf_symfile_segments): Likewise.
1501         (elf_rel_plt_read): Likewise.
1502         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1503         (elf_gnu_ifunc_resolve_by_got): Likewise.
1504         (elf_read_minimal_symbols): Likewise.
1505         (elf_gnu_ifunc_record_cache): Likewise.
1506         * event-top.c (top_level_prompt): Likewise.
1507         (command_line_handler): Likewise.
1508         * exec.c (resize_section_table): Likewise.
1509         * expprint.c (print_subexp_standard): Likewise.
1510         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1511         * findcmd.c (parse_find_args): Likewise.
1512         * findvar.c (address_from_register): Likewise.
1513         * frame.c (get_prev_frame_always): Likewise.
1514         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1515         (get_section_descriptor): Likewise.
1516         * gdb_obstack.c (obconcat): Likewise.
1517         (obstack_strdup): Likewise.
1518         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1519         (create_set_type): Likewise.
1520         (lookup_unsigned_typename): Likewise.
1521         (lookup_signed_typename): Likewise.
1522         (resolve_dynamic_union): Likewise.
1523         (resolve_dynamic_struct): Likewise.
1524         (add_dyn_prop): Likewise.
1525         (copy_dynamic_prop_list): Likewise.
1526         (arch_flags_type): Likewise.
1527         (append_composite_type_field_raw): Likewise.
1528         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1529         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1530         * go-exp.y (string_exp): Likewise.
1531         * go-lang.c (go_demangle): Likewise.
1532         * guile/guile.c (compute_scheme_string): Likewise.
1533         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1534         (gdbscm_canonicalize_command_name): Likewise.
1535         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1536         (ioscm_init_memory_port): Likewise.
1537         (ioscm_reinit_memory_port): Likewise.
1538         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1539         (gdbscm_gc_dup_argv): Likewise.
1540         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1541         * hppa-tdep.c (internalize_unwinds): Likewise.
1542         (read_unwind_info): Likewise.
1543         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1544         (windows_core_xfer_shared_libraries): Likewise.
1545         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1546         (i386_stap_parse_special_token_triplet): Likewise.
1547         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1548         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1549         * inf-child.c (inf_child_fileio_readlink): Likewise.
1550         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1551         (inf_ptrace_store_register): Likewise.
1552         * infrun.c (follow_exec): Likewise.
1553         (displaced_step_prepare_throw): Likewise.
1554         (save_stop_context): Likewise.
1555         (save_infcall_suspend_state): Likewise.
1556         * jit.c (jit_read_descriptor): Likewise.
1557         (jit_read_code_entry): Likewise.
1558         (jit_symtab_line_mapping_add_impl): Likewise.
1559         (finalize_symtab): Likewise.
1560         (jit_unwind_reg_get_impl): Likewise.
1561         * jv-exp.y (QualifiedName): Likewise.
1562         * jv-lang.c (get_java_utf8_name): Likewise.
1563         (type_from_class): Likewise.
1564         (java_demangle_type_signature): Likewise.
1565         (java_class_name_from_physname): Likewise.
1566         * jv-typeprint.c (java_type_print_base): Likewise.
1567         * jv-valprint.c (java_value_print): Likewise.
1568         * language.c (add_language): Likewise.
1569         * linespec.c (add_sal_to_sals_basic): Likewise.
1570         (add_sal_to_sals): Likewise.
1571         (decode_objc): Likewise.
1572         (find_linespec_symbols): Likewise.
1573         * linux-fork.c (fork_save_infrun_state): Likewise.
1574         * linux-nat.c (linux_nat_detach): Likewise.
1575         (linux_nat_fileio_readlink): Likewise.
1576         * linux-record.c (record_linux_sockaddr): Likewise.
1577         (record_linux_msghdr): Likewise.
1578         (Do): Likewise.
1579         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1580         (linux_collect_regset_section_cb): Likewise.
1581         (linux_get_siginfo_data): Likewise.
1582         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1583         (try_thread_db_load_from_dir): Likewise.
1584         (thread_db_load_search): Likewise.
1585         (info_auto_load_libthread_db): Likewise.
1586         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1587         (m32c_m16c_pointer_to_address): Likewise.
1588         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1589         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1590         * machoread.c (macho_check_dsym): Likewise.
1591         * macroexp.c (resize_buffer): Likewise.
1592         (gather_arguments): Likewise.
1593         (maybe_expand): Likewise.
1594         * macrotab.c (new_macro_key): Likewise.
1595         (new_source_file): Likewise.
1596         (new_macro_definition): Likewise.
1597         * mdebugread.c (parse_symbol): Likewise.
1598         (parse_type): Likewise.
1599         (parse_partial_symbols): Likewise.
1600         (psymtab_to_symtab_1): Likewise.
1601         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1602         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1603         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1604         (mi_cmd_data_read_memory_bytes): Likewise.
1605         (mi_cmd_data_write_memory_bytes): Likewise.
1606         (mi_cmd_trace_frame_collected): Likewise.
1607         * mi/mi-parse.c (mi_parse_argv): Likewise.
1608         (mi_parse): Likewise.
1609         * minidebug.c (lzma_open): Likewise.
1610         (lzma_pread): Likewise.
1611         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1612         (mips_print_fp_register): Likewise.
1613         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1614         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1615         * mt-tdep.c (mt_register_name): Likewise.
1616         (mt_registers_info): Likewise.
1617         (mt_push_dummy_call): Likewise.
1618         * namespace.c (add_using_directive): Likewise.
1619         * nat/linux-btrace.c (perf_event_read): Likewise.
1620         (linux_enable_bts): Likewise.
1621         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1622         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1623         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1624         (nto_parse_redirection): Likewise.
1625         * objc-lang.c (objc_demangle): Likewise.
1626         (find_methods): Likewise.
1627         * objfiles.c (get_objfile_bfd_data): Likewise.
1628         (set_objfile_main_name): Likewise.
1629         (allocate_objfile): Likewise.
1630         (objfile_relocate): Likewise.
1631         (update_section_map): Likewise.
1632         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1633         * p-exp.y (exp): Likewise.
1634         (yylex): Likewise.
1635         * p-valprint.c (pascal_object_print_value): Likewise.
1636         * parse.c (initialize_expout): Likewise.
1637         (mark_completion_tag): Likewise.
1638         (copy_name): Likewise.
1639         (parse_float): Likewise.
1640         (type_stack_reserve): Likewise.
1641         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1642         (ppu2spu_prev_register): Likewise.
1643         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1644         * printcmd.c (printf_wide_c_string): Likewise.
1645         (printf_pointer): Likewise.
1646         * probe.c (parse_probes): Likewise.
1647         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1648         (cmdpy_init): Likewise.
1649         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1650         * python/py-symtab.c (set_sal): Likewise.
1651         * python/py-unwind.c (pyuw_sniffer): Likewise.
1652         * python/python.c (python_interactive_command): Likewise.
1653         (compute_python_string): Likewise.
1654         * ravenscar-thread.c (get_running_thread_id): Likewise.
1655         * record-full.c (record_full_exec_insn): Likewise.
1656         (record_full_core_open_1): Likewise.
1657         * regcache.c (regcache_raw_read_signed): Likewise.
1658         (regcache_raw_read_unsigned): Likewise.
1659         (regcache_cooked_read_signed): Likewise.
1660         (regcache_cooked_read_unsigned): Likewise.
1661         * remote-fileio.c (remote_fileio_func_open): Likewise.
1662         (remote_fileio_func_rename): Likewise.
1663         (remote_fileio_func_unlink): Likewise.
1664         (remote_fileio_func_stat): Likewise.
1665         (remote_fileio_func_system): Likewise.
1666         * remote-mips.c (mips_xfer_memory): Likewise.
1667         (mips_load_srec): Likewise.
1668         (pmon_end_download): Likewise.
1669         * remote.c (new_remote_state): Likewise.
1670         (map_regcache_remote_table): Likewise.
1671         (remote_register_number_and_offset): Likewise.
1672         (init_remote_state): Likewise.
1673         (get_memory_packet_size): Likewise.
1674         (remote_pass_signals): Likewise.
1675         (remote_program_signals): Likewise.
1676         (remote_start_remote): Likewise.
1677         (remote_check_symbols): Likewise.
1678         (remote_query_supported): Likewise.
1679         (extended_remote_attach): Likewise.
1680         (process_g_packet): Likewise.
1681         (store_registers_using_G): Likewise.
1682         (putpkt_binary): Likewise.
1683         (read_frame): Likewise.
1684         (compare_sections_command): Likewise.
1685         (remote_hostio_pread): Likewise.
1686         (remote_hostio_readlink): Likewise.
1687         (remote_file_put): Likewise.
1688         (remote_file_get): Likewise.
1689         (remote_pid_to_exec_file): Likewise.
1690         (_initialize_remote): Likewise.
1691         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1692         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1693         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1694         (bfd_uses_spe_extensions): Likewise.
1695         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1696         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1697         * solib-dsbt.c (decode_loadmap): Likewise.
1698         (fetch_loadmap): Likewise.
1699         (scan_dyntag): Likewise.
1700         (enable_break): Likewise.
1701         (dsbt_relocate_main_executable): Likewise.
1702         * solib-frv.c (fetch_loadmap): Likewise.
1703         (enable_break2): Likewise.
1704         (frv_relocate_main_executable): Likewise.
1705         * solib-spu.c (spu_relocate_main_executable): Likewise.
1706         (spu_bfd_open): Likewise.
1707         * solib-svr4.c (lm_info_read): Likewise.
1708         (read_program_header): Likewise.
1709         (find_program_interpreter): Likewise.
1710         (scan_dyntag): Likewise.
1711         (elf_locate_base): Likewise.
1712         (open_symbol_file_object): Likewise.
1713         (read_program_headers_from_bfd): Likewise.
1714         (svr4_relocate_main_executable): Likewise.
1715         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1716         * solib.c (solib_find_1): Likewise.
1717         (exec_file_find): Likewise.
1718         (solib_find): Likewise.
1719         * source.c (openp): Likewise.
1720         (print_source_lines_base): Likewise.
1721         (forward_search_command): Likewise.
1722         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1723         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1724         (spu_get_overlay_table): Likewise.
1725         * stabsread.c (patch_block_stabs): Likewise.
1726         (define_symbol): Likewise.
1727         (again:): Likewise.
1728         (read_member_functions): Likewise.
1729         (read_one_struct_field): Likewise.
1730         (read_enum_type): Likewise.
1731         (common_block_start): Likewise.
1732         * stack.c (read_frame_arg): Likewise.
1733         (backtrace_command): Likewise.
1734         * stap-probe.c (stap_parse_register_operand): Likewise.
1735         * symfile.c (syms_from_objfile_1): Likewise.
1736         (find_separate_debug_file): Likewise.
1737         (load_command): Likewise.
1738         (load_progress): Likewise.
1739         (load_section_callback): Likewise.
1740         (reread_symbols): Likewise.
1741         (add_filename_language): Likewise.
1742         (allocate_compunit_symtab): Likewise.
1743         (read_target_long_array): Likewise.
1744         (simple_read_overlay_table): Likewise.
1745         * symtab.c (symbol_set_names): Likewise.
1746         (resize_symbol_cache): Likewise.
1747         (rbreak_command): Likewise.
1748         (completion_list_add_name): Likewise.
1749         (completion_list_objc_symbol): Likewise.
1750         (add_filename_to_list): Likewise.
1751         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1752         * target-memory.c (target_write_memory_blocks): Likewise.
1753         * target.c (target_read_string): Likewise.
1754         (read_whatever_is_readable): Likewise.
1755         (target_read_alloc_1): Likewise.
1756         (simple_search_memory): Likewise.
1757         (target_fileio_read_alloc_1): Likewise.
1758         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1759         * top.c (command_line_input): Likewise.
1760         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1761         * tracefile.c (tracefile_fetch_registers): Likewise.
1762         * tracepoint.c (add_memrange): Likewise.
1763         (init_collection_list): Likewise.
1764         (add_aexpr): Likewise.
1765         (trace_dump_actions): Likewise.
1766         (parse_trace_status): Likewise.
1767         (parse_tracepoint_definition): Likewise.
1768         (parse_tsv_definition): Likewise.
1769         (parse_static_tracepoint_marker_definition): Likewise.
1770         * tui/tui-file.c (tui_sfileopen): Likewise.
1771         (tui_file_adjust_strbuf): Likewise.
1772         * tui/tui-io.c (tui_expand_tabs): Likewise.
1773         * tui/tui-source.c (tui_set_source_content): Likewise.
1774         * typeprint.c (find_global_typedef): Likewise.
1775         * ui-file.c (do_ui_file_xstrdup): Likewise.
1776         (ui_file_obsavestring): Likewise.
1777         (mem_file_write): Likewise.
1778         * utils.c (make_hex_string): Likewise.
1779         (get_regcomp_error): Likewise.
1780         (puts_filtered_tabular): Likewise.
1781         (gdb_realpath_keepfile): Likewise.
1782         (ldirname): Likewise.
1783         (gdb_bfd_errmsg): Likewise.
1784         (substitute_path_component): Likewise.
1785         * valops.c (search_struct_method): Likewise.
1786         (find_oload_champ_namespace_loop): Likewise.
1787         * valprint.c (print_decimal_chars): Likewise.
1788         (read_string): Likewise.
1789         (generic_emit_char): Likewise.
1790         * varobj.c (varobj_delete): Likewise.
1791         (varobj_value_get_print_value): Likewise.
1792         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1793         * windows-tdep.c (display_one_tib): Likewise.
1794         * xcoffread.c (read_xcoff_symtab): Likewise.
1795         (process_xcoff_symbol): Likewise.
1796         (swap_sym): Likewise.
1797         (scan_xcoff_symtab): Likewise.
1798         (xcoff_initial_scan): Likewise.
1799         * xml-support.c (gdb_xml_end_element): Likewise.
1800         (xml_process_xincludes): Likewise.
1801         (xml_fetch_content_from_file): Likewise.
1802         * xml-syscall.c (xml_list_of_syscalls): Likewise.
1803         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1804
1805 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
1806
1807         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1808         instead of builtin_func_ptr.
1809         (ft32_pointer_to_address): New function.
1810         (ft32_address_class_type_flags): New function.
1811         (ft32_address_class_type_flags_to_name): New function.
1812         (ft32_address_class_name_to_type_flags): New function.
1813         (ft32_gdbarch_init): Set tdep->pc_type.  Call
1814         set_gdbarch_pointer_to_address,
1815         set_gdbarch_address_class_type_flags
1816         set_gdbarch_address_class_name_to_type_flags,
1817         and set_gdbarch_address_class_type_flags_to_name.
1818         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1819
1820 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
1821
1822         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1823         value is a reference, actually dereference it in order to get
1824         the underlying value.
1825
1826 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
1827
1828         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1829
1830 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
1831
1832         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1833         * linespec.c (linespec_lexer_lex_string): Same.
1834
1835 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1836
1837         * NEWS: Mention support for fast tracepoints on aarch64-linux.
1838
1839 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1840
1841         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1842         variable.  Call aarch64_decode_adr instead of
1843         aarch64_decode_adrp.
1844         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1845         (aarch64_decode_adr): New function declaration.
1846         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1847         (aarch64_decode_adr): New function, factored out from
1848         aarch64_decode_adrp to decode both adr and adrp instructions.
1849
1850 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1851
1852         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1853         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1854         (aarch64-insn.o): New rule.
1855         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1856         (aarch64*-*-linux*): Likewise.
1857         * arch/aarch64-insn.c: New file.
1858         * arch/aarch64-insn.h: New file.
1859         * aarch64-tdep.c: Include arch/aarch64-insn.h.
1860         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
1861         arch/aarch64-insn.h.
1862         (decode_add_sub_imm): Rename to ...
1863         (aarch64_decode_add_sub_imm): ... this.
1864         (decode_adrp): Rename to ...
1865         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
1866         Declare in arch/aarch64-insn.h.
1867         (decode_b): Rename to ...
1868         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
1869         Declare in arch/aarch64-insn.h.
1870         (decode_bcond): Rename to ...
1871         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
1872         Declare in arch/aarch64-insn.h.
1873         (decode_br): Rename to ...
1874         (aarch64_decode_br): ... this.
1875         (decode_cb): Rename to ...
1876         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
1877         Declare in arch/aarch64-insn.h.
1878         (decode_eret): Rename to ...
1879         (aarch64_decode_eret): ... this.
1880         (decode_movz): Rename to ...
1881         (aarch64_decode_movz): ... this.
1882         (decode_orr_shifted_register_x): Rename to ...
1883         (aarch64_decode_orr_shifted_register_x): ... this.
1884         (decode_ret): Rename to ...
1885         (aarch64_decode_ret): ... this.
1886         (decode_stp_offset): Rename to ...
1887         (aarch64_decode_stp_offset): ... this.
1888         (decode_stp_offset_wb): Rename to ...
1889         (aarch64_decode_stp_offset_wb): ... this.
1890         (decode_stur): Rename to ...
1891         (aarch64_decode_stur): ... this.
1892         (decode_tb): Rename to ...
1893         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
1894         Declare in arch/aarch64-insn.h.
1895         (aarch64_analyze_prologue): Adjust calls to renamed functions.
1896
1897 2015-09-20  Doug Evans  <xdje42@gmail.com>
1898
1899         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1900
1901 2015-09-20  Doug Evans  <xdje42@gmail.com>
1902
1903         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
1904         variable name that collides with a parameter.
1905
1906 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
1907
1908         * dwarf2loc.c (locexpr_get_frame_base): Renames
1909         block_op_get_frame_base.
1910         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1911         block_op_get_frame_base by reference to locexpr_get_frame_base.
1912         (loclist_get_frame_base): New function, near identical copy of
1913         locexpr_get_frame_base.
1914         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1915         block_op_get_frame_base by reference to loclist_get_frame_base.
1916
1917 2015-09-19  Doug Evans  <xdje42@gmail.com>
1918
1919         * ravenscar-thread.c (ravenscar_inferior_created): Replace
1920         current_inferior ()->gdbarch with its wrapper target_gdbarch.
1921
1922 2015-09-18  Doug Evans  <xdje42@gmail.com>
1923
1924         * linux-thread-db.c (record_thread): Return the created thread.
1925         (thread_from_lwp): Likewise.
1926         (thread_db_get_thread_local_address): Update.
1927
1928 2015-09-18  Doug Evans  <xdje42@gmail.com>
1929
1930         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1931         move only member demangled_name up.  All uses updated.
1932
1933 2015-09-18  Doug Evans  <xdje42@gmail.com>
1934
1935         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1936         kind of minimal symbol in the error message.
1937         * objfiles.c (objfile_flavour_name): New function.
1938         * objfiles.h (objfile_flavour_name): Declare.
1939
1940 2015-09-18  Yao Qi  <yao.qi@linaro.org>
1941
1942         * nat/aarch64-linux.c: Include elf/common.h,
1943         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1944         (aarch64_ps_get_thread_area): New function.
1945         * nat/aarch64-linux.h: Include gdb_proc_service.h.
1946         (aarch64_ps_get_thread_area): Declare.
1947         * aarch64-linux-nat.c (ps_get_thread_area): Call
1948         aarch64_ps_get_thread_area.
1949
1950 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1951
1952         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1953
1954 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1955
1956         * NEWS: Announce new scheduler-locking mode.
1957         * infrun.c (schedlock_replay): New.
1958         (scheduler_enums): Add schedlock_replay.
1959         (scheduler_mode): Change default to schedlock_replay.
1960         (user_visible_resume_ptid): Handle schedlock_replay.
1961         (clear_proceed_status_thread): Stop replaying if resumed thread is
1962         not replaying.
1963         (schedlock_applies): Handle schedlock_replay.
1964         (_initialize_infrun): Document new scheduler-locking mode.
1965         * record-btrace.c (record_btrace_resume): Remove code to stop other
1966         threads when not replaying the resumed thread.
1967
1968 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1969
1970         * record-btrace.c ((record_btrace_will_replay): New.
1971         (init_record_btrace_ops): Initialize to_record_will_replay.
1972         * record-full.c ((record_full_will_replay): New.
1973         (init_record_full_ops): Initialize to_record_will_replay.
1974         * target-delegates.c: Regenerated.
1975         * target.c (target_record_will_replay): New.
1976         * target.h (struct target_ops) <to_record_will_replay>: New.
1977         (target_record_will_replay): New.
1978
1979 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1980
1981         * record-btrace.c (record_btrace_resume): Call
1982         target_record_stop_replaying.
1983         (record_btrace_stop_replaying_all): New.
1984         (init_record_btrace_ops): Initialize to_record_stop_replaying.
1985         * record-full.c (record_full_stop_replaying): New.
1986         (init_record_full_ops ): Initialize to_record_stop_replaying.
1987         * target-delegates.c: Regenerated.
1988         * target.c (target_record_stop_replaying): New.
1989         * target.h (struct target_ops) <to_record_stop_replaying>: New.
1990         (target_record_stop_replaying): New.
1991
1992 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1993
1994         * record-btrace.c (record_btrace_xfer_partial)
1995         (record_btrace_store_registers, record_btrace_prepare_to_store):
1996         Call record_btrace_is_replaying with inferior_ptid instead of
1997         minus_one_ptid.
1998         (record_btrace_store_registers): Change error message.
1999
2000 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2001
2002         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2003         Update users to pass minus_one_ptid.
2004         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2005         * record.c (cmd_record_delete): Pass inferior_ptid to
2006         target_record_is_replaying.
2007         * target-delegates.c: Regenerated.
2008         * target.c (target_record_is_replaying): Add ptid argument.
2009         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2010         argument.
2011         (target_record_is_replaying): Add ptid argument.
2012
2013 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2014
2015         * record-btrace.c (record_btrace_open): Remove non_stop check.
2016         * NEWS: Announce that record btrace supports non-stop mode.
2017
2018 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2019
2020         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2021         in the TARKET_WAITKIND_NO_HISTORY case.
2022
2023 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2024
2025         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2026         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2027
2028 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2029
2030         * record-btrace.c (get_thread_current_frame): New.
2031         (record_btrace_start_replaying): Call get_thread_current_frame.
2032
2033 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2034
2035         * record-btrace.c (record_btrace_resume_thread): A move request
2036         overwrites a previous move request.
2037         (record_btrace_find_resume_thread): Removed.
2038         (record_btrace_resume): Resume all requested threads.
2039
2040 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2041
2042         * record-btrace.c: Include vec.h.
2043         (record_btrace_find_thread_to_move): Removed.
2044         (btrace_step_no_resumed, btrace_step_again)
2045         (record_btrace_stop_replaying_at_end): New.
2046         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2047         (record_btrace_single_step_forward): Remove calls to
2048         record_btrace_stop_replaying.
2049         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2050         BTHR_RCONT.  Keep threads at the end of their history moving.
2051         (record_btrace_wait): Call record_btrace_step_thread for all threads
2052         until one reports an event.  Call record_btrace_stop_replaying_at_end
2053         for the eventing thread.
2054
2055 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2056
2057         * record-btrace.c (record_btrace_single_step_forward): Return
2058         NO_HISTORY if a step brings us to the end of the execution history.
2059
2060 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2061
2062         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2063         to ...
2064         (record_btrace_single_step_forward): ... here and
2065         (record_btrace_single_step_backward): ... here.
2066
2067 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2068
2069         * record-btrace.c (btrace_step_spurious)
2070         (record_btrace_single_step_forward)
2071         (record_btrace_single_step_backward): New.
2072         (record_btrace_step_thread): Call record_btrace_single_step_forward
2073         and record_btrace_single_step_backward.
2074
2075 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2076
2077         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2078         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2079
2080 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2081
2082         * record-btrace.c (btrace_thread_flag_to_str)
2083         (record_btrace_cancel_resume): New.
2084         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2085         (record_btrace_resume): Print execution direction.
2086         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2087         (record_btrace_wait): Call record_btrace_cancel_resume.
2088
2089 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2090
2091         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2092         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2093         (record_btrace_find_thread_to_move): Also accept threads that have
2094         BTHR_STOP set.
2095         (btrace_step_stopped_on_request, record_btrace_stop): New.
2096         (record_btrace_step_thread): Support BTHR_STOP.
2097         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2098         (init_record_btrace_ops): Initialize to_stop.
2099
2100 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2101
2102         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2103         target_is_non_stop_p ().
2104
2105 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2106
2107         * ada-typeprint.c (print_array_type): Do not describe arrays as
2108         packed when they embed dynamic elements.
2109
2110 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2111
2112         * symtab.h (address_class): Document that TLS variables
2113         are handled by LOC_UNRESOLVED.
2114         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2115         * printcmd.c (address_info): Don't relocate TLS variables.
2116
2117 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2118
2119         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2120         (decode_adrp): Likewise.
2121         (decode_b): Likewise.
2122         (decode_bcond): Likewise.
2123         (decode_br): Likewise.
2124         (decode_cb): Likewise.
2125         (decode_eret): Likewise.
2126         (decode_movz): Likewise.
2127         (decode_orr_shifted_register_x): Likewise.
2128         (decode_ret): Likewise.
2129         (decode_stp_offset): Likewise.
2130         (decode_stp_offset_wb): Likewise.
2131         (decode_stur): Likewise.
2132         (decode_tb): Likewise.
2133         (aarch64_analyze_prologue): Likewise.
2134         (pass_in_x): Likewise.
2135         (pass_in_v): Likewise.
2136         (pass_on_stack): Likewise.
2137         (aarch64_push_dummy_call): Likewise.
2138         (aarch64_extract_return_value): Likewise.
2139         (aarch64_store_return_value): Likewise.
2140         (aarch64_return_value): Likewise.
2141         (aarch64_record_asimd_load_store): Likewise.
2142         (aarch64_record_load_store): Likewise.
2143         (aarch64_record_data_proc_simd_fp): Likewise.
2144
2145 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2146
2147         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2148         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2149         (ppc64_skip_trampoline_code_1): ... here.
2150         (ppc64_skip_trampoline_code): New wrapper function.
2151         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2152
2153 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2154
2155         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2156         function.
2157         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2158         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2159         if target_can_do_single_step returns 1.
2160         * remote.c (struct vCont_action_support) <s, S>: New fields.
2161         (PACKET_vContSupported): New enum.
2162         (remote_protocol_features): New element for vContSupported.
2163         (remote_query_supported): Append "vContSupported+".
2164         (remote_vcont_probe): Remove support_s and support_S, use
2165         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2166         vCont packet if c and C actions are not supported.
2167         (remote_can_do_single_step): New function.
2168         (init_remote_ops): Install it to to_can_do_single_step.
2169         (_initialize_remote): Call add_packet_config_cmd.
2170         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2171         (target_can_do_single_step): New macro.
2172         * target-delegates.c: Re-generated.
2173
2174 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2175
2176         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2177         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2178         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2179         New function.
2180         (aarch64_siginfo_from_compat_siginfo): New function.
2181         * nat/aarch64-linux.h: Include signal.h.
2182         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2183         (compat_timer_t, compat_clock_t): Likewise.
2184         (struct compat_timeval): New.
2185         (union compat_sigval): New.
2186         (struct compat_siginfo): New.
2187         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2188         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2189         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2190         (cpt_si_band, cpt_si_fd): Likewise.
2191
2192 2015-09-14  Pedro Alves  <palves@redhat.com>
2193
2194         * infrun.c (current_stop_id): New global.
2195         (get_stop_id, new_stop_id): New functions.
2196         (fetch_inferior_event): Handle normal_stop proceeding the target.
2197         (struct stop_context): New.
2198         (save_stop_context, release_stop_context_cleanup)
2199         (stop_context_changed): New functions.
2200         (normal_stop): Return true if the hook-stop changes the stop
2201         context.
2202         * infrun.h (get_stop_id): Declare.
2203         (normal_stop): Now returns int.  Add documentation.
2204
2205 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2206
2207         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2208         comment.  Handle packed arrays.
2209
2210 2015-09-14  Pedro Alves  <palves@redhat.com>
2211
2212         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2213         mention of maint set/show target-non-stop.
2214
2215 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2216
2217         * NEWS: Announce new remote packets for the exec-events
2218         feature and the exec-events feature and associated commands.
2219
2220 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2221
2222         * remote.c (remote_exec_event_p): New function.
2223         (remote_insert_exec_catchpoint): New function.
2224         (remote_remove_exec_catchpoint): New function.
2225         (init_extended_remote_ops): Initialize extended_remote_ops
2226         members to_insert_exec_catchpoint and
2227         to_remove_exec_catchpoint.
2228
2229 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2230             Luis Machado  <lgustavo@codesourcery.com>
2231
2232         * infrun.c (follow_exec): Use process-style ptid for
2233         exec message.  Call add_inferior_with_spaces and
2234         target_follow_exec.
2235         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2236         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2237         * remote.c (remote_pspace_data): New static variable.
2238         (remote_pspace_data_cleanup): New function.
2239         (get_remote_exec_file): New function.
2240         (set_remote_exec_file_1): New function.
2241         (set_remote_exec_file): New function.
2242         (show_remote_exec_file): New function.
2243         (remote_exec_file): Delete static variable.
2244         (anonymous enum) <PACKET_exec_event_feature>: New
2245         enumeration constant.
2246         (remote_protocol_features): Add entry for exec-events feature.
2247         (remote_query_supported): Add client side of qSupported query
2248         for exec-events feature.
2249         (remote_follow_exec): New function.
2250         (remote_parse_stop_reply): Handle 'exec' stop reason.
2251         (extended_remote_run, extended_remote_create_inferior): Call
2252         get_remote_exec_file and set_remote_exec_file_1.
2253         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2254         member.
2255         (_initialize_remote): Call
2256         register_program_space_data_with_cleanup.  Call
2257         add_packet_config_cmd for remote exec-events feature.
2258         Modify call to add_setshow_string_noescape_cmd for exec-file
2259         to use new functions set_remote_exec_file and
2260         show_remote_exec_file.
2261         * target-debug.h, target-delegates.c: Regenerated.
2262         * target.c (target_follow_exec): New function.
2263         * target.h (struct target_ops) <to_follow_exec>: New member.
2264         (target_follow_exec): Declare new function.
2265
2266 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2267
2268         * aarch64-tdep.c (decode_cb): Move up comment describing the
2269         encoding.
2270         (decode_tb): Fix a typo in comment above the function.  Move up
2271         comment describing the encoding.
2272
2273 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2274
2275         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2276
2277 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2278
2279         PR gdb/18947
2280         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2281         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2282
2283 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2284
2285         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2286         operations.
2287
2288 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2289
2290         * ada-lang.c (ada_search_struct_field): Constify parameters
2291         and/or variables..
2292         (xget_renaming_scope): Likewise.
2293         (ada_is_redundant_range_encoding): Likewise.
2294         (scan_discrim_bound): Likewise.
2295         (to_fixed_range_type): Likewise.
2296
2297 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2298
2299         * breakpoint.c (download_tracepoint_locations): New local
2300         can_download_tracepoint.  Check the result of
2301         target_can_download_tracepoint and save it in
2302         can_download_tracepoint if there are tracepoints to download.
2303         * linux-nat.h (enum tribool): Move it to ...
2304         * common/common-types.h: ... here.
2305
2306 2015-09-09  Pedro Alves  <palves@redhat.com>
2307
2308         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2309         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2310
2311 2015-09-09  Pedro Alves  <palves@redhat.com>
2312
2313         * continuations.c (add_continuation, restore_thread_cleanup)
2314         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2315         (do_all_continuations_thread, do_all_continuations)
2316         (discard_all_continuations_thread_callback)
2317         (discard_all_continuations_thread, discard_all_continuations)
2318         (add_intermediate_continuation)
2319         (do_all_intermediate_continuations_thread_callback)
2320         (do_all_intermediate_continuations_thread)
2321         (do_all_intermediate_continuations)
2322         (discard_all_intermediate_continuations_thread_callback)
2323         (discard_all_intermediate_continuations_thread)
2324         (discard_all_intermediate_continuations): Delete.
2325         * continuations.h (add_continuation, do_all_continuations)
2326         (do_all_continuations_thread, discard_all_continuations)
2327         (discard_all_continuations_thread, add_intermediate_continuation)
2328         (do_all_intermediate_continuations)
2329         (do_all_intermediate_continuations_thread)
2330         (discard_all_intermediate_continuations)
2331         (discard_all_intermediate_continuations_thread): Delete
2332         declarations.
2333         * event-top.c (stdin_event_handler): Delete references to
2334         continuations.
2335         * gdbthread.h (struct thread_info): Delete continuations and
2336         intermediate_continuations fields.
2337         * inf-loop.c (inferior_event_handler): Remove references to
2338         continuations.
2339         * infrun.c (infrun_thread_stop_requested_callback): Remove
2340         references to continuations.
2341         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2342         * thread.c: Don't include "continuations.h".
2343         (clear_thread_inferior_resources): Remove references to
2344         continuations.
2345
2346 2015-09-09  Pedro Alves  <palves@redhat.com>
2347
2348         * infcall.c (struct dummy_frame_context_saver): Delete.
2349         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2350         (dummy_frame_context_saver_drop)
2351         (dummy_frame_context_saver_cleanup)
2352         (dummy_frame_context_saver_get_regs)
2353         (dummy_frame_context_saver_setup): Delete.
2354         * infcall.h (dummy_frame_context_saver_drop)
2355         (dummy_frame_context_saver_cleanup)
2356         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2357         Delete.
2358         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2359         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2360         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2361
2362 2015-09-09  Pedro Alves  <palves@redhat.com>
2363
2364         * breakpoint.c: Include "thread-fsm.h".
2365         (struct until_break_command_continuation_args): Delete.
2366         (struct until_break_fsm): New.
2367         (until_break_fsm_ops): New global.
2368         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2369         (until_break_command_continuation): Delete.
2370         (until_break_fsm_clean_up): New function.
2371         (until_break_fsm_async_reply_reason): New function.
2372         (until_break_command): Adjust to create an until_break_fsm instead
2373         of a continuation.
2374         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2375         here.
2376         * infcmd.c (struct until_next_fsm): New.
2377         (until_next_fsm_ops): New global.
2378         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2379         (until_next_continuation): Delete.
2380         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2381         functions.
2382         (until_next_command): Adjust to create a new until_next_fsm
2383         instead of a continuation.
2384
2385 2015-09-09  Pedro Alves  <palves@redhat.com>
2386
2387         * infcall.c: Include thread_fsm.h.
2388         (struct call_return_meta_info): New.
2389         (get_call_return_value): New function, factored out from
2390         call_function_by_hand_dummy.
2391         (struct call_thread_fsm): New.
2392         (call_thread_fsm_ops): New global.
2393         (new_call_thread_fsm, call_thread_fsm_should_stop)
2394         (call_thread_fsm_should_notify_stop): New functions.
2395         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2396         the thread.
2397         (call_function_by_hand_dummy): Create a new call_thread_fsm
2398         instance, associate it with the thread, and wait for the FSM to
2399         finish.  If finished successfully, fetch the function's result
2400         value out of the FSM.
2401         * infrun.c (fetch_inferior_event): If the FSM says the stop
2402         shouldn't be notified, don't call normal_stop.
2403         (maybe_remove_breakpoints): New function, factored out from ...
2404         (normal_stop): ... here.  Simplify.
2405         * infrun.h (maybe_remove_breakpoints): Declare.
2406         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2407         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2408         (thread_fsm_should_notify_stop): Declare.
2409
2410 2015-09-09  Pedro Alves  <palves@redhat.com>
2411
2412         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2413         * breakpoint.c (handle_jit_event): Print debug output.
2414         (bpstat_what): Split event callback handling to ...
2415         (bpstat_run_callbacks): ... this new function.
2416         (momentary_bkpt_print_it): No longer handle bp_finish here.
2417         * breakpoint.h (bpstat_run_callbacks): Declare.
2418         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2419         <thread_fsm>: New field.
2420         (thread_cancel_execution_command): Declare.
2421         * infcmd.c: Include thread-fsm.h.
2422         (struct step_command_fsm): New.
2423         (step_command_fsm_ops): New global.
2424         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2425         (step_1): Adjust to use step_command_fsm_prepare and
2426         prepare_one_step.
2427         (struct step_1_continuation_args): Delete.
2428         (step_1_continuation): Delete.
2429         (step_command_fsm_should_stop): New function.
2430         (step_once): Delete.
2431         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2432         (prepare_one_step): New function, based on step_once.
2433         (until_next_command): Remove step_multi reference.
2434         (struct return_value_info): New.
2435         (print_return_value): Rename to ...
2436         (print_return_value_1): ... this.  New struct return_value_info
2437         parameter.  Adjust.
2438         (print_return_value): Reimplement as wrapper around
2439         print_return_value_1.
2440         (struct finish_command_fsm): New.
2441         (finish_command_continuation): Delete.
2442         (finish_command_fsm_ops): New global.
2443         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2444         functions.
2445         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2446         New.
2447         (finish_command_continuation_free_arg): Delete.
2448         (finish_command_fsm_async_reply_reason): New.
2449         (finish_backward, finish_forward): Change symbol parameter to a
2450         finish_command_fsm.  Adjust.
2451         (finish_command): Create a finish_command_fsm.  Adjust.
2452         * infrun.c: Include "thread-fsm.h".
2453         (clear_proceed_status_thread): Delete the thread's FSM.
2454         (infrun_thread_stop_requested_callback): Cancel the thread's
2455         execution command.
2456         (clean_up_just_stopped_threads_fsms): New function.
2457         (fetch_inferior_event): Handle the event_thread's should_stop
2458         method saying the command isn't done yet.
2459         (process_event_stop_test): Run breakpoint callbacks here.
2460         (print_stop_event): Rename to ...
2461         (print_stop_location): ... this.
2462         (restore_current_uiout_cleanup): New function.
2463         (print_stop_event): Reimplement.
2464         (normal_stop): No longer notify the end_stepping_range observers
2465         here handle "step N" nor "finish" here.  No longer call
2466         print_stop_event here.
2467         * infrun.h (struct return_value_info): Forward declare.
2468         (print_return_value): Declare.
2469         (print_stop_event): Change prototype.
2470         * thread-fsm.c: New file.
2471         * thread-fsm.h: New file.
2472         * thread.c: Include "thread-fsm.h".
2473         (thread_cancel_execution_command): New function.
2474         (clear_thread_inferior_resources): Call it.
2475         * cli/cli-interp.c (cli_on_normal_stop): New function.
2476         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2477         observer.
2478         * mi/mi-interp.c: Include "thread-fsm.h".
2479         (restore_current_uiout_cleanup): Delete.
2480         (mi_on_normal_stop): If the thread has an FSM associated, and it
2481         finished, ask it for the async-reply-reason to print.  Always call
2482         print_stop_event here, regardless of the top-level interpreter.
2483         Check bpstat_what to tell whether an asynchronous breakpoint hit
2484         triggered.
2485         * tui/tui-interp.c (tui_on_normal_stop): New function.
2486         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2487
2488 2015-09-09  Pedro Alves  <palves@redhat.com>
2489
2490         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2491         check whether the target can async.
2492         * inf-loop.c (inferior_event_handler): Only call target_async if
2493         the target can async.
2494         * infcall.c: Include top.h and interps.h.
2495         (run_inferior_call): For the interpreter to sync mode while
2496         running the infcall.  Call wait_sync_command_done instead of
2497         wait_for_inferior plus normal_stop.
2498         * infcmd.c (prepare_execution_command): Don't check whether the
2499         target can async when running in the foreground.
2500         (step_1): Delete synchronous case handling.
2501         (step_once): Always install a continuation, even in sync mode.
2502         (until_next_command, finish_forward): Don't check whether the
2503         target can async.
2504         (attach_command_post_wait, notice_new_inferior): Always install a
2505         continuation, even in sync mode.
2506         * infrun.c (mark_infrun_async_event_handler): New function.
2507         (proceed): In sync mode, mark infrun's event source instead of
2508         waiting for events here.
2509         (fetch_inferior_event): If the target can't async, do a blocking
2510         wait.
2511         (prepare_to_wait): In sync mode, mark infrun's event source.
2512         (infrun_async_inferior_event_handler): No longer bail out if the
2513         target can't async.
2514         * infrun.h (mark_infrun_async_event_handler): New declaration.
2515         * linux-nat.c (linux_nat_wait_1): Remove calls to
2516         set_sigint_trap/clear_sigint_trap.
2517         (linux_nat_terminal_inferior): No longer check whether the target
2518         can async.
2519         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2520         comment.
2521         (mi_execute_command_input_handler): No longer check whether the
2522         target is async.  Update and simplify comment.
2523         * target.c (default_target_wait): New function.
2524         * target.h (struct target_ops) <to_wait>: Now defaults to
2525         default_target_wait.
2526         (default_target_wait): Declare.
2527         * top.c (wait_sync_command_done): New function, factored out from
2528         ...
2529         (maybe_wait_sync_command_done): ... this.
2530         * top.h (wait_sync_command_done): Declare.
2531         * target-delegates.c: Regenerate.
2532
2533 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2534
2535         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2536         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2537         Remove include of sys/utsname.h.
2538         (linux_determine_kernel_ptr_bits): Remove.
2539         (linux_determine_kernel_start): New.
2540         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2541         Update check.
2542         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2543         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2544         initialization.
2545         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2546         assignment.
2547
2548 2015-09-07  Pedro Alves  <palves@redhat.com>
2549
2550         * guile/guile-internal.h (as_a_scm_t_subr): New.
2551         * guile/guile.c (misc_guile_functions): Use it.
2552         * guile/scm-arch.c (arch_functions): Use it.
2553         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2554         Use it.
2555         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2556         * guile/scm-cmd.c (command_functions): Use it.
2557         * guile/scm-disasm.c (disasm_functions): Use it.
2558         * guile/scm-exception.c (exception_functions)
2559         (private_exception_functions): Use it.
2560         * guile/scm-frame.c (frame_functions)
2561         * guile/scm-gsmob.c (gsmob_functions): Use it.
2562         * guile/scm-iterator.c (iterator_functions): Use it.
2563         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2564         * guile/scm-math.c (math_functions): Use it.
2565         * guile/scm-objfile.c (objfile_functions): Use it.
2566         * guile/scm-param.c (parameter_functions): Use it.
2567         * guile/scm-ports.c (port_functions, private_port_functions): Use
2568         it.
2569         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2570         * guile/scm-progspace.c (pspace_functions): Use it.
2571         * guile/scm-string.c (string_functions): Use it.
2572         * guile/scm-symbol.c (symbol_functions): Use it.
2573         * guile/scm-symtab.c (symtab_functions): Use it.
2574         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2575         it.
2576         * guile/scm-value.c (value_functions): Use it.
2577
2578 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2579
2580         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2581         (tui_next_win): Likewise.
2582         (tui_prev_win): Likewise.
2583         (tui_partial_win_by_name): Likewise.
2584         (tui_init_generic_part): Likewise.
2585         (init_content_element): Likewise.
2586         (tui_del_window): Likewise.
2587         (tui_free_window): Likewise.
2588         (tui_del_data_windows): Likewise.
2589         (tui_free_data_content): Likewise.
2590         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2591         * tui/tui-regs.c (tui_show_register_group): Likewise.
2592         * tui/tui-win.c (tui_resize_all): Likewise.
2593         (tui_set_focus): Likewise.
2594         (tui_set_win_height): Likewise.
2595         (make_invisible_and_set_new_height): Likewise.
2596         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2597         * tui/tui-wingeneral.c (make_visible): Likewise.
2598
2599 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2600
2601         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2602
2603 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2604
2605         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2606         pointer.
2607         * dbxread.c (dbx_end_psymtab): Likewise.
2608         * gnu-nat.c (gnu_write_inferior): Likewise.
2609         * mdebugread.c (cross_ref): Likewise.
2610         * p-valprint.c (pascal_val_print): Likewise.
2611         * xcoffread.c (xcoff_end_psymtab): Likewise.
2612
2613 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2614
2615         * NEWS: Mention the aarch64 multi-arch debugging support.
2616
2617 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2618
2619         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2620         type instead of a TYPE_CODE_INT one for the string_char_type
2621         and the ada_primitive_type_char types.
2622
2623 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2624
2625         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2626         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2627         aarch64_linux_region_ok_for_watchpoint.
2628         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2629         New function.
2630         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2631         Declare it.
2632
2633 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2634
2635         * gdb_obstack.h (obstack_strdup): Declare.
2636         * gdb_obstack.c (obstack_strdup): Define.
2637         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2638         * gdbarch.c: Regenerate.
2639         * gdbarch.h: Regenerate.
2640         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2641
2642 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2643
2644         * gdbtypes.c (copy_type_recursive): Update documentation.
2645
2646 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2647
2648         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2649         as zero.
2650
2651 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2652
2653         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2654
2655 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2656
2657         * solib-svr4.c (solib_event_probe_action): Call
2658         get_probe_argument_count using TRY...CATCH.
2659         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2660
2661 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2662
2663         * probe.h (struct probe_ops) <get_probe_argument_count,
2664         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2665         the comment that the function can throw an exception.
2666         (get_probe_argument_count): Likewise.
2667         (evaluate_probe_argument): Likewise.
2668         * stap-probe.c (stap_get_opcode): Call error instead of
2669         internal_error.
2670         (stap_get_expected_argument_type): Likewise.  Add argument
2671         'probe'.  Improve error message by mentioning the probe's name.
2672         (stap_parse_probe_arguments): Adjust call to
2673         stap_get_expected_argument_type.
2674         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2675         not zero.  Call internal_error if GDB requests an argument but the
2676         probe has no arguments.
2677
2678 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2679
2680         * ada-lang.c (ada_resolve_function): Do not ask the user what
2681         match to use when in completion mode.
2682
2683 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2684
2685         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2686         cast of NULL.
2687
2688 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2689
2690         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2691         call_abi using XSHAL_ABI macro.
2692
2693 2015-08-29  Doug Evans  <xdje42@gmail.com>
2694
2695         * symtab.h (struct symbol): Tweak comment.
2696
2697 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2698
2699         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2700         gdbarch obstack instead of on the heap.  Update commentary
2701         accordingly.
2702
2703 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2704
2705         GDB 7.10 released.
2706
2707 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2708
2709         * NEWS: Update entry about non-8-bits addressable memory.
2710
2711 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2712
2713         Revert:
2714         2014-11-06  Doug Evans  <xdje42@gmail.com>
2715         * solib.c (solib_global_lookup): Fetch arch from objfile,
2716         not target_gdbarch.
2717
2718 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2719
2720         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2721         attempt to relocate a TLS variable offset.
2722
2723 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2724
2725         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2726         registered yet.  Set inferior_ptid while calling target_read_memory.
2727
2728 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2729
2730         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2731         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2732         * linux-nat.c (check_stopped_by_breakpoint): Use
2733         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2734
2735 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2736
2737         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2738         thread was not yet discovered, use thread_from_lwp instead of
2739         calling thread_db_find_new_threads_1.
2740
2741 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2742
2743         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2744         statements.
2745
2746 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2747
2748         * NEWS: Document support for non-8-bits addressable memory.
2749
2750 2015-08-27  Pedro Alves  <palves@redhat.com>
2751
2752         * configure.ac: Remove AC_TYPE_SIGNAL call.
2753         * configure, config.in: Regenerate.
2754
2755 2015-08-27  Pedro Alves  <palves@redhat.com>
2756
2757         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2758         * extension-priv.h: Include signal.h.
2759         (struct signal_handler) <handler>: Change type to sighandler_t.
2760         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2761         * inflow.c (sigint_ours, sigquit_ours): Change type to
2762         sighandler_t.
2763         (child_terminal_inferior): Remove casts.
2764         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
2765         (osig): Change type to sighandler_t.
2766         * nto-procfs.c (ofunc): Change type to sighandler_t.
2767         (procfs_wait): Remove casts.
2768         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2769         * remote-sim.c (gdbsim_wait): Use sighandler_t.
2770         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2771
2772 2015-08-27  Pedro Alves  <palves@redhat.com>
2773
2774         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2775         * gnulib/aclocal.m4: Renegerate.
2776         * gnulib/config.in: Renegerate.
2777         * gnulib/configure: Renegerate.
2778         * gnulib/import/Makefile.am: Update.
2779         * gnulib/import/Makefile.in: Regenerate.
2780         * gnulib/import/m4/gnulib-cache.m4: Update.
2781         * gnulib/import/m4/gnulib-comp.m4: Update.
2782         * gnulib/import/m4/signal_h.m4: New file.
2783         * gnulib/import/signal.in.h: New file.
2784
2785 2015-08-27  Pedro Alves  <palves@redhat.com>
2786
2787         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2788         (MIN_MEMORY_PACKET_SIZE): New.
2789         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2790         (get_memory_packet_size): Adjust.  No longer limit the max packet
2791         size.
2792         (set_memory_packet_size): Adjust, and remove dead code.
2793         (remote_check_symbols): Use xmalloc and a cleanup instead of
2794         alloca.
2795         (remote_packet_size): No longer cap the packet size.
2796         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2797
2798 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
2799
2800         * compile/compile.c (compile_to_object): Mention language in
2801         error message.
2802
2803 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
2804
2805         * target.c (target_pre_inferior): Unset attach_flag.
2806
2807 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2808
2809         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2810         * gdbarch.c: Re-generate.
2811
2812 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2813
2814         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2815         function with the XNEW-family equivalent.
2816         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2817         * ada-exp.y (write_ambiguous_var): Likewise.
2818         * ada-lang.c (resolve_subexp): Likewise.
2819         (user_select_syms): Likewise.
2820         (assign_aggregate): Likewise.
2821         (ada_evaluate_subexp): Likewise.
2822         (cache_symbol): Likewise.
2823         * addrmap.c (allocate_key): Likewise.
2824         (addrmap_create_mutable): Likewise.
2825         * aix-thread.c (sync_threadlists): Likewise.
2826         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2827         (alpha_gdbarch_init): Likewise.
2828         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2829         * arm-linux-nat.c (arm_linux_add_process): Likewise.
2830         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2831         * arm-tdep.c (push_stack_item): Likewise.
2832         (arm_displaced_step_copy_insn): Likewise.
2833         (arm_gdbarch_init): Likewise.
2834         (_initialize_arm_tdep): Likewise.
2835         * avr-tdep.c (push_stack_item): Likewise.
2836         * ax-general.c (new_agent_expr): Likewise.
2837         * block.c (block_initialize_namespace): Likewise.
2838         * breakpoint.c (alloc_counted_command_line): Likewise.
2839         (update_dprintf_command_list): Likewise.
2840         (parse_breakpoint_sals): Likewise.
2841         (decode_static_tracepoint_spec): Likewise.
2842         (until_break_command): Likewise.
2843         (clear_command): Likewise.
2844         (update_global_location_list): Likewise.
2845         (get_breakpoint_objfile_data) Likewise.
2846         * btrace.c (ftrace_new_function): Likewise.
2847         (btrace_set_insn_history): Likewise.
2848         (btrace_set_call_history): Likewise.
2849         * buildsym.c (add_symbol_to_list): Likewise.
2850         (record_pending_block): Likewise.
2851         (start_subfile): Likewise.
2852         (start_buildsym_compunit): Likewise.
2853         (push_subfile): Likewise.
2854         (end_symtab_get_static_block): Likewise.
2855         (buildsym_init): Likewise.
2856         * cli/cli-cmds.c (source_command): Likewise.
2857         * cli/cli-decode.c (add_cmd): Likewise.
2858         * cli/cli-script.c (build_command_line): Likewise.
2859         (setup_user_args): Likewise.
2860         (realloc_body_list): Likewise.
2861         (process_next_line): Likewise.
2862         (copy_command_lines): Likewise.
2863         * cli/cli-setshow.c (do_set_command): Likewise.
2864         * coff-pe-read.c (read_pe_exported_syms): Likewise.
2865         * coffread.c (coff_locate_sections): Likewise.
2866         (coff_symtab_read): Likewise.
2867         (coff_read_struct_type): Likewise.
2868         * common/cleanups.c (make_my_cleanup2): Likewise.
2869         * common/common-exceptions.c (throw_it): Likewise.
2870         * common/filestuff.c (make_cleanup_close): Likewise.
2871         * common/format.c (parse_format_string): Likewise.
2872         * common/queue.h (DEFINE_QUEUE_P): Likewise.
2873         * compile/compile-object-load.c (munmap_list_add): Likewise.
2874         (compile_object_load): Likewise.
2875         * compile/compile-object-run.c (compile_object_run): Likewise.
2876         * compile/compile.c (append_args): Likewise.
2877         * corefile.c (specify_exec_file_hook): Likewise.
2878         * cp-support.c (make_symbol_overload_list): Likewise.
2879         * cris-tdep.c (push_stack_item): Likewise.
2880         (cris_gdbarch_init): Likewise.
2881         * ctf.c (ctf_trace_file_writer_new): Likewise.
2882         * dbxread.c (init_header_files): Likewise.
2883         (add_new_header_file): Likewise.
2884         (init_bincl_list): Likewise.
2885         (dbx_end_psymtab): Likewise.
2886         (start_psymtab): Likewise.
2887         (dbx_end_psymtab): Likewise.
2888         * dcache.c (dcache_init): Likewise.
2889         * dictionary.c (dict_create_hashed): Likewise.
2890         (dict_create_hashed_expandable): Likewise.
2891         (dict_create_linear): Likewise.
2892         (dict_create_linear_expandable): Likewise.
2893         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2894         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2895         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2896         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2897         (decode_frame_entry_1): Likewise.
2898         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2899         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2900         * dwarf2read.c (dwarf2_has_info): Likewise.
2901         (create_signatured_type_table_from_index): Likewise.
2902         (dwarf2_read_index): Likewise.
2903         (dw2_get_file_names_reader): Likewise.
2904         (create_all_type_units): Likewise.
2905         (read_cutu_die_from_dwo): Likewise.
2906         (init_tu_and_read_dwo_dies): Likewise.
2907         (init_cutu_and_read_dies): Likewise.
2908         (create_all_comp_units): Likewise.
2909         (queue_comp_unit): Likewise.
2910         (inherit_abstract_dies): Likewise.
2911         (read_call_site_scope): Likewise.
2912         (dwarf2_add_field): Likewise.
2913         (dwarf2_add_typedef): Likewise.
2914         (dwarf2_add_member_fn): Likewise.
2915         (attr_to_dynamic_prop): Likewise.
2916         (abbrev_table_alloc_abbrev): Likewise.
2917         (abbrev_table_read_table): Likewise.
2918         (add_include_dir): Likewise.
2919         (add_file_name): Likewise.
2920         (dwarf_decode_line_header): Likewise.
2921         (dwarf2_const_value_attr): Likewise.
2922         (dwarf_alloc_block): Likewise.
2923         (parse_macro_definition): Likewise.
2924         (set_die_type): Likewise.
2925         (write_psymtabs_to_index): Likewise.
2926         (create_cus_from_index): Likewise.
2927         (dwarf2_create_include_psymtab): Likewise.
2928         (process_psymtab_comp_unit_reader): Likewise.
2929         (build_type_psymtab_dependencies): Likewise.
2930         (read_comp_units_from_section): Likewise.
2931         (compute_compunit_symtab_includes): Likewise.
2932         (create_dwo_unit_in_dwp_v1): Likewise.
2933         (create_dwo_unit_in_dwp_v2): Likewise.
2934         (read_func_scope): Likewise.
2935         (process_structure_scope): Likewise.
2936         (mark_common_block_symbol_computed): Likewise.
2937         (load_partial_dies): Likewise.
2938         (dwarf2_symbol_mark_computed): Likewise.
2939         * elfread.c (elf_symfile_segments): Likewise.
2940         (elf_read_minimal_symbols): Likewise.
2941         * environ.c (make_environ): Likewise.
2942         * eval.c (evaluate_subexp_standard): Likewise.
2943         * event-loop.c (create_file_handler): Likewise.
2944         (create_async_signal_handler): Likewise.
2945         (create_async_event_handler): Likewise.
2946         (create_timer): Likewise.
2947         * exec.c (build_section_table): Likewise.
2948         * fbsd-nat.c (fbsd_remember_child): Likewise.
2949         * fork-child.c (fork_inferior): Likewise.
2950         * frv-tdep.c (new_variant): Likewise.
2951         * gdbarch.sh (gdbarch_alloc): Likewise.
2952         (append_name): Likewise.
2953         * gdbtypes.c (rank_function): Likewise.
2954         (copy_type_recursive): Likewise.
2955         (add_dyn_prop): Likewise.
2956         * gnu-nat.c (make_proc): Likewise.
2957         (make_inf): Likewise.
2958         (gnu_write_inferior): Likewise.
2959         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2960         (build_std_type_info_type): Likewise.
2961         * guile/scm-param.c (compute_enum_list): Likewise.
2962         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2963         * guile/scm-value.c (gdbscm_value_call): Likewise.
2964         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2965         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2966         (read_unwind_info): Likewise.
2967         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2968         * infcall.c (dummy_frame_context_saver_setup): Likewise.
2969         (call_function_by_hand_dummy): Likewise.
2970         * infcmd.c (step_once): Likewise.
2971         (finish_forward): Likewise.
2972         (attach_command): Likewise.
2973         (notice_new_inferior): Likewise.
2974         * inferior.c (add_inferior_silent): Likewise.
2975         * infrun.c (add_displaced_stepping_state): Likewise.
2976         (save_infcall_control_state): Likewise.
2977         (save_inferior_ptid): Likewise.
2978         (_initialize_infrun): Likewise.
2979         * jit.c (bfd_open_from_target_memory): Likewise.
2980         (jit_gdbarch_data_init): Likewise.
2981         * language.c (add_language): Likewise.
2982         * linespec.c (decode_line_2): Likewise.
2983         * linux-nat.c (add_to_pid_list): Likewise.
2984         (add_initial_lwp): Likewise.
2985         * linux-thread-db.c (add_thread_db_info): Likewise.
2986         (record_thread): Likewise.
2987         (info_auto_load_libthread_db): Likewise.
2988         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2989         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2990         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2991         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2992         * macrocmd.c (macro_define_command): Likewise.
2993         * macroexp.c (gather_arguments): Likewise.
2994         * macroscope.c (sal_macro_scope): Likewise.
2995         * macrotab.c (new_macro_table): Likewise.
2996         * mdebugread.c (push_parse_stack): Likewise.
2997         (parse_partial_symbols): Likewise.
2998         (parse_symbol): Likewise.
2999         (psymtab_to_symtab_1): Likewise.
3000         (new_block): Likewise.
3001         (new_psymtab): Likewise.
3002         (mdebug_build_psymtabs): Likewise.
3003         (add_pending): Likewise.
3004         (elfmdebug_build_psymtabs): Likewise.
3005         * mep-tdep.c (mep_gdbarch_init): Likewise.
3006         * mi/mi-main.c (mi_execute_command): Likewise.
3007         * mi/mi-parse.c (mi_parse_argv): Likewise.
3008         * minidebug.c (lzma_open): Likewise.
3009         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3010         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3011         * mips-tdep.c (mips_gdbarch_init): Likewise.
3012         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3013         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3014         * mt-tdep.c (mt_registers_info): Likewise.
3015         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3016         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3017         (linux_enable_pt): Likewise.
3018         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3019         (linux_xfer_osdata_processgroups): Likewise.
3020         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3021         * nto-procfs.c (procfs_meminfo): Likewise.
3022         * objc-lang.c (start_msglist): Likewise.
3023         (selectors_info): Likewise.
3024         (classes_info): Likewise.
3025         (find_methods): Likewise.
3026         * objfiles.c (allocate_objfile): Likewise.
3027         (update_section_map): Likewise.
3028         * osabi.c (gdbarch_register_osabi): Likewise.
3029         (gdbarch_register_osabi_sniffer): Likewise.
3030         * parse.c (start_arglist): Likewise.
3031         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3032         (hwdebug_insert_point): Likewise.
3033         * printcmd.c (display_command): Likewise.
3034         (ui_printf): Likewise.
3035         * procfs.c (create_procinfo): Likewise.
3036         (load_syscalls): Likewise.
3037         (proc_get_LDT_entry): Likewise.
3038         (proc_update_threads): Likewise.
3039         * prologue-value.c (make_pv_area): Likewise.
3040         (pv_area_store): Likewise.
3041         * psymtab.c (extend_psymbol_list): Likewise.
3042         (init_psymbol_list): Likewise.
3043         (allocate_psymtab): Likewise.
3044         * python/py-inferior.c (add_thread_object): Likewise.
3045         * python/py-param.c (compute_enum_values): Likewise.
3046         * python/py-value.c (valpy_call): Likewise.
3047         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3048         * python/python.c (ensure_python_env): Likewise.
3049         * record-btrace.c (record_btrace_start_replaying): Likewise.
3050         * record-full.c (record_full_reg_alloc): Likewise.
3051         (record_full_mem_alloc): Likewise.
3052         (record_full_end_alloc): Likewise.
3053         (record_full_core_xfer_partial): Likewise.
3054         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3055         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3056         * remote-notif.c (remote_notif_state_allocate): Likewise.
3057         * remote.c (demand_private_info): Likewise.
3058         (remote_notif_stop_alloc_reply): Likewise.
3059         (remote_enable_btrace): Likewise.
3060         * reverse.c (save_bookmark_command): Likewise.
3061         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3062         * rx-tdep.c (rx_gdbarch_init): Likewise.
3063         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3064         * ser-go32.c (dos_get_tty_state): Likewise.
3065         (dos_copy_tty_state): Likewise.
3066         * ser-mingw.c (ser_windows_open): Likewise.
3067         (ser_console_wait_handle): Likewise.
3068         (ser_console_get_tty_state): Likewise.
3069         (make_pipe_state): Likewise.
3070         (net_windows_open): Likewise.
3071         * ser-unix.c (hardwire_get_tty_state): Likewise.
3072         (hardwire_copy_tty_state): Likewise.
3073         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3074         * solib-dsbt.c (dsbt_current_sos): Likewise.
3075         (dsbt_relocate_main_executable): Likewise.
3076         * solib-frv.c (frv_current_sos): Likewise.
3077         (frv_relocate_main_executable): Likewise.
3078         * solib-spu.c (spu_bfd_fopen): Likewise.
3079         * solib-svr4.c (lm_info_read): Likewise.
3080         (svr4_copy_library_list): Likewise.
3081         (svr4_default_sos): Likewise.
3082         * source.c (find_source_lines): Likewise.
3083         (line_info): Likewise.
3084         (add_substitute_path_rule): Likewise.
3085         * spu-linux-nat.c (spu_bfd_open): Likewise.
3086         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3087         * stabsread.c (dbx_lookup_type): Likewise.
3088         (read_type): Likewise.
3089         (read_member_functions): Likewise.
3090         (read_struct_fields): Likewise.
3091         (read_baseclasses): Likewise.
3092         (read_args): Likewise.
3093         (_initialize_stabsread): Likewise.
3094         * stack.c (func_command): Likewise.
3095         * stap-probe.c (handle_stap_probe): Likewise.
3096         * symfile.c (addrs_section_sort): Likewise.
3097         (addr_info_make_relative): Likewise.
3098         (load_section_callback): Likewise.
3099         (add_symbol_file_command): Likewise.
3100         (init_filename_language_table): Likewise.
3101         * symtab.c (create_filename_seen_cache): Likewise.
3102         (sort_search_symbols_remove_dups): Likewise.
3103         (search_symbols): Likewise.
3104         * target.c (make_cleanup_restore_target_terminal): Likewise.
3105         * thread.c (new_thread): Likewise.
3106         (enable_thread_stack_temporaries): Likewise.
3107         (make_cleanup_restore_current_thread): Likewise.
3108         (thread_apply_all_command): Likewise.
3109         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3110         * top.c (gdb_readline_wrapper): Likewise.
3111         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3112         * tracepoint.c (trace_find_line_command): Likewise.
3113         (all_tracepoint_actions_and_cleanup): Likewise.
3114         (make_cleanup_restore_current_traceframe): Likewise.
3115         (get_uploaded_tp): Likewise.
3116         (get_uploaded_tsv): Likewise.
3117         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3118         (tui_alloc_win_info): Likewise.
3119         (tui_alloc_content): Likewise.
3120         (tui_add_content_elements): Likewise.
3121         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3122         (tui_set_disassem_content): Likewise.
3123         * ui-file.c (ui_file_new): Likewise.
3124         (stdio_file_new): Likewise.
3125         (tee_file_new): Likewise.
3126         * utils.c (make_cleanup_restore_integer): Likewise.
3127         (add_internal_problem_command): Likewise.
3128         * v850-tdep.c (v850_gdbarch_init): Likewise.
3129         * valops.c (find_oload_champ): Likewise.
3130         * value.c (allocate_value_lazy): Likewise.
3131         (record_latest_value): Likewise.
3132         (create_internalvar): Likewise.
3133         * varobj.c (install_variable): Likewise.
3134         (new_variable): Likewise.
3135         (new_root_variable): Likewise.
3136         (cppush): Likewise.
3137         (_initialize_varobj): Likewise.
3138         * windows-nat.c (windows_make_so): Likewise.
3139         * x86-nat.c (x86_add_process): Likewise.
3140         * xcoffread.c (arrange_linetable): Likewise.
3141         (allocate_include_entry): Likewise.
3142         (process_linenos): Likewise.
3143         (SYMBOL_DUP): Likewise.
3144         (xcoff_start_psymtab): Likewise.
3145         (xcoff_end_psymtab): Likewise.
3146         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3147         * xtensa-tdep.c (xtensa_register_type): Likewise.
3148         * gdbarch.c: Regenerate.
3149         * gdbarch.h: Regenerate.
3150
3151 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3152
3153         * infrun.c (follow_exec): Re-order operations for
3154         handling follow-exec-mode "new".
3155         (handle_inferior_event_1): Assign ecs->event_thread
3156         to the current thread.
3157         * remote.c (get_remote_arch_state): Add an assertion.
3158
3159 2015-08-26  Pedro Alves  <palves@redhat.com>
3160
3161         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3162
3163 2015-08-25  Pedro Alves  <palves@redhat.com>
3164
3165         PR gdb/18804
3166         * defs.h (maybe_quit): Declare.
3167         (QUIT): Now calls maybe_quit.
3168         * event-loop.c (clear_async_signal_handler)
3169         (async_signal_handler_is_marked): New functions.
3170         * event-loop.h (async_signal_handler_is_marked)
3171         (clear_async_signal_handler): New declarations.
3172         * remote.c (remote_check_pending_interrupt): New function.
3173         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3174         longer check whether the target is async.  If waiting for a stop
3175         reply, and a Ctrl-C as been sent to the target, offer to
3176         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3177         Otherwise do not disconnect and throw a quit.
3178         (_initialize_remote): Install remote_check_pending_interrupt as
3179         to_check_pending_interrupt.
3180         * target.c (target_check_pending_interrupt): New function.
3181         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3182         field.
3183         (target_check_pending_interrupt): New declaration.
3184         * utils.c (maybe_quit): New function.
3185         * target-delegates.c: Regenerate.
3186
3187 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3188
3189         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3190         Rename local variable pid to tid, and get lwpid of lwp.  Update
3191         debug output.
3192
3193 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3194
3195         * ada-lang.c (ada_read_var_value): Add a var_block argument
3196         and pass it to default_read_var_value.
3197         * block.c (block_static_link): New accessor.
3198         * block.h (block_static_link): Declare it.
3199         * buildsym.c (finish_block_internal): Add a static_link
3200         argument.  If there is a static link, associate it to the new
3201         block.
3202         (finish_block): Add a static link argument and pass it to
3203         finish_block_internal.
3204         (end_symtab_get_static_block): Update calls to finish_block and
3205         to finish_block_internal.
3206         (end_symtab_with_blockvector): Update call to
3207         finish_block_internal.
3208         * buildsym.h: Forward-declare struct dynamic_prop.
3209         (struct context_stack): Add a static_link field.
3210         (finish_block): Add a static link argument.
3211         * c-exp.y: Remove an obsolete comment (evaluation of variables
3212         already start from the selected frame, and now they climb *up*
3213         the call stack) and propagate the block information to the
3214         produced expression.
3215         * d-exp.y: Likewise.
3216         * f-exp.y: Likewise.
3217         * go-exp.y: Likewise.
3218         * jv-exp.y: Likewise.
3219         * m2-exp.y: Likewise.
3220         * p-exp.y: Likewise.
3221         * coffread.c (coff_symtab_read): Update calls to finish_block.
3222         * dbxread.c (process_one_symbol): Likewise.
3223         * xcoffread.c (read_xcoff_symtab): Likewise.
3224         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3225         "sym" parameter to struct block_symbol, update its uses and pass
3226         its block to calls to read_var_value.
3227         (convert_symbol_sym): Update the calls to convert_one_symbol.
3228         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3229         call to read_var_value.
3230         * dwarf2loc.c (block_op_get_frame_base): New.
3231         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3232         get_frame_base method.
3233         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3234         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3235         instead of the selected frame in order to evaluate the
3236         expression.
3237         (dwarf2_evaluate_property): Add a frame argument.  Update call
3238         to dwarf2_locexpr_baton_eval to provide a frame in available and
3239         to handle the absence of address stack.
3240         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3241         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3242         declaration.
3243         (read_func_scope): Record any available static link description.
3244         Update call to finish_block.
3245         (read_lexical_block_scope): Update call to finish_block.
3246         * findvar.c (follow_static_link): New.
3247         (get_hosting_frame): New.
3248         (default_read_var_value): Add a var_block argument.  Use
3249         get_hosting_frame to handle non-local references.
3250         (read_var_value): Add a var_block argument and pass it to the
3251         LA_READ_VAR_VALUE method.
3252         * gdbtypes.c (resolve_dynamic_range): Update calls to
3253         dwarf2_evaluate_property.
3254         (resolve_dynamic_type_internal): Likewise.
3255         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3256         read_var_value, passing it the block coming from symbol lookup.
3257         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3258         read_var_value (TODO).
3259         * infcmd.c (finish_command_continuation): Update call to
3260         read_var_value, passing it the block coming from symbol lookup.
3261         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3262         * language.h (struct language_defn): Add a var_block argument to
3263         the LA_READ_VAR_VALUE method.
3264         * objfiles.c (struct static_link_htab_entry): New.
3265         (static_link_htab_entry_hash): New.
3266         (static_link_htab_entry_eq): New.
3267         (objfile_register_static_link): New.
3268         (objfile_lookup_static_link): New.
3269         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3270         * objfiles.h: Include hashtab.h.
3271         (struct objfile): Add a static_links field.
3272         (objfile_register_static_link): New.
3273         (objfile_lookup_static_link): New.
3274         * printcmd.c (print_variable_and_value): Update call to
3275         read_var_value.
3276         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3277         * python/py-frame.c (frapy_read_var): Update call to
3278         read_var_value, passing it the block coming from symbol lookup.
3279         * python/py-framefilter.c (extract_sym): Add a sym_block
3280         parameter and set the pointed value to NULL (TODO).
3281         (enumerate_args): Update call to extract_sym.
3282         (enumerate_locals): Update calls to extract_sym and to
3283         read_var_value.
3284         * python/py-symbol.c (sympy_value): Update call to
3285         read_var_value (TODO).
3286         * stack.c (read_frame_local): Update call to read_var_value.
3287         (read_frame_arg): Likewise.
3288         (return_command): Likewise.
3289         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3290         method.
3291         (struct symbol): Add a block field.
3292         (SYMBOL_BLOCK): New accessor.
3293         * valops.c (value_of_variable): Remove frame/block handling and
3294         pass the block argument to read_var_value, which does this job
3295         now.
3296         (value_struct_elt_for_reference): Update calls to
3297         read_var_value.
3298         (value_of_this): Pass the block found to read_var_value.
3299         * value.h (read_var_value): Add a var_block argument.
3300         (default_read_var_value): Likewise.
3301
3302 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3303
3304         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3305         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3306         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3307
3308 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3309
3310         * Makefile.in (aarch64-liunx.o): New rule.
3311         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3312         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3313         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3314         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3315         extern.
3316         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3317         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3318         * nat/aarch64-linux.c: New file.
3319         * nat/aarch64-linux.h: New file.
3320
3321 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3322
3323         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3324         lwp_arch_private_info and ptid_of_lwp.
3325
3326 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3327
3328         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3329         Move it to nat/aarch64-linux-hw-point.c.
3330         (debug_reg_change_callback): Likewise.
3331         (aarch64_notify_debug_reg_change): :Likewise.
3332         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3333         (aarch64_dr_update_callback_param): New.
3334         (debug_reg_change_callback): New function.
3335         (aarch64_notify_debug_reg_change): Likewise.
3336         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3337         Remove the declaration.
3338
3339 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3340
3341         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3342         Call current_lwp_ptid.
3343
3344 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3345
3346         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3347         debug_printf.
3348
3349 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3350
3351         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3352         ptid_get_pid rather than ptid_get_lwp.
3353
3354 2015-08-24  Pedro Alves  <palves@redhat.com>
3355
3356         * NEWS (New commands): Mention set/show remote
3357         multiprocess-extensions-packet.
3358         * remote.c (remote_query_supported): Only tell the server to use
3359         the multiprocess extensions if the user hasn't force-disabled them
3360         with "set remote multiprocess-extensions-packet off".
3361
3362 2015-08-24  Pedro Alves  <palves@redhat.com>
3363
3364         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3365         1029a8112290f6eee9d7878a391c49db42c999bd.
3366         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3367         Regenerate.
3368         * gnulib/import/Makefile.am: Update.
3369         * gnulib/import/Makefile.in: Update.
3370         * gnulib/import/alloca.in.h: Update.
3371         * gnulib/import/basename-lgpl.c: Update.
3372         * gnulib/import/canonicalize-lgpl.c: Update.
3373         * gnulib/import/config.charset: Update.
3374         * gnulib/import/dirent.in.h: Update.
3375         * gnulib/import/dirfd.c: Update.
3376         * gnulib/import/dirname-lgpl.c: Update.
3377         * gnulib/import/dirname.h: Update.
3378         * gnulib/import/dosname.h: Update.
3379         * gnulib/import/errno.in.h: Update.
3380         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3381         * gnulib/import/extra/snippet/c++defs.h: Update.
3382         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3383         * gnulib/import/extra/update-copyright: Update.
3384         * gnulib/import/float+.h: Update.
3385         * gnulib/import/float.c: Update.
3386         * gnulib/import/float.in.h: Update.
3387         * gnulib/import/fnmatch.c: Update.
3388         * gnulib/import/fnmatch.in.h: Update.
3389         * gnulib/import/fnmatch_loop.c: Update.
3390         * gnulib/import/fpucw.h: Update.
3391         * gnulib/import/frexp.c: Update.
3392         * gnulib/import/frexpl.c: Update.
3393         * gnulib/import/gettimeofday.c: Update.
3394         * gnulib/import/inttypes.in.h: Update.
3395         * gnulib/import/isnan.c: Update.
3396         * gnulib/import/isnand-nolibm.h: Update.
3397         * gnulib/import/isnand.c: Update.
3398         * gnulib/import/isnanl-nolibm.h: Update.
3399         * gnulib/import/isnanl.c: Update.
3400         * gnulib/import/itold.c: Update.
3401         * gnulib/import/localcharset.c: Update.
3402         * gnulib/import/localcharset.h: Update.
3403         * gnulib/import/lstat.c: Update.
3404         * gnulib/import/m4/00gnulib.m4: Update.
3405         * gnulib/import/m4/absolute-header.m4: Update.
3406         * gnulib/import/m4/alloca.m4: Update.
3407         * gnulib/import/m4/canonicalize.m4: Update.
3408         * gnulib/import/m4/codeset.m4: Update.
3409         * gnulib/import/m4/configmake.m4: Update.
3410         * gnulib/import/m4/dirent_h.m4: Update.
3411         * gnulib/import/m4/dirfd.m4: Update.
3412         * gnulib/import/m4/dirname.m4: Update.
3413         * gnulib/import/m4/double-slash-root.m4: Update.
3414         * gnulib/import/m4/eealloc.m4: Update.
3415         * gnulib/import/m4/errno_h.m4: Update.
3416         * gnulib/import/m4/exponentd.m4: Update.
3417         * gnulib/import/m4/exponentl.m4: Update.
3418         * gnulib/import/m4/extensions.m4: Update.
3419         * gnulib/import/m4/extern-inline.m4: Update.
3420         * gnulib/import/m4/fcntl-o.m4: Update.
3421         * gnulib/import/m4/float_h.m4: Update.
3422         * gnulib/import/m4/fnmatch.m4: Update.
3423         * gnulib/import/m4/fpieee.m4: Update.
3424         * gnulib/import/m4/frexp.m4: Update.
3425         * gnulib/import/m4/frexpl.m4: Update.
3426         * gnulib/import/m4/gettimeofday.m4: Update.
3427         * gnulib/import/m4/glibc21.m4: Update.
3428         * gnulib/import/m4/gnulib-cache.m4: Update.
3429         * gnulib/import/m4/gnulib-common.m4: Update.
3430         * gnulib/import/m4/gnulib-comp.m4: Update.
3431         * gnulib/import/m4/gnulib-tool.m4: Update.
3432         * gnulib/import/m4/include_next.m4: Update.
3433         * gnulib/import/m4/inttypes-pri.m4: Update.
3434         * gnulib/import/m4/inttypes.m4: Update.
3435         * gnulib/import/m4/isnand.m4: Update.
3436         * gnulib/import/m4/isnanl.m4: Update.
3437         * gnulib/import/m4/largefile.m4: Update.
3438         * gnulib/import/m4/localcharset.m4: Update.
3439         * gnulib/import/m4/locale-fr.m4: Update.
3440         * gnulib/import/m4/locale-ja.m4: Update.
3441         * gnulib/import/m4/locale-zh.m4: Update.
3442         * gnulib/import/m4/longlong.m4: Update.
3443         * gnulib/import/m4/lstat.m4: Update.
3444         * gnulib/import/m4/malloc.m4: Update.
3445         * gnulib/import/m4/malloca.m4: Update.
3446         * gnulib/import/m4/math_h.m4: Update.
3447         * gnulib/import/m4/mbrtowc.m4: Update.
3448         * gnulib/import/m4/mbsinit.m4: Update.
3449         * gnulib/import/m4/mbsrtowcs.m4: Update.
3450         * gnulib/import/m4/mbstate_t.m4: Update.
3451         * gnulib/import/m4/memchr.m4: Update.
3452         * gnulib/import/m4/memmem.m4: Update.
3453         * gnulib/import/m4/mmap-anon.m4: Update.
3454         * gnulib/import/m4/multiarch.m4: Update.
3455         * gnulib/import/m4/nocrash.m4: Update.
3456         * gnulib/import/m4/off_t.m4: Update.
3457         * gnulib/import/m4/pathmax.m4: Update.
3458         * gnulib/import/m4/readlink.m4: Update.
3459         * gnulib/import/m4/rename.m4: Update.
3460         * gnulib/import/m4/rmdir.m4: Update.
3461         * gnulib/import/m4/ssize_t.m4: Update.
3462         * gnulib/import/m4/stat.m4: Update.
3463         * gnulib/import/m4/stdbool.m4: Update.
3464         * gnulib/import/m4/stddef_h.m4: Update.
3465         * gnulib/import/m4/stdint.m4: Update.
3466         * gnulib/import/m4/stdio_h.m4: Update.
3467         * gnulib/import/m4/stdlib_h.m4: Update.
3468         * gnulib/import/m4/string_h.m4: Update.
3469         * gnulib/import/m4/strstr.m4: Update.
3470         * gnulib/import/m4/strtok_r.m4: Update.
3471         * gnulib/import/m4/sys_socket_h.m4: Update.
3472         * gnulib/import/m4/sys_stat_h.m4: Update.
3473         * gnulib/import/m4/sys_time_h.m4: Update.
3474         * gnulib/import/m4/sys_types_h.m4: Update.
3475         * gnulib/import/m4/time_h.m4: Update.
3476         * gnulib/import/m4/unistd_h.m4: Update.
3477         * gnulib/import/m4/warn-on-use.m4: Update.
3478         * gnulib/import/m4/wchar_h.m4: Update.
3479         * gnulib/import/m4/wchar_t.m4: Update.
3480         * gnulib/import/m4/wctype_h.m4: Update.
3481         * gnulib/import/m4/wint_t.m4: Update.
3482         * gnulib/import/malloc.c: Update.
3483         * gnulib/import/malloca.c: Update.
3484         * gnulib/import/malloca.h: Update.
3485         * gnulib/import/math.in.h: Update.
3486         * gnulib/import/mbrtowc.c: Update.
3487         * gnulib/import/mbsinit.c: Update.
3488         * gnulib/import/mbsrtowcs-impl.h: Update.
3489         * gnulib/import/mbsrtowcs-state.c: Update.
3490         * gnulib/import/mbsrtowcs.c: Update.
3491         * gnulib/import/memchr.c: Update.
3492         * gnulib/import/memmem.c: Update.
3493         * gnulib/import/pathmax.h: Update.
3494         * gnulib/import/readlink.c: Update.
3495         * gnulib/import/ref-add.sin: Update.
3496         * gnulib/import/ref-del.sin: Update.
3497         * gnulib/import/rename.c: Update.
3498         * gnulib/import/rmdir.c: Update.
3499         * gnulib/import/same-inode.h: Update.
3500         * gnulib/import/stat.c: Update.
3501         * gnulib/import/stdbool.in.h: Update.
3502         * gnulib/import/stddef.in.h: Update.
3503         * gnulib/import/stdint.in.h: Update.
3504         * gnulib/import/stdio.c: Update.
3505         * gnulib/import/stdio.in.h: Update.
3506         * gnulib/import/stdlib.in.h: Update.
3507         * gnulib/import/str-two-way.h: Update.
3508         * gnulib/import/streq.h: Update.
3509         * gnulib/import/string.in.h: Update.
3510         * gnulib/import/stripslash.c: Update.
3511         * gnulib/import/strnlen1.c: Update.
3512         * gnulib/import/strnlen1.h: Update.
3513         * gnulib/import/strstr.c: Update.
3514         * gnulib/import/strtok_r.c: Update.
3515         * gnulib/import/sys_stat.in.h: Update.
3516         * gnulib/import/sys_time.in.h: Update.
3517         * gnulib/import/sys_types.in.h: Update.
3518         * gnulib/import/time.in.h: Update.
3519         * gnulib/import/unistd.in.h: Update.
3520         * gnulib/import/verify.h: Update.
3521         * gnulib/import/wchar.in.h: Update.
3522         * gnulib/import/wctype.in.h: Update.
3523         * gnulib/import/gettimeofday.c: New file.
3524         * gnulib/import/m4/absolute-header.m4: New file.
3525         * gnulib/import/m4/gettimeofday.m4: New file.
3526         * gnulib/import/m4/sys_socket_h.m4: New file.
3527         * gnulib/import/m4/sys_time_h.m4: New file.
3528         * gnulib/import/stdio.c: Delete file.
3529         * gnulib/import/sys_time.in.h: New file.
3530
3531 2015-08-24  Pedro Alves  <palves@redhat.com>
3532
3533         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3534         * common/gdb_sys_time.h: New file.
3535         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3536         * gdb_select.h: Likewise.
3537         * gdb_usleep.c: Likewise.
3538         * maint.c: Likewise.
3539         * mi/mi-main.c: Likewise.
3540         * mi/mi-parse.h: Likewise.
3541         * remote-fileio.c: Likewise.
3542         * remote-m32r-sdi.c: Likewise.
3543         * remote.c: Likewise.
3544         * ser-base.c: Likewise.
3545         * ser-pipe.c: Likewise.
3546         * ser-tcp.c: Likewise.
3547         * ser-unix.c: Likewise.
3548         * symfile.c: Likewise.
3549         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3550         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3551         * utils.c: Likewise.
3552
3553 2015-08-24  Pedro Alves  <palves@redhat.com>
3554
3555         * NEWS: Mention removed support for the various ROM monitors.
3556         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3557         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3558         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3559         gdb_target_obs.
3560         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3561         gdb_target_obs.
3562         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3563         dsrec.o from gdb_target_obs.
3564         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3565         from gdb_target_obs.
3566         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3567         gdb_target_obs.
3568         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3569         dink32-rom.o from gdb_target_obs.
3570         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3571         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3572         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3573         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3574
3575 2015-08-21  Pedro Alves  <palves@redhat.com>
3576
3577         * frame.c (null_frame_id): Explicitly zero-initialize.
3578
3579 2015-08-21  Tom Tromey  <tromey@redhat.com>
3580
3581         * dwarf2read.c (struct dwarf2_section_info): Rename field
3582         'asection' to 'section'.
3583         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3584         (dwarf2_locate_sections, dwarf2_locate_sections)
3585         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3586         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3587         (dwarf2_locate_v2_dwp_sections): Adjust.
3588
3589 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3590
3591         * top.h (gdb_in_secondary_prompt_p): Declare.
3592         * top.c (gdb_secondary_prompt_depth): Define.
3593         (gdb_in_secondary_prompt_p): Define.
3594         (gdb_readline_wrapper_cleanup): Decrement
3595         gdb_secondary_prompt_depth.
3596         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3597         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3598         are in a secondary prompt.
3599
3600 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3601
3602         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3603         emit the newline.
3604
3605 2015-08-21  Gary Benson  <gbenson@redhat.com>
3606
3607         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3608
3609 2015-08-21  Gary Benson  <gbenson@redhat.com>
3610
3611         * target.h (struct target_ops) <to_fileio_open>: New argument
3612         warn_if_slow.  Update comment.  All implementations updated.
3613         (target_fileio_open_warn_if_slow): New declaration.
3614         * target.c (target_fileio_open): Renamed as...
3615         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3616         Pass warn_if_slow to implementation.  Update debug printing.
3617         (target_fileio_open): New function.
3618         (target_fileio_open_warn_if_slow): Likewise.
3619         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3620         target_fileio_open_warn_if_slow.
3621
3622 2015-08-21  Gary Benson  <gbenson@redhat.com>
3623
3624         * nat/linux-namespaces.c (linux_mntns_access_fs):
3625         Do not overwrite old_chain.
3626
3627 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3628
3629         * arch/xtensa.h: New file.
3630         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3631         (ps_get_thread_area): New function.
3632         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3633         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3634         * xtensa-tdep.c (osabi.h): New #include.
3635         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3636         xtensa-specific hooks.
3637         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3638         member and move the structure to arch/xtensa.h.
3639
3640 2015-08-21  Pedro Alves  <palves@redhat.com>
3641
3642         * remote.c (struct readahead_cache): New.
3643         (struct remote_state) <readahead_cache>: New field.
3644         (remote_open_1): Invalidate the cache.
3645         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3646         functions.
3647         (remote_hostio_pwrite): Invalidate the readahead cache.
3648         (remote_hostio_pread): Rename to ...
3649         (remote_hostio_pread_vFile): ... this.
3650         (remote_hostio_pread_from_cache): New function.
3651         (remote_hostio_pread): Reimplement.
3652         (remote_hostio_close): Invalidate the readahead cache.
3653
3654 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3655
3656         PR build/18843
3657         * procfs.c: Include "filestuff.h".
3658
3659 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3660
3661         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3662         curch.
3663         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3664         cur_line or curch, instead call wmove().
3665         (init_win_info) [CMD_WIN]: Likewise.
3666         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3667         instead call getcury().
3668         (tui_redisplay_readline): Don't set cur_line or curch.
3669         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3670         getcury().
3671         (tui_cont_sig): Remove call to wmove.
3672         (tui_getc): Don't read cur_line or curch, instead call getcury()
3673         or getyx().  Don't set curch.
3674         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3675         set cur_line or curch.  Always move cursor to (0,0).
3676
3677 2015-08-20  Pedro Alves  <palves@redhat.com>
3678
3679         * infrun.c (print_target_wait_results): Make extern.
3680         * infrun.h (print_target_wait_results): Declare.
3681         * remote.c (set_stop_requested_callback): Delete.
3682         (process_initial_stop_replies): New function.
3683         (remote_start_remote): Use it.
3684         (stop_reply_queue_length): New function.
3685
3686 2015-08-20  Pedro Alves  <palves@redhat.com>
3687
3688         * dwarf2read.c (process_full_comp_unit): To tell whether
3689         start_subfile managed to deduce a language, test for
3690         language_unknown instead of language_c.
3691
3692 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3693
3694         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3695         matches attributes.
3696
3697 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3698
3699         * dwarf2read.c (dwarf2_string_attr): New function.
3700         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3701         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3702         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3703         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3704         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3705
3706 2015-08-18  Doug Evans  <dje@google.com>
3707             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3708
3709         PR mi/18833
3710         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3711         if MI-like.
3712         * mi/mi-out.c: #include "vec.h".
3713         (ui_filep): New type.
3714         (DEV_VEC_P (ui_filep)): New type.
3715         (struct ui_out_data) <buffer, original_buffer>: Delete.
3716         (struct ui_out_data) <streams>: New member.
3717         (mi_ui_out_impl): Add data_destroy field.
3718         (mi_field_string, mi_field_fmt): Update.
3719         (mi_flush, mi_redirect, field_separator): Update.
3720         (mi_open, mi_close): Update.
3721         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3722         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3723         (mi_out_new): Call mi_out_data_ctor.
3724
3725 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3726
3727         * remote.c (strprefix): New.
3728         (remote_parse_stop_reply): Use strprefix instead of strncmp
3729         to ensure exact match of keyword.
3730
3731 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3732
3733         * gdb_bfd.c (debug_bfd_cache): New variable.
3734         (show_bfd_cache_debug): New function.
3735         (gdb_bfd_open): Add debug logging.
3736         (gdb_bfd_ref): Likewise.
3737         (gdb_bfd_unref): Likewise.
3738         (_initialize_gdb_bfd): Add new set/show command.
3739         * NEWS: Mention new command.
3740
3741 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3742
3743         * gdb_bfd.c (bfd_sharing): New variable.
3744         (show_bfd_sharing): New function.
3745         (gdb_bfd_open): Check bfd_sharing variable.
3746         (_initialize_gdb_bfd): Add new set/show command.
3747         * NEWS: Mention new command.
3748
3749 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3750
3751         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3752         field.
3753         (struct gdb_bfd_cache_search): Likewise.
3754         (eq_bfd): Compare the size, inode, and device id fields.
3755         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3756         (gdb_bfd_ref): Likewise.
3757         (gdb_bfd_unref): Likewise.
3758
3759 2015-08-18  Pedro Alves  <palves@redhat.com>
3760
3761         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3762         target implements to_always_non_stop_p, call it.
3763         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3764         (x86_linux_create_target): Install it as to_always_non_stop_p
3765         method.
3766
3767 2015-08-17  Doug Evans  <dje@google.com>
3768
3769         * ui-out.c (default_ui_out_impl): Add comment.
3770
3771 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
3772
3773         * d-exp.y (type_aggregate_p): New function.
3774         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3775         (classify_inner_name): Likewise.
3776         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3777
3778 2015-08-15  Doug Evans  <xdje42@gmail.com>
3779
3780         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
3781         updated.
3782         (add_psymbol_to_list): Ditto.
3783
3784 2015-08-15  Doug Evans  <xdje42@gmail.com>
3785
3786         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
3787         updated.  Call end_psymtab_common.
3788         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3789         end_psymtab_common.
3790         (build_type_psymtabs_reader): Ditto.
3791         * psympriv.h (sort_pst_symbols): Delete.
3792         (end_psymtab_common): Declare.
3793         * psymtab.c (sort_pst_symbols): Make static.
3794         (end_psymtab_common): New function.
3795         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3796
3797 2015-08-15  Doug Evans  <xdje42@gmail.com>
3798
3799         * defs.h (LANGUAGE_BITS): Define.
3800         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3801         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3802         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3803         (minimal_symbol_type): Add nr_minsym_types.
3804         (MINSYM_TYPE_BITS): Define.
3805         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3806         (domain_enum_tag): Add NR_DOMAINS.
3807         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3808         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3809
3810 2015-08-15  Doug Evans  <xdje42@gmail.com>
3811
3812         * objfiles.h: Whitespace cleanup.
3813         * psympriv.h: Whitespace cleanup.
3814         * psymtab.c: Whitespace/coding convention cleanup.
3815
3816 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
3817
3818         * inferior.c (detach_inferior_command): Don't call
3819         any_thread_of_process when pid is 0.
3820         (kill_inferior_command): Likewise.
3821
3822 2015-08-14  Doug Evans  <xdje42@gmail.com>
3823
3824         PR gdb/11833
3825         * NEWS: Document new /s modifier for the disassemble command.
3826         * cli/cli-cmds.c (disassemble_command): Add support for /s.
3827         (_initialize_cli_cmds): Update online docs of disassemble command.
3828         * disasm.c: #include "source.h".
3829         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3830         All uses updated.
3831         (dis_line_entry): New struct.
3832         (hash_dis_line_entry, eq_dis_line_entry): New functions.
3833         (allocate_dis_line_table): New functions.
3834         (maybe_add_dis_line_entry, line_has_code_p): New functions.
3835         (dump_insns): New arg end_pc.  All callers updated.
3836         (do_mixed_source_and_assembly_deprecated): Renamed from
3837         do_mixed_source_and_assembly.  All callers updated.
3838         (do_mixed_source_and_assembly): New function.
3839         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3840         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3841         DISASSEMBLY_SOURCE.  All uses updated.
3842         (DISASSEMBLY_SOURCE): New macro.
3843         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3844
3845 2015-08-14  Keith Seitz  <keiths@redhat.com>
3846
3847         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3848         `typename' to `type_name' to avoid C++ reserved word.
3849
3850 2015-08-14  Keith Seitz  <keiths@redhat.com>
3851
3852         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3853         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3854         silence ARI errors.
3855
3856 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3857
3858         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3859         xstrprintf instead of malloc and sprintf.
3860         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3861         (lex_one_token): Likewise.
3862
3863 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3864
3865         * solib-svr4.c (read_program_header): Add base_addr argument to
3866         report the runtime address of the segment.
3867         (find_program_interpreter): Update read_program_header call to pass
3868         a NULL pointer for the new argument.
3869         (scan_dyntag): Add ptr_addr argument to report the runtime address
3870         of the tag payload.
3871         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3872         read_program_header to get the base address of the dynamic segment.
3873         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3874         read_program_header.
3875         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3876
3877 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3878
3879         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3880
3881 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3882
3883         * d-exp.y (%union): Add voidval.
3884         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3885         name in the lexing stage.
3886         (PostfixExpression): Move symbol completion handling in grammar here
3887         from PrimaryExpression.
3888         (PrimaryExpression): Move routines to handle resolving identifier
3889         tokens in the grammar here from push_expression_name.
3890         (IdentifierExp): Remove the handling of alternating '.' and identifier
3891         tokens.
3892         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3893         (BasicType): Remove C-style typename rules.
3894         (d_type_from_name, d_module_from_name, push_variable)
3895         (push_fieldnames, push_type_name, push_module_name)
3896         (push_expression_name): Remove.
3897         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
3898         (token_and_value): New type.
3899         (token_fifo, popping, name_obstack): New globals.
3900         (classify_name): New function.
3901         (classify_inner_name): Likewise.
3902         (yylex): Likewise.
3903         (d_parse): Initialize token_fifo, popping and name_obstack.
3904
3905 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3906
3907         * Makefile.in (SFILES): Add d-namespace.c.
3908         (COMMON_OBS): Add d-namespace.o.
3909         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3910         la_lookup_symbol_nonlocal callback function pointer.
3911         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3912         (d_lookup_nested_symbol): New declaration.
3913         * d-namespace.c: New file.
3914
3915 2015-08-13  Pedro Alves  <palves@redhat.com>
3916
3917         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3918         cleanup after the decref cleanup, not before.
3919
3920 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
3921
3922         * ada-lang.c: Include namespace.h
3923         (aux_add_nonlocal_symbols): Fix a function name in comment.
3924         (ada_add_block_renamings): New.
3925         (add_nonlocal_symbols): Add global renamings handling.
3926         (ada_lookup_symbol_list_worker): Move the symbol lookup part
3927         to...
3928         (ada_add_all_symbols): ... this new function.
3929         (ada_add_block_symbols): Try to match the input name against the
3930         "using directives list", perform a recursive symbol lookup on
3931         the matched declarations.
3932         * block.h (struct block): Move the_namespace to top-level as
3933         namespace_info. Remove the language_specific field.
3934         (BLOCK_NAMESPACE): Update access to the namespace_info field.
3935         * buildsym.h (using_directives): Rename into...
3936         (local_using_directives): ... this.
3937         (global_using_directives): New.
3938         (struct context_stack): Rename the using_directives field into
3939         local_using_directives.
3940         * buildsym.c (finish_block_internal): Deal with the proper
3941         using directives repository (local or global).
3942         (prepare_for_building): Reset local_using_directives. Assert
3943         that there is no pending global using directive.
3944         (reset_symtab_globals): Reset global_using_directives and
3945         local_using_directives.
3946         (end_symtab_get_static_block): Don't ignore symtabs that have
3947         only using directives.
3948         (push_context): Update references to local_using_directives.
3949         (buildsym_init): Do not reset using_directives.
3950         * cp-support.c: Include namespace.h.
3951         * cp-support.h (struct using_direct): Move to namespace.h.
3952         (cp_add_using_directives): Move to namespace.h.
3953         * cp-namespace.c: Include namespace.h
3954         (cp_add_using_directive): Move to namespace.c, rename it to
3955         add_using_directive, add a "using_directives" argument and use
3956         it as the pending using directives repository.  All callers
3957         updated.
3958         * dwarf2read.c (using_directives): New.
3959         (read_import_statement): Call using_directives.
3960         (read_func_scope): Update references to local_using_directives.
3961         (read_lexical_block_scope): Likewise.
3962         (read_namespace): Update the heading comment, call
3963         using_directives.
3964         * namespace.h: New file.
3965         * namespace.c: New file.
3966         * Makefile.in (SFILES): Add namespace.c.
3967         (COMMON_OBS): Add namespace.o
3968
3969 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
3970
3971         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3972         compute RETADDR.
3973
3974 2015-08-12  Keith Seitz  <keiths@redhat.com>
3975
3976         * break-catch-throw.c (re_set_exception_catchpoint) Rename
3977         reserved C++ keyword "explicit" to "explicit_loc".
3978         * breakpoint.c (create_overlay_event_breakpoint)
3979         (create_longjmp_master_breakpoint)
3980         (create_std_terminate_master_breakpoint)
3981         (create_exception_master_breakpoint, update_static_tracepoint):
3982         Rename reserved C++ keyword "explicit" to "explicit_loc".
3983         * completer.c (collect_explicit_location_matches)
3984         (explicit_location_completer): Rename reserved C++ keyword
3985         "explicit" to "explicit_loc".
3986         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3987         (canonicalize_linespec, create_sals_line_offset)
3988         (convert_linespec_to_sals, convert_explicit_location_to_sals)
3989         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3990         "explicit" to "explicit_loc".
3991         * location.c (struct event_location) <explicit>: Rename to
3992         "explicit_loc".
3993         (initialize_explicit_location, new_explicit_location)
3994         (explicit_location_to_string_internal, explicit_location_to_linespec):
3995         Rename reserved C++ keyword "explicit" to "explicit_loc".
3996         * location.h (explicit_location_to_string)
3997         (explicit_location_to_linespec, initialize_explicit_location)
3998         (new_explicit_location): Rename reserved C++ keyword "explicit"
3999         to "explicit_loc".
4000         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4001         keyword "explicit" to "explicit_loc".
4002
4003 2015-08-12  Keith Seitz  <keiths@redhat.com>
4004
4005         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4006         and only call decode_line_1 when it is non-NULL.
4007
4008 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4009
4010         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4011         location address is not meaningful.
4012         (breakpoint_address_is_meaningful): Update comment.
4013
4014 2015-08-11  Keith Seitz  <keiths@redhat.com>
4015
4016         * NEWS: Mention explicit locations.
4017         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4018         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4019         (_initialize_breakpoint): Update documentation for
4020         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4021
4022 2015-08-11  Keith Seitz  <keiths@redhat.com>
4023
4024         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4025         explicit locations, options "--source", "--function",
4026         "--label", and "--line".
4027
4028 2015-08-11  Keith Seitz  <keiths@redhat.com>
4029
4030         * completer.c: Include location.h.
4031         (enum match_type): New enum.
4032         (location_completer): Rename to ...
4033         (linespec_completer): ... this.
4034         (collect_explicit_location_matches, backup_text_ptr)
4035         (explicit_location_completer): New functions.
4036         (location_completer): "New" function; handle linespec
4037         and explicit location completions.
4038         (complete_line_internal): Remove all location completer-specific
4039         handling.
4040         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4041         (find_toplevel_char): Export.
4042         (linespec_parse_line_offset): Export.
4043         Issue error if STRING is not numerical.
4044         (gdb_get_linespec_parser_quote_characters): New function.
4045         * linespec.h (linespec_parse_line_offset): Declare.
4046         (get_gdb_linespec_parser_quote_characters): Declare.
4047         (is_ada_operator): Declare.
4048         (find_toplevel_char): Declare.
4049         (linespec_lexer_lex_keyword): Declare.
4050         * location.c (explicit_to_event_location): New function.
4051         (explicit_location_lex_one): New function.
4052         (string_to_explicit_location): New function.
4053         (string_to_event_location): Handle explicit locations.
4054         * location.h (explicit_to_event_location): Declare.
4055         (string_to_explicit_location): Declare.
4056
4057 2015-08-11  Keith Seitz  <keiths@redhat.com>
4058
4059         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4060         linespec into explicit location.
4061         * breakpoint.c (create_overlay_breakpoint)
4062         (create_longjmp_master_breakpoint)
4063         (create_std_terminate_master_breakpoint)
4064         (create_exception_master_breakpoint): Convert linespec into explicit
4065         location.
4066         (update_static_tracepoint): Convert linespec into explicit location.
4067         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4068         location.h.
4069         (struct linespec) <expression, expr_pc, source_filename>
4070         <function_name, label_name, line_offset>: Replace with ...
4071         <explicit>: ... this.
4072         <is_linespec>: New member.
4073         (PARSER_EXPLICIT): New accessor macro.
4074         (undefined_label_error): New function.
4075         (source_file_not_found_error): New function.
4076         (linespec_parse_basic): The parser result is now an explicit location.
4077         Use PARSER_EXPLICIT to access it.
4078         Use undefined_label_error.
4079         (canonicalize_linespec): Convert canonical linespec into explicit
4080         location.
4081         Move string representation of location to explicit_location_to_linespec
4082         and use it and explicit_location_to_string to save string
4083         representations of the canonical location.
4084         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4085         explicit location.  Update all references.
4086         (convert_explicit_location_to_sals): New function.
4087         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4088         result's explicit location.
4089         (linespec_state_constructor): Initialize is_linespec.
4090         Use PARSER_EXPLICIT.
4091         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4092         result.
4093         (event_location_to_sals): For linespec locations, set is_linespec.
4094         Handle explicit locations.
4095         (decode_objc): 'ls' contains an explicit location now. Update all
4096         references.
4097         (symtabs_from_filename): Use source_file_not_found_error.
4098         * location.c (struct event_location.u) <explicit>: New member.
4099         (initialize_explicit_location): New function.
4100         (initialize_event_location): Initialize explicit locations.
4101         (new_explicit_location, get_explicit_location)
4102         (get_explicit_location_const): New functions.
4103         (explicit_to_string_internal): New function; most of contents moved
4104         from canonicalize_linespec.
4105         (explicit_location_to_string): New function.
4106         (explicit_location_to_linespec): New function.
4107         (copy_event_location, delete_event_location)
4108         (event_location_to_string_const, event_location_empty_p): Handle
4109         explicit locations.
4110         * location.h (enum offset_relative_sign, struct line_offset): Move
4111         here from linespec.h.
4112         (enum event_location_type): Add EXPLICIT_LOCATION.
4113         (struct explicit_location): New structure.
4114         (explicit_location_to_string): Declare.
4115         (explicit_location_to_linespec): Declare.
4116         (new_explicit_location, get_explicit_locationp
4117         (get_explicit_location_const, initialize_explicit_location): Declare.
4118
4119 2015-08-11  Keith Seitz  <keiths@redhat.com>
4120
4121         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4122         linespec for stap probe to probe location.
4123         * breakpoint.c (create_longjmp_master_breakpoint)
4124         (create_exception_master_breakpoint): Likewise.
4125         (break_command_1): Remove local variable `arg_cp'.
4126         Check location type to set appropriate breakpoint ops methods.
4127         (trace_command): Likewise.
4128         * linespec.c (event_location_to_sals): Assert on probe locations.
4129         * location.c (EL_PROBE): Add macro definition.
4130         (new_probe_location, get_probe_location): New functions.
4131         (copy_event_location, delete_event_location, event_location_to_string)
4132         (string_to_event_location, event_location_empty_p): Handle probe
4133         locations.
4134         * location.h (enum event_location_type): Add PROBE_LOCATION.
4135         (new_probe_location, get_probe_location): Declare.
4136         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4137         Convert linespec into probe location.
4138
4139 2015-08-11  Keith Seitz  <keiths@redhat.com>
4140
4141         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4142         Convert linespec to address location.
4143         * linespec.c (canonicalize_linespec): Do not handle address
4144         locations here.
4145         (convert_address_location_to_sals): New function; contents moved
4146         from ...
4147         (convert_linespc_to_sals): ... here.
4148         (parse_linespec): Remove address locations from linespec grammar.
4149         Remove handling of address locations.
4150         (linespec_lex_to_end): Remove handling of address linespecs.
4151         (event_location_to_sals): Handle ADDRESS_LOCATION.
4152         (linespec_expression_to_pc): Export.
4153         * linespec.h (linespec_expression_to_pc): Add declaration.
4154         * location.c (struct event_location.u) <address>: New member.
4155         (new_address_location, get_address_location): New functions.
4156         (copy_event_location, delete_event_location, event_location_to_string)
4157         (string_to_event_location, event_location_empty_p): Handle address
4158         locations.
4159         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4160         (new_address_location, get_address_location): Declare.
4161         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4162         to address location.
4163         * spu-tdep.c (spu_catch_start): Likewise.
4164
4165 2015-08-11  Keith Seitz  <keiths@redhat.com>
4166
4167         * ax-gdb.c: Include location.h.
4168         (agent_command_1) Use linespec location instead of address
4169         string.
4170         * break-catch-throw.c: Include location.h.
4171         (re_set_exception_catchpoint): Use linespec locations instead
4172         of address strings.
4173         * breakpoint.c: Include location.h.
4174         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4175         (create_std_terminate_master_breakpoint)
4176         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4177         Use linespec location instead of address string.
4178         (print_breakpoint_location):  Use locations and
4179         event_location_to_string.
4180         Print extra_string for pending locations for non-MI streams.
4181         (print_one_breakpoint_location): Use locations and
4182         event_location_to_string.
4183         (init_raw_breakpoint_without_location): Initialize b->location.
4184         (create_thread_event_breakpoint): Use linespec location instead of
4185         address string.
4186         (init_breakpoint_sal): Likewise.
4187         Only save extra_string if it is non-NULL and not the empty string.
4188         Use event_location_to_string instead of `addr_string'.
4189         Constify `p' and `endp'.
4190         Use skip_spaces_const/skip_space_const instead of non-const versions.
4191         Copy the location into the breakpoint.
4192         If LOCATION is NULL, save the breakpoint address as a linespec location
4193         instead of an address string.
4194         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4195         event_location. All uses updated.
4196         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4197         (parse_breakpoint_sals): Use locations instead of address strings.
4198         Remove check for empty linespec with conditional.
4199         Refactor.
4200         (decode_static_tracepoint_spec): Make argument const and update
4201         function.
4202         (create_breakpoint): Change `arg' to a struct event_location and
4203         rename.
4204         Remove `copy_arg' and `addr_start'.
4205         If EXTRA_STRING is empty, set it to NULL.
4206         Don't populate `canonical' for pending breakpoints.
4207         Pass `extra_string' to find_condition_and_thread.
4208         Clear `extra_string' if `rest' was NULL.
4209         Do not error with "garbage after location" if setting a dprintf
4210         breakpoint.
4211         Copy the location into the breakpoint instead of an address string.
4212         (break_command_1): Use string_to_event_location and pass this to
4213         create_breakpoint instead of an address string.
4214         Check against `arg_cp' for a probe linespec.
4215         (dprintf_command): Use string_to_event_location and pass this to
4216         create_breakpoint instead of an address string.
4217         Throw an exception if no format string was specified.
4218         (print_recreate_ranged_breakpoint): Use event_location_to_string
4219         instead of address strings.
4220         (break_range_command, until_break_command)
4221         (init_ada_exception_breakpoint): Use locations instead
4222         of address strings.
4223         (say_where): Print out extra_string for pending locations.
4224         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4225         the breakpoint.
4226         (base_breakpoint_create_sals_from_location): Use struct event_location
4227         instead of address string.
4228         Remove `addr_start' and `copy_arg' parameters.
4229         (base_breakpoint_decode_location): Use struct event_location instead of
4230         address string.
4231         (bkpt_re_set): Use locations instead of address strings.
4232         Use event_location_empty_p to check for unset location.
4233         (bkpt_print_recreate): Use event_location_to_string instead of
4234         an address string.
4235         Print out extra_string for pending locations.
4236         (bkpt_create_sals_from_location, bkpt_decode_location)
4237         (bkpt_probe_create_sals_from_location): Use struct event_location
4238         instead of address string.
4239         (bkpt_probe_decode_location): Use struct event_location instead of
4240         address string.
4241         (tracepoint_print_recreate): Use event_location_to_string to
4242         recreate the tracepoint.
4243         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4244         (tracepoint_probe_create_sals_from_location)
4245         (tracepoint_probe_decode_location): Use struct event_location
4246         instead of address string.
4247         (dprintf_print_recreate): Use event_location_to_string to recreate
4248         the dprintf.
4249         (dprintf_re_set): Remove check for valid/missing format string.
4250         (strace_marker_create_sals_from_location)
4251         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4252         (update_static_tracepoint): Use struct event_location instead of
4253         address string.
4254         (location_to_sals): Likewise.
4255         Pass `extra_string' to find_condition_and_thread.
4256         For newly resolved pending breakpoint locations, clear the location's
4257         string representation.
4258         Assert that the breakpoint's condition string is NULL when
4259         condition_not_parsed.
4260         (breakpoint_re_set_default, create_sals_from_location_default)
4261         (decode_location_default, trace_command, ftrace_command)
4262         (strace_command, create_tracepoint_from_upload): Use locations
4263         instead of address strings.
4264         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4265         Use struct event_location instead of address string.
4266         Update all uses.
4267         <decode_location>: Likewise.
4268         (struct breakpoint) <addr_string>: Change to struct event_location
4269         and rename `location'.
4270         <addr_string_range_end>: Change to struct event_location and rename
4271         `location_range_end'.
4272         (create_breakpoint): Use struct event_location instead of address
4273         string.
4274         * cli/cli-cmds.c: Include location.h.
4275         (edit_command, list_command): Use locations instead of address strings.
4276         * elfread.c: Include location.h.
4277         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4278         * guile/scm-breakpoint.c: Include location.h.
4279         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4280         (gdbscm_register_breakpoint): Use locations instead of address
4281         strings.
4282         * linespec.c: Include location.h.
4283         (struct ls_parser) <stream>: Change to const char *.
4284         (PARSER_STREAM): Update.
4285         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4286         keywords must be followed by whitespace.
4287         (canonicalize_linespec): Save a linespec location into `canonical'.
4288         Save a canonical linespec into `canonical'.
4289         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4290         All uses updated.
4291         Update function description.
4292         (linespec_parser_new): Initialize `parser'.
4293         Update initialization of  parsing stream.
4294         (event_location_to_sals): New function.
4295         (decode_line_full): Change `argptr' to a struct event_location and
4296         rename it `location'.
4297         Use locations instead of address strings.
4298         Call event_location_to_sals instead of parse_linespec.
4299         (decode_line_1): Likewise.
4300         (decode_line_with_current_source, decode_line_with_last_displayed)
4301         Use locations instead of address strings.
4302         (decode_objc): Likewise.
4303         Change `argptr' to const char * and rename `arg'.
4304         (destroy_linespec_result): Delete the linespec result's location
4305         instead of freeing the address string.
4306         * linespec.h (struct linespec_result) <addr_string>: Change to
4307         struct event_location and rename to ...
4308         <location>: ... this.
4309         (decode_line_1, decode_line_full): Change `argptr' to struct
4310         event_location.  All callers updated.
4311         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4312         (mi_cmd_break_insert_1): Use locations instead of address strings.
4313         Throw an error if there was "garbage" at the end of the specified
4314         linespec.
4315         * probe.c: Include location.h.
4316         (parse_probes): Change `argptr' to struct event_location.
4317         Use event locations instead of address strings.
4318         * probe.h (parse_probes): Change `argptr' to struct event_location.
4319         * python/py-breakpoint.c: Include location.h.
4320         (bppy_get_location): Constify local variable `str'.
4321         Use event_location_to_string.
4322         (bppy_init): Use locations instead of address strings.
4323         * python/py-finishbreakpoint.c: Include location.h.
4324         (bpfinishpy_init): Remove local variable `addr_str'.
4325         Use locations instead of address strings.
4326         * python/python.c: Include location.h.
4327         (gdbpy_decode_line): Use locations instead of address strings.
4328         * remote.c: Include location.h.
4329         (remote_download_tracepoint): Use locations instead of address
4330         strings.
4331         * spu-tdep.c: Include location.h.
4332         (spu_catch_start): Remove local variable `buf'.
4333         Use locations instead of address strings.
4334         * tracepoint.c: Include location.h.
4335         (scope_info): Use locations instead of address strings.
4336         (encode_source_string): Constify parameter `src'.
4337         * tracepoint.h (encode_source_string): Likewise.
4338
4339 2015-08-11  Keith Seitz  <keiths@redhat.com>
4340
4341         * Makefile.in (SFILES): Add location.c.
4342         (HFILES_NO_SRCDIR): Add location.h.
4343         (COMMON_OBS): Add location.o.
4344         * linespec.c (linespec_lex_to_end): New function.
4345         * linespec.h (linespec_lex_to_end): Declare.
4346         * location.c: New file.
4347         * location.h: New file.
4348
4349 2015-08-11  Keith Seitz  <keiths@redhat.com>
4350
4351         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4352         Renamed to create_sals_from_location.
4353         <decode_linespec>: Renamed to decode_location.
4354         Update all callers.
4355         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4356         (create_sals_from_location_default): ... this.
4357         (addr_string_to_sals): Renamed to ...
4358         (location_to_sals): ... this.
4359         (decode_linespec_default): Renamed to ...
4360         (decode_location_default): ... this.
4361         (base_breakpoint_create_sals_from_address): Renamed to ...
4362         (base_breakpoint_create_sals_from_location): ... this.
4363         (bkpt_create_sals_from_address): Renamed to ...
4364         (bkpt_create_sals_from_location): ... this.
4365         (bkpt_decode_linespec): Renamed to ...
4366         (bkpt_decode_location): ... this.
4367         (bkpt_probe_create_sals_from_address): Renamed to ...
4368         (bkpt_probe_create_sals_from_location): ... this.
4369         (tracepoint_create_sals_from_address): Renamed to ...
4370         (tracepoint_create_sals_from_location): ... this.
4371         (tracepoint_decode_linespec): Renamed to ...
4372         (tracepoint_decode_location): ... this.
4373         (tracepoint_probe_create_sals_from_address): Renamed to ...
4374         (tracepoint_probe_create_sals_from_location): ... this.
4375         (tracepoint_probe_decode_linespec): Renamed to ...
4376         (tracepoint_probe_decode_location): ... this.
4377         (strace_marker_create_sals_from_address): Renamed to ...
4378         (strace_marker_create_sals_from_location): ... this.
4379         (decode_linespec_default): Renamed to ...
4380         (decode_location_default): ... this.
4381
4382 2015-08-10  Doug Evans  <dje@google.com>
4383             Keith Seitz  <keiths@redhat.com>
4384
4385         PR gdb/17960
4386         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4387         make_file_symbol_completion_list and made static.
4388         (make_file_symbol_completion_list): New function.
4389
4390 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4391
4392         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4393         trailing new-line at end of warning message.
4394         (proceed): Add i18n marker to error messages.
4395
4396 2015-08-07  Pedro Alves  <palves@redhat.com>
4397
4398         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4399
4400 2015-08-07  Pedro Alves  <palves@redhat.com>
4401
4402         * s390-linux-tdep.c (is_non_branch_ril)
4403         (s390_displaced_step_copy_insn): New functions.
4404         (s390_displaced_step_fixup): Update comment.
4405         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4406         gdbarch_displaced_step_copy_insn hook.
4407
4408 2015-08-07  Pedro Alves  <palves@redhat.com>
4409
4410         * infrun.c (displaced_step_prepare_throw): Return -1 if
4411         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4412         comment.
4413         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4414         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4415         in file.
4416         (ppc_displaced_step_copy_insn): New function.
4417         (ppc_displaced_step_fixup): Update comment.
4418         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4419         gdbarch_displaced_step_copy_insn hook.
4420         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4421         NULL return.
4422         * gdbarch.h: Regenerate.
4423
4424 2015-08-07  Pedro Alves  <palves@redhat.com>
4425
4426         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4427         field.
4428         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4429         Return false if dispaced stepping failed before.
4430         (resume): Pass the current inferior to
4431         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4432         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4433         displaced_stepping_failed flag, and fall back to an in-line
4434         step-over.
4435
4436 2015-08-07  Pedro Alves  <palves@redhat.com>
4437
4438         * darwin-nat.c (darwin_stop): Rename to ...
4439         (darwin_interrupt): ... this.
4440         (_initialize_darwin_inferior): Adjust.
4441         * gnu-nat.c (gnu_stop): Delete.
4442         (gnu_target): Don't install gnu_stop.
4443         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4444         (inf_ptrace_interrupt): ... this.
4445         (inf_ptrace_target): Adjust.
4446         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4447         target_stop.
4448         * linux-nat (linux_nat_stop): Rename to ...
4449         (linux_nat_interrupt): ... this.
4450         (linux_nat_stop): Reimplement.
4451         (linux_nat_add_target): Install linux_nat_interrupt.
4452         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4453         (nto_handle_sigint_twice): ... this.
4454         (nto_interrupt): Rename to ...
4455         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4456         target_stop.
4457         (procfs_wait): Adjust.
4458         (procfs_stop): Rename to ...
4459         (procfs_interrupt): ... this.
4460         (init_procfs_targets): Adjust.
4461         * procfs.c (procfs_stop): Rename to ...
4462         (procfs_interrupt): ... this.
4463         (procfs_target): Adjust.
4464         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4465         (m32r_interrupt): ... this.
4466         (init_m32r_ops): Adjust.
4467         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4468         (gdbsim_interrupt_inferior): ... this.
4469         (gdbsim_stop): Rename to ...
4470         (gdbsim_interrupt): ... this.
4471         (gdbsim_cntrl_c): Adjust.
4472         (init_gdbsim_ops): Adjust.
4473         * remote.c (sync_remote_interrupt): Adjust comments.
4474         (remote_stop_as): Rename to ...
4475         (remote_interrupt_as): ... this.
4476         (remote_stop): Adjust comment.
4477         (remote_interrupt): New function.
4478         (init_remote_ops): Install remote_interrupt.
4479         * target.c (target_interrupt): New function.
4480         * target.h (struct target_ops) <to_interrupt>: New field.
4481         (target_interrupt): New declaration.
4482         * windows-nat.c (windows_stop): Rename to ...
4483         (windows_interrupt): ... this.
4484         * target-delegates.c: Regenerate.
4485
4486 2015-08-07  Pedro Alves  <palves@redhat.com>
4487
4488         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4489         threads" as alternative to "switching back to stepped thread".
4490
4491 2015-08-07  Pedro Alves  <palves@redhat.com>
4492
4493         * NEWS: Mention "maint set/show target-non-stop".
4494         * breakpoint.c (update_global_location_list): Check
4495         target_is_non_stop_p instead of non_stop.
4496         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4497         * infrun.c (show_can_use_displaced_stepping)
4498         (can_use_displaced_stepping_p, start_step_over_inferior):
4499         Likewise.
4500         (internal_resume_ptid): New function.
4501         (resume): Use it.
4502         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4503         all-stop mode but the target is always in non-stop mode, start all
4504         the other threads that are implicitly resumed too.
4505         (for_each_just_stopped_thread, fetch_inferior_event)
4506         (adjust_pc_after_break, stop_all_threads): Check
4507         target_is_non_stop_p instead of non_stop.
4508         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4509         with the target always in non-stop mode.
4510         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4511         instead of non_stop.
4512         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4513         instead of non_stop.
4514         (keep_going_stepped_thread): Use internal_resume_ptid.
4515         (stop_waiting): If in all-stop mode, and the target is in non-stop
4516         mode, stop all threads.
4517         (keep_going_pass): Likewise, when starting a new in-line step-over
4518         sequence.
4519         * linux-nat.c (get_pending_status, select_event_lwp)
4520         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4521         target_is_non_stop_p instead of non_stop.
4522         (linux_nat_always_non_stop_p): New function.
4523         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4524         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4525         * target-delegates.c: Regenerate.
4526         * target.c (target_is_non_stop_p): New function.
4527         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4528         (maint_set_target_non_stop_command)
4529         (maint_show_target_non_stop_command): New functions.
4530         (_initilize_target): Install "maint set/show target-non-stop"
4531         commands.
4532         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4533         (target_non_stop_enabled): New declaration.
4534         (target_is_non_stop_p): New declaration.
4535
4536 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4537
4538         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4539         has a pending status, return true.
4540         * gdbthread.h: Include target/waitstatus.h.
4541         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4542         stop_pc>: New fields.
4543         (struct thread_info) <resumed>: New field.
4544         (set_resumed): Declare.
4545         * infrun.c: Include "event-loop.h".
4546         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4547         (infrun_async): New function.
4548         (clear_step_over_info): Add debug output.
4549         (displaced_step_in_progress_any_inferior): New function.
4550         (displaced_step_fixup): New returns int.
4551         (start_step_over): Handle in-line step-overs too.  Assert the
4552         thread is marked resumed.
4553         (resume_cleanups): Clear the thread's resumed flag.
4554         (resume): Set the thread's resumed flag.  Return early if the
4555         thread has a pending status.  Allow stepping a breakpoint with no
4556         signal.
4557         (proceed): Adjust to check 'resumed' instead of 'executing'.
4558         (clear_proceed_status_thread): If the thread has a pending status,
4559         and that status is a finished step, discard the pending status.
4560         (clear_proceed_status): Don't clear step_over_info here.
4561         (random_pending_event_thread, do_target_wait): New functions.
4562         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4563         do_target_wait.
4564         (wait_one): New function.
4565         (THREAD_STOPPED_BY): New macro.
4566         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4567         (thread_stopped_by_hw_breakpoint): New functions.
4568         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4569         functions.
4570         (handle_inferior_event): Also call set_resumed(false) on all
4571         threads implicitly stopped by the event.
4572         (restart_threads, resumed_thread_with_pending_status): New
4573         functions.
4574         (finish_step_over): If we were doing an in-line step-over before,
4575         and no longer are after trying to start a new step-over, restart
4576         all threads.  If we have multiple threads with pending events,
4577         save the current event and go through the event loop again.
4578         (handle_signal_stop): Return early if finish_step_over returns
4579         false.
4580         <random signal>: If we get a signal while stepping over a
4581         breakpoint in-line in non-stop mode, restart all threads.  Clear
4582         step_over_info before delivering the signal.
4583         (keep_going_stepped_thread): Use internal_error instead of
4584         gdb_assert.  Mark the thread as resumed.
4585         (keep_going_pass_signal): Assert the thread isn't already resumed.
4586         If some other thread is doing an in-line step-over, defer the
4587         resume.  If we just started a new in-line step-over, stop all
4588         threads.  Don't clear step_over_info.
4589         (infrun_async_inferior_event_handler): New function.
4590         (_initialize_infrun): Create async event handler with
4591         infrun_async_inferior_event_handler as callback.
4592         (infrun_async): New declaration.
4593         * target.c (target_async): New function.
4594         * target.h (target_async): Declare macro and readd as function
4595         declaration.
4596         * target/waitstatus.h (enum target_stop_reason)
4597         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4598         * thread.c (new_thread): Clear the new waitstatus field.
4599         (set_resumed): New function.
4600
4601 2015-08-07  Pedro Alves  <palves@redhat.com>
4602
4603         * infrun.c (keep_going_stepped_thread): New function, factored out
4604         from ...
4605         (switch_back_to_stepped_thread): ... here.
4606
4607 2015-08-07  Pedro Alves  <palves@redhat.com>
4608
4609         * infrun.c (currently_stepping): Extend intro comment.
4610         * target.h (target_resume): Extend intro comment.
4611
4612 2015-08-07  Pedro Alves  <palves@redhat.com>
4613
4614         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4615         of inferior_ptid.  If the stepped thread vanished, return 0
4616         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4617         the current stop_pc in log message.  Clear trap_expected if the
4618         thread advanced.  Don't pass currently_stepping to
4619         do_target_resume.
4620
4621 2015-08-07  Pedro Alves  <palves@redhat.com>
4622
4623         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4624         * infrun.c (struct execution_control_state): Move higher up in the
4625         file.
4626         (reset_ecs): New function.
4627         (start_step_over): Now returns int.  Rewrite to use
4628         keep_going_pass_signal instead of manually starting a displaced step.
4629         (resume): Don't call set_running here.  If displaced stepping
4630         can't start now, clear trap_expected.
4631         (find_thread_needs_step_over): Delete function.
4632         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4633         If the current thread needs a step over, push it in the step-over
4634         chain.  Don't set insert breakpoints nor call resume directly
4635         here.  Instead rewrite to use start_step_over and
4636         keep_going_pass_signal.
4637         (finish_step_over): New function.
4638         (handle_signal_stop): Call finish_step_over instead of
4639         start_step_over.
4640         (switch_back_to_stepped_thread): If the event thread needs another
4641         step-over do that first.  Use start_step_over.
4642         (keep_going_pass_signal): New function, factored out from ...
4643         (keep_going): ... here.
4644         (_initialize_infrun): Comment moved here.
4645         * thread.c (set_running_thread): New function.
4646         (set_running, finish_thread_state): Use set_running_thread.
4647
4648 2015-08-07  Pedro Alves  <palves@redhat.com>
4649
4650         * gdbthread.h (struct thread_info) <step_over_prev,
4651         step_over_next>: New fields.
4652         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4653         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4654         declarations.
4655         * infrun.c (struct displaced_step_request): Delete.
4656         (struct displaced_step_inferior_state) <step_request_queue>:
4657         Delete field.
4658         (displaced_step_prepare): Assert that trap_expected is set.  Use
4659         thread_step_over_chain_enqueue.  Split starting a new displaced
4660         step to ...
4661         (start_step_over): ... this new function.
4662         (resume): Assert the thread isn't waiting for a step over already.
4663         (proceed): Assert the thread isn't waiting for a step over
4664         already.
4665         (infrun_thread_stop_requested): Adjust to remove threads from the
4666         embedded step-over chain.
4667         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4668         displaced_step_fixup.
4669         (handle_signal_stop): Call start_step_over after
4670         displaced_step_fixup.
4671         * infrun.h (step_over_queue_head): New declaration.
4672         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4673         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4674         (thread_step_over_chain_enqueue)
4675         (thread_step_over_chain_remove): New functions.
4676         (delete_thread_1): Remove thread from the step-over chain.
4677
4678 2015-08-07  Pedro Alves  <palves@redhat.com>
4679
4680         * infrun.c (thread_still_needs_step_over): Rename to ...
4681         (thread_still_needs_step_over_bp): ... this.
4682         (enum step_over_what): New.
4683         (thread_still_needs_step_over): Reimplement.
4684
4685 2015-08-07  Pedro Alves  <palves@redhat.com>
4686
4687         * remote.c (remote_wait_as): If not waiting for a stop reply,
4688         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4689         requested, don't block waiting forever.
4690
4691 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4692
4693         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4694         waitstatus pointers instead of an ecs.  Adjust.
4695         (handle_inferior_event): Adjust caller.
4696
4697 2015-08-07  Pedro Alves  <palves@redhat.com>
4698
4699         * infrun.c (handle_inferior_event): If we get
4700         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4701         mode, mark all threads of the exiting process as not-executing.
4702         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4703         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4704         exiting process, if inferior_ptid still points at a process.
4705         * thread.c (struct current_thread_cleanup) <next>: New field.
4706         (current_thread_cleanup_chain): New global.
4707         (restore_current_thread_ptid_changed): New function.
4708         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4709         current_thread_cleanup_chain list.
4710         (make_cleanup_restore_current_thread): Add the cleanup data to the
4711         current_thread_cleanup_chain list.
4712         (_initialize_thread): Install restore_current_thread_ptid_changed
4713         as thread_ptid_changed observer.
4714
4715 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4716
4717         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4718         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4719         smaller than expected.
4720
4721 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4722
4723         * stack.c (get_frame_language): Moved ...
4724         * frame.c (get_frame_language): ... to here.
4725         * language.h (get_frame_language): Declaration moved to frame.h.
4726         * frame.h: Add language.h include, for language enum.
4727         (get_frame_language): Declaration moved from language.h.
4728         * language.c: Add frame.h include.
4729         * top.c: Add frame.h include.
4730         * symtab.h (struct obj_section): Declare.
4731         (struct cmd_list_element): Declare.
4732
4733 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4734
4735         * language.c (show_language_command): Find selected frame before
4736         asking for the language of that frame.
4737         (set_language_command): Likewise.
4738         * language.h (get_frame_language): Add frame parameter.
4739         * stack.c (get_frame_language): Add frame parameter, assert
4740         parameter is not NULL, update comment and reindent.
4741         * top.c (check_frame_language_change): Pass the selected frame
4742         into get_frame_language.
4743
4744 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4745
4746         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4747         (pt_btrace_insn_flags): New.
4748         (ftrace_add_pt): Call pt_btrace_insn_flags.
4749         * btrace.h (btrace_insn_flag): New.
4750         (btrace_insn) <flags>: New.
4751         * record-btrace.c (btrace_insn_history): Print insn prefix.
4752         * NEWS: Announce it.
4753
4754 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4755
4756         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4757         * configure: Regenerate.
4758
4759 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4760
4761         * Makefile.in (LIBICONV): Define.
4762         (CLIBS): Add LIBICONV.
4763         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4764         * configure: Regenerate.
4765
4766 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4767             Pedro Alves  <palves@redhat.com>
4768
4769         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4770         (arm_set_abi): Likewise.
4771         * ax-general.c (ax_print): Likewise.
4772         * c-exp.y (exp : string_exp): Likewise.
4773         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4774         (do_compile_dwarf_expr_to_c): Likewise.
4775         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4776         Likewise.
4777         * dwarf2expr.c (execute_stack_op): Likewise.
4778         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4779         (disassemble_dwarf_expression): Likewise.
4780         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4781         (read_array_order): Likewise.
4782         (abbrev_table_read_table): Likewise.
4783         (read_attribute_value): Likewise.
4784         (skip_unknown_opcode): Likewise.
4785         (dwarf_decode_macro_bytes): Likewise.
4786         (dwarf_decode_macros): Likewise.
4787         * eval.c (value_f90_subarray): Likewise.
4788         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4789         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4790         * infrun.c (handle_command): Likewise.
4791         * memory-map.c (memory_map_start_memory): Likewise.
4792         * osabi.c (set_osabi): Likewise.
4793         * parse.c (operator_length_standard): Likewise.
4794         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4795         single return point.
4796         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4797         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4798         (gdbpy_lookup_global_symbol): Likewise.
4799         * record-full.c (record_full_restore): Likewise.
4800         * regcache.c (regcache_register_status): Likewise.
4801         (regcache_raw_read): Likewise.
4802         (regcache_cooked_read): Likewise.
4803         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4804         * symtab.c (initialize_ordinary_address_classes): Likewise.
4805         * target-debug.h (target_debug_print_signals): Likewise.
4806         * utils.c (do_restore_current_language): Likewise.
4807
4808 2015-08-06  Clem Dickey  <clemd@acm.org>
4809
4810         PR python/17136
4811         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4812
4813 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4814
4815         * complaints.c (enum complaint_series): Add newlines and remove
4816         out of date comment.
4817         (struct complaints) <series>: Change type to enum
4818         complaint_series and remove out of date comment.
4819         (symfile_complaint_hook): Use equivalent enum value
4820         ISOLATED_MESSAGE instead of 0.
4821
4822 2015-08-06  Pedro Alves  <palves@redhat.com>
4823
4824         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4825         returned > 0.
4826
4827 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
4828
4829         * common/agent.c (symbol_list) <required>: Remove.
4830
4831 2015-08-06  Pedro Alves  <palves@redhat.com>
4832
4833         * target/waitstatus.h (enum target_stop_reason)
4834         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4835
4836 2015-08-05  Pedro Alves  <palves@redhat.com>
4837             Joel Brobecker  <brobecker@adacore.com>
4838
4839         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4840         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4841         case where BS->STOP is not set.
4842
4843 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
4844
4845         * nat/gdb_thread_db.h: Add copyright header.
4846         Protect against multiple inclusion.
4847
4848 2015-08-05  Yao Qi  <yao.qi@linaro.org>
4849
4850         * aarch64-linux-nat.c (get_thread_id): Remove.
4851         (debug_reg_change_callback): Call ptid_get_lwp instead of
4852         get_thread_id.
4853         (fetch_gregs_from_thread): Likewise.
4854         (store_gregs_to_thread): Likewise.
4855         (fetch_fpregs_from_thread): Likewise.
4856         (store_fpregs_to_thread): Likewise.
4857         (aarch64_linux_get_debug_reg_capacity): Likewise.
4858         * arm-linux-nat.c (get_thread_id): Remove.
4859         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4860         * xtensa-linux-nat.c (get_thread_id): Remove.
4861         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4862         * arm-linux-nat.c (get_thread_id): Remove.
4863         (GET_THREAD_ID): Remove.
4864         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4865         (store_fpregs, fetch_regs, store_regs): Likewise.
4866         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4867         (fetch_vfp_regs, store_vfp_regs): Likewise.
4868         (arm_linux_read_description): Likewise.
4869         (arm_linux_get_hwbp_cap): Likewise.
4870         * xtensa-linux-nat.c (get_thread_id): Remove.
4871         (GET_THREAD_ID): Remove.
4872         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4873         GET_THREAD_ID.
4874
4875 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
4876
4877         * python/py-linetable.c: Fix case of Linetable to LineTable
4878         in docstrings and code comments.
4879         * python/py-symtab.c: Same.
4880
4881 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4882
4883         * infcmd.c (signal_command): Call do_cleanups for args_chain.
4884
4885 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4886
4887         PR gdb/18767
4888         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4889         use.
4890
4891 2015-08-04  Pedro Alves  <palves@redhat.com>
4892
4893         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4894         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4895         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4896         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4897         (td_thr_validate_ftype, td_thr_get_info_ftype)
4898         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4899         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4900         New typedefs.
4901         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4902         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4903         local macros and use them instead of verbose_dlsym and dlsym
4904         calls.
4905
4906 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
4907
4908         * nios2-tdep.h: Include opcode/nios2.h here.
4909         (NIOS2_CDX_OPCODE_SIZE): New.
4910         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4911         * nios2-tdep.c: Don't include opcode/nios2.h here.
4912         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4913         4-byte read fails.
4914         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4915         (nios2_match_addi, nios2_match_orhi): Likewise.
4916         (nios2_match_stw, nios2_match_ldw): Likewise.
4917         (nios2_match_rdctl): Likewise.
4918         (nios2_match_stwm, nios2_match_ldwm): New.
4919         (nios2_match_branch): Add cases for R2 encodings.
4920         (nios2_match_jmpi, nios2_match_calli): Likewise.
4921         (nios2_match_jmpr, nios2_match_callr): Likewise.
4922         (nios2_match_break, nios2_match_trap): Likewise.
4923         (nios2_in_epilogue_p): Add R2 support.
4924         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
4925         prologues.
4926         (nios2_breakpoint_from_pc): Handle R2 instructions.
4927         (nios2_get_next_pc): Likewise.  Adjust call to
4928         tdep->syscall_next_pc.
4929         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4930         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
4931         instruction field macros instead of literal hex values.
4932         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4933         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4934         Use size field from OP instead of assuming all instructions
4935         are the same size.
4936         (nios2_linux_init_abi): Register appropriate unwinder for mach.
4937
4938 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
4939
4940         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4941         variable warning with some compilers.
4942
4943 2015-08-03  Yao Qi  <yao.qi@linaro.org>
4944
4945         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4946         in comment.  Replace "rw" with "type".
4947         (arm_linux_remove_watchpoint): Change type of "rw" to
4948         "enum target_hw_bp_type".
4949
4950 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
4951
4952         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4953         lookup_symbol.
4954         * ft32-tdep.c (ft32_skip_prologue): Likewise.
4955         * moxie-tdep.c (moxie_skip_prologue): Likewise.
4956         * mt-tdep.c (mt_skip_prologue): Likewise.
4957         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4958
4959 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4960
4961         * ada-exp.y (write_object_renaming): Replace struct
4962         ada_symbol_info with struct block_symbol.  Update field
4963         references accordingly.
4964         (block_lookup, select_possible_type_sym): Likewise.
4965         (find_primitive_type): Likewise.  Also update call to
4966         ada_lookup_symbol to extract the symbol itself.
4967         (write_var_or_type, write_name_assoc): Likewise.
4968         * ada-lang.h (struct ada_symbol_info): Remove.
4969         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4970         struct block_symbol.
4971         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4972         (ada_lookup_symbol): Return struct block_symbol instead of a
4973         mere symbol.
4974         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4975         with struct block_symbol.
4976         (resolve_subexp, ada_resolve_function, sort_choices,
4977         user_select_syms, is_nonfunction, add_defn_to_vec,
4978         num_defns_collected, defns_collected,
4979         symbols_are_identical_enums, remove_extra_symbols,
4980         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4981         ada_lookup_symbol_list, ada_iterate_over_symbols,
4982         ada_lookup_encoded_symbol, get_var_value): Likewise.
4983         (ada_lookup_symbol): Return a block_symbol instead of a mere
4984         symbol.  Replace struct ada_symbol_info with struct
4985         block_symbol.
4986         (ada_lookup_symbol_nonlocal): Likewise.
4987         (standard_lookup): Make block passing explicit through
4988         lookup_symbol_in_language.
4989         * ada-tasks.c (get_tcb_types_info): Update the calls to
4990         lookup_symbol_in_language to extract the mere symbol out of the
4991         returned value.
4992         (ada_tasks_inferior_data_sniffer): Likewise.
4993         * ax-gdb.c (gen_static_field): Likewise for the call to
4994         lookup_symbol.
4995         (gen_maybe_namespace_elt): Deal with struct block_symbol from
4996         lookup functions.
4997         (gen_expr): Likewise.
4998         * c-exp.y: Likewise.  Remove uses of block_found.
4999         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5000         (classify_name): Likewise.  Rename the "sym" local variable to
5001         "bsym".
5002         * c-valprint.c (print_unpacked_pointer): Likewise.
5003         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5004         "sym" parameter from struct symbol * to struct block_symbol.
5005         Use it to remove uses of block_found.  Deal with struct
5006         block_symbol from lookup functions.
5007         (gcc_convert_symbol): Likewise.  Update the call to
5008         convert_symbol_sym.
5009         * compile/compile-object-load.c (compile_object_load): Deal with
5010         struct block_symbol from lookup functions.
5011         * cp-namespace.c (cp_lookup_nested_symbol_1,
5012         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5013         cp_search_static_and_baseclasses,
5014         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5015         cp_lookup_symbol_imports_or_template,
5016         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5017         lookup_namespace_scope, cp_lookup_nonlocal,
5018         find_symbol_in_baseclass): Return struct block_symbol instead of
5019         mere symbols and deal with struct block_symbol from lookup
5020         functions.
5021         * cp-support.c (inspect_type, replace_typedefs,
5022         cp_lookup_rtti_type): Deal with struct block_symbol from
5023         lookup functions.
5024         * cp-support.h (cp_lookup_symbol_nonlocal,
5025         cp_lookup_symbol_from_namespace,
5026         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5027         Return struct block_symbol instead of mere symbols.
5028         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5029         push_module_name):
5030         Deal with struct block_symbol from lookup functions.  Remove
5031         uses of block_found.
5032         * eval.c (evaluate_subexp_standard): Update call to
5033         cp_lookup_symbol_namespace.
5034         * f-exp.y: Deal with struct block_symbol from lookup functions.
5035         Remove uses of block_found.
5036         (yylex): Likewise.
5037         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5038         lookup_enum, lookup_template_type, check_typedef): Deal with
5039         struct block_symbol from lookup functions.
5040         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5041         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5042         (gdbscm_lookup_global_symbol): Likewise.
5043         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5044         * go-exp.y: Likewise.  Remove uses of block_found.
5045         (package_name_p, classify_packaged_name, classify_name):
5046         Likewise.
5047         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5048         * jv-exp.y (push_variable): Likewise.
5049         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5050         * language.c (language_bool_type): Likewise.
5051         * language.h (struct language_defn): Update
5052         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5053         than a mere symbol.
5054         * linespec.c (find_label_symbols): Deal with struct block_symbol
5055         from lookup functions.
5056         * m2-exp.y: Likewise.  Remove uses of block_found.
5057         (yylex): Likewise.
5058         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5059         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5060         * p-exp.y: Likewise.  Remove uses of block_found.
5061         (yylex): Likewise.
5062         * p-valprint.c (pascal_val_print): Likewise.
5063         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5064         block_found.
5065         * parser-defs.h (struct symtoken): Turn the SYM field into a
5066         struct block_symbol.
5067         * printcmd.c (address_info): Deal with struct block_symbol from
5068         lookup functions.
5069         * python/py-frame.c (frapy_read_var): Likewise.
5070         * python/py-symbol.c (gdbpy_lookup_symbol,
5071         gdbpy_lookup_global_symbol): Likewise.
5072         * skip.c (skip_function_command): Likewise.
5073         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5074         block_symbol instead of a mere symbol.
5075         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5076         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5077         * solib.c (solib_global_lookup): Likewise.
5078         * solist.h (solib_global_lookup): Likewise.
5079         (struct target_so_ops): Update lookup_lib_global_symbol to
5080         return a struct block_symbol rather than a mere symbol.
5081         * source.c (select_source_symtab): Deal with struct block_symbol
5082         from lookup functions.
5083         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5084         Likewise.
5085         * symfile.c (set_initial_language): Likewise.
5086         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5087         block_symbol.
5088         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5089         (struct symbol_cache_slot): Turn the FOUND field into a struct
5090         block_symbol.
5091         (block_found): Remove.
5092         (eq_symbol_entry): Update to deal with struct block_symbol in
5093         cache slots.
5094         (symbol_cache_lookup): Return a struct block_symbol rather than
5095         a mere symbol.
5096         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5097         appropriately the cache slots.  Update callers.
5098         (symbol_cache_dump): Update cache slots handling to the type
5099         change.
5100         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5101         lookup_symbol_aux, lookup_local_symbol,
5102         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5103         lookup_symbol_in_objfile_symtabs,
5104         lookup_symbol_in_objfile_from_linkage_name,
5105         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5106         lookup_symbol_in_static_block, lookup_static_symbol,
5107         lookup_global_symbol):
5108         Return a struct block_symbol rather than a mere symbol.  Deal
5109         with struct block_symbol from other lookup functions.  Remove
5110         uses of block_found.
5111         (lookup_symbol_in_block): Remove uses of block_found.
5112         (struct global_sym_lookup_data): Turn the RESULT field into a
5113         struct block_symbol.
5114         (lookup_symbol_global_iterator_cb): Update references to the
5115         RESULT field.
5116         (search_symbols): Deal with struct block_symbol from lookup
5117         functions.
5118         * symtab.h (struct block_symbol): New structure.
5119         (block_found): Remove.
5120         (lookup_symbol_in_language, lookup_symbol,
5121         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5122         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5123         lookup_global_symbol_from_objfile): Return a struct block_symbol
5124         rather than just a mere symbol.  Update comments to remove
5125         mentions of block_found.
5126         * valops.c (find_function_in_inferior,
5127         value_struct_elt_for_reference, value_maybe_namespace_elt,
5128         value_of_this):  Deal with struct block_symbol from lookup
5129         functions.
5130         * value.c (value_static_field, value_fn_field): Likewise.
5131
5132 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5133
5134         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5135         instead of integer.
5136
5137 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5138             Pedro Alves  <palves@redhat.com>
5139
5140         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5141         type or value instead of integer.
5142         (aarch64_linux_insert_watchpoint): Likewise.
5143         (aarch64_linux_remove_watchpoint): Likewise.
5144         * ada-lang.c (ada_op_print_tab): Likewise.
5145         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5146         (amd64_linux_syscall_record_common): Likewise.
5147         * arch-utils.c (target_byte_order_user): Likewise.
5148         (default_byte_order): Likewise.
5149         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5150         (arm_linux_get_hwbp_type): Likewise.
5151         (arm_linux_hw_watchpoint_initialize): Likewise.
5152         (arm_linux_insert_watchpoint): Likewise.
5153         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5154         (arm_linux_syscall_record): Likewise.
5155         * breakpoint.c (update_watchpoint): Likewise.
5156         (breakpoint_here_p): Likewise.
5157         (bpstat_print): Likewise.
5158         (enable_breakpoint_disp): Likewise.
5159         * c-lang.c (c_op_print_tab): Likewise.
5160         * cli/cli-decode.c (add_info_alias): Likewise.
5161         * d-lang.c (d_op_print_tab): Likewise.
5162         * eval.c (evaluate_subexp_standard): Likewise.
5163         * f-exp.y (dot_ops): Likewise.
5164         (f77_keywords): Likewise.
5165         * f-lang.c (f_op_print_tab): Likewise.
5166         * go-lang.c (go_op_print_tab): Likewise.
5167         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5168         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5169         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5170         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5171         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5172         (struct scm_from_stringn_data): Likewise.
5173         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5174         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5175         (ia64_linux_remove_watchpoint): Likewise.
5176         (ia64_linux_can_use_hw_breakpoint): Likewise.
5177         * infrun.c (print_stop_event): Likewise.
5178         * jv-lang.c (java_op_print_tab): Likewise.
5179         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5180         * linux-nat.h (struct lwp_info): Likewise.
5181         * linux-thread-db.c (enable_thread_event): Likewise.
5182         * m2-lang.c (m2_op_print_tab): Likewise.
5183         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5184         (mi_cmd_stack_list_variables): Likewise.
5185         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5186         * mi/mi-out.c (mi_table_begin): Likewise.
5187         (mi_table_header): Likewise.
5188         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5189         (mips_linux_insert_watchpoint): Likewise.
5190         (mips_linux_remove_watchpoint): Likewise.
5191         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5192         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5193         (mips_linux_watch_type_to_irw): Likewise.
5194         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5195         (procfs_insert_hw_watchpoint): Likewise.
5196         (procfs_remove_hw_watchpoint): Likewise.
5197         (procfs_hw_watchpoint): Likewise.
5198         (procfs_can_use_hw_breakpoint): Likewise.
5199         (procfs_remove_hw_watchpoint): Likewise.
5200         (procfs_insert_hw_watchpoint): Likewise.
5201         * p-lang.c (pascal_op_print_tab): Likewise.
5202         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5203         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5204         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5205         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5206         (procfs_insert_watchpoint): Likewise.
5207         (procfs_remove_watchpoint): Likewise.
5208         * psymtab.c (recursively_search_psymtabs): Likewise.
5209         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5210         (m32r_insert_watchpoint): Likewise.
5211         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5212         (mips_insert_watchpoint): Likewise.
5213         (mips_remove_watchpoint): Likewise.
5214         * remote.c (watchpoint_to_Z_packet): Likewise.
5215         (remote_insert_watchpoint): Likewise.
5216         (remote_remove_watchpoint): Likewise.
5217         (remote_check_watch_resources): Likewise.
5218         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5219         (s390_remove_watchpoint): Likewise.
5220         (s390_can_use_hw_breakpoint): Likewise.
5221         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5222         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5223         * target.h (struct target_ops): Likewise.
5224         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5225         * ui-out.c (struct ui_out_hdr): Likewise.
5226         (append_header_to_list): Likewise.
5227         (get_next_header): Likewise.
5228         (verify_field): Likewise.
5229         (ui_out_begin): Likewise.
5230         (ui_out_field_int): Likewise.
5231         (ui_out_field_fmt_int): Likewise.
5232         (ui_out_field_skip): Likewise.
5233         (ui_out_field_string): Likewise.
5234         (ui_out_field_fmt): Likewise.
5235         * varobj.c (new_variable): Likewise.
5236         * x86-nat.c (x86_insert_watchpoint): Likewise.
5237         (x86_remove_watchpoint): Likewise.
5238         (x86_can_use_hw_breakpoint): Likewise.
5239         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5240         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5241         previously anonymous enumeration type..
5242         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5243         value.
5244         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5245         (target_debug_print_enum_bptype): New.
5246         * target-delegates.c: Regenerate.
5247
5248 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5249
5250         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5251         already says and disallow non-stack memory writes in the prologue.
5252
5253 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5254
5255         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5256         reflect how current GCC emits stack overflow checks.  Match
5257         both trap and break instructions for backward compatbility.
5258         Disallow other trap and break instructions in the prologue.
5259
5260 2015-07-30  Pedro Alves  <palves@redhat.com>
5261
5262         PR threads/18600
5263         * linux-nat.c (wait_lwp): Report to the core when thread group
5264         leader exits.
5265
5266 2015-07-30  Pedro Alves  <palves@redhat.com>
5267             Simon Marchi  <simon.marchi@ericsson.com>
5268
5269         PR threads/18600
5270         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5271         mark the new thread as resumed.  Remove STOPPING parameter.
5272         (wait_lwp): Adjust call to linux_handle_extended_wait.
5273         (linux_nat_filter_event): Adjust call to
5274         linux_handle_extended_wait.
5275         (resume_stopped_resumed_lwps): Add debug output.
5276
5277 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5278
5279         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5280         isize argument.
5281         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5282         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5283         gdbarch_fast_tracepoint_valid_at.
5284         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5285         * gdbarch.h: Regenerate.
5286         * gdbarch.c: Regenerate.
5287         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5288         argument.  Do not set it.
5289         * remote.c (remote_download_tracepoint): Adjust call to
5290         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5291         the instruction length.
5292
5293 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5294
5295         * arm-tdep.h (enum gdb_regnum): Move it to ...
5296         * arch/arm.h: ... here.  New file.
5297         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5298
5299 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5300
5301         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5302         Change its type to int *.
5303         (decode_br): Rename link argument to is_blr.  Change its type to
5304         int *.
5305         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5306         int *.
5307         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5308         int *.  Set is_tbnz to either 1 or 0.
5309         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5310         new variables is_cbnz and is_tbnz.  Adjust call to
5311         aarch64_decode_cb and aarch64_decode_tb.
5312
5313 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5314
5315         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5316         parameter.
5317         (mips_linux_new_thread): Likewise.
5318         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5319
5320 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5321
5322         * top.c: Include "tui/tui.h".
5323         (undo_terminal_modifications_before_exit): New static function.
5324         (quit_force): Use it.
5325
5326 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5327
5328         * target.c (terminal_state): Initialize to terminal_is_ours.
5329
5330 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5331
5332         PR record/18691
5333         * dcache.c (dcache_read_memory_partial): Call
5334         raw_memory_xfer_partial.
5335         * target.c (raw_memory_xfer_partial): Make it non-static.
5336         * target.h (raw_memory_xfer_partial): Declare.
5337
5338 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5339
5340         * c-valprint.c (c_val_print_array): Consider addressable memory
5341         unit size.
5342         (c_val_print_ptr): Likewise.
5343         (c_val_print_int): Likewise.
5344         * findvar.c (read_frame_register_value): Likewise.
5345         * valarith.c (find_size_for_pointer_math): Likewise.
5346         (value_ptrdiff): Likewise.
5347         (value_subscripted_rvalue): Likewise.
5348         * valops.c (read_value_memory): Likewise (and rename variables).
5349         (value_assign): Likewise.
5350         (value_repeat): Likewise.
5351         (value_array): Likewise.
5352         (value_slice): Likewise.
5353         * valprint.c (generic_val_print_ptr): Likewise.
5354         (generic_val_print_enum): Likewise.
5355         (generic_val_print_bool): Likewise.
5356         (generic_val_print_int): Likewise.
5357         (generic_val_print_char): Likewise.
5358         (generic_val_print_float): Likewise.
5359         (generic_val_print_decfloat): Likewise.
5360         (generic_val_print_complex): Likewise.
5361         (val_print_scalar_formatted): Likewise.
5362         (val_print_array_elements): Likewise.
5363         * value.c (set_value_parent): Likewise.
5364         (value_contents_copy_raw): Likewise.
5365         (set_internalvar_component): Likewise.
5366         (value_primitive_field): Likewise.
5367         (value_fetch_lazy): Likewise.
5368         * value.h (read_value_memory): Update comment.
5369
5370 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5371
5372         * value.c (get_value_arch): New function.
5373         * value.h (get_value_arch): New declaration.
5374
5375 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5376
5377         * value.c (struct value): Update comments.
5378
5379 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5380
5381         * gdbtypes.c (type_length_units): New function.
5382         * gdbtypes.h (type_length_units): New declaration.
5383         (struct type) <length>: Update comment.
5384
5385 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5386
5387         * valprint.c (generic_val_print): Factor out complex
5388         printing code to ...
5389         (generic_val_print_complex): ... this new function.
5390
5391 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5392
5393         * valprint.c (generic_val_print): Factor out decfloat
5394         printing code to ...
5395         (generic_val_print_decfloat): ... this new function.
5396
5397 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5398
5399         * valprint.c (generic_val_print): Factor out float
5400         printing code to ...
5401         (generic_val_print_float): ... this new function.
5402
5403 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5404
5405         * valprint.c (generic_val_print): Factor out char
5406         printing code to ...
5407         (generic_val_print_char): ... this new function.
5408
5409 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5410
5411         * valprint.c (generic_val_print): Factor out integer
5412         printing code to ...
5413         (generic_val_print_int): ... this new function.
5414
5415 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5416
5417         * valprint.c (generic_val_print): Factor out bool
5418         printing code to ...
5419         (generic_val_print_bool): ... this new function.
5420
5421 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5422
5423         * valprint.c (generic_val_print): Factor out function/method
5424         printing code to ...
5425         (generic_val_print_func): ... this new function.
5426
5427 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5428
5429         * valprint.c (generic_val_print): Factor out flags
5430         printing code to ...
5431         (generic_val_print_flags): ... this new function.
5432
5433 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5434
5435         * valprint.c (generic_val_print): Factor out enum
5436         printing code to ...
5437         (generic_val_print_enum): ... this new function.
5438
5439 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5440
5441         * valprint.c (generic_val_print): Factor out reference
5442         printing code to ...
5443         (generic_val_print_ref): ... this new function.
5444
5445 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5446
5447         * valprint.c (generic_val_print): Factor out memberptr
5448         printing code to ...
5449         (generic_val_print_memberptr): ... this new function.
5450
5451 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5452
5453         * valprint.c (generic_val_print): Factor out pointer
5454         printing code to ...
5455         (generic_val_print_ptr): ... this new function.
5456
5457 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5458
5459         * valprint.c (generic_val_print): Factor out array
5460         printing code to ...
5461         (generic_val_print_array): ... this new function.
5462
5463 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5464
5465         * valprint.c (generic_val_print): Factor out
5466         print_unpacked_pointer code to ...
5467         (print_unpacked_pointer): ... this new function.
5468
5469 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5470
5471         * event-top.c (handle_sigterm): Don't inspect
5472         target_can_async_p.  Always set the quit flag and always mark
5473         the async signal handler.
5474
5475 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5476
5477         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5478
5479 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5480
5481         * remote.c (read_ptid): Return null_ptid when no thread id
5482         is found.
5483         (remote_current_thread): Add log warning for malformed
5484         qC reply.
5485         (remote_start_remote): Add log warning when current thread
5486         not found.
5487
5488 2015-07-24  Pedro Alves  <palves@redhat.com>
5489
5490         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5491         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5492         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5493
5494 2015-07-24  Pedro Alves  <palves@redhat.com>
5495
5496         PR gdb/18717
5497         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5498         is resumed, and extend the debug log.
5499
5500 2015-07-24  Pedro Alves  <palves@redhat.com>
5501
5502         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5503
5504 2015-07-24  Pedro Alves  <palves@redhat.com>
5505
5506         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5507         sys/ptrace.h.
5508         * alpha-linux-nat.c: Likewise.
5509         * amd64-linux-nat.c: Likewise.
5510         * arm-linux-nat.c: Likewise.
5511         * hppa-linux-nat.c: Likewise.
5512         * i386-linux-nat.c: Likewise.
5513         * ia64-linux-nat.c: Likewise.
5514         * linux-fork.c: Likewise.
5515         * linux-nat.c: Likewise.
5516         * m32r-linux-nat.c: Likewise.
5517         * m68klinux-nat.c: Likewise.
5518         * mips-linux-nat.c: Likewise.
5519         * nat/linux-btrace.c: Likewise.
5520         * nat/linux-ptrace.c: Likewise.
5521         * nat/linux-ptrace.h
5522         * nat/mips-linux-watch.c: Likewise.
5523         * nat/x86-linux-dregs.c: Likewise.
5524         * ppc-linux-nat.c: Likewise.
5525         * s390-linux-nat.c: Likewise.
5526         * spu-linux-nat.c: Likewise.
5527         * tilegx-linux-nat.c: Likewise.
5528         * x86-linux-nat.c: Likewise.
5529         * xtensa-linux-nat.c: Likewise.
5530
5531 2015-07-24  Pedro Alves  <palves@redhat.com>
5532
5533         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5534         __ptrace_request as first parameter type instead of int.
5535         (PTRACE_TYPE_ARG1): Define.
5536         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5537         that casts first argument to PTRACE_TYPE_ARG1.
5538         * config.in: Regenerate.
5539         * configure: Regenerate.
5540
5541 2015-07-24  Pedro Alves  <palves@redhat.com>
5542
5543         * gdb_ptrace.h: Move ...
5544         * nat/gdb_ptrace.h: ... here.
5545         * inf-ptrace.c: Adjust.
5546
5547 2015-07-24  Pedro Alves  <palves@redhat.com>
5548
5549         * acinclude.m4: Include ptrace.m4.
5550         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5551         * ptrace.m4: ... to this new file.
5552
5553 2015-07-23  Doug Evans  <dje@google.com>
5554
5555         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5556         (load_cu): Handle dummy CUs.
5557         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5558         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5559
5560 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5561
5562         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5563         documentation to say that it returns a list rather than
5564         a FrozenSet.
5565         (linetable_object_methods): Update the docstring of the
5566         "source_line" entry.
5567
5568 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5569
5570         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5571         type to the recursive call instead of the original (maybe
5572         TYPE_CODE_TYPEDEF) type.
5573
5574 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5575
5576         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5577         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5578         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5579
5580 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5581
5582         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5583         Move it to nat/aarch64-linux-hw-point.c.
5584         (aarch64_linux_child_post_startup_inferior): Update.
5585         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5586         New function.
5587         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5588         Declare it.
5589
5590 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5591
5592         * common/btrace-common.c (btrace_data_append): Change case label.
5593
5594 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5595
5596         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5597         Re-indent the code.
5598         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5599         "unsigned long long".
5600
5601 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5602
5603         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5604         to be set for SEC_ALLOC sections too.
5605
5606 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5607
5608         * Makefile.in (HFILES_NO_SRCDIR): Add
5609         nat/aarch64-linux-hw-point.h.
5610         (aarch64-linux-hw-point.o): New rule.
5611         * nat/aarch64-linux-hw-point.h: New file.
5612         * nat/aarch64-linux-hw-point.c: New file.
5613         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5614         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5615         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5616         (AARCH64_HWP_ALIGNMENT): Likewise.
5617         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5618         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5619         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5620         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5621         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5622         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5623         (struct aarch64_debug_reg_state): Likewise.
5624         (struct arch_lwp_info): Likewise.
5625         (aarch64_linux_set_debug_regs): Likewise.
5626         (aarch64_notify_debug_reg_change): Remove static.
5627         (aarch64_align_watchpoint): Likewise.
5628         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5629         (aarch64_watchpoint_length): Likewise.
5630         (aarch64_point_encode_ctrl_reg): Likewise
5631         (aarch64_point_is_aligned): Likewise.
5632         (aarch64_dr_state_insert_one_point): Likewise.
5633         (aarch64_dr_state_remove_one_point): Likewise.
5634         (aarch64_handle_breakpoint): Likewise.
5635         (aarch64_handle_aligned_watchpoint): Likewise.
5636         (aarch64_handle_unaligned_watchpoint): Likewise.
5637         (aarch64_handle_watchpoint): Likewise.
5638         * config/aarch64/linux.mh (NAT_FILE): Add
5639         aarch64-linux-hw-point.o.
5640
5641 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5642
5643         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5644         state and don't call aarch64_get_debug_reg_state.  All callers
5645         update.
5646         (aarch64_linux_insert_hw_breakpoint): Call
5647         aarch64_get_debug_reg_state earlier.
5648         (aarch64_linux_remove_hw_breakpoint): Likewise.
5649         (aarch64_handle_aligned_watchpoint): Add argument state and
5650         don't call aarch64_get_debug_reg_state.  All callers update.
5651         (aarch64_handle_unaligned_watchpoint): Likewise.
5652         (aarch64_handle_watchpoint): Add argument state.
5653         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5654         earlier.
5655         (aarch64_linux_remove_watchpoint): Likewise.
5656
5657 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5658
5659         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5660         debug_printf.
5661         (aarch64_handle_unaligned_watchpoint): Likewise.
5662
5663 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5664
5665         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5666         argument type's type to 'enum target_hw_bp_type'.
5667         (aarch64_dr_state_remove_one_point): Likewise.
5668         (aarch64_handle_breakpoint): Likewise.
5669         (aarch64_linux_insert_hw_breakpoint): Likewise.
5670         (aarch64_linux_remove_hw_breakpoint): Likewise.
5671         (aarch64_handle_aligned_watchpoint): Likewise.
5672
5673 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5674
5675         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5676         ptid_get_pid instead of get_thread_id.
5677
5678 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5679
5680         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5681         (add_current_inferior_and_thread): Don't initialise ptid.
5682
5683 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5684
5685         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5686         unavailable if invalid.
5687
5688 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5689
5690         Revert the previous 6 commits:
5691         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5692         Move gdb_regex* to common/
5693         Prepare linux_find_memory_regions_full & co. for move
5694         Move linux_find_memory_regions_full & co.
5695         gdbserver build-id attribute generator
5696         Validate symbol file using build-id
5697
5698 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5699             Jan Kratochvil  <jan.kratochvil@redhat.com>
5700
5701         Validate symbol file using build-id.
5702         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5703         and 'show validate-build-id'.  Add build-id attribute.
5704         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5705         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5706         * solib-frv.c (_initialize_frv_solib): Ditto.
5707         * solib-spu.c (set_spu_solib_ops): Ditto.
5708         * solib-svr4.c: Include rsp-low.h.
5709         (NOTE_GNU_BUILD_ID_NAME): New define.
5710         (svr4_validate): New function.
5711         (svr4_copy_library_list): Duplicate field build_id.
5712         (library_list_start_library): Parse 'build-id' attribute.
5713         (svr4_library_attributes): Add 'build-id' attribute.
5714         (_initialize_svr4_solib): Assign validate value.
5715         * solib-target.c (solib.h): Include.
5716         (_initialize_solib_target): Assign validate value.
5717         * solib.c (validate_build_id, show_validate_build_id): New.
5718         (solib_map_sections): Use ops->validate.
5719         (clear_so): Free build_id.
5720         (default_solib_validate): New function.
5721         (_initialize_solib): Add "validate-build-id".
5722         * solib.h (default_solib_validate): New declaration.
5723         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5724         (target_so_ops): New field 'validate'.
5725
5726 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5727             Jan Kratochvil  <jan.kratochvil@redhat.com>
5728
5729         gdbserver build-id attribute generator.
5730         * features/library-list-svr4.dtd (library-list-svr4): New
5731         'build-id' attribute.
5732
5733 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5734             Jan Kratochvil  <jan.kratochvil@redhat.com>
5735
5736         Move linux_find_memory_regions_full & co.
5737         * linux-tdep.c (nat/linux-maps.h): Include.
5738         (gdb_regex.h): Remove the include.
5739         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5740         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5741         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5742         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5743         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5744         and target/target.h.
5745         (struct smaps_vmflags, read_mapping, decode_vmflags)
5746         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5747         (linux_find_memory_regions_full): Move from linux-tdep.c.
5748         * nat/linux-maps.h (read_mapping): New declaration.
5749         (linux_find_memory_region_ftype, enum filterflags): Moved from
5750         linux-tdep.c.
5751         (linux_find_memory_regions_full): New declaration.
5752         * target.c (target/target-utils.h): Include.
5753         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5754         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5755         definitions to target/target-utils.c.
5756         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5757         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5758         from target.c.
5759         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5760         (read_alloc): New declaration.
5761         (read_stralloc_func_ftype): New typedef.
5762         (read_stralloc): New declaration.
5763         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5764
5765 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5766             Jan Kratochvil  <jan.kratochvil@redhat.com>
5767
5768         Prepare linux_find_memory_regions_full & co. for move.
5769         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5770         (linux_find_memory_regions_full): Change signature and prepare
5771         for moving to linux-maps.
5772         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5773         (linux_find_memory_regions_thunk): New.
5774         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5775         (linux_find_memory_regions_gdb): New.
5776         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5777         (linux_make_mappings_corefile_notes): Use
5778         linux_find_memory_regions_gdb.
5779         * target.c (read_alloc_pread_ftype): New typedef.
5780         (target_fileio_read_alloc_1_pread): New function.
5781         (read_alloc): Refactor from target_fileio_read_alloc_1.
5782         (read_stralloc_func_ftype): New typedef.
5783         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5784         (read_stralloc): Refactored from target_fileio_read_stralloc.
5785         (target_fileio_read_stralloc): New implementation, use read_stralloc.
5786
5787 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5788
5789         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5790         common/gdb_regex.h.
5791         (COMMON_OBS): Add gdb_regex.o.
5792         (gdb_regex.o): New.
5793         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5794         --without-included-regex and USE_INCLUDED_REGEX.
5795         * common/gdb_regex.c: New file from utils.c functions.
5796         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5797         file wrapping define name.
5798         * configure: Rebuilt.
5799         * configure.ac (gdb_use_included_regex, --without-included-regex)
5800         (USE_INCLUDED_REGEX): Move them to common/common.m4.
5801         * gdb_regex.h: Move it to common/gdb_regex.h.
5802         * utils.c: Remove include gdb_regex.h.
5803         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5804         (compile_rx_or_error): Move them to common/gdb_regex.c.
5805
5806 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5807             Jan Kratochvil  <jan.kratochvil@redhat.com>
5808
5809         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5810         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5811         common/target-utils.h.
5812         (COMMON_OBS): Add target-utils.o.
5813         (linux-maps.o, target-utils.o): New.
5814         * target/target-utils.c: New file.
5815         * target/target-utils.h: New file.
5816         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5817         * config/i386/linux64.mh (NATDEPFILES): Ditto.
5818         * nat/linux-maps.c: New file.
5819         * nat/linux-maps.h: New file.
5820
5821 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
5822             Pedro Alves <palves@redhat.com>
5823
5824         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5825         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5826         (perf_event_read_bts): Change the type of SIZE and READ.
5827         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5828         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
5829         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
5830         mmap page.
5831         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
5832         buffer size to UINT_MAX.
5833         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5834         DATA_TAIL.
5835         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5836         <last_head>: Change type.
5837         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5838         * common/btrace-common.c (btrace_data_append): Change the type of
5839         SIZE.
5840         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
5841         check.
5842
5843 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
5844
5845         * gdbtypes.h (CHECK_TYPEDEF): Remove.
5846         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5847         with check_typedef.
5848         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5849         (ada_array_length): Likewise.
5850         (find_parallel_type_by_descriptive_type): Likewise.
5851         (ada_check_typedef): Likewise.
5852         * arm-tdep.c (arm_return_in_memory): Likewise.
5853         * ax-gdb.c (gen_trace_static_fields): Likewise.
5854         (gen_struct_ref_recursive): Likewise.
5855         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5856         (variable: block COLONCOLON name): Likewise.
5857         (qualified_name: TYPENAME COLONCOLON name): Likewise.
5858         * c-lang.c (classify_type): Likewise.
5859         * c-typeprint.c (c_print_type): Likewise.
5860         (c_print_typedef): Likewise.
5861         (c_type_print_base): Likewise.
5862         * c-valprint.c (c_val_print): Likewise.
5863         * compile/compile-c-types.c (convert_type): Likewise.
5864         * compile/compile-object-load.c (get_out_value_type): Likewise.
5865         * completer.c (add_struct_fields): Likewise.
5866         (expression_completer): Likewise.
5867         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5868         (cp_lookup_nested_symbol_1): Likewise.
5869         (cp_lookup_nested_symbol): Likewise.
5870         * cp-valprint.c (cp_print_value_fields): Likewise.
5871         (cp_print_static_field): Likewise.
5872         * d-valprint.c (d_val_print): Likewise.
5873         * eval.c (evaluate_subexp_standard): Likewise.
5874         (evaluate_subexp_for_sizeof): Likewise.
5875         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5876         * f-typeprint.c (f_type_print_base): Likewise.
5877         * f-valprint.c (f_val_print): Likewise.
5878         * gdbtypes.c (get_discrete_bounds): Likewise.
5879         (create_array_type_with_stride): Likewise.
5880         (type_name_no_tag_or_error): Likewise.
5881         (lookup_struct_elt_type): Likewise.
5882         (get_unsigned_type_max): Likewise.
5883         (internal_type_vptr_fieldno): Likewise.
5884         (set_type_vptr_fieldno): Likewise.
5885         (internal_type_vptr_basetype): Likewise.
5886         (set_type_vptr_basetype): Likewise.
5887         (get_vptr_fieldno): Likewise.
5888         (is_integral_type): Likewise.
5889         (is_scalar_type): Likewise.
5890         (is_scalar_type_recursive): Likewise.
5891         (distance_to_ancestor): Likewise.
5892         (is_unique_ancestor_worker): Likewise.
5893         (check_types_equal): Likewise.
5894         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5895
5896 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5897
5898         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5899         also test for language_d.
5900         (dwarf2_compute_name): Likewise.
5901         (read_func_scope): Likewise.
5902         (read_structure_type): Likewise.
5903         (new_symbol_full): Likewise.
5904         (determine_prefix): Likewise.
5905         (read_import_statement): Use dot as the separator for language_d.
5906         (typename_concat): Likewise, but don't prefix the D main function.
5907
5908 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
5909
5910         * nat/linux-namespaces.c (setns): Rename from this ...
5911         (do_setns): ... to this.  Support calling setns if it exists.
5912         (mnsh_handle_setns): Call do_setns.
5913
5914 2015-07-13  Yao Qi  <yao.qi@linaro.org>
5915
5916         * exec.c (exec_file_attach): Add period at the end of error
5917         message.
5918
5919 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
5920
5921         * tui/tui-win.c (window_name_completer): New function.
5922         (focus_completer): Call window_name_completer.  All old content
5923         moved into window_name_completer.
5924         (winheight_completer): New function.
5925         (_initialize_tui_win): Rename variable.  Add completer to
5926         winheight command.  Update doc string on winheight.
5927
5928 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
5929
5930         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5931         all nios2 mach variants.
5932
5933 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
5934
5935         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5936         of target_read_memory.
5937
5938 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5939
5940         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5941         string copy.
5942         (parse_scrolling_args): Likewise.
5943
5944 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5945
5946         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5947         names in this function.
5948
5949 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
5950
5951         * tui/tui-data.h (SRC_NAME): Convert to lower case.
5952         (CMD_NAME): Likewise.
5953         (DATA_NAME): Likewise.
5954         (DISASSEM_NAME): Likewise.
5955         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5956         (tui_set_win_height): Likewise.
5957         (parse_scrolling_args): Likewise.
5958
5959 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
5960
5961         * record-btrace.c (record_btrace_goto_begin)
5962         (record_btrace_goto_end, record_btrace_goto): Move call to
5963         print_stack_frame ...
5964         (record_btrace_set_replay): ... here.  Set stop_pc.
5965         * record-full.c (record_full_goto_entry): Set stop_pc.
5966
5967 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5968
5969         * NEWS: Mention support for tracepoints on aarch64-linux.
5970
5971 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5972
5973         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5974         function.  Return 1.
5975         (the_low_target): Install it.
5976
5977 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5978
5979         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5980         * gdb.trace/collection.exp: Likewise.
5981         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5982         * gdb.trace/mi-trace-unavailable.exp: Likewise.
5983         * gdb.trace/report.exp: Likewise.
5984         * gdb.trace/trace-break.exp: Likewise.
5985         * gdb.trace/unavailable.exp: Likewise.
5986         * gdb.trace/while-dyn.exp: Likewise.
5987
5988 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5989
5990         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5991         (aarch64_gen_return_address): New function.
5992         (aarch64_gdbarch_init): Hook it.
5993
5994 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
5995
5996         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5997         swallow NOT_AVAILABLE_ERROR.
5998         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5999         available_p is not set.
6000         (aarch64_stub_frame_unwind_stop_reason): New function.
6001         (aarch64_stub_unwind): Install it.
6002
6003 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6004
6005         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6006         field.
6007         (aarch64_make_prologue_cache_1): New function, factored out from
6008         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6009         available_p.
6010         (aarch64_make_prologue_cache): Reimplement wrapping
6011         aarch64_make_prologue_cache_1, and swallowing
6012         NOT_AVAILABLE_ERROR.
6013         (aarch64_prologue_frame_unwind_stop_reason): New function.
6014         Return UNWIND_UNAVAILABLE if available_p is not set.
6015         (aarch64_prologue_unwind): Install it.
6016         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6017         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6018         frame_id_build_unavailable_stack if available_p is not set.
6019
6020 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6021
6022         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6023         fields.
6024         (aarch64_scan_prologue): Set prev_pc.
6025         (aarch64_make_prologue_cache): Set func.
6026         (aarch64_make_stub_cache): Set prev_pc.
6027         (aarch64_prologue_this_id): Remove local variables id, pc and
6028         func.  Read prev_pc and func from cache.
6029         (aarch64_stub_this_id): Read prev_pc from cache.
6030
6031 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6032
6033         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6034         argument this_cache.  Remove unused local variables reg and
6035         unwound_fp.  Return early if this_cache is already set.  Set
6036         this_cache.
6037         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6038
6039 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6040
6041         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6042         New argument this_cache.  Return early if this_cache is already
6043         set.  Set this_cache.
6044         (aarch64_prologue_this_id): Update call to
6045         aarch64_make_prologue_cache.
6046         (aarch64_prologue_prev_register): Likewise.
6047         (aarch64_normal_frame_base): Likewise.
6048
6049 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6050
6051         * c-valprint.c (c_val_print): Factor out memberptr printing code
6052         from c_val_print to ...
6053         (c_val_print_memberptr): ... this new function.
6054
6055 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6056
6057         * c-valprint.c (c_val_print): Factor out int printing code to ...
6058         (c_val_print_int): ... this new function.
6059
6060 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6061
6062         * c-valprint.c (c_val_print): Factor out struct and union
6063         printing code to ...
6064         (c_val_print_struct): ... this new function ...
6065         (c_val_print_union): ... and this new function.
6066
6067 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6068
6069         * c-valprint.c (c_val_print): Factor out pointer printing code
6070         to ...
6071         (c_val_print_ptr): ... this new function.
6072
6073 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6074
6075         * c-valprint.c (c_valprint): Factor our array printing code from
6076         c_val_print to ...
6077         (c_val_print_array): ... this new function.
6078
6079 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6080
6081         * c-valprint.c (c_val_print): Factor out pointer printing code
6082         to ...
6083         (print_unpacked_pointer): ... this new function.
6084
6085 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6086
6087         * c-valprint.c (c_val_print): Remove an assignment to i and move
6088         its declaration.
6089
6090 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6091
6092         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6093         argument ptid.  Update comments.  Caller update.
6094
6095 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6096
6097         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6098         mnt packets.
6099
6100 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6101
6102         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6103
6104 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6105
6106         * progspace.c (delete_program_space): Add missing spaces.
6107
6108 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6109
6110         * inferior.c (delete_inferior_1): Rename to ...
6111         (delete_inferior): ..., remove 'silent' parameter, delete
6112         program space when unused and remove call to prune_program_spaces.
6113         Remove the old, unused, delete_inferior.
6114         (delete_inferior_silent): Remove.
6115         (prune_inferiors): Change call from delete_inferior_1 to
6116         delete_inferior and remove 'silent' parameter. Remove call to
6117         prune_program_spaces.
6118         (remove_inferior_command): Idem.
6119         * inferior.h (delete_inferior_1): Rename to...
6120         (delete_inferior): ..., remove 'silent' parameter and remove the
6121         original delete_inferior.
6122         (delete_inferior_silent): Remove.
6123         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6124         delete_inferior_1 to delete_inferior and remove 'silent'
6125         parameter.
6126         * progspace.c (prune_program_spaces): Remove.
6127         (pspace_empty_p): Rename to...
6128         (program_space_empty_p): ... and make non-static.
6129         (delete_program_space): New.
6130         * progspace.h (prune_program_spaces): Remove declaration.
6131         (program_space_empty_p): New declaration.
6132         (delete_program_space): New declaration.
6133         * monitor.c (monitor_close): Replace call to
6134         delete_thread_silent and delete_inferior_silent with
6135         discard_all_inferiors.
6136
6137 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6138
6139         * defs.h (deprecated_register_changed_hook): Remove prototype.
6140         * interps.c (clear_iterpreter_hooks): Remove reference to
6141         deprecated_register_changed_hook.
6142         * top.c (deprecated_register_changed_hook): Remove prototype.
6143         * valops.c (value_assign): Remove reference to
6144         deprecated_register_changed_hook.
6145         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6146         Add comment documenting the function.
6147         (tui_register_changed_observer): Define.
6148         (tui_install_hooks): Remove reference to
6149         deprecated_register_changed_hook.  Set
6150         tui_register_changed_observer.
6151         (tui_remove_hooks): Remove reference to
6152         deprecated_register_changed_hook.  Unset
6153         tui_register_changed_observer.
6154
6155 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6156
6157         PR compile/18484
6158         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6159
6160 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6161
6162         PR exp/18617
6163         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6164
6165 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6166
6167         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6168
6169 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6170
6171         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6172         Use safe_strerror() instead of strerror().
6173
6174 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6175
6176         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6177         * features/arm-with-m-fpa-layout.c: Regenerated.
6178         * features/arm-with-m-vfp-d16.xml: Likewise.
6179         * features/arm-with-m-vfp-d16.c: Regenerated.
6180         * features/arm-with-m.xml: Likewise.
6181         * features/arm-with-m.c: Regenerated.
6182         * features/arm-with-neon.xml: Likewise.
6183         * features/arm-with-neon.c: Regenerated.
6184         * features/arm-with-vfpv2.xml: Likewise.
6185         * features/arm-with-vfpv2.c: Regenerated.
6186         * features/arm-with-vfpv3.xml: Likewise.
6187         * features/arm-with-vfpv3.c: Regenerated.
6188
6189 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6190
6191         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6192         arm-linux-nat.c.
6193         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6194         elf/external.h.
6195         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6196         if target is 32-bit.
6197         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6198         if target is 32-bit.
6199         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6200         if target is 32-bit.
6201         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6202         if target is 32-bit.
6203         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6204         (aarch64_linux_read_description): Return the right target
6205         description.
6206         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6207         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6208         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6209         arm-linux-tdep.o.
6210
6211 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6212
6213         * aarch32-linux-nat.c: New file.
6214         * aarch32-linux-nat.h: New file.
6215         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6216         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6217         aarch32_gp_regcache_supply.
6218         (store_regs): Move code to aarch32-linux-nat.c.  Call
6219         aarch32_gp_regcache_collect.
6220         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6221         aarch32_vfp_regcache_supply.
6222         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6223         aarch32_vfp_regcache_collect.
6224         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6225
6226 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6227
6228         * arm-linux-nat.c (store_fpregister): Remove.
6229         (store_register): Likewise.
6230         (fetch_fpregister): Likewise.
6231         (fetch_register): Likewise.
6232         (arm_linux_store_inferior_registers): Call store_regs and
6233         store_fpregs instead.
6234         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6235         fetch_regs instead.
6236
6237 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6238
6239         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6240         and focus commands.
6241
6242 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6243
6244         * NEWS: Create a new section for the next release branch.
6245         Rename the section of the current branch, now that it has
6246         been cut.
6247
6248 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6249
6250         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6251         * version.in: Bump version to 7.10.50.DATE-cvs.
6252
6253 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6254
6255         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6256         breakpoints in a special way.
6257         (remove_breakpoint): Likewise.
6258         (mark_breakpoints_out): Likewise.
6259
6260 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6261
6262         * doc/gdb.texinfo (TUI): Add comma after @xref.
6263
6264 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6265
6266         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6267         instead of casting the structure type.
6268
6269 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6270
6271         * valops.c (search_struct_field): Remove OFFSET parameter.
6272         (value_cast_structs): Adjust calls to search_struct_field.
6273         (value_struct_elt): Same.
6274         (find_overload_match): Same.
6275
6276 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6277
6278         * value.c (value_fetch_lazy): Update comment, change return
6279         value to void.
6280         * value.h (value_fetch_lazy): Change return value to void.
6281
6282 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6283
6284         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6285         (tui_win_name): Make parameter and result const.
6286         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6287
6288 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6289
6290         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6291         use printf_unfiltered.
6292         (set_mpx_cmd): Add missing trailing space to command string
6293         literal.
6294         (_initialize_i386_tdep): Give the "mpx" prefix command its
6295         correct name.
6296
6297 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6298
6299         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6300         (enum rx_frame_type): New.
6301         (struct rx_prologue): Add new field `frame_type'.
6302         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6303         parameter in the prologue struct.  Add code for recording
6304         locations of PC and PSW for fast interrupt and exception frames.
6305         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6306         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6307         (rx_frame_type): New function.
6308         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6309         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6310         `this_cache'.
6311         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6312         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6313         RX_FRAME_TYPE_FAST_INTERRUPT.
6314         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6315         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6316         (rx_frame_unwind): Use rx_frame_sniffer instead of
6317         default_frame_sniffer.
6318         (rx_frame_unwind): New unwinder.
6319         (rx_gdbarch_init): Register new unwinder.
6320
6321 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6322
6323         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6324         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6325         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6326         and RX_FPSW_REGNUM.
6327         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6328
6329 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6330
6331         Fix GCC false warning.
6332         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6333
6334 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6335
6336         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6337         typo in the debugging message.
6338
6339 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6340
6341         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6342         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6343         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6344         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6345         (btrace_maint_clear): New.
6346         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6347         (pt_print_packet, btrace_maint_decode_pt)
6348         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6349         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6350         (maint_btrace_packet_history_cmd)
6351         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6352         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6353         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6354         (maint_info_btrace_cmd, _initialize_btrace): New.
6355         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6356         (btrace_maint_packet_history, btrace_maint_info): New.
6357         (btrace_thread_info) <maint>: New.
6358         * NEWS: Announce it.
6359
6360 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6361
6362         * btrace.c (btrace_fetch): Append the new trace data.
6363         (btrace_clear): Clear the stored trace data.
6364         * btrace.h (btrace_thread_info) <data>: New.
6365         * common/btrace-common.h (btrace_data_clear)
6366         (btrace_data_append): New.
6367         * common/btrace-common.c (btrace_data_clear)
6368         (btrace_data_append): New.
6369
6370 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6371
6372         * nat/linux-btrace.c (linux_enable_bts): Check for
6373         PERF_ATTR_SIZE_VER5.
6374         Check for data_offset and data_size fields.  Use them.
6375
6376 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6377
6378         * NEWS: Announce new commands "record btrace pt" and "record pt".
6379         Announce new options "set|show record btrace pt buffer-size".
6380         * btrace.c: Include "rsp-low.h".
6381         Include "inttypes.h".
6382         (btrace_add_pc): Add forward declaration.
6383         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6384         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6385         (btrace_compute_ftrace_pt): New.
6386         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6387         (check_xml_btrace_version): Update version check.
6388         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6389         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6390         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6391         (btrace_pt_children): New.
6392         (btrace_children): Add support for "pt".
6393         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6394         (btrace_conf_children): Add support for "pt".
6395         * btrace.h: Include "intel-pt.h".
6396         (btrace_pt_error): New.
6397         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6398         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6399         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6400         (struct btrace_config_pt): New.
6401         (struct btrace_config)<pt>: New.
6402         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6403         (struct btrace_data)<pt>: New.
6404         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6405         (pt): New.
6406         * features/btrace.dtd (btrace)<pt>: New.
6407         (pt, pt-config, cpu): New.
6408         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6409         (perf_event_pt_event_type, kernel_supports_pt)
6410         (linux_supports_pt): New.
6411         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6412         (linux_enable_bts): Free tinfo on error.
6413         (linux_enable_pt): New.
6414         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6415         (linux_disable_pt): New.
6416         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6417         (linux_fill_btrace_pt_config, linux_read_pt): New.
6418         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6419         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6420         (struct btrace_target_info)<pt>: New.
6421         * record-btrace.c (set_record_btrace_pt_cmdlist)
6422         (show_record_btrace_pt_cmdlist): New.
6423         (record_btrace_print_pt_conf): New.
6424         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6425         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6426         (cmd_record_btrace_pt_start): New.
6427         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6428         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6429         (_initialize_record_btrace): Add new commands.
6430         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6431         (remote_protocol_features): Add "Qbtrace:pt".
6432         Add "Qbtrace-conf:pt:size".
6433         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6434         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6435         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6436         (_initialize_remote): Add new commands.
6437
6438 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6439
6440         * configure.ac: check for libipt
6441         * configure: Regenerate.
6442         * config.in: Regenerate.
6443         * Makefile.in (LIBIPT): New.
6444         (CLIBS): Add $LIBIPT.
6445         * NEWS: document new configure options
6446
6447 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6448
6449         * compile/compile-object-load.c (compile_object_load): Replace debug
6450         message "lookup undefined ELF symbol" by 3 more specific messages.
6451
6452 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6453
6454         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6455         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6456         (rl78_gdbarch_init): Initialize rl78_psw_type.
6457
6458 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6459
6460         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6461         Update commentary.  Always refresh the registers when frame
6462         information has changed.
6463         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6464         Change return type to int.  Return 1 if frame information has
6465         changed, 0 otherwise.
6466         (tui_before_prompt): Update commentary.
6467         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6468         int.
6469
6470 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6471
6472         PR tui/13378
6473         * frame.c (select_frame): Remove reference to
6474         deprecated_selected_frame_level_changed_hook.
6475         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6476         declaration.
6477         * stack.c (deprecated_selected_frame_level_changed_hook):
6478         Likewise.
6479         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6480         Rename to ...
6481         (tui_refresh_frame_and_register_information): ... this.  Bail
6482         out if there is no stack.  Don't update register information
6483         unless registers_too_p is true.
6484         (tui_print_frame_info_listing_hook): Rename to ...
6485         (tui_dummy_print_frame_info_listing_hook): ... this.
6486         (tui_before_prompt): New function.
6487         (tui_normal_stop): New function.
6488         (tui_before_prompt_observer): New observer.
6489         (tui_normal_stop_observer): New observer.
6490         (tui_install_hooks): Set
6491         deprecated_print_frame_info_listing_hook to
6492         tui_dummy_print_frame_info_listing_hook.  Register
6493         tui_before_prompt_observer to call tui_before_prompt and
6494         tui_normal_stop_observer to call tui_normal_stop.  Remove
6495         reference to deprecated_selected_frame_level_changed_hook.
6496         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6497         and tui_normal_stop_observer.  Remove reference to
6498         deprecated_selected_frame_level_changed_hook.
6499
6500 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6501
6502         PR tui/13378
6503         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6504         return an int instead of void.  Return whether the locator
6505         window has changed.
6506         (tui_show_frame_info): If the locator info has not changed, then
6507         bail out early to avoid refreshing the windows.
6508
6509 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6510
6511         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6512         LOCATOR_WIN to tui_alloc_content.
6513
6514 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6515
6516         PR tdep/18605
6517         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6518         instructions.
6519
6520 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6521
6522         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6523         (rx_dwarf_reg_to_regnum): New function.
6524         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6525         unwinding.
6526
6527 2015-06-29  Pedro Alves  <palves@redhat.com>
6528
6529         PR threads/18127
6530         * infcall.c (run_inferior_call): On infcall success, if the thread
6531         was marked stopped before, reset it back to stopped.
6532         * infrun.c (resume): Don't suppress the set_running calls when
6533         doing an infcall.
6534         (normal_stop): Only discard the finish_thread_state cleanup if the
6535         infcall succeeded.
6536
6537 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6538
6539         * MAINTAINERS (Write After Approval): Update my email address.
6540
6541 2015-06-26  Keith Seitz  <keiths@redhat.com>
6542             Doug Evans  <dje@google.com>
6543
6544         PR 16253
6545         * block.c (block_lookup_symbol): For non-function blocks,
6546         continue to search for a symbol with an exact domain match
6547         Otherwise, return any previously found "best domain" symbol.
6548         (block_lookup_symbol_primary): Likewise.
6549
6550 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6551
6552         * NEWS: Mention the new option "history remove-duplicates".
6553         * top.c (history_remove_duplicates): New static variable.
6554         (show_history_remove_duplicates): New static function.
6555         (gdb_add_history): Conditionally remove duplicate history
6556         entries.
6557         (init_main): Add "history remove-duplicates" option.
6558
6559 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6560
6561         * tui/tui-win.c (focus_completer): New static function.
6562         (_initialize_tui_win): Set the completion function of the
6563         "focus" command to focus_completer.
6564
6565 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6566
6567         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6568         and language_asm..
6569         * symtab.c (find_function_start_sal): Likewise.
6570
6571 2015-06-25  Gary Benson  <gbenson@redhat.com>
6572
6573         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6574         it is the empty string after trailing slashes have been stripped.
6575
6576 2015-06-25  Gary Benson  <gbenson@redhat.com>
6577
6578         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6579         * infrun.c (follow_exec): Likewise.
6580         * remote.c (remote_filesystem_is_local): Likewise.
6581         * solib.c (solib_find_1): Likewise.
6582
6583 2015-06-24  Keith Seitz  <keiths@redhat.com>
6584
6585         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6586         return value from lrealpath.
6587
6588 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6589
6590         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6591
6592 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6593
6594         * remote-sim.c: Include gdb_bfd.h.
6595         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6596         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6597
6598 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6599
6600         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6601         set_gdbarch_get_siginfo_type.
6602         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6603         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6604         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6605         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6606         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6607         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6608         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6609         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6610         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6611         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6612
6613 2015-06-24  Gary Benson  <gbenson@redhat.com>
6614
6615         * common/buffer.c (stdint.h): Do not include.
6616         * common/print-utils.c (stdint.h): Likewise.
6617         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6618         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6619         * ft32-tdep.c (gdb_assert.h): Likewise.
6620         * guile/scm-utils.c (stdint.h): Likewise.
6621         * i386-linux-tdep.c (stdint.h): Likewise.
6622         * i386-tdep.c (stdint.h): Likewise.
6623         * nat/linux-btrace.c (stdint.h): Likewise.
6624         * nat/linux-btrace.h (stdint.h): Likewise.
6625         * nat/linux-ptrace.c (stdint.h): Likewise.
6626         * nat/mips-linux-watch.h (stdint.h): Likewise.
6627         * ppc-linux-nat.c (stdint.h): Likewise.
6628         * python/python-internal.h (stdint.h): Likewise.
6629         * stub-termcap.c (stdlib.h): Likewise.
6630         * target/target.h (stdint.h): Likewise.
6631         * xtensa-linux-nat.c (stdint.h): Likewise.
6632
6633 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6634
6635         * top.c (init_history): Look at errno after calling strtol to
6636         properly map large GDBHISTSIZE values to infinity.
6637
6638 2015-06-23  Doug Evans  <dje@google.com>
6639
6640         * inferior.h (struct inferior_suspend_state): Delete, unused.
6641         All references deleted.
6642
6643 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6644
6645         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6646         (microblaze_push_dummy_call): Likewise.
6647         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6648         and set_gdbarch_push_dummy_call.
6649
6650 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6651
6652         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6653         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6654         (amd64_linux_store_inferior_registers): Likewise.
6655         * arm-linux-nat.c (fetch_fpregister): Likewise.
6656         (fetch_fpregs, store_fpregister): Likewise.
6657         (store_fpregister, store_fpregs): Likewise.
6658         (fetch_register, fetch_regs): Likewise.
6659         (store_register, store_regs): Likewise.
6660         (fetch_vfp_regs, store_vfp_regs): Likewise.
6661         (arm_linux_read_description): Check have_ptrace_getregset is
6662         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6663         or TRIBOOL_FALSE.
6664         * i386-linux-nat.c (fetch_xstateregs): Check
6665         have_ptrace_getregset is not TRIBOOL_TRUE.
6666         (store_xstateregs): Likewise.
6667         * linux-nat.c (have_ptrace_getregset): Change its type to
6668         enum tribool.
6669         * linux-nat.h (tribool): New enum.
6670         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6671         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6672
6673 2015-06-19  Doug Evans  <dje@google.com>
6674
6675         * NEWS: Mention Sun's version of stabs is no longer supported.
6676         * elfread.c (free_elfinfo): Delete.  All uses updated.
6677         (elfstab_offset_sections): Delete.  All uses updated.
6678         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6679         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6680         All uses updated.
6681         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6682         All callers updated.
6683
6684 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6685
6686         * common/rsp-low.c (needs_escaping): New.
6687         (remote_escape_output): Add unit_size parameter. Refactor to
6688         support multi-byte addressable units.  Rename parameters.
6689         * common/rsp-low.h (remote_escape_output): Add unit_size
6690         parameter and rename others. Update doc.
6691         * remote.c (align_for_efficient_write): New.
6692         (remote_write_bytes_aux): Add unit_size parameter and use it.
6693         Rename some variables.  Update doc.
6694         (remote_xfer_partial): Get unit size and use it.
6695         (remote_read_bytes_1): Add unit_size parameter and use it.
6696         Rename some variables. Update doc.
6697         (remote_write_bytes): Same.
6698         (remote_xfer_live_readonly_partial): Same.
6699         (remote_read_bytes): Same.
6700         (remote_flash_write): Update call to remote_write_bytes_aux.
6701         (remote_write_qxfer): Update call to remote_escape_output.
6702         (remote_search_memory): Same.
6703         (remote_hostio_pwrite): Same.
6704
6705 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6706
6707         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6708         locations as inserted.
6709         Update and expand comment about permanent locations.
6710         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6711         Move comment to add_location_to_breakpoint.
6712         (update_global_location_list): Don't error out if a permanent
6713         breakpoint is not marked inserted.
6714         Don't error out if a non-permanent breakpoint location is inserted on
6715         top of a permanent breakpoint.
6716
6717 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6718
6719         * breakpoint.c (make_breakpoint_permanent): Remove unused
6720         function.
6721         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6722
6723 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6724
6725         PR gdb/16999
6726         * NEWS: Mention new GDBHISTSIZE behavior.
6727         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6728         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6729
6730 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6731
6732         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6733         * top.c (init_history): Read from GDBHISTSIZE instead of
6734         HISTSIZE.
6735         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6736
6737 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6738
6739         * top.c (gdb_safe_append_history): Do not call
6740         history_truncate_file if the history is not stifled.
6741
6742 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6743
6744         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6745         * syscalls/s390x-linux.xml: Likewise.
6746
6747 2015-06-16  Michael Eager  <eager@eagercon.com>
6748
6749         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6750
6751 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6752
6753         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6754         target_terminal_ours_for_output() before calling
6755         tui_show_frame_info(), and restore the original terminal
6756         settings afterwards.
6757
6758 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6759
6760         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6761
6762 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6763
6764         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6765         memory unit size.
6766         (mi_cmd_data_write_memory_bytes): Same.
6767
6768 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6769
6770         * corefile.c (write_memory): Update doc.
6771         * gdbcore.h (write_memory): Same.
6772
6773 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6774
6775         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6776         (dump_mapping_p): Use it for parameter filterflags.
6777         (linux_find_memory_regions_full): Use it for variable filterflags.
6778
6779 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6780             Jan Kratochvil  <jan.kratochvil@redhat.com>
6781
6782         Merge multiple hex conversions.
6783         * monitor.c: Include rsp-low.h.
6784         (fromhex): Remove definition.
6785
6786 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6787             Jan Kratochvil  <jan.kratochvil@redhat.com>
6788
6789         Move utility functions to common/.
6790         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6791         Move defs to common/common-utils.c.
6792         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6793         (skip_to_space_const): Move decls to common/common-utils.h.
6794         * common/common-defs.h: Move include of common-types.h before
6795         common-utils.h.
6796         * common/common-utils.c: Include host-defs.h and ctype.h.
6797         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6798         from utils.c.
6799         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6800         cli/cli-utils.c.
6801         * common/common-utils.h (strtoulst): Move decl from utils.h.
6802         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6803         Move from cli/cli-utils.h.
6804         * common/host-defs.h: Include limits.h.
6805         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6806         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6807         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6808         common/common-utils.h.
6809         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6810         (strtoulst): Move to common/common-utils.c.
6811         * utils.h (strtoulst): Moved decl to common/common-utils.h.
6812
6813 2015-06-15  Yao Qi  <yao.qi@linaro.org>
6814
6815         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6816
6817 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
6818
6819         * build-id.c: Don't include elf-bfd.h.
6820         (build_id_bfd_get): Use bfd_build_id.
6821         (build_id_verify): Ditto.
6822         * build-id.h: Ditto.
6823         (find_separate_debug_file_by_buildid): Ditto.
6824         * python/py-objfile.c: Don't include elf-bfd.h.
6825         (objfpy_get_build_id) Use bfd_build_id.
6826         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6827         * coffread.c: Include build-id.h.
6828         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6829
6830 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6831
6832         * windows-nat.c (do_windows_fetch_inferior_registers)
6833         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6834         conditional with __CYGWIN__.
6835
6836 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6837
6838         * completer.c: Add arch-utils.h include.
6839         (enum reg_completer_targets): New enum.
6840         (reg_or_group_completer_1): New function containing old
6841         reg_or_group_completer, add and use new parameter to control what
6842         is completed on.  Use get_current_arch rather than architecture of
6843         currently selected frame.
6844         (reg_or_group_completer): Call new reg_or_group_completer_1.
6845         (reggroup_completer): Call new reg_or_group_completer_1.
6846         * completer.h (reggroup_completer): Add declaration.
6847         * tui/tui-regs.c: Add 'completer.h' include.
6848         (tui_reg_next_command): Renamed to...
6849         (tui_reg_next): ...this.  Adjust parameters and return rather than
6850         display new group.
6851         (tui_reg_prev_command): Renamed to...
6852         (tui_reg_prev): ...this.  Adjust parameters and return rather than
6853         display new group.
6854         (tui_reg_float_command): Delete.
6855         (tui_reg_general_command): Delete.
6856         (tui_reg_system_command): Delete.
6857         (tui_reg_command): Rewrite to perform switching of register group.
6858         Add header comment.
6859         (tuireglist): Remove.
6860         (tui_reggroup_completer): New function.
6861         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6862         creation of 'tui reg' command.
6863         * NEWS: Add comment about 'tui reg' changes.
6864
6865 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6866
6867         * target.c (target_read): Consider addressable unit size when
6868         reading from a memory object.
6869         (read_memory_robust): Same.
6870         (read_whatever_is_readable): Same.
6871         (target_write_with_progress): Consider addressable unit size
6872         when writing to a memory object.
6873         * target.h (target_read): Update documentation.
6874         (target_write): Add documentation.
6875
6876 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6877
6878         * arch-utils.h (default_addressable_memory_unit_size): New.
6879         * arch-utils.c (default_addressable_memory_unit_size): New.
6880         * gdbarch.sh (addressable_memory_unit_size): New.
6881         * gdbarch.h: Re-generate.
6882         * gdbarch.c: Re-generate.
6883
6884 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6885
6886         * target.c (target_read): Rename variables and use
6887         TARGET_XFER_E_IO.
6888         (target_read_with_progress): Same.
6889         (read_memory_robust): Constify parameters and rename
6890         variables.
6891         (read_whatever_is_readable): Constify parameters,
6892         rename variables, adjust formatting.
6893         * target.h (read_memory_robust): Constify parameters.
6894
6895 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6896
6897         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6898         synthetic (non-AltiVec) vector types.
6899         (ppc64_sysv_abi_return_value): Likewise.
6900
6901 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6902
6903         PR breakpoints/16465
6904         * breakpoint.c (create_breakpoint): Save extra_string for
6905         pending breakpoints.
6906
6907 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6908
6909         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6910         and bt_mask to CORE_ADDR.
6911
6912 2015-06-11  Gary Benson <gbenson@redhat.com>
6913
6914         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6915         (mnsh_recv_message): Likewise.
6916
6917 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6918
6919         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6920         long long int and plongest instead of %ll.
6921
6922 2015-06-11  Gary Benson <gbenson@redhat.com>
6923
6924         * nat/linux-namespaces.c (gdb_wait.h): New include.
6925         (sys/wait.h): Do not include.
6926
6927 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
6928
6929         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6930         end_sequence is true.
6931
6932 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6933
6934         Code cleanup.
6935         * solib-target.c (library_list_start_list): Use explicit NULL
6936         comparison.
6937
6938 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6939
6940         * solib-target.c (library_list_start_list): Do not dereference
6941         variable version in its initialization.  Make the VERSION check handle
6942         NULL.
6943         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6944
6945 2015-06-10  Gary Benson <gbenson@redhat.com>
6946
6947         * NEWS: Announce support for direct access of executable and
6948         shared library files when attaching to inferiors in containers
6949         on GNU/Linux systems.
6950
6951 2015-06-10  Gary Benson <gbenson@redhat.com>
6952
6953         * remote.c (struct remote_state) <fs_pid>: New field.
6954         (new_remote_state): Initialize the above.
6955         (PACKET_vFile_setfs): New enum value.
6956         (remote_hostio_set_filesystem): New function.
6957         (remote_hostio_open): Call the above.
6958         (remote_hostio_unlink): Likewise.
6959         (remote_hostio_readlink): Likewise.
6960         (_initialize_remote): Register new "set/show remote
6961         hostio-setfs-packet" command.
6962         * NEWS: Announce new vFile:setfs packet.
6963
6964 2015-06-10  Gary Benson <gbenson@redhat.com>
6965
6966         * linux-nat.c (nat/linux-namespaces.h): New include.
6967         (fileio.h): Likewise.
6968         (linux_nat_filesystem_is_local): New function.
6969         (linux_nat_fileio_pid_of): Likewise.
6970         (linux_nat_fileio_open): Likewise.
6971         (linux_nat_fileio_readlink): Likewise.
6972         (linux_nat_fileio_unlink): Likewise.
6973         (linux_nat_add_target): Initialize to_filesystem_is_local,
6974         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6975         (_initialize_linux_nat): New "set/show debug linux-namespaces"
6976         commands.
6977         * NEWS: Mention new "set/show debug linux-namespaces" commands.
6978
6979 2015-06-10  Gary Benson <gbenson@redhat.com>
6980
6981         * target.h (struct inferior): New forward declaration.
6982         (struct target_ops) <to_filesystem_is_local>: Update comment.
6983         (struct target_ops) <to_fileio_open>: New argument inf.
6984         Update comment.  All implementations updated.
6985         (struct target_ops) <to_fileio_unlink>: Likewise.
6986         (struct target_ops) <to_fileio_readlink>: Likewise.
6987         (target_filesystem_is_local): Update comment.
6988         (target_fileio_open): New argument inf.  Update comment.
6989         (target_fileio_unlink): Likewise.
6990         (target_fileio_readlink): Likewise.
6991         (target_fileio_read_alloc): Likewise.
6992         (target_fileio_read_stralloc): Likewise.
6993         * target.c (target_fileio_open): New argument inf.
6994         Pass inf to implementation.  Update debug printing.
6995         (target_fileio_unlink): Likewise.
6996         (target_fileio_readlink): Likewise.
6997         (target_fileio_read_alloc_1): New argument inf. Pass inf
6998         to target_fileio_open.
6999         (target_fileio_read_alloc): New argument inf. Pass inf to
7000         target_fileio_read_alloc_1.
7001         (target_fileio_read_stralloc): Likewise.
7002         * gdb_bfd.c (inferior.h): New include.
7003         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7004         argument with new argument "inferior".  Pass inferior to
7005         target_fileio_open.
7006         (gdb_bfd_open): Supply inferior argument to
7007         gdb_bfd_iovec_fileio_open.
7008         * linux-tdep.c (linux_info_proc): Supply inf argument to
7009         relevant target_fileio calls.
7010         (linux_find_memory_regions_full): Likewise.
7011         (linux_fill_prpsinfo): Likewise.
7012         * remote.c (remote_filesystem_is_local): Supply inf
7013         argument to remote_hostio_open.
7014         (remote_file_put): Likewise.
7015         (remote_file_get): Likewise.
7016         (remote_file_delete): Supply inf argument to
7017         remote_hostio_unlink.
7018
7019 2015-06-10  Gary Benson <gbenson@redhat.com>
7020
7021         * inf-child.c (inf_child_fileio_open): Replace comment.
7022         (inf_child_fileio_pwrite): Likewise.
7023         (inf_child_fileio_pread): Likewise.
7024         (inf_child_fileio_fstat): Insert blank line before comment.
7025         (inf_child_fileio_close): Replace comment.
7026         (inf_child_fileio_unlink): Likewise.
7027         (inf_child_fileio_readlink): Likewise.
7028         * remote.c (remote_hostio_open): Likewise.
7029         (remote_hostio_pread): Likewise.
7030         (remote_hostio_pwrite): Likewise.
7031         (remote_hostio_close): Likewise.
7032         (remote_hostio_unlink): Likewise.
7033         (remote_hostio_readlink): Likewise.
7034         (remote_hostio_fstat): Likewise.
7035         (remote_filesystem_is_local): Likewise.
7036         * target.c (target_fileio_open): Likewise.
7037         (target_fileio_pwrite): Likewise.
7038         (target_fileio_pread): Likewise.
7039         (target_fileio_fstat): Insert blank line before comment.
7040         (target_fileio_close): Replace comment.
7041         (target_fileio_unlink): Likewise.
7042         (target_fileio_readlink): Likewise.
7043         (target_fileio_read_alloc): Likewise.
7044         (target_fileio_read_stralloc): Likewise.
7045
7046 2015-06-10  Gary Benson <gbenson@redhat.com>
7047
7048         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7049         (check_pid_namespace_match): Use linux_ns_same rather than
7050         linux_proc_pid_get_ns to spot PID namespace mismatches.
7051         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7052         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7053
7054 2015-06-10  Gary Benson <gbenson@redhat.com>
7055
7056         * configure.ac (AC_CHECK_FUNCS): Add setns.
7057         * config.in: Regenerate.
7058         * configure: Likewise.
7059         * nat/linux-namespaces.h: New file.
7060         * nat/linux-namespaces.c: Likewise.
7061         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7062         (linux-namespaces.o): New rule.
7063         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7064         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7065         * config/arm/linux.mh (NATDEPFILES): Likewise.
7066         * config/i386/linux.mh (NATDEPFILES): Likewise.
7067         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7068         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7069         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7070         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7071         * config/mips/linux.mh (NATDEPFILES): Likewise.
7072         * config/pa/linux.mh (NATDEPFILES): Likewise.
7073         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7074         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7075         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7076         * config/s390/linux.mh (NATDEPFILES): Likewise.
7077         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7078         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7079         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7080         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7081
7082 2015-06-10  Gary Benson <gbenson@redhat.com>
7083
7084         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7085         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7086         (make_cleanup_close): Likewise.
7087         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7088         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7089         (make_cleanup_close): Likewise.
7090
7091 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7092
7093         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7094         from SuspendThread().
7095
7096 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7097
7098         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7099         from OutputDebugString.
7100
7101 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7102                         Mircea Gherzan  <mircea.gherzan@intel.com>
7103
7104         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7105         MPX_BT_MASK_32): New macros.
7106         (i386_mpx_set_bounds): New function that implements
7107         the command "set-mpx-bound".
7108         (i386_mpx_enabled): Helper function to test MPX availability.
7109         (i386_mpx_bd_base): Helper function to calculate the base directory
7110         address.
7111         (i386_mpx_get_bt_entry): Helper function to access a bound
7112         table entry.
7113         (i386_mpx_print_bounds): Effectively display bound information.
7114         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7115         "show mpx".
7116         (_initialize_i386_tdep):
7117         Add "bound" to the commands "show mpx" and "set mpx" commands.
7118         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7119         and "show mpx" commands.
7120         * NEWS: List new commands for MPX support.
7121
7122 2015-06-09  Gary Benson <gbenson@redhat.com>
7123
7124         * common/fileio.h (fileio_to_host_mode): New declaration.
7125         * common/fileio.c (fileio_to_host_mode): New Function.
7126         * inf-child.c (inf_child_fileio_open): Process mode argument
7127         with fileio_to_host_mode.
7128
7129 2015-06-09  Gary Benson <gbenson@redhat.com>
7130
7131         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7132         conditional.
7133
7134 2015-06-05  Gary Benson <gbenson@redhat.com>
7135
7136         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7137         * remote.c (remote_filesystem_is_local): ...here.
7138
7139 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7140
7141         * gdbarch.c: Regenerate it.
7142
7143 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7144
7145         * arch-utils.c (default_infcall_munmap): New.
7146         * arch-utils.h (default_infcall_munmap): New declaration.
7147         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7148         (munmap_list_free, munmap_listp_free_cleanup): New.
7149         (struct setup_sections_data): Add field munmap_list_headp.
7150         (setup_sections): Call munmap_list_add.
7151         (compile_object_load): New variable munmap_list_head, initialize
7152         setup_sections_data.munmap_list_headp, return munmap_list_head.
7153         * compile/compile-object-load.h (struct munmap_list): New declaration.
7154         (struct compile_module): Add field munmap_list_head.
7155         (munmap_list_free): New declaration.
7156         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7157         munmap_list_head.
7158         (do_module_cleanup): Call munmap_list_free.
7159         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7160         * gdbarch.c: Regenerate.
7161         * gdbarch.h: Regenerate.
7162         * gdbarch.sh (infcall_munmap): New.
7163         * linux-tdep.c (linux_infcall_munmap): New.
7164         (linux_init_abi): Install it.
7165
7166 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7167
7168         PR gdb/15564
7169         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7170
7171 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7172
7173         * i386-linux-nat.c: Include linux-nat.h.
7174
7175 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7176             Jan Kratochvil  <jan.kratochvil@redhat.com>
7177
7178         PR symtab/18392
7179         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7180         assertion.
7181         * dwarf2loc.c (chain_candidate): Likewise.
7182
7183 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7184
7185         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7186         (store_vfp_regs): Use PTRACE_SETREGSET.
7187
7188 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7189
7190         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7191         (fetch_fpregs): Likewise.
7192         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7193         (store_fpregs): Likewise.
7194
7195 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7196
7197         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7198         (fetch_regs): Likewise.
7199         (store_regs): Use PTRACE_SETREGSET.
7200         (store_register): Likewise.
7201
7202 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7203
7204         * arm-linux-nat.c (arm_linux_read_description): Check whether
7205         kernel supports PTRACE_GETREGSET.
7206
7207 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7208
7209         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7210         * linux-nat.c: ... here.
7211         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7212         to ...
7213         * linux-nat.h: ... here.
7214
7215 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7216
7217         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7218         * i386-linux-nat.c: Likewise.
7219         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7220         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7221         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7222         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7223         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7224
7225 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7226
7227         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7228         compatible to what read_child and write_child return.  This
7229         unbreaks that DJGPP build of GDB which was broken since v7.7.
7230
7231 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7232
7233         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7234
7235 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7236
7237         PR gdb/18464
7238         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7239         rather than internal_error for an unrecognized value.
7240
7241 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7242
7243         * xtensa-tdep.c (xtensa_pseudo_register_read)
7244         (xtensa_pseudo_register_write): Don't alias last pseudo register
7245         to a1.
7246
7247 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7248
7249         * infrun.c (follow_fork_inferior): Ensure the use of
7250         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7251         messages.
7252
7253 2015-05-28  Doug Evans  <dje@google.com>
7254
7255         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7256
7257 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7258
7259         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7260         (arm_linux_fetch_inferior_registers): Use
7261         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7262         (arm_linux_store_inferior_registers): Likewise.
7263         (arm_linux_read_description): Don't set
7264         arm_linux_has_wmmx_registers.
7265         * arm-tdep.c (arm_gdbarch_init): Set
7266         tdep->have_wmmx_registers according target descriptions.
7267         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7268         field.
7269
7270 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7271
7272         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7273         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7274         instead of arm_linux_vfp_register_count.
7275         (store_vfp_regs): Likewise.
7276         (arm_linux_fetch_inferior_registers): Likewise.
7277         (arm_linux_store_inferior_registers): Likewise.
7278         (arm_linux_read_description): Don't set
7279         arm_linux_vfp_register_count.
7280         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7281         Adjust.
7282         * arm-tdep.c (arm_gdbarch_init): Add assert on
7283         vfp_register_count.
7284         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7285         field to vfp_register_count.  All users updated.
7286
7287 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7288
7289         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7290         ELFOSABI_GNU binaries.
7291
7292 2015-05-27  Doug Evans  <dje@google.com>
7293
7294         * dwarf2read.c (lnp_state_machine): New typedef.
7295         (lnp_reader_state): New typedef.
7296         (dwarf_record_line_1): Renamed from dwarf_record_line.
7297         All callers updated.
7298         (dwarf_record_line): New function.
7299         (init_lnp_state_machine): New function.
7300         (check_line_address): Replace p_record_line parameter with state.
7301         All callers updated.
7302         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7303         Update to record state in lnp_state_machine.
7304
7305 2015-05-27  Doug Evans  <dje@google.com>
7306
7307         * dwarf2read.c (record_line_ftype): New typedef.
7308         (check_line_address): New function.
7309         (dwarf_decode_lines_1): Call it.
7310
7311 2015-05-27  Doug Evans  <dje@google.com>
7312
7313         * NEWS: Mention "set debug dwarf-line".
7314         * dwarf2read.c (dwarf_line_debug): New static global.
7315         (add_include_dir): Add debug dwarf-line support.
7316         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7317         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7318
7319 2015-05-27  Doug Evans  <dje@google.com>
7320
7321         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7322         All callers updated.
7323         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7324         * cp-support.h (cp_lookup_nested_symbol): Update.
7325
7326 2015-05-27  Doug Evans  <dje@google.com>
7327
7328         PR symtab/18258
7329         * block.c (block_find_symbol): New function.
7330         (block_find_non_opaque_type): Ditto.
7331         (block_find_non_opaque_type_preferred): Ditto.
7332         * block.h (block_symbol_matcher_ftype): New typedef.
7333         (block_find_symbol): Declare.
7334         (block_find_non_opaque_type): Ditto.
7335         (block_find_non_opaque_type_preferred): Ditto.
7336         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7337         * psymtab.c (psym_lookup_symbol): Ditto.
7338         * symtab.c (basic_lookup_transparent_type_1): New function.
7339         (basic_lookup_transparent_type): Call it.
7340
7341 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7342
7343         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7344         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7345
7346 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7347
7348         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7349         before operator &&.
7350         (aarch64_record_load_store): Likewise.
7351
7352 2015-05-26  Doug Evans  <dje@google.com>
7353
7354         PR c++/18141, c++/18417.
7355         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7356         a typedef.
7357
7358 2015-05-26  Doug Evans  <dje@google.com>
7359
7360         * NEWS: Add entries for command renamings.
7361         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7362         All uses updated.
7363         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7364         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7365         All uses updated.
7366         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7367         All callers updated.  Fix spelling of DWARF in help text.
7368         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7369         All uses updated.
7370         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7371         All uses updated.
7372         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7373         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7374         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7375         All uses updated.
7376         (show_dwarf_always_disassemble): Renamed from
7377         show_dwarf2_always_disassemble.  All callers updated.
7378         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7379         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7380         "set/show dwarf max-cache-age".  Rename
7381         "set/show dwarf2 always-disassemble" to
7382         "set/show dwarf always-disassemble".  Rename
7383         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7384         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7385
7386 2015-05-26  Doug Evans  <dje@google.com>
7387
7388         PR python/18438
7389         * python/py-lazy-string.c (stpy_convert_to_value): Use
7390         gdbpy_gdb_memory_error not PyExc_MemoryError.
7391         (gdbpy_create_lazy_string_object): Ditto.
7392
7393 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7394
7395         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7396
7397 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7398
7399         * tui/tui-regs.c (tui_reg_prev_command): New function.
7400         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7401         * reggroups.c (reggroup_prev): New function.
7402         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7403
7404 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7405             Yao Qi  <yao.qi@linaro.org>
7406
7407         * aarch64-linux-tdep.c: Include linux-record.h and
7408         record-full.h.
7409         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7410         (aarch64_syscall): New enum.
7411         (aarch64_canonicalize_syscall): New function.
7412         (aarch64_all_but_pc_registers_record): New function.
7413         (aarch64_linux_syscall_record): New function.
7414         (aarch64_linux_init_abi): Install AArch64 process record
7415         handler.  Update to handle syscall recording.
7416         * aarch64-tdep.c: Include record.h and record-full.h.
7417         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7418         (struct aarch64_mem_r): Define.
7419         (aarch64_record_result): New enum.
7420         (struct insn_decode_record): Define.
7421         (insn_decode_record): New typedef.
7422         (aarch64_record_data_proc_reg): New function.
7423         (aarch64_record_data_proc_imm): New function.
7424         (aarch64_record_branch_except_sys): New function.
7425         (aarch64_record_load_store): New function.
7426         (aarch64_record_data_proc_simd_fp): New function.
7427         (aarch64_record_asimd_load_store): New function.
7428         (aarch64_record_decode_insn_handler): New function.
7429         (deallocate_reg_mem): New function.
7430         (aarch64_process_record): New function.
7431         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7432         New field.
7433         (aarch64_process_record): New extern declaration.
7434         * configure.tgt: Add linux-record.o to gdb_target_obs.
7435         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7436
7437 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7438
7439         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7440         targets.
7441
7442 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7443
7444         * amd64-tdep.c: Replace in_function_epilogue_p with
7445         stack_frame_destroyed_p throughout.
7446         * arch-utils.c: Ditto.
7447         * arch-utils.h: Ditto.
7448         * arm-tdep.c: Ditto.
7449         * breakpoint.c: Ditto.
7450         * gdbarch.sh: Ditto.
7451         * hppa-tdep.c: Ditto.
7452         * i386-tdep.c: Ditto.
7453         * mips-tdep.c: Ditto.
7454         * nios2-tdep.c: Ditto.
7455         * rs6000-tdep.c: Ditto.
7456         * s390-linux-tdep.c: Ditto.
7457         * score-tdep.c: Ditto.
7458         * sh-tdep.c: Ditto.
7459         * sparc-tdep.c: Ditto.
7460         * sparc-tdep.h: Ditto.
7461         * sparc64-tdep.c: Ditto.
7462         * spu-tdep.c: Ditto.
7463         * tic6x-tdep.c: Ditto.
7464         * tilegx-tdep.c: Ditto.
7465         * xstormy16-tdep.c: Ditto.
7466         * gdbarch.c, gdbarch.h: Re-generated.
7467
7468 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7469
7470         * NEWS: Mention 'tui enable' and 'tui disable'.
7471         * tui/tui.c (tui_enable_command): New function.
7472         (tui_disable_command): New function.
7473         (_initialize_tui): New function.
7474
7475 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7476
7477         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7478
7479 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7480
7481         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7482         buf_ptr is freed.
7483
7484 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7485
7486         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7487         into ...
7488         (tui_set_layout_for_display_command): ...here, before calling
7489         tui_set_layout.  Only set the layout if gdb has not already
7490         entered the TUI_FAILURE state.
7491
7492 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7493
7494         * tui/tui-layout.c (layout_completer): New function.
7495         (_initialize_tui_layout): Set completer on layout command.
7496
7497 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7498
7499         * tui/tui-layout.c (tui_set_layout): Remove
7500         tui_register_display_type parameter.  Remove all checking of this
7501         parameter, and reindent function.  Update header comment.
7502         (tui_set_layout_for_display_command): Rename to...
7503         (tui_set_layout_by_name): ...this, and don't check for different
7504         register class types, don't pass a tui_register_display_type to
7505         tui_set_layout.  Update header comment.
7506         (layout_names): Remove register set specific names.
7507         * tui/tui-layout.h (tui_set_layout): Remove
7508         tui_register_display_type parameter.
7509         * tui/tui.c (tui_rl_change_windows): Don't pass a
7510         tui_register_display_type to tui_set_layout.
7511         (tui_rl_delete_other_windows): Likewise.
7512         (tui_enable): Likewise.
7513         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7514         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7515         (TUI_GENERAL_REGS_NAME): Remove.
7516         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7517         (TUI_SPECIAL_REGS_NAME): Remove.
7518         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7519         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7520         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7521         (enum tui_register_display_type): Remove.
7522         (struct tui_layout_def): Remove regs_display_type and
7523         float_regs_display_type fields.
7524         (struct tui_data_info): Remove regs_display_type field.
7525         (tui_layout_command): Use new name for
7526         tui_set_layout_for_display_command.
7527         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7528         (tui_clear_win_detail): Don't initialise removed fields of
7529         win_info.
7530         * tui/tui-regs.c (tui_show_registers): Use new name for
7531         tui_set_layout_for_display_command.
7532         * tui/tui.h (tui_set_layout_for_display_command): Rename
7533         declaration to...
7534         (tui_set_layout_by_name): ...this.
7535         * printcmd.c (display_command): Remove tui related layout call,
7536         and reindent.
7537
7538 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7539
7540         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7541         (handle_inferior_event): New function.
7542
7543 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7544
7545         * ada-lang.c (to_fixed_array_type): Rename local variable
7546         typename into type_name.
7547
7548 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7549
7550         Fix ASAN crash for gdb.compile/compile.exp.
7551         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7552
7553 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7554
7555         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7556         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7557         * compile/compile-object-load.c (setup_sections, compile_object_load):
7558         Likewise.
7559         * compile/compile.c (compile_to_object): Likewise.
7560
7561 2015-05-16  Doug Evans  <xdje42@gmail.com>
7562
7563         * NEWS: Mention support for unbuffered Guile memory ports.
7564         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7565         (ioscm_lseek_address): Improve overflow calculation.
7566         (gdbscm_memory_port_fill_input): Add assert.
7567         (gdbscm_memory_port_write): Handle unbuffered ports.
7568         Handle large writes identical to Guile's fport_write.
7569         (gdbscm_memory_port_seek): Fix seeking past end check.
7570         (gdbscm_memory_port_close): Handle closing unbuffered port.
7571         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7572         (ioscm_init_memory_port): Handle unbuffered ports.
7573         (ioscm_reinit_memory_port): Ditto.
7574         (ioscm_init_memory_port): Update size calculation.
7575         (gdbscm_open_memory): Support zero sized ports.
7576
7577 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7578
7579         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7580         variable compiler warnings.
7581
7582 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7583
7584         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7585
7586 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7587             Phil Muldoon  <pmuldoon@redhat.com>
7588
7589         * NEWS (Changes since GDB 7.9): Add compile print.
7590         * compile/compile-c-support.c (add_code_header, add_code_footer)
7591         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7592         COMPILE_I_PRINT_VALUE_SCOPE.
7593         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7594         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7595         New.
7596         * compile/compile-object-load.c: Include block.h.
7597         (get_out_value_type): New function.
7598         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7599         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7600         OUT_VALUE_TYPE.
7601         * compile/compile-object-load.h (struct compile_module): Add fields
7602         out_value_addr and out_value_type.
7603         * compile/compile-object-run.c: Include valprint.h and compile.h.
7604         (struct do_module_cleanup): Add fields out_value_addr and
7605         out_value_type.
7606         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7607         COMPILE_I_PRINT_VALUE_SCOPE.
7608         (compile_object_run): Propagate out_value_addr and out_value_type.
7609         Pass OUT_VALUE_ADDR.
7610         * compile/compile.c: Include valprint.h.
7611         (compile_print_value, compile_print_command): New functions.
7612         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7613         (_initialize_compile): Update compile code help text.  Install
7614         compile_print_command.
7615         * compile/compile.h (compile_print_value): New prototype.
7616         * defs.h (enum compile_i_scope_types): Add
7617         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7618
7619 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7620
7621         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7622         Rely on its parameter count.
7623         (compile_object_load): Replace lookup_minimal_symbol_text by
7624         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7625         return value.
7626         * compile/compile-object-load.h (struct compile_module): Replace
7627         func_addr by func_sym.
7628         * compile/compile-object-run.c: Include block.h.
7629         (compile_object_run): Reset module variable after it is freed.  Use
7630         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7631
7632 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7633
7634         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7635         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7636         (c_compute_program): Call generate_register_struct after typedefs.
7637         * compile/compile-loc2c.c (push, pushf_register_address)
7638         (pushf_register): Cast to GCC_UINTPTR.
7639         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7640         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7641         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7642         * compile/compile.c (_initialize_compile): Enable warnings for
7643         COMPILE_ARGS.
7644
7645 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7646
7647         * cli/cli-script.c (execute_control_command): Update
7648         eval_compile_command caller.
7649         * compile/compile-object-load.c (compile_object_load): Add parameters
7650         scope and scope_data.  Set them.
7651         * compile/compile-object-load.h (struct compile_module): Add fields
7652         scope and scope_data.
7653         (compile_object_load): Add parameters scope and scope_data.
7654         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7655         scope and scope_data.
7656         (compile_object_run): Propagate the fields scope and scope_data.
7657         * compile/compile.c (compile_file_command, compile_code_command):
7658         Update eval_compile_command callers.
7659         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7660         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7661         * defs.h (struct command_line): Add field scope_data.
7662
7663 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7664
7665         * printcmd.c (struct format_data): Move it to valprint.h.
7666         (print_command_parse_format, print_value): New functions from ...
7667         (print_command_1): ... here.  Call them.
7668         * valprint.h (struct format_data): Move it here from printcmd.c.
7669         (print_command_parse_format, print_value): New declarations.
7670
7671 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7672
7673         * compile/compile-object-load.c (compile_object_load): Add
7674         COMPILE_DEBUG message.
7675
7676 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7677
7678         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7679         index to get element instead of enum value.
7680         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7681         of index to compute length, but enum values to compute bounds.
7682         (ada_array_length): Use enum position of index instead of enum value.
7683         (pos_atr): Move position computation to...
7684         (ada_evaluate_subexp): Use enum values to compute bounds.
7685         * gdbtypes.c (discrete_position): ...this new function.
7686         * gdbtypes.h (discrete_position): New function declaration.
7687         * valprint.c (val_print_array_elements): Call discrete_position
7688         to handle array indexed by non-contiguous enumeration types.
7689
7690 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7691
7692         * ada-lang.c (find_parallel_type_by_descriptive_type):
7693         Go through typedefs during lookup.
7694         (to_fixed_array_type): Add support for non-bit packed arrays
7695         as variable-length fields.
7696
7697 2015-05-15  Pedro Alves  <palves@redhat.com>
7698             Simon Marchi  <simon.marchi@ericsson.com>
7699
7700         * event-loop.c (gdb_notifier) <next_file_handler,
7701         next_poll_fds_index>: New fields.
7702         (get_next_file_handler_to_handle_and_advance): New function.
7703         (delete_file_handler): If deleting the next file handler to
7704         handle, advance to the next file handler.
7705         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7706         handlers in round-robin fashion.
7707
7708 2015-05-15  Pedro Alves  <palves@redhat.com>
7709
7710         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7711         'private' to 'priv'.
7712
7713 2015-05-15  Pedro Alves  <palves@redhat.com>
7714
7715         * nat/linux-nat.h: Include "target/waitstatus.h".
7716
7717 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7718
7719         * python/py-unwind.c (struct reg_info): Move out of ...
7720         (struct cached_frame_info): ... this scope.
7721         (pending_frame_object_type, unwind_info_object_type): Make extern.
7722
7723 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7724
7725         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7726         accumSize is never negative.
7727
7728 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7729
7730         * tui/tui-command.c: Remove include of <ctype.h>.
7731         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7732
7733 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7734
7735         * dwarf2read.c (die_needs_namespace): Return 1 for
7736         DW_TAG_inlined_subroutine.
7737
7738 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7739
7740         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7741         (regcache_cpy_no_passthrough): Make it static, add function comment.
7742         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7743         (regcache_cpy_no_passthrough): Remove declaration.
7744
7745 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7746
7747         * gdbthread.h (struct thread_control_state): Update comment for
7748         proceed_to_finish.
7749         * infcall.c (run_inferior_call): Update comment about
7750         proceed_to_finish.
7751         * infcmd.c (get_return_value): Update comment about stop_registers.
7752         (finish_forward): Update comment about proceed_to_finish.
7753         * infrun.c (stop_registers): Remove.
7754         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7755         * infrun.h (stop_registers): Remove.
7756
7757 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7758
7759         * infcall.c (struct dummy_frame_context_saver)
7760         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7761         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7762         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7763         New.
7764         (call_function_by_hand_dummy): Move discard_cleanups of
7765         inf_status_cleanup before dummy_frame_push.  Call
7766         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7767         Use dummy_frame_context_saver_get_regs instead of stop_registers.
7768         * infcall.h (struct dummy_frame_context_saver)
7769         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7770         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7771         New declarations.
7772         * infcmd.c: Include infcall.h.
7773         (get_return_value): Add parameter ctx_saver, use it instead of
7774         stop_registers.
7775         (print_return_value): Add parameter ctx_saver, pass it.
7776         (struct finish_command_continuation_args): Add field ctx_saver.
7777         (finish_command_continuation): Update print_return_value caller.
7778         (finish_command_continuation_free_arg): Free also ctx_saver.
7779         (finish_forward): Call dummy_frame_context_saver_setup.
7780         * inferior.h (struct dummy_frame_context_saver): New declaration.
7781         (get_return_value): Add parameter ctx_saver.
7782         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7783         get_return_value caller.
7784
7785 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7786
7787         * dummy-frame.c (struct dummy_frame_dtor_list): New.
7788         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7789         (remove_dummy_frame): Process dtor_list.
7790         (pop_dummy_frame): Process dtor_list.
7791         (register_dummy_frame_dtor): Maintain dtor_list.
7792         (find_dummy_frame_dtor): Handle dtor_list.
7793         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7794         Update comments.
7795
7796 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7797
7798         * compile/compile-object-run.c (do_module_cleanup): Add parameter
7799         registers_valid.
7800         (compile_object_run): Update do_module_cleanup caller.
7801         * dummy-frame.c: Include infcall.h.
7802         (struct dummy_frame): Update dtor comment.
7803         (remove_dummy_frame): Call dtor.
7804         (pop_dummy_frame): Update dtor caller.
7805         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7806         registers_valid.
7807
7808 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7809
7810         GDB 7.9.1 released.
7811
7812 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7813
7814         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
7815         Xmethods now being able to specify a result type to that new
7816         sectioin.
7817
7818 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7819
7820         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7821         first before resizing the window.
7822         * tui/tui.c (tui_enable): Likewise.
7823
7824 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7825
7826         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7827         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7828         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7829         dummy_dtor parameter.
7830         * infcall.h: Include dummy-frame.h.
7831         (call_function_by_hand_dummy_dtor_ftype): Remove.
7832         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7833         parameter.
7834
7835 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7836
7837         PR gdb/17820
7838         * top.c (history_size_setshow_var): Change type to signed.
7839         Initialize to -2.  Update documentation.
7840         (set_readline_history_size): Define.
7841         (set_history_size_command): Use it.  Remove logic for handling
7842         out-of-range sizes.
7843         (init_history): Use set_readline_history_size().  Test for a
7844         value of -2 instead of 0 when determining whether to set a
7845         default history size.
7846         (init_main): Decode the argument of the "size" command as a
7847         zuinteger_unlimited.
7848
7849 2015-05-12  Doug Evans  <dje@google.com>
7850
7851         * dwarf2read.c (struct file_entry): Tweak comments.
7852         (get_debug_line_section): Tweak comments.
7853
7854 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7855
7856         * NEWS: Announce fork support in the RSP and support
7857         for fork debugging in extended mode.
7858
7859 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7860
7861         * remote.c (remote_insert_fork_catchpoint): New function.
7862         (remote_remove_fork_catchpoint): New function.
7863         (remote_insert_vfork_catchpoint): New function.
7864         (remote_remove_vfork_catchpoint): New function.
7865         (pending_fork_parent_callback): New function.
7866         (remove_new_fork_child): New function.
7867         (remote_update_thread_list): Call remote_notif_get_pending_events
7868         and remove_new_fork_child.
7869         (extended_remote_kill): Kill fork child when killing the
7870         parent before follow_fork completes.
7871         (init_extended_remote_ops): Initialize target vector with
7872         new fork catchpoint functions.
7873
7874 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7875
7876         * remote.c (remove_vfork_event_p): New function.
7877         (remote_follow_fork): Add vfork event type to event checking.
7878         (remote_parse_stop_reply): New stop reasons "vfork" and
7879         "vforkdone" for RSP 'T' Stop Reply Packet.
7880
7881 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7882
7883         * linux-nat.c (linux_nat_ptrace_options): New function.
7884         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7885         Call linux_nat_ptrace_options and use different argument to
7886         linux_enable_event_reporting.
7887         (_initialize_linux_nat): Delete call to
7888         linux_ptrace_set_additional_flags.
7889         * nat/linux-ptrace.c (current_ptrace_options): Rename to
7890         supported_ptrace_options.
7891         (additional_flags): Delete variable.
7892         (linux_check_ptrace_features): Use supported_ptrace_options.
7893         (linux_test_for_tracesysgood, linux_test_for_tracefork):
7894         Likewise, and remove additional_flags check.
7895         (linux_enable_event_reporting): Change 'attached' argument to
7896         'options'.  Use supported_ptrace_options.
7897         (ptrace_supports_feature): Change comment.  Use
7898         supported_ptrace_options.
7899         (linux_ptrace_set_additional_flags): Delete function.
7900         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7901         Delete function prototype.
7902         * remote.c (remote_fork_event_p): New function.
7903         (remote_detach_pid): New function.
7904         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7905         if doing detach-on-fork.
7906         (remote_follow_fork): New function.
7907         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7908         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7909         (init_extended_remote_ops): Initialize to_follow_fork.
7910
7911 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7912
7913         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7914         from static to extern.
7915         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7916         * remote.c (anonymous enum): <PACKET_fork_event_feature,
7917         * PACKET_vfork_event_feature>: New enumeration constants.
7918         (remote_protocol_features): Add table entries for new packets.
7919         (remote_query_supported): Add new feature queries to qSupported
7920         packet.
7921
7922 2015-05-12  Gary Benson <gbenson@redhat.com>
7923
7924         * remote.c (remote_add_inferior): Call exec_file_locate_attach
7925         for fake PIDs as well as real ones.
7926         (remote_pid_to_exec_file): Send empty annex if PID is fake.
7927
7928 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
7929
7930         * NEWS (Python Scripting): Mention the new gdb.Value methods.
7931         * python/py-value.c (valpy_reference_value): New function.
7932         (valpy_const_value): Likewise.
7933         (value_object_methods): Add new methods.
7934         * value.c (make_cv_value): New function.
7935         * value.h (make_cv_value): Declare.
7936
7937 2015-05-08  Yao Qi  <yao@codesourcery.com>
7938             Sandra Loosemore  <sandra@codesourcery.com>
7939
7940         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7941         to 'lh->include_dirs' before accessing to it.
7942         (psymtab_include_file_name): Likewise.
7943         (dwarf_decode_lines_1): Likewise.
7944         (dwarf_decode_lines): Likewise.
7945         (file_file_name): Likewise.
7946
7947 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7948
7949         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7950         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7951         (nios2_linux_rt_sigreturn_init): Adjust base address of
7952         register save area.
7953
7954 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7955
7956         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7957         "trap 31" as the breakpoint instruction on all targets.
7958
7959 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7960
7961         * infcmd.c (print_return_value): Remove unused declaration.
7962
7963 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7964
7965         * dwarf2read.c (attr_to_dynamic_prop)
7966         <DW_AT_data_member_location>: Use read_type_die isntead of
7967         get_die_type.
7968
7969 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7970
7971         * ada-lang.c (ada_convert_actual): Add handling of formals
7972         passed inside an aligner type.
7973
7974 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
7975
7976         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7977
7978 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
7979
7980         PR python/18291
7981         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7982         Print xmethod matcher status.
7983
7984 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7985
7986         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7987         register in the regcache when treating the PSWM register, and vice
7988         versa.
7989
7990 2015-05-07  Gary Benson <gbenson@redhat.com>
7991
7992         * linux-thread-db.c (struct thread_db_info)
7993         <td_ta_map_id2thr_p>: Remove field.
7994         (try_thread_db_load_1): Remove initialization for the above.
7995
7996 2015-05-07  Gary Benson <gbenson@redhat.com>
7997
7998         * linux-thread-db.c (struct thread_db_info)
7999         <td_thr_validate_p>: Remove field.
8000         (try_thread_db_load_1): Remove initialization for the above.
8001
8002 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8003
8004         * compile/compile-object-load.c (compile_object_load): Support
8005         mst_text_gnu_ifunc.
8006
8007 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8008
8009         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8010         const.  Use new variables for the const compatibility.
8011         (eval_compile_command): Make the cmd_string parameter const.
8012         * compile/compile.h (eval_compile_command): Make the cmd_string
8013         parameter const.
8014
8015 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8016
8017         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8018         comment.
8019         * top.c (deprecated_init_ui_hook): Delete.
8020         (gdb_init): Remove handling of deprecated_init_ui_hook.
8021         * interps.c (clear_interpreter_hooks): Remove handling of
8022         deprecated_init_ui_hook.
8023         * main.c (captured_main): Update comment.
8024
8025 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8026
8027         * solib.c (_initialize_solib): Add "info dll" alias creation.
8028         * windows-nat.c (set_windows_aliases): Delete.
8029         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8030         assignment.
8031         * NEWS: Add news entry about "info dll" now being available
8032         on all platforms.
8033
8034 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8035
8036         * ada-lang.c (value_assign_to_component): Reformat and improve
8037         documentation. Remove all trailing spaces.
8038
8039 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8040
8041         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8042         Stop counting inlined frames as soon as an out-of-line function
8043         is found.
8044
8045 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8046
8047         * dwarf2read.c (inherit_abstract_dies): Skip
8048         DW_TAG_GNU_call_site dies while inheriting children of an
8049         abstract DIE into a scope.
8050         (read_lexical_block_scope): Inherit abstract DIE's for
8051         lexical scopes.
8052
8053 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8054
8055         * ada-valprint.c (val_print_packed_array_elements): Delete
8056         variable "len".  Add a type-length check when comparing two
8057         consecutive elements of the array.  Use the element's actual
8058         length in call to value_contents_eq.
8059         * ada-lang.c (ada_value_primitive_packed_val): Always return
8060         a value whose type has been resolved.
8061
8062 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8063
8064         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8065         BIT_SIZE and LEN if the size of the resolved type is smaller
8066         than BIT_SIZE * HOST_CHAR_BIT.
8067
8068 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8069
8070         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8071         correct address in call to value_at.  Adjust call to
8072         value_address accordingly.
8073
8074 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8075
8076         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8077         to print it.
8078
8079 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8080
8081         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8082         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8083         pinfo->valaddr.
8084         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8085         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8086         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8087         Add handling of addr_stack->valaddr.
8088         (resolve_dynamic_type): Add "valaddr" parameter.
8089         Set pinfo.valaddr field.
8090         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8091         resolve_dynamic_type.
8092         (ada_discrete_type_low_bound): Likewise.
8093         * findvar.c (default_read_var_value): Likewise.
8094         * value.c (value_from_contents_and_address): Likewise.
8095
8096 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8097
8098         * gdbtypes.c (resolve_dynamic_array): Use
8099         create_array_type_with_stride instead of create_array_type.
8100
8101 2015-04-30  DJ Delorie  <dj@redhat.com>
8102
8103         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8104         rl78_decode_opcode
8105
8106 2015-04-29  Doug Evans  <dje@google.com>
8107
8108         PR python/18285
8109         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8110         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8111         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8112         * extension-priv.h (struct extension_language_ops)
8113         <get_xmethod_result_type>: New member.
8114         * extension.c (get_xmethod_result_type): New function.
8115         * extension.h (get_xmethod_result_type): Declare.
8116         * python/py-xmethods.c (get_result_type_method_name): New static
8117         global.
8118         (py_get_result_type_method_name): Ditto.
8119         (gdbpy_get_xmethod_result_type): New function.
8120         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8121         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8122         * python/python.c (python_extension_ops): Add
8123         gdbpy_get_xmethod_result_type.
8124         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8125         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8126         xmethods.
8127         (value_x_unop): Ditto.
8128         * value.c (result_type_of_xmethod): New function.
8129         * value.h (result_type_of_xmethod): Declare.
8130
8131 2015-04-29  Gary Benson <gbenson@redhat.com>
8132
8133         * solib.c (solib_find_1): Allow fd argument to be NULL.
8134         (exec_file_find): Update comment.
8135         (solib_find): Likewise.
8136         * exec.c (exec_file_locate_attach): Use NULL as fd
8137         argument to exec_file_find to avoid having to close
8138         the opened file.
8139         * infrun.c (follow_exec): Likewise.
8140
8141 2015-04-28  Doug Evans  <dje@google.com>
8142
8143         PR python/18299
8144         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8145         name or __name__ attributes.  Handle gdb module as first argument.
8146
8147 2015-04-28  Doug Evans  <dje@google.com>
8148
8149         PR python/18089
8150         * python/py-prettyprint.c (print_children): Verify result of children
8151         iterator.  Provide better error message.
8152         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8153         * python/python.c (gdbpy_print_python_errors_p): New function.
8154
8155 2015-04-28  Doug Evans  <dje@google.com>
8156
8157         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8158
8159 2015-04-28  Sasha Smundak  <asmundak@google.com>
8160
8161         * NEWS: Mention gdb.Type.optimized_out method.
8162         * python/py-type.c (typy_optimized_out):  New function.
8163
8164 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8165
8166         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8167
8168 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8169
8170         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8171         (initialize_utils): Move call of init_page_info() to ...
8172         * top.c (gdb_init): ... here.
8173
8174 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8175
8176         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8177         (tui_sigwinch_handler): Still update our idea of
8178         the terminal's width and height even when TUI is not active.
8179
8180 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8181
8182         * utils.h (set_screen_width_and_height): Declare.
8183         * utils.c (set_screen_width_and_height): Define.
8184         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8185
8186 2015-04-28  Gary Benson <gbenson@redhat.com>
8187
8188         * infrun.c (solist.h): New include.
8189         (follow_exec): Use exec_file_find to prefix execd_pathname
8190         with gdb_sysroot.
8191
8192 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8193
8194         * tui/tui-source.c (tui_set_source_content): Avoid calling
8195         strcpy() when offset is 0.
8196
8197 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8198
8199         PR gdb/18155
8200         * tui/tui-data.c (tui_free_window): Don't free the locator
8201         window when passed an SRC_WIN or a DISASSEM_WIN.
8202
8203 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8204
8205         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8206         (tui_win_content): Move declaration.
8207         (struct tui_gen_win_info): Give 'content' field the
8208         type tui_win_content.
8209         * tui/tui-data.c (init_content_element): Remove redundant and
8210         erroneous casts.
8211         (tui_add_content_elements): Remove erroneous cast.
8212         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8213         casts.
8214         (tui_get_begin_asm_address): Likewise.
8215         * tui/tui-regs.c (tui_show_registers): Likewise.
8216         (tui_show_register_group): Likewise.
8217         (tui_display_registers_from): Likewise.
8218         (tui_check_register_values): Likewise.
8219         * tui/tui-source.c (tui_set_source_content): Likewise.
8220         (tui_set_source_content_nil): Likewise.
8221         (tui_source_is_displayed): Likewise.
8222         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8223         (tui_set_locator_fullname): Likewise.
8224         (tui_set_locator_info): Likewise.
8225         (tui_show_frame_info): Likewise.
8226         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8227         (tui_show_source_line): Likewise.
8228         (tui_horizontal_source_scroll): Likewise.
8229         (tui_update_breakpoint_info): Likewise.
8230         (tui_set_exec_info_content): Likewise.
8231         (tui_show_exec_info_content): Likewise.
8232         (tui_alloc_source_buffer): Likewise.
8233         (tui_line_is_displayed): Likewise.
8234         (tui_addr_is_displayed): Likewise.
8235
8236 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8237
8238         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8239         event if PL_FLAG_EXEC is set.
8240         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8241         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8242         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8243         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8244         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8245
8246 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8247
8248         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8249         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8250         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8251         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8252         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8253         [PT_LWPINFO] (fbsd_wait): New function.
8254         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8255         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8256         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8257         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8258         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8259         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8260         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8261         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8262         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8263         "fbsd_wait".
8264         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8265         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8266         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8267         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8268         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8269         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8270         Set "to_post_attach" to "fbsd_post_attach".
8271
8272 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8273
8274         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8275         (fbsd_find_memory_regions): Mark static.
8276         (fbsd_nat_add_target): New function.
8277         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8278         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8279         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8280         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8281         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8282         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8283
8284 2015-04-27  Gary Benson <gbenson@redhat.com>
8285
8286         * objfiles.c (allocate_objfile): Do not attempt to expand name
8287         if name is a "target:" filename.
8288         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8289         to load auto-load scripts for objfiles with "target:" filenames.
8290
8291 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8292
8293         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8294         (enum s390_vector_abi_kind): New enum.
8295         (struct gdbarch_tdep)<vector_abi>: New field.
8296         (s390_effective_inner_type): Add parameter min_size.  Stop
8297         unwrapping if the inner type is smaller than min_size.
8298         (s390_function_arg_float): Adjust call to
8299         s390_effective_inner_type.
8300         (s390_function_arg_vector): New function.
8301         (s390_function_arg_integer): Adjust comment.
8302         (struct s390_arg_state)<vr>: New field.
8303         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8304         arguments according to vector ABI when appropriate.
8305         (s390_push_dummy_call): Initialize the argument state's field
8306         'vr'.  Adjust calls to s390_handle_arg.
8307         (s390_register_return_value): Handle vector return values.
8308         (s390_return_value): Apply the "register" return value convention
8309         to a vector when appropriate.
8310         (s390_gdbarch_init): Initialize tdep->vector_abi.
8311         * NEWS: Announce S390 vector ABI support.
8312
8313 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8314
8315         * s390-linux-tdep.c (s390_return_value_convention): Remove
8316         function.  Inline its logic...
8317         (s390_return_value): ...here.  Instead, move the handling of the
8318         "register" return value convention...
8319         (s390_register_return_value): ...here.  New function.
8320
8321 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8322
8323         * s390-linux-tdep.c
8324         (is_float_singleton): Remove function.  Move the "singleton" part
8325         of the logic...
8326         (s390_effective_inner_type): ...here.  New function.
8327         (is_float_like): Remove function.  Inline its logic...
8328         (s390_function_arg_float): ...here.
8329         (is_pointer_like, is_integer_like, is_struct_like): Remove
8330         functions.  Inline their logic...
8331         (s390_function_arg_integer): ...here.
8332         (s390_function_arg_pass_by_reference): Remove function.
8333         (extend_simple_arg): Remove function.
8334         (alignment_of): Remove function.
8335         (struct s390_arg_state): New structure.
8336         (s390_handle_arg): New function.
8337         (s390_push_dummy_call): Move parameter placement logic to the new
8338         function s390_handle_arg.  Call it for calculating the stack area
8339         sizes first, and again for actually writing the parameters.
8340
8341 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8342
8343         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8344           false if the argument is zero.
8345
8346 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8347
8348         * ada-lang.c (template_to_static_fixed_type): Return input type
8349         when it is already fixed.  Cache the input type itself when not
8350         creating a static fixed copy.  Make it explicit that we never
8351         molestate the input type.
8352         * gdbtypes.c (resolve_dynamic_struct): Reset the
8353         TYPE_TARGET_TYPE field for resolved copies.
8354
8355 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8356
8357         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8358         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8359         (template_to_static_fixed_type): Call ada_check_typedef only
8360         when necessary.
8361
8362 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8363
8364         * cli/cli-dump.c (srec_dump_command): Add internationalization
8365         mark ups.
8366         (ihex_dump_command): Likewise.
8367         (tekhex_dump_command): Likewise.
8368         (binary_dump_command): Likewise.
8369         (binary_append_command): Likewise.
8370
8371 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8372
8373         * cli/cli-dump.c (verilog_cmdlist): New variable.
8374         (dump_verilog_memory): New function.
8375         (dump_verilog_value): New function.
8376         (verilog_dump_command): New function.
8377         (_initialize_cli_dump): Add new commands to support verilog dump
8378         format.
8379         * NEWS: Add entry for "dump verilog".
8380
8381 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8382
8383         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8384         descriptive type when there is none.
8385
8386 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8387
8388         * tui/tui-win.c (tui_async_resize_screen): Call
8389         rl_resize_terminal().
8390
8391 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8392
8393         * windows-nat.c (handle_output_debug_string): Don't change
8394         current_event.dwThreadId.
8395         (get_windows_debug_event): Use thread_id, rather than relying on
8396         current_event.dwThreadId being changed.
8397
8398 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8399
8400         * windows-nat.c (windows_continue): Report an error if
8401         ContinueDebugEvent() fails.
8402
8403 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8404
8405         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8406
8407 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8408
8409         * windows-nat.c (get_windows_debug_event): Replace retval with
8410         thread_id throughout.  Update stale comment.
8411
8412 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8413
8414         * windows-nat.c (get_windows_debug_event): Don't use ternary
8415         conditional operator.
8416
8417 2015-04-21  Pierre Muller  <muller@sourceware.org>
8418
8419         PR pascal/17815
8420         p-exp.y (yylex): Reorganize code to return the matched pattern
8421         for a field of this.
8422
8423 2015-04-21  Gary Benson <gbenson@redhat.com>
8424
8425         * common/fileio.h (fileio_to_host_openflags): New declaration.
8426         * common/fileio.c (fcntl.h): New include.
8427         (fileio_to_host_openflags): New function, factored out from...
8428         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8429         Single use updated.
8430
8431 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8432
8433         * rl78-tdep.c (RL78_SP_ADDR): Define.
8434         (opc_reg_to_gdb_regnum): New static function.
8435         (rl78_analyze_prologue): Recognize instructions forming slightly
8436         more interesting prologues.
8437
8438 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8439
8440         Revert:
8441         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8442         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8443         TYPE_CODE_REF types so that they are not considered as dynamic
8444         depending on the referenced type.
8445         (resolve_dynamic_type_internal): Likewise.
8446
8447 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8448
8449         Revert:
8450         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8451         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8452         "top_level" parameter.
8453         (resolve_dynamic_type_internal): Remove the unused "top_level"
8454         parameter.  Update call to is_dynamic_type_internal.
8455         (is_dynamic_type): Update call to is_dynamic_type_internal.
8456         (resolve_dynamic_range): Update call to
8457         resolve_dynamic_type_internal.
8458         (resolve_dynamic_union): Likewise.
8459         (resolve_dynamic_struct): Likewise.
8460         (resolve_dynamic_type): Likewise.
8461
8462 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8463
8464         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8465         xmalloc.
8466
8467 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8468
8469         * reply_mig_hack.awk: Robustify parsing.
8470
8471         * reply_mig_hack.awk: Don't bother to declare an intermediate
8472         function pointer variable.
8473
8474 2015-04-17  Doug Evans  <dje@google.com>
8475
8476         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8477         to "exec_displacement" to avoid confusion with inner use of the name.
8478
8479 2015-04-17  Pedro Alves  <palves@redhat.com>
8480
8481         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8482         if HW point of TYPE isn't supported.
8483
8484 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8485             Pedro Alves  <palves@redhat.com>
8486
8487         * target.h (target_can_use_hardware_watchpoint): Update comments.
8488         Remove trailing ";".
8489
8490 2015-04-17  Gary Benson <gbenson@redhat.com>
8491
8492         * remote.c (remote_add_inferior): New argument try_open_exec.
8493         If nonzero, attempt to open the inferior's executable file as
8494         the main executable if no main executable is open already.
8495         All callers updated.
8496         * NEWS: Mention that GDB now supports automatic location and
8497         retrieval of executable + files from remote targets.
8498
8499 2015-04-17  Gary Benson <gbenson@redhat.com>
8500
8501         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8502         * remote.c (PACKET_qXfer_exec_file): Likewise.
8503         (remote_protocol_features): Register the
8504         "qXfer:exec-file:read" feature.
8505         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8506         (remote_pid_to_exec_file): New function.
8507         (init_remote_ops): Initialize to_pid_to_exec_file.
8508         (_initialize_remote): Register new "set/show remote
8509         pid-to-exec-file-packet" command.
8510         * NEWS: Announce new qXfer:exec-file:read packet.
8511
8512 2015-04-17  Gary Benson <gbenson@redhat.com>
8513
8514         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8515         New declaration.
8516         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8517         New function, factored out from...
8518         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8519
8520 2015-04-17  Gary Benson <gbenson@redhat.com>
8521
8522         * exec.c (solist.h): New include.
8523         (exec_file_locate_attach): Prefix absolute executable
8524         paths with gdb_sysroot if set.
8525         * NEWS: Mention that executable paths may be prepended
8526         with sysroot.
8527
8528 2015-04-17  Gary Benson <gbenson@redhat.com>
8529
8530         * solist.h (exec_file_find): New declaration.
8531         * solib.c (solib_find_1): New function, factored out from...
8532         (solib_find): ...here.
8533         (exec_file_find): New function.
8534
8535 2015-04-17  Gary Benson <gbenson@redhat.com>
8536
8537         * gdbcore.h (exec_file_locate_attach): New declaration.
8538         * exec.c (exec_file_locate_attach): New function, factored
8539         out from...
8540         * infcmd.c (attach_command_post_wait): ...here.
8541
8542 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8543
8544         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8545
8546 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8547
8548         * infrun.c (maybe_software_singlestep): Declare.
8549         (displaced_step_fixup): Call maybe_software_singlestep.
8550
8551 2015-04-15  Doug Evans  <dje@google.com>
8552
8553         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8554
8555 2015-04-15  Doug Evans  <dje@google.com>
8556
8557         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8558
8559 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8560
8561         * python/lib/gdb/command/unwinders.py: Add parentheses.
8562
8563 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8564
8565         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8566
8567 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8568
8569         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8570
8571 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8572
8573         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8574         dsc->insn_size instead of 4.
8575
8576 2015-04-14  Gary Benson <gbenson@redhat.com>
8577
8578         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8579         * minidebug.c (lzma_stat): Likewise.
8580         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8581         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8582
8583 2015-04-13  Stan Shebs  <stanshebs@google.com>
8584
8585         * MAINTAINERS: Update my email address.
8586
8587 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8588
8589         * amd64-tdep.c (amd64_target_description): New function.
8590         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8591         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8592         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8593         x86 extended save area.
8594         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8595         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8596         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8597         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8598         "amd64fbsd_read_description".
8599         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8600         (amd64fbsd_supply_xstateregset): New function.
8601         (amd64fbsd_collect_xstateregset): New function.
8602         Add "amd64fbsd_xstateregset".
8603         (amd64fbsd_iterate_over_regset_sections): New function.
8604         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8605         "I386_FBSD_XSAVE_XCR0_OFFSET".
8606         Add "iterate_over_regset_sections" gdbarch method.
8607         Add "core_read_description" gdbarch method.
8608         * i386-tdep.c (i386_target_description): New function.
8609         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8610         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8611         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8612         x86 extended save area.
8613         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8614         * i386bsd-nat.h: Export i386bsd_xsave_len.
8615         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8616         (_initialize_i386fbsd_nat): Set "to_read_description" to
8617         "i386fbsd_read_description".
8618         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8619         (i386fbsd_core_read_description): New function.
8620         (i386fbsd_supply_xstateregset): New function.
8621         (i386fbsd_collect_xstateregset): New function.
8622         Add "i386fbsd_xstateregset".
8623         (i386fbsd_iterate_over_regset_sections): New function.
8624         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8625         "I386_FBSD_XSAVE_XCR0_OFFSET".
8626         Add "iterate_over_regset_sections" gdbarch method.
8627         Add "core_read_description" gdbarch method.
8628         * i386fbsd-tdep.h: New file.
8629
8630 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8631
8632         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8633         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8634         conditional.
8635         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8636         and lb.
8637         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8638         va.
8639         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8640         conditional.
8641         * defs.h (xdb_commands): Remove declaration.
8642         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8643         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8644         * infcmd.c (run_no_args_command, go_command): Remove.
8645         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8646         * infrun.c (xdb_handle_command): Remove.
8647         (_initialize_infrun): Remove xdb_commands for lz and z.
8648         * main.c (xdb_commands): Remove variable.
8649         (captured_main): Remove "xdb" from long_options.
8650         (print_gdb_help): Remove --xdb from help.
8651         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8652         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8653         * stack.c (backtrace_full_command, args_plus_locals_info)
8654         (current_frame_command): Remove.
8655         (_initialize_stack): Remove xdb_commands for t, T and l.
8656         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8657         * thread.c (_initialize_thread): Remove xdb_commands condition.
8658         * tui/tui-layout.c (tui_toggle_layout_command)
8659         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8660         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8661         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8662         (tui_scroll_regs_backward_command): Remove.
8663         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8664         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8665         (_initialize_tui_win): Remove xdb_commands for U and w.
8666         * utils.c (pagination_on_command, pagination_off_command): Remove.
8667         (initialize_utils): Remove xdb_commands for am and sm.
8668
8669 2015-04-10  Pedro Alves  <palves@redhat.com>
8670
8671         * infrun.c (displaced_step_fixup): Switch to the event ptid
8672         earlier.  If the thread stopped for a watchpoint and the
8673         target/arch has non-continuable watchpoints, cancel the displaced
8674         step.
8675         (resume): Don't start a displaced step if in-line step-over info
8676         is valid.
8677
8678 2015-04-10  Pedro Alves  <palves@redhat.com>
8679
8680         * infrun.c (displaced_step_in_progress): New function.
8681         (do_target_resume): Advise target to report all signals if
8682         displaced stepping.
8683
8684 2015-04-10  Pedro Alves  <palves@redhat.com>
8685
8686         PR gdb/18216
8687         * infrun.c (process_event_stop_test): Don't assume a step-resume
8688         is set if tp->stepped_breakpoint is true.
8689
8690 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8691
8692         * arm-tdep.c (install_alu_reg): Update comment.
8693         (thumb_copy_alu_reg): Remove local variable rn.  Update
8694         debugging message.  Use r2 instead of r1 in the modified
8695         instruction.
8696
8697 2015-04-10  Pedro Alves  <palves@redhat.com>
8698
8699         PR gdb/13858
8700         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8701         linux_displaced_step_location as gdbarch_displaced_step_location
8702         hook.
8703         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8704         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8705         * linux-tdep.c (linux_displaced_step_location): New function,
8706         based on ppc_linux_displaced_step_location.
8707         * linux-tdep.h (linux_displaced_step_location): New declaration.
8708         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8709         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8710         Delete.
8711         (ppc_linux_init_abi): Install linux_displaced_step_location as
8712         gdbarch_displaced_step_location hook, even without Cell/B.E..
8713         (_initialize_ppc_linux_tdep): Don't install
8714         ppc_linux_inferior_created as inferior_created observer.
8715         * s390-linux-tdep.c (s390_gdbarch_init): Install
8716         linux_displaced_step_location as gdbarch_displaced_step_location
8717         hook.
8718
8719 2015-04-09  Gary Benson <gbenson@redhat.com>
8720
8721         * common/common-remote-fileio.h: Rename to...
8722         * common/fileio.h: ...this.  Update all references.
8723         (remote_fileio_to_fio_error): Rename to...
8724         (host_to_fileio_error): ...this.
8725         (remote_fileio_to_be): Rename to...
8726         (host_to_bigendian): ...this.  Update all callers.
8727         (remote_fileio_to_fio_uint): Rename to...
8728         (host_to_fileio_uint): ...this.  Update all callers.
8729         (remote_fileio_to_fio_time): Rename to...
8730         (host_to_fileio_time): ...this.  Update all callers.
8731         (remote_fileio_to_fio_stat): Rename to...
8732         (host_to_fileio_stat): ...this.
8733         Update all references.
8734         * common/common-remote-fileio.c: Rename to...
8735         * common/fileio.c: ...this.  Update all references.
8736         (remote_fileio_to_fio_error): Rename to...
8737         (host_to_fileio_error): ...this.  Update all callers.
8738         (remote_fileio_mode_to_target): Rename to...
8739         (fileio_mode_pack): ...this.  Update all callers.
8740         (remote_fileio_to_fio_mode): Rename to...
8741         (host_to_fileio_mode): ...this.  Update all callers.
8742         (remote_fileio_to_fio_ulong): Rename to...
8743         (host_to_fileio_ulong): ...this.  Update all callers.
8744         (remote_fileio_to_fio_stat): Rename to...
8745         (host_to_fileio_stat): ...this.  Update all callers.
8746
8747 2015-04-09  Andy Wingo  <wingo@igalia.com>
8748
8749         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8750         (frame_functions): Bind gdbscm_frame_read_register to
8751         frame-read-register.
8752         * guile/lib/gdb.scm (frame-read-register): Export.
8753
8754 2015-04-09  Gary Benson <gbenson@redhat.com>
8755
8756         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8757         New declaration.
8758         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8759         New function, factored out the named functions below.
8760         * inf-child.c (gdb/fileio.h): Remove include.
8761         (common-remote-fileio.h): New include.
8762         (inf_child_errno_to_fileio_error): Remove function.  Update
8763         all callers to use remote_fileio_to_fio_error.
8764         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8765
8766 2015-04-09  Andy Wingo  <wingo@igalia.com>
8767
8768         * MAINTAINERS (Write After Approval): Add Andy Wingo.
8769
8770 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8771
8772         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8773         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8774         * configure: Regenerated.
8775
8776 2015-04-09  Pedro Alves  <palves@redhat.com>
8777
8778         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8779         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8780         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8781         * gnulib/import/Makefile.am: Update.
8782         * gnulib/import/Makefile.in: Update.
8783         * gnulib/import/m4/gnulib-cache.m4: Update.
8784         * gnulib/import/m4/gnulib-comp.m4: Update.
8785         * gnulib/import/m4/strtok_r.m4: New file.
8786         * gnulib/import/strtok_r.c: New file.
8787
8788 2015-04-09  Pedro Alves  <palves@redhat.com>
8789
8790         * gnulib/update-gnulib.sh (aclocal version check): Filter out
8791         "called too early to check prototype".
8792
8793 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
8794
8795         PR python/16699
8796         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8797         use a caching mechanism.  Adjust comments and code to reflect
8798         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8799         (cmdpy_completer_handle_brkchars): Adjust call to
8800         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
8801         (cmdpy_completer): Likewise.
8802
8803 2015-04-08  Yao Qi  <yao.qi@linaro.org>
8804
8805         * spu-tdep.c (spu_gdbarch_init): Don't call
8806         set_gdbarch_cannot_step_breakpoint.
8807
8808 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
8809
8810         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8811
8812 2015-04-07  Pedro Alves  <palves@redhat.com>
8813
8814         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8815         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8816         (delete_exited_threads): New declaration.
8817         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8818         * linux-nat.c (linux_nat_update_thread_list): New function.
8819         (linux_nat_add_target): Install it.
8820         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8821         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8822         (delete_exited_threads): New function.
8823
8824 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
8825
8826         * infrun.c (resume) <displaced stepping debug output>: Get the
8827         leader thread's regcache, not resume_ptid's.
8828
8829 2015-04-06  Doug Evans  <xdje42@gmail.com>
8830
8831         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8832         VAR_DOMAIN.
8833         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8834         Include symbol domain in debugging output.
8835
8836 2015-04-06  Pedro Alves  <palves@redhat.com>
8837             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8838
8839         * configure.ac: Remove the mingw32-specific stub-termcap.o
8840         fallback, and instead fallback to the stub termcap on all hosts.
8841         * configure: Regenerate.
8842         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8843         symbols.
8844
8845 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8846
8847         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8848         "top_level" parameter.
8849         (resolve_dynamic_type_internal): Remove the unused "top_level"
8850         parameter.  Update call to is_dynamic_type_internal.
8851         (is_dynamic_type): Update call to is_dynamic_type_internal.
8852         (resolve_dynamic_range): Update call to
8853         resolve_dynamic_type_internal.
8854         (resolve_dynamic_union): Likewise.
8855         (resolve_dynamic_struct): Likewise.
8856         (resolve_dynamic_type): Likewise.
8857
8858 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8859
8860         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8861         TYPE_CODE_REF types so that they are not considered as dynamic
8862         depending on the referenced type.
8863         (resolve_dynamic_type_internal): Likewise.
8864
8865 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8866
8867         * Makefile.in (top_srcdir): New.
8868         * configure: Regenerated.
8869
8870 2015-04-02  Gary Benson <gbenson@redhat.com>
8871
8872         * NEWS: Announce the new default sysroot of "target:".
8873
8874 2015-04-02  Gary Benson <gbenson@redhat.com>
8875
8876         * main.c (captured_main): Set gdb_sysroot to "target:"
8877         if not otherwise set.
8878
8879 2015-04-02  Gary Benson <gbenson@redhat.com>
8880
8881         * exec.c (exec_file_attach): Support "target:" filenames.
8882
8883 2015-04-02  Gary Benson <gbenson@redhat.com>
8884
8885         * solib.c (solib_find): Strip "target:" prefix from sysroot
8886         if accessing local files.
8887
8888 2015-04-02  Gary Benson <gbenson@redhat.com>
8889
8890         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8891         checks and error messages.
8892
8893 2015-04-02  Gary Benson <gbenson@redhat.com>
8894
8895         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8896         (remote_filename_p): Remove declaration.
8897         (remote_bfd_open): Likewise.
8898         * remote.c (remote_bfd_iovec_open): Remove function.
8899         (remote_bfd_iovec_close): Likewise.
8900         (remote_bfd_iovec_pread): Likewise.
8901         (remote_bfd_iovec_stat): Likewise.
8902         (remote_filename_p): Likewise.
8903         (remote_bfd_open): Likewise.
8904         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8905         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8906         (gdb_bfd_open_maybe_remote): Remove function.
8907         (symfile_bfd_open):  Replace remote filename check with
8908         target filename check.
8909         (reread_symbols): Use gdb_bfd_open.
8910         * build-id.c (gdbcore.h): New include.
8911         (build_id_to_debug_bfd): Use gdb_bfd_open.
8912         * infcmd.c (attach_command_post_wait): Remove remote filename
8913         check.
8914         * solib.c (solib_find): Replace remote-specific handling with
8915         target-specific handling.  Update comments where necessary.
8916         (solib_bfd_open): Replace remote-specific handling with
8917         target-specific handling.
8918         (gdb_sysroot_changed): New function.
8919         (_initialize_solib): Call the above when gdb_sysroot changes.
8920         * windows-tdep.c (gdbcore.h): New include.
8921         (windows_xfer_shared_library): Use gdb_bfd_open.
8922
8923 2015-04-02  Gary Benson <gbenson@redhat.com>
8924
8925         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8926         (is_target_filename): New declaration.
8927         (gdb_bfd_has_target_filename): Likewise.
8928         (gdb_bfd_open): Update documentation comment.
8929         * gdb_bfd.c (target.h): New include.
8930         (gdb/fileio.h): Likewise.
8931         (is_target_filename): New function.
8932         (gdb_bfd_has_target_filename): Likewise.
8933         (fileio_errno_to_host): Likewise.
8934         (gdb_bfd_iovec_fileio_open): Likewise.
8935         (gdb_bfd_iovec_fileio_pread): Likewise.
8936         (gdb_bfd_iovec_fileio_close): Likewise.
8937         (gdb_bfd_iovec_fileio_fstat): Likewise.
8938         (gdb_bfd_open): Use target fileio to access paths prefixed
8939         with "target:" where necessary.
8940
8941 2015-04-02  Gary Benson <gbenson@redhat.com>
8942
8943         * target.h (struct target_ops) <to_filesystem_is_local>:
8944         New field.
8945         (target_filesystem_is_local): New macro.
8946         * target-delegates.c: Regenerate.
8947         * remote.c (remote_filesystem_is_local): New function.
8948         (init_remote_ops): Initialize to_filesystem_is_local.
8949
8950 2015-04-02  Gary Benson <gbenson@redhat.com>
8951
8952         * target.h (struct target_ops) <to_fileio_fstat>: New field.
8953         (target_fileio_fstat): New declaration.
8954         * target.c (target_fileio_fstat): New function.
8955         * inf-child.c (inf_child_fileio_fstat): Likewise.
8956         (inf_child_target): Initialize to_fileio_fstat.
8957         * remote.c (init_remote_ops): Likewise.
8958
8959 2015-04-01  Sasha Smundak  <asmundak@google.com>
8960
8961         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8962         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8963         (py-unwind.o): New recipe.
8964         * NEWS: mention Python frame unwinding.
8965         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8966         gdb/unwinder.py and gdb/command/unwinder.py
8967         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8968         list.
8969         (execute_unwinders): New function.
8970         * python/lib/gdb/command/unwinders.py: New file.
8971         * python/lib/gdb/unwinder.py: New file.
8972         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8973         (objfpy_dealloc): Decrement frame_unwinders reference count.
8974         (objfpy_initialize): Create frame_unwinders list.
8975         (objfpy_get_frame_unwinders): New function.
8976         (objfpy_set_frame_unwinders): Ditto.
8977         (objfile_getset): Add frame_unwinders attribute to Objfile.
8978         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8979         (pspy_dealloc): Decrement frame_unwinders reference count.
8980         (pspy_initialize): Create frame_unwinders list.
8981         (pspy_get_frame_unwinders): New function.
8982         (pspy_set_frame_unwinders): Ditto.
8983         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8984         * python/py-unwind.c: New file.
8985         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8986         (objpy_get_frame_unwinders): New prototype.
8987         (gdbpy_initialize_unwind): New prototype.
8988         * python/python.c (gdbpy_apply_type_printers): Call
8989         gdbpy_initialize_unwind.
8990
8991 2015-04-01  Pedro Alves  <palves@redhat.com>
8992
8993         * infrun.c (resume): Check currently_stepping after clearing
8994         stepped_breakpoint, not before.
8995
8996 2015-04-01  Pedro Alves  <palves@redhat.com>
8997
8998         * infrun.c (print_target_wait_results): Print all the ptid
8999         elements.
9000
9001 2015-04-01  Pedro Alves  <palves@redhat.com>
9002
9003         * infrun.c (keep_going): Also discard cleanups if inserting
9004         breakpoints fails.
9005
9006 2015-04-01  Pedro Alves  <palves@redhat.com>
9007
9008         * infrun.c (wait_for_inferior): Install the
9009         finish_thread_state_cleanup cleanup across the whole function, not
9010         just around handle_inferior_event.
9011
9012 2015-04-01  Pedro Alves  <palves@redhat.com>
9013
9014         * infrun.c (resume) <step past permanent breakpoint>: Use
9015         do_target_resume.
9016
9017 2015-04-01  Pedro Alves  <palves@redhat.com>
9018
9019         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9020
9021 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9022
9023         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9024
9025 2015-04-01  Pedro Alves  <palves@redhat.com>
9026
9027         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9028         list if it was marked exited.
9029
9030 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9031
9032         * configure: Regenerated.
9033
9034 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9035             Jan Kratochvil  <jan.kratochvil@redhat.com>
9036             Oleg Nesterov  <oleg@redhat.com>
9037
9038         PR corefiles/16092
9039         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9040         New enum identifying the various options of the coredump_filter
9041         file.
9042         (struct smaps_vmflags): New struct.
9043         (use_coredump_filter): New variable.
9044         (decode_vmflags): New function.
9045         (mapping_is_anonymous_p): Likewise.
9046         (dump_mapping_p): Likewise.
9047         (linux_find_memory_regions_full): New variables
9048         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9049         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9050         parsing of its information.  Implement memory mapping filtering
9051         based on its contents.
9052         (show_use_coredump_filter): New function.
9053         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9054         * NEWS: Mention the possibility of using the
9055         '/proc/PID/coredump_filter' file when generating a corefile.
9056         Mention new command 'set use-coredump-filter'.
9057
9058 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9059
9060         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9061         read_memory_unsigned_integer.
9062
9063 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9064
9065         * Makefile.in (ZLIB): New.
9066         (ZLIBINC): Likewise.
9067         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9068         (CLIBS): Add $(ZLIB).
9069         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9070         Add -lz to LIBS.
9071         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9072         * top.c (print_gdb_configuration): Remove --with-zlib and
9073         --without-zlib.
9074         * config.in: Regenerated.
9075         * configure: Likewise.
9076
9077 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9078
9079         * NEWS: Mention info os cpus support.
9080         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9081         (struct osdata_type): Add cpus entry, reorder the entries in
9082         alphabetical order.
9083
9084 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9085
9086         * compile/compile.c (compile_to_object): Allow triplets with or
9087         without vendor set.
9088
9089 2015-03-30  Doug Evans  <dje@google.com>
9090
9091         PR c++/18141
9092         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9093         klass in VAR_DOMAIN.
9094
9095 2015-03-30  Gary Benson <gbenson@redhat.com>
9096
9097         * remote.c (remote_mourn_1): Remove function.  Update all callers
9098         to use remote_mourn.
9099         (extended_remote_mourn_1): Remove function.  Update all callers
9100         to use extended_remote_mourn.
9101         (extended_remote_attach_1): Remove function.  Update all callers
9102         to use extended_remote_attach.
9103
9104 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9105
9106         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9107         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9108         (ALLDEPFILES): Add ft32-tdep.c.
9109         * configure.tgt: Add FT32 entry.
9110         * ft32-tdep.c: New file, FT32 target-dependent code.
9111         * ft32-tdep.h: New file, FT32 target-dependent code.
9112
9113 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9114
9115         Revert:
9116         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9117         Code cleanup.
9118         * printcmd.c (print_command_1): Move expr variable scope.
9119
9120 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9121
9122         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9123
9124 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9125
9126         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9127         sections.
9128
9129 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9130
9131         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9132         exception raised while parsing the probe arguments.
9133         Force parsing to be done using the C language parser.
9134         * expression.h (parse_expression_with_language): Declare.
9135         * parse.c (parse_expression_with_language): New function.
9136
9137 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9138
9139         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9140
9141 2015-03-26  Andy Wingo  <wingo@igalia.com>
9142
9143         PR symtab/18148
9144         * dwarf2read.c (struct partial_die_info): Add has_const_value
9145         member.
9146         (add_partial_symbol): Don't punt on symbols that have const_value
9147         attributes.
9148         (read_partial_die): Detect DW_AT_const_value.
9149
9150 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9151
9152         Code cleanup.
9153         * printcmd.c (print_command_1): Move expr variable scope.
9154
9155 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9156
9157         Code cleanup.
9158         * printcmd.c (validate_format): Make the parameter cmdname const.
9159
9160 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9161
9162         * remote.c (_initialize_remote): Update comment.
9163
9164 2015-03-26  Pedro Alves  <palves@redhat.com>
9165             Jon TURNEY  <jon.turney@dronecode.org.uk>
9166
9167         * coffread.c (coff_symfile_read): When constructing the name of an
9168         import stub symbol from import symbol for amd64, only skip the
9169         char after _imp_ if the target is underscored (like i386) and the
9170         char is indeed the target's leading char.
9171
9172 2015-03-25  Pedro Alves  <palves@redhat.com>
9173
9174         * target.h <to_async>: Replace 'callback' and 'context' parameters
9175         with boolean 'enable' parameter.
9176         (target_async): Replace CALLBACK and CONTEXT parameters with
9177         boolean ENABLE parameter.
9178         * inf-loop.c (inferior_event_handler): Adjust.
9179         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9180         (linux_nat_resume): Adjust.
9181         (async_client_callback, async_client_context): Delete.
9182         (handle_target_event): Call inferior_event_handler directly.
9183         (linux_nat_async): Replace 'callback' and 'context' parameters
9184         with boolean 'enable' parameter.  Adjust.  Remove references to
9185         async_client_callback and async_client_context.
9186         (linux_nat_close): Adjust.
9187         * record-btrace.c (record_btrace_async): Replace 'callback' and
9188         'context' parameters with boolean 'enable' parameter.  Adjust.
9189         (record_btrace_resume): Adjust.
9190         * record-full.c (record_full_async): Replace 'callback' and
9191         'context' parameters with boolean 'enable' parameter.  Adjust.
9192         (record_full_resume, record_full_core_resume): Adjust.
9193         * remote.c (struct remote_state) <async_client_callback,
9194         async_client_context>: Delete fields.
9195         (remote_start_remote, extended_remote_attach_1, remote_resume)
9196         (extended_remote_create_inferior): Adjust.
9197         (remote_async_serial_handler): Call inferior_event_handler
9198         directly.
9199         (remote_async): Replace 'callback' and 'context' parameters with
9200         boolean 'enable' parameter.  Adjust.
9201         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9202         Adjust.
9203         * target-delegates.c: Regenerate.
9204
9205 2015-03-25  Gary Benson <gbenson@redhat.com>
9206             Pedro Alves  <palves@redhat.com>
9207
9208         * target.c (fileio_ft_t): New typedef, define object vector.
9209         (fileio_fhandles): New static variable.
9210         (is_closed_fileio_fh): New macro.
9211         (lowest_closed_fd): New static variable.
9212         (acquire_fileio_fd): New function.
9213         (release_fileio_fd): Likewise.
9214         (fileio_fd_to_fh): New macro.
9215         (target_fileio_open): Wrap the file descriptor on success.
9216         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9217         (target_fileio_pread): Likewise.
9218         (target_fileio_close): Likewise.
9219
9220 2015-03-24  Pedro Alves  <palves@redhat.com>
9221
9222         * thread.c (thread_apply_all_command): Take exited threads into
9223         account.
9224
9225 2015-03-24  Pedro Alves  <palves@redhat.com>
9226
9227         * infrun.c (resume, proceed): Mention
9228         switch_back_to_stepped_thread, not switch_back_to_stepping.
9229
9230 2015-03-24  Pedro Alves  <palves@redhat.com>
9231
9232         * infrun.c (user_visible_resume_ptid): Rewrite going from
9233         most-locked to unlocked instead of the opposite.  Move comment ...
9234         * infrun.h (user_visible_resume_ptid): ... here.
9235
9236 2015-03-24  Pedro Alves  <palves@redhat.com>
9237
9238         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9239         to resume the event lwp.  Use the lwp's ptid instead of the passed
9240         in (maybe wildcard) ptid.
9241         (stop_wait_callback): Tweak debug log output.
9242         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9243         TRAP_TRACE.
9244         (linux_nat_filter_event): In debug output, distinguish a
9245         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9246         before trying to resume the lwp.
9247
9248 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9249
9250         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9251         pointer indirection.
9252         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9253         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9254
9255 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9256
9257         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9258         Renames DYN_ATTR_DATA_LOCATION.
9259         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9260         DYN_ATTR_DATA_LOCATION.
9261         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9262         instead of DYN_ATTR_DATA_LOCATION.
9263
9264 2015-03-24  Pedro Alves  <palves@redhat.com>
9265
9266         * breakpoint.c (until_break_command): Adjust call to proceed.
9267         * gdbthread.h (struct thread_control_state) <stepping_command>:
9268         New field.
9269         * infcall.c (run_inferior_call): Adjust call to proceed.
9270         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9271         Adjust calls to proceed.
9272         (set_step_frame): Set the current thread's step_start_function
9273         here.
9274         (step_once): Adjust calls to proceed.
9275         (jump_command, signal_command, until_next_command)
9276         (finish_backward, finish_forward, proceed_after_attach_callback)
9277         (attach_command_post_wait): Adjust calls to proceed.
9278         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9279         (do_target_resume): New function, factored out from ...
9280         (resume): ... here.  Remove 'step' parameter.  Instead, check
9281         currently_stepping to determine whether the thread should be
9282         single-stepped.
9283         (proceed): Remove 'step' parameter and don't set the thread's
9284         step_start_function here.  Adjust call to 'resume'.
9285         (handle_inferior_event): Adjust calls to 'resume'.
9286         (switch_back_to_stepped_thread): Use do_target_resume instead of
9287         'resume'.
9288         (keep_going): Adjust calls to 'resume'.
9289         * infrun.h (proceed): Remove 'step' parameter.
9290         (resume): Likewise.
9291         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9292         'resume'.
9293         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9294
9295 2015-03-24  Pedro Alves  <palves@redhat.com>
9296
9297         * gdbthread.h (struct thread_control_state) <stepping_command>:
9298         New field.
9299         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9300         the thread's stepping_command field.
9301         * infrun.c (resume): Check the thread's stepping_command flag to
9302         determine which threads should be resumed.  Rename 'entry_step'
9303         local to user_step.
9304         (clear_proceed_status_thread): Clear 'stepping_command'.
9305         (schedlock_applies): Change parameter type to struct thread_info
9306         pointer.  Adjust.
9307         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9308         (switch_back_to_stepped_thread): Adjust calls to
9309         'schedlock_applies'.
9310         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9311
9312 2015-03-24  Pedro Alves  <palves@redhat.com>
9313
9314         * infrun.c (step_start_function): Delete and ...
9315         * gdbthread.h (struct thread_control_state) <step_start_function>:
9316         ... now a field here.
9317         * infrun.c (clear_proceed_status_thread): Clear the thread's
9318         step_start_function.
9319         (proceed, process_event_stop_test, print_stop_event): Adjust.
9320
9321 2015-03-24  Pedro Alves  <palves@redhat.com>
9322
9323         * infrun.c (proceed): No longer handle negative step.
9324
9325 2015-03-24  Gary Benson  <gbenson@redhat.com>
9326
9327         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9328         (x86_linux_prepare_to_resume): Likewise.
9329         * x86-linux-nat.c (x86_linux_new_thread):
9330         Moved to nat/x86-linux.c.
9331         (x86_linux_prepare_to_resume): Likewise.
9332         * nat/x86-linux.c (x86_linux_new_thread): New function.
9333         (x86_linux_prepare_to_resume): Likewise.
9334
9335 2015-03-24  Gary Benson  <gbenson@redhat.com>
9336
9337         * nat/x86-linux-dregs.h: New file.
9338         * nat/x86-linux-dregs.c: Likewise.
9339         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9340         (x86-linux-dregs.o): New rule.
9341         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9342         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9343         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9344         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9345         (x86_linux_dr_get): Likewise.
9346         (x86_linux_dr_set): Likewise.
9347         (x86_linux_dr_get_addr): Likewise.
9348         (x86_linux_dr_get_control): Likewise.
9349         (x86_linux_dr_get_status): Likewise.
9350         (update_debug_registers_callback): Likewise.
9351         (x86_linux_dr_set_control): Likewise.
9352         (x86_linux_dr_set_addr): Likewise.
9353         (x86_linux_update_debug_registers): Likewise.
9354
9355 2015-03-24  Gary Benson  <gbenson@redhat.com>
9356
9357         * x86-linux-nat.c (x86_linux_update_debug_registers):
9358         New function, factored out from...
9359         (x86_linux_prepare_to_resume): ...this.
9360
9361 2015-03-24  Gary Benson  <gbenson@redhat.com>
9362
9363         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9364         (x86_linux_dr_set): Likewise.
9365         (x86_linux_dr_get_addr): Likewise.
9366         (x86_linux_dr_get_control): Likewise.
9367         (x86_linux_dr_get_status): Likewise.
9368         (update_debug_registers_callback): Likewise.
9369         (x86_linux_dr_set_control): Likewise.
9370         (x86_linux_dr_set_addr): Likewise.
9371         (x86_linux_prepare_to_resume): Likewise.
9372         (x86_linux_new_thread): Likewise.
9373
9374 2015-03-24  Gary Benson  <gbenson@redhat.com>
9375
9376         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9377         (x86_linux_new_thread): Rename argument.
9378
9379 2015-03-24  Gary Benson  <gbenson@redhat.com>
9380
9381         * nat/x86-linux.h: New file.
9382         * nat/x86-linux.c: Likewise.
9383         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9384         (x86-linux.o): New rule.
9385         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9386         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9387         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9388         (lwp_set_arch_private_info): New declaration.
9389         (lwp_arch_private_info): Likewise.
9390         * linux-nat.c (lwp_set_arch_private_info): New function.
9391         (lwp_arch_private_info): Likewise.
9392         * x86-linux-nat.c: Include nat/x86-linux.h.
9393         (arch_lwp_info): Removed structure.
9394         (update_debug_registers_callback):
9395         Use lwp_set_debug_registers_changed.
9396         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9397         and lwp_set_debug_registers_changed.
9398         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9399
9400 2015-03-24  Gary Benson  <gbenson@redhat.com>
9401
9402         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9403         (lwp_is_stopped): Likewise.
9404         (lwp_stop_reason): Likewise.
9405         * linux-nat.c (ptid_of_lwp): New function.
9406         (lwp_is_stopped): Likewise.
9407         (lwp_is_stopped_by_watchpoint): Likewise.
9408         * x86-linux-nat.c (update_debug_registers_callback):
9409         Use lwp_is_stopped.
9410         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9411         lwp_stop_reason.
9412
9413 2015-03-24  Gary Benson  <gbenson@redhat.com>
9414
9415         * linux-nat.h (linux_stop_lwp): Move declaration to...
9416         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9417
9418 2015-03-24  Gary Benson  <gbenson@redhat.com>
9419
9420         * linux-nat.h: Include nat/linux-nat.h.
9421         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9422         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9423         (iterate_over_lwps_ftype): New typedef.
9424         (iterate_over_lwps): New declaration.
9425         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9426         iterate_over_lwps_ftype.  Update callback return value check.
9427
9428 2015-03-24  Gary Benson  <gbenson@redhat.com>
9429
9430         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9431         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9432
9433 2015-03-24  Gary Benson  <gbenson@redhat.com>
9434
9435         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9436         * linux-nat.c (current_lwp_ptid): New function.
9437         * x86-linux-nat.c: Include nat/linux-nat.h.
9438         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9439         (x86_linux_dr_get_control): Likewise.
9440         (x86_linux_dr_get_status): Likewise.
9441         (x86_linux_dr_set_control): Likewise.
9442         (x86_linux_dr_set_addr): Likewise.
9443
9444 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9445
9446         PR breakpoints/16466
9447         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9448
9449 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9450
9451         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9452         * ser-unix.c (hardwire_setparity): Likewise.
9453
9454 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9455
9456         * NEWS: Mention set/show serial parity command.
9457         * monitor.c (monitor_open): Call serial_setparity.
9458         * remote.c (remote_open_1): Likewise.
9459         * ser-base.c (ser_base_serparity): New function.
9460         * ser-base.h (ser_base_setparity): Add  declaration.
9461         * ser-go32.c (dos_ops): Set "setparity" field.
9462         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9463         state.Parity.
9464         (ser_windows_setparity): New function.
9465         (hardwire_ops): Add ser_windows_setparity.
9466         (tty_ops): Add NULL for setparity field.
9467         (pipe_ops): Add ser_base_setparity.
9468         (tcp_ops): Likewise.
9469         * ser-pipe.c (pipe_ops): Likewise.
9470         * ser-tcp.c (tcp_ops): Likewise.
9471         * ser-unix.c (hardwire_setparity): Add declaration.
9472         (hardwire_raw): Don't reset PARENB flag.
9473         (hardwire_setparity): New function.
9474         (hardwire_ops): Add hardwire_setparity.
9475         * serial.c (serial_setparity): New function.
9476         (serial_parity): New global.
9477         (parity_none, parity_odd, parity_even, parity_enums, parity):
9478         New static globals.
9479         (set_parity): New function.
9480         (_initialize_serial): Add set/show serial parity commands.
9481         * serial.h (GDBPARITY_NONE): Define.
9482         (GDBPARITY_ODD): Define.
9483         (GDBPARITY_EVEN): Define.
9484         (serial_setparity) Add declaration.
9485         (struct serial_ops): Add setparity field.
9486         * target.h (serial_parity): Add declaration.
9487
9488 2015-03-23  Keith Seitz  <keiths@redhat.com>
9489
9490         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9491
9492 2015-03-23  Keith Seitz  <keiths@redhat.com>
9493
9494         * breakpoint.c (parse_breakpoint_sals): Use
9495         linespec_lexer_lex_keyword to ascertain if the user specified
9496         a NULL location.
9497         * linespec.c [IF_KEYWORD_INDEX]: Define.
9498         (linespec_lexer_lex_keyword): Export.
9499         (struct ls_parser) <keyword_ok>: Remove.
9500         A keyword is only a keyword if not followed by another keyword.
9501         (linespec_lexer_lex_one): Remove keyword_ok handling.
9502         Add comment explaining why the parsing stream is not advanced
9503         when a keyword is seen.
9504         (parse_linespec): Remove parser->keyword_ok.
9505         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9506
9507 2015-03-23  Keith Seitz  <keiths@redhat.com>
9508
9509         PR gdb/18021
9510         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9511         if we find a static method with DW_AT_vtable_elem_location.
9512
9513 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9514
9515         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9516         before the second loop, to avoid undefined behavior.  Reported by
9517         Anton Blanchard <anton@samba.org>.
9518
9519 2015-03-20  Keven Boell  <keven.boell@intel.com>
9520
9521         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9522         data_location usage to linked list.
9523         (resolve_dynamic_type_internal): Adapt data_location to
9524         linked list.
9525         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9526         (copy_type_recursive, copy_type): Add copy of linked list.
9527         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9528         (struct dynamic_prop_list): New struct.
9529         * dwarf2read.c (set_die_type): Set data_location data.
9530
9531 2015-03-20  Pedro Alves  <palves@redhat.com>
9532
9533         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9534         inner block and make it const.
9535         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9536
9537 2015-03-20  Pedro Alves  <palves@redhat.com>
9538
9539         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9540         * breakpoint.h (set_breakpoint_condition): Update declaration.
9541
9542 2015-03-20  Pedro Alves  <palves@redhat.com>
9543
9544         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9545
9546 2015-03-20  Pedro Alves  <palves@redhat.com>
9547
9548         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9549
9550 2015-03-20  Pedro Alves  <palves@redhat.com>
9551
9552         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9553
9554 2015-03-20  Pedro Alves  <palves@redhat.com>
9555
9556         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9557         (nto_init_solib_absolute_prefix): Likewise.
9558
9559 2015-03-20  Pedro Alves  <palves@redhat.com>
9560
9561         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9562         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9563
9564 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9565
9566         * config/djgpp/README: Remove gdb.hp.
9567
9568 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9569
9570         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9571         set_gdbarch_cannot_step_breakpoint.
9572
9573 2015-03-19  Pedro Alves  <palves@redhat.com>
9574
9575         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9576         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9577         instead call perror_with_name.
9578         (check_ptrace_stopped_lwp_gone): New function.
9579         (linux_resume_one_lwp): Reimplement as wrapper around
9580         linux_resume_one_lwp_throw that swallows errors if the LWP is
9581         gone.
9582         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9583         swallows errors if the LWP is gone.  Use
9584         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9585
9586 2015-03-19  Pedro Alves  <palves@redhat.com>
9587
9588         * linux-nat.c (status_callback): Return early if the LWP has no
9589         status pending.
9590
9591 2015-03-19  Pedro Alves  <palves@redhat.com>
9592
9593         * linux-nat.c (select_event_lwp_callback): Update comment to no
9594         longer mention SIGTRAP.
9595
9596 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9597
9598         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9599         redirection code to ...
9600         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9601         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9602
9603 2015-03-18  Gary Benson <gbenson@redhat.com>
9604
9605         (remote_protocol_features): Remove the "vFile:fstat" feature.
9606         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9607
9608 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9609
9610         PR tdep/18107
9611         * aarch64-linux-tdep.c: Include xml-syscall.h
9612         (aarch64_linux_get_syscall_number): New function.
9613         (aarch64_linux_init_abi): Call
9614         set_gdbarch_get_syscall_number.
9615         * syscalls/aarch64-linux.xml: New file.
9616
9617 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9618
9619         * ser-base.h (ser_base_setstopbits): Change second argument name
9620         from "rate" to "num".
9621
9622 2015-03-17  Gary Benson <gbenson@redhat.com>
9623             Luke Allardyce <lukeallardyce@gmail.com>
9624
9625         PR gdb/18131
9626         * common/common-remote-fileio.h (sys/stat.h): New include.
9627         (stuct stat): Remove forward declaration.
9628
9629 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9630
9631         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9632         before writing core register notes.
9633
9634 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9635             Pedro Alves  <palves@redhat.com>
9636
9637         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9638         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9639         (tgoto): Wrap with extern "C".
9640
9641 2015-03-16  Pedro Alves  <palves@redhat.com>
9642             Yuanhui Zhang  <asmwarrior@gmail.com>
9643
9644         * stub-termcap.c (tputs): Change prototype.
9645
9646 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9647             Pedro Alves  <palves@redhat.com>
9648
9649         * windows-nat.c (struct thread_info_struct): Rename to ...
9650         (struct windows_thread_info_struct): ... this.
9651         (thread_info): Rename to ...
9652         (windows_thread_info): ... this.
9653         All users updated.
9654
9655 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9656             Pedro Alves  <palves@redhat.com>
9657
9658         * NEWS: New Removed targets and native configurations.
9659
9660 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9661
9662         Remove HPUX.
9663         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9664         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9665         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9666         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9667         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9668         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9669         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9670         hppa-hpux-tdep.c.
9671         * config/ia64/hpux.mh: Remove file.
9672         * config/pa/hpux.mh: Remove file.
9673         * configure: Rebuilt.
9674         * configure.ac (dlgetmodinfo, somread.o): Remove.
9675         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9676         (ia64-*-hpux*): Remove its float format exception.
9677         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9678         * hppa-hpux-nat.c: Remove file.
9679         * hppa-hpux-tdep.c: Remove file.
9680         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9681         Move them here from hppa-tdep.h
9682         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9683         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9684         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9685         Move them to hppa-tdep.c.
9686         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9687         declarations.
9688         * ia64-hpux-nat.c: Remove file.
9689         * ia64-hpux-tdep.c: Remove file.
9690         * ia64-hpux-tdep.h: Remove file.
9691         * inf-ttrace.c: Remove file.
9692         * inf-ttrace.h: Remove file.
9693         * solib-ia64-hpux.c: Remove file.
9694         * solib-ia64-hpux.h: Remove file.
9695         * solib-pa64.c: Remove file.
9696         * solib-pa64.h: Remove file.
9697         * solib-som.c: Remove file.
9698         * solib-som.h: Remove file.
9699         * somread.c: Remove file.
9700
9701 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9702
9703         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9704         * config.in: Regenerate.
9705         * configure: Regenerate.
9706         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9707         define.
9708         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9709         enumerate memory regions if present.
9710
9711 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9712
9713         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9714         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9715         expressions.
9716         (i386fbsd_sigtramp_p): Likewise.
9717
9718 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9719
9720         * MAINTAINERS (Write After Approval): Add John Baldwin.
9721
9722 2015-03-12  Gary Benson <gbenson@redhat.com>
9723
9724         * solib.c (_initialize_solib): Make "set/show sysroot" use
9725         add_setshow_optional_filename_cmd so it can be restored to
9726         empty after being set.
9727
9728 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9729
9730         * Makefile.in (SFILES): New source break-catch-syscall.c.
9731         (COMMON_OBS): New object break-catch-syscall.o.
9732         * break-catch-syscall.c: New file.
9733         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9734         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9735         (struct syscall_catchpoint): Likewise.
9736         (dtor_catch_syscall): Likewise.
9737         (catch_syscall_inferior_data): Likewise.
9738         (struct catch_syscall_inferior_data): Likewise.
9739         (get_catch_syscall_inferior_data): Likewise.
9740         (catch_syscall_inferior_data_cleanup): Likewise.
9741         (insert_catch_syscall): Likewise.
9742         (remove_catch_syscall): Likewise.
9743         (breakpoint_hit_catch_syscall): Likewise.
9744         (print_it_catch_syscall): Likewise.
9745         (print_one_catch_syscall): Likewise.
9746         (print_mention_catch_syscall): Likewise.
9747         (print_recreate_catch_syscall): Likewise.
9748         (catch_syscall_breakpoint_ops): Likewise.
9749         (syscall_catchpoint_p): Likewise.
9750         (create_syscall_event_catchpoint): Likewise.
9751         (catch_syscall_split_args): Likewise.
9752         (catch_syscall_command_1): Likewise.
9753         (is_syscall_catchpoint_enabled): Likewise.
9754         (catch_syscall_enabled): Likewise.
9755         (catching_syscall_number): Likewise.
9756         (catch_syscall_completer): Likewise.
9757         (clear_syscall_counts): Likewise.
9758         (initialize_breakpoint_ops): Move initialization of syscall
9759         catchpoints to break-catch-syscall.c.
9760         (_initialize_breakpoint): Move code related to syscall catchpoints
9761         to break-catch-syscall.c.
9762
9763 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9764
9765         * breakpoint.c (breakpoint_find_if): New function.
9766         * breakpoint.h (breakpoint_find_if): New prototype.
9767
9768 2015-03-11  Gary Benson <gbenson@redhat.com>
9769
9770         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9771         * remote-fileio.c (remote_fileio_to_host_uint): New function.
9772         (remote_fileio_to_host_ulong): Likewise.
9773         (remote_fileio_to_host_mode): Likewise.
9774         (remote_fileio_to_host_time): Likewise.
9775         (remote_fileio_to_host_stat): Likewise.
9776         * remote.c (PACKET_vFile_fstat): New enum value.
9777         (remote_protocol_features): Register the "vFile:fstat" feature.
9778         (remote_hostio_fstat): New function.
9779         (remote_bfd_iovec_stat): Use the above.
9780         (_initialize_remote): Register new "set/show remote
9781         hostio-fstat-packet" command.
9782         * symfile.c (separate_debug_file_exists): Update comment.
9783         * NEWS: Announce new vFile:fstat packet.
9784
9785 2015-03-11  Gary Benson <gbenson@redhat.com>
9786
9787         * common/common-remote-fileio.h: New file.
9788         * common/common-remote-fileio.c: Likewise.
9789         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9790         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9791         (COMMON_OBS): Add common-remote-fileio.o.
9792         (common-remote-fileio.o): New rule.
9793         * remote-fileio.h (common-remote-fileio.h): New include.
9794         * remote-fileio.c (gdb/fileio.h): Do not include.
9795         (remote_fileio_to_be): Moved to common-remote-fileio.h.
9796         (remote_fileio_to_fio_uint): Likewise.
9797         (remote_fileio_to_fio_time): Likewise.
9798         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9799         (remote_fileio_to_fio_mode): Likewise.
9800         (remote_fileio_to_fio_ulong): Likewise.
9801         (remote_fileio_to_fio_stat): Likewise.
9802
9803 2015-03-11  Andy Wingo  <wingo@igalia.com>
9804
9805         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9806         we were checking the cached type, not the cached dynamic type.
9807
9808 2015-03-11  Andy Wingo  <wingo@igalia.com>
9809
9810         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9811         other strings, as these are on the GC'd heap, and will be
9812         collected along with the smob.
9813
9814 2015-03-11  Andy Wingo  <wingo@igalia.com>
9815
9816         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9817         (objfile_functions): Bind gdbscm_objfile_progspace to
9818         objfile-progspace.
9819         * guile/lib/gdb.scm: Add objfile-progspace to exports.
9820
9821 2015-03-11  Andy Wingo  <wingo@igalia.com>
9822
9823         * guile/guile.c (_initialize_guile): Disable automatic
9824         finalization, if Guile offers us that possibility.
9825         * guile/guile.c (call_initialize_gdb_module):
9826         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9827         finalizers in appropriate places.
9828         * configure.ac (AC_TRY_LIBGUILE): Add a check for
9829         scm_set_automatic_finalization_enabled.
9830         * configure: Regenerated.
9831
9832 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9833
9834         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9835         SAL, if possible.
9836
9837 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9838
9839         * s390-linux-nat.c (struct arch_lwp_info): New.
9840         (s390_fix_watch_points): Rename to...
9841         (s390_prepare_to_resume): ...this.  Skip the PER info update
9842         unless the watch points have changed.
9843         (s390_refresh_per_info, s390_new_thread): New functions.
9844         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9845         s390_fix_watch_points.
9846         (s390_remove_watchpoint): Likewise.
9847         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9848         Register s390_prepare_to_resume.
9849
9850 2015-03-09  Pedro Alves  <palves@redhat.com>
9851
9852         Revert:
9853         2015-03-07  Pedro Alves  <palves@redhat.com>
9854         * common/gdb_socket.h: New file.
9855         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9856         sys/socket.h.
9857         (net_open): Use union gdb_sockaddr_u.
9858
9859 2015-03-07  Pedro Alves  <palves@redhat.com>
9860
9861         * configure.ac (build_warnings): Move -Wmissing-prototypes
9862         -Wdeclaration-after-statement -Wmissing-parameter-type
9863         -Wold-style-declaration -Wold-style-definition to the C-specific
9864         set.
9865         * configure: Regenerate.
9866
9867 2015-03-07  Pedro Alves  <palves@redhat.com>
9868
9869         * common/gdb_socket.h: New file.
9870         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9871         sys/socket.h.
9872         (net_open): Use union gdb_sockaddr_u.
9873
9874 2015-03-07  Pedro Alves  <palves@redhat.com>
9875
9876         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9877         (exceptions_state_mc_action_iter)
9878         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9879         Don't define.
9880         [__cplusplus] (try_scope_depth): New global.
9881         [__cplusplus] (exception_try_scope_entry)
9882         (exception_try_scope_exit, gdb_exception_sliced_copy)
9883         (exception_rethrow): New functions.
9884         (throw_exception): In C++ mode, throw
9885         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9886         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9887         (throw_it): In C++ mode, use try_scope_depth.
9888         * common/common-exceptions.h [!__cplusplus]
9889         (exceptions_state_mc_action_iter)
9890         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9891         Don't declare.
9892         [__cplusplus] (exception_try_scope_entry)
9893         (exception_try_scope_exit, exception_rethrow): Declare.
9894         [__cplusplus] (struct exception_try_scope): New struct.
9895         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9896         C++ exceptions.
9897         (struct gdb_exception_RETURN_MASK_ALL)
9898         (struct gdb_exception_RETURN_MASK_ERROR)
9899         (struct gdb_exception_RETURN_MASK_QUIT): New types.
9900
9901 2015-03-07  Pedro Alves  <palves@redhat.com>
9902
9903         * main.c (handle_command_errors): Remove volatile qualifier from
9904         parameter.
9905
9906 2015-03-07  Pedro Alves  <palves@redhat.com>
9907
9908         * breakpoint.c (save_breakpoints): Adjust to avoid code between
9909         TRY and CATCH.
9910         * gdbtypes.c (safe_parse_type): Remove empty line.
9911         (types_deeply_equal):
9912         * guile/scm-frame.c (gdbscm_frame_name):
9913         * linux-thread-db.c (find_new_threads_once):
9914         * python/py-breakpoint.c (bppy_get_commands):
9915         * record-btrace.c (record_btrace_insert_breakpoint)
9916         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9917         (record_btrace_start_replaying): Adjust to avoid code between TRY
9918         and CATCH.
9919
9920 2015-03-07  Pedro Alves  <palves@redhat.com>
9921
9922         * common/common-exceptions.c (struct catcher) <exception>: No
9923         longer a pointer to volatile exception.  Now an exception value.
9924         <mask>: Delete field.
9925         (exceptions_state_mc_init): Remove all parameters.  Adjust.
9926         (exceptions_state_mc): No longer pop the catcher here.
9927         (exceptions_state_mc_catch): New function.
9928         (throw_exception): Adjust.
9929         * common/common-exceptions.h (exceptions_state_mc_init): Remove
9930         all parameters.
9931         (exceptions_state_mc_catch): Declare.
9932         (TRY_CATCH): Rename to ...
9933         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
9934         (CATCH, END_CATCH): New.
9935         All callers adjusted.
9936
9937 2015-03-07  Tom Tromey  <tromey@redhat.com>
9938
9939         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9940
9941 2015-03-07  Pedro Alves  <palves@redhat.com>
9942
9943         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9944         (amd64_epilogue_frame_cache): Normal exception handling code.
9945         * break-catch-throw.c (check_status_exception_catchpoint)
9946         (re_set_exception_catchpoint): Ditto.
9947         * cli/cli-interp.c (safe_execute_command):
9948         * cli/cli-script.c (script_from_file): Ditto.
9949         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9950         Ditto.
9951         * compile/compile-object-run.c (compile_object_run): Ditto.
9952         * cp-abi.c (baseclass_offset): Ditto.
9953         * cp-valprint.c (cp_print_value): Ditto.
9954         * exceptions.c (catch_exceptions_with_msg):
9955         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9956         * frame.c (get_frame_address_in_block_if_available): Ditto.
9957         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9958         (i386_sigtramp_frame_cache): Ditto.
9959         * infcmd.c (post_create_inferior): Ditto.
9960         * linespec.c (parse_linespec, find_linespec_symbols):
9961         * p-valprint.c (pascal_object_print_value): Ditto.
9962         * parse.c (parse_expression_for_completion): Ditto.
9963         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9964         * remote.c (remote_get_noisy_reply): Ditto.
9965         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9966         * solib-svr4.c (solib_svr4_r_map): Ditto.
9967
9968 2015-03-06  Gary Benson  <gbenson@redhat.com>
9969
9970         * common/common-utils.h (startswith): New inline function.
9971         All places where this logic was used updated to use the above.
9972
9973 2015-03-05  Pedro Alves  <palves@redhat.com>
9974
9975         PR gdb/18002
9976         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9977         after reading the breakpoint's shadow memory.
9978
9979 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
9980
9981         * hppabsd-nat.c: Remove file.
9982         * hppaobsd-nat.c: New file.
9983         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
9984         hppaobsd-nat.c.
9985         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9986         hppaobsd-nat.o.
9987
9988 2015-03-04  Pedro Alves  <palves@redhat.com>
9989
9990         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9991         (target_decr_pc_after_break): Delete declaration.
9992         * target.c (default_target_decr_pc_after_break)
9993         (target_decr_pc_after_break): Delete.
9994         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9995         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9996         * linux-thread-db.c (check_event): Likewise.
9997         * infrun.c (adjust_pc_after_break): Likewise.
9998         * darwin-nat.c (cancel_breakpoint): Likewise.
9999         * aix-thread.c (aix_thread_wait): Likewise.
10000         * target-delegates.c: Regenerate.
10001
10002 2015-03-04  Pedro Alves  <palves@redhat.com>
10003
10004         * linux-nat.c (save_sigtrap): Check for breakpoints before
10005         checking watchpoints.
10006         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10007         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10008         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10009         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10010         (linux_nat_stopped_by_sw_breakpoint)
10011         (linux_nat_supports_stopped_by_sw_breakpoint)
10012         (linux_nat_stopped_by_hw_breakpoint)
10013         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10014         (linux_nat_wait_1): Don't re-increment the PC if relying on
10015         SIGTRAP's siginfo->si_code.
10016         (linux_nat_add_target): Install new target methods.
10017         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10018         offset if the target already adjusted the PC.
10019         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10020         (GDB_ARCH_TRAP_BRKPT): New.
10021         (TRAP_HWBKPT): Define if not already defined.
10022
10023 2015-03-04  Pedro Alves  <palves@redhat.com>
10024
10025         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10026         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10027         Delete field.
10028         <stop_reason>: New field.
10029         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10030         (packet_set_cmd_state): New function.
10031         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10032         features.
10033         (remote_query_supported): If not disabled with the corresponding
10034         "set remote foo-packet" command, report support for the swbreak
10035         and hwbreak features.
10036         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10037         field.
10038         <stop_reason>: New field.
10039         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10040         (remote_wait_as): Adjust.
10041         (remote_stopped_by_sw_breakpoint)
10042         (remote_supports_stopped_by_sw_breakpoint)
10043         (remote_stopped_by_hw_breakpoint)
10044         (remote_supports_stopped_by_hw_breakpoint): New functions.
10045         (remote_stopped_by_watchpoint): New function.
10046         (init_remote_ops): Install them.
10047         (_initialize_remote): Register new "set/show remote
10048         swbreak-feature-packet" and "set/show remote
10049         swbreak-feature-packet" commands.
10050
10051 2015-03-04  Pedro Alves  <palves@redhat.com>
10052
10053         * btrace.h: Include target/waitstatus.h.
10054         (struct btrace_thread_info) <stop_reason>: New field.
10055         * record-btrace.c (record_btrace_step_thread): Use
10056         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10057         (record_btrace_decr_pc_after_break): Delete.
10058         (record_btrace_stopped_by_sw_breakpoint)
10059         (record_btrace_supports_stopped_by_sw_breakpoint)
10060         (record_btrace_stopped_by_hw_breakpoint)
10061         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10062         (init_record_btrace_ops): Install them.
10063         * record-full.c (record_full_hw_watchpoint): Delete and replace
10064         with ...
10065         (record_full_stop_reason): ... this throughout.
10066         (record_full_exec_insn): Adjust.
10067         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10068         (record_full_wait_1): Adjust.  Use
10069         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10070         (record_full_stopped_by_watchpoint): Adjust.
10071         (record_full_stopped_by_sw_breakpoint)
10072         (record_full_supports_stopped_by_sw_breakpoint)
10073         (record_full_supports_stopped_by_sw_breakpoint)
10074         (record_full_stopped_by_hw_breakpoint)
10075         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10076         (init_record_full_ops, init_record_full_core_ops): Install them.
10077         * record.c (record_check_stopped_by_breakpoint): New function.
10078         * record.h: Include target/waitstatus.h.
10079         (record_check_stopped_by_breakpoint): New declaration.
10080
10081 2015-03-04  Pedro Alves  <palves@redhat.com>
10082
10083         enum lwp_stop_reason -> enum target_stop_reason
10084         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10085         (linux_nat_stopped_by_watchpoint, status_callback)
10086         (linux_nat_wait_1): Adjust.
10087         * linux-nat.h (enum lwp_stop_reason): Delete.
10088         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10089         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10090         * target/waitstatus.h (enum target_stop_reason): New.
10091
10092 2015-03-04  Pedro Alves  <palves@redhat.com>
10093
10094         * breakpoint.c (need_moribund_for_location_type): New function.
10095         (bpstat_stop_status): Don't skipping checking moribund locations
10096         of breakpoint types which the target tell caused a stop.
10097         (program_breakpoint_here_p): New function, factored out from ...
10098         (bp_loc_is_permanent): ... this.
10099         (update_global_location_list): Don't create a moribund location if
10100         the target supports reporting stops of the type of the removed
10101         breakpoint.
10102         * breakpoint.h (program_breakpoint_here_p): New declaration.
10103         * infrun.c (adjust_pc_after_break): Return early if the target has
10104         already adjusted the PC.  Add comments.
10105         (handle_signal_stop): If nothing explains a signal, and the target
10106         tells us the stop was caused by a software breakpoint, check if
10107         there's a breakpoint instruction in the memory.  If so, adjust the
10108         PC before presenting the stop to the user.  Otherwise, ignore the
10109         trap.  If nothing explains a signal, and the target tells us the
10110         stop was caused by a hardware breakpoint, ignore the trap.
10111         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10112         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10113         to_supports_stopped_by_hw_breakpoint>: New fields.
10114         (target_stopped_by_sw_breakpoint)
10115         (target_supports_stopped_by_sw_breakpoint)
10116         (target_stopped_by_hw_breakpoint)
10117         (target_supports_stopped_by_hw_breakpoint): Define.
10118         * target-delegates.c: Regenerate.
10119
10120 2015-03-04  Pedro Alves  <palves@redhat.com>
10121
10122         * infrun.c (follow_fork_inferior): Use the whole of the
10123         inferior_ptid and pending_follow.related_pid ptids instead of
10124         building ptids from the process components.  Adjust verbose output
10125         to use target_pid_to_str.
10126         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10127         inferior_ptid and pending_follow.related_pid ptids instead of
10128         building ptids from the process components.
10129
10130 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10131
10132         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10133         (inf_ptrace_insert_fork_catchpoint): New function.
10134         (inf_ptrace_remove_fork_catchpoint): New function.
10135         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10136
10137 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10138
10139         * s390-linux-tdep.c (s390_register_name): Return empty string
10140         instead of NULL for registers that shouldn't be visible.
10141
10142 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10143
10144         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10145         XML file for 64-bit targets.
10146
10147 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10148
10149         * target.h (find_default_create_inferior): Remove declaration.
10150         (find_default_attach): Likewise.
10151
10152 2015-03-03  Pedro Alves  <palves@redhat.com>
10153
10154         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10155         Use ptid_get_pid to get the overall process id when resuming all
10156         threads.
10157
10158 2015-03-03  Pedro Alves  <palves@redhat.com>
10159
10160         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10161         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10162         * inf-ptrace.c (get_ptrace_pid): New function.
10163         (inf_ptrace_resume): Use it.
10164         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10165         to the lower layer.
10166
10167 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10168
10169         * nat/linux-btrace.c: Include sys/utsname.h.
10170         (linux_determine_kernel_ptr_bits): New.
10171         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10172         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10173         ptr_bits.
10174
10175 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10176
10177         * btrace.c (ftrace_update_function): Treat return as tailcall for
10178         "_dl_runtime_resolve".
10179
10180 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10181
10182         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10183         * btrace.c (ftrace_debug): Do not print the line range.
10184         (ftrace_skip_file, ftrace_update_lines): Remove.
10185         (ftrace_new_function): Remove lbegin and lend initialization.
10186         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10187         * record-btrace.c (btrace_compute_src_line_range): New.
10188         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10189
10190 2015-03-02  Pedro Alves  <palves@redhat.com>
10191
10192         * infrun.c (follow_exec): Delete all threads of the process except
10193         the event thread.  Extended comments.
10194
10195 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10196
10197         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10198
10199 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10200
10201         * utils.h: Remove <stdbool.h> #include.
10202         (producer_is_gcc): Change return type to "int".
10203         * utils.c (producer_is_gcc): Change return type to int.
10204         Return 1 instead of true, and 0 instead of false.
10205         Adjust function documentation accordingly.
10206
10207 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10208
10209         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10210         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10211         present.
10212         (s390_linux_store_inferior_registers): Likewise.
10213         (s390_get_hwcap): Remove function.  Embed its logic...
10214         (s390_read_description): ...here.  Yield a target description with
10215         vector registers if applicable.
10216         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10217         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10218         "features/s390x-tevx-linux64.c".
10219         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10220         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10221         for "GNU/Linux-specific registers".
10222         (s390_dwarf_reg_r0l): New enum value.
10223         (s390_dwarf_reg_to_regnum): Support vector registers.
10224         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10225         of GPR lower halves.
10226         (regnum_is_vxr_full): New function.
10227         (s390_register_name): New function.
10228         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10229         f0-f15 and v0l-v15l.
10230         (s390_pseudo_register_type): Likewise.
10231         (s390_pseudo_register_read): Likewise.
10232         (s390_pseudo_register_write): Likewise.
10233         (s390_value_from_register): Account for the fact that values are
10234         placed left-justified in vector registers.
10235         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10236         the vector reggroup and omit them from the general reggroup.
10237         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10238         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10239         (s390_iterate_over_regset_sections): Add iterations for the two
10240         new vector regsets.
10241         (s390_core_read_description): Yield a target description with
10242         vector registers if applicable.
10243         (s390_gdbarch_init): Handle target descriptions with vector
10244         registers.  Add "register_name" gdbarch method.
10245         (_initialize_s390_tdep): Call new tdesc initialization functions.
10246         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10247         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10248         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10249         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10250         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10251         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10252         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10253         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10254         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10255         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10256         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10257         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10258         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10259         (S390_NUM_REGS): Adjust value.
10260         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10261         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10262         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10263         * NEWS: Announce S/390 vector register support.
10264
10265 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10266
10267         * features/s390-tevx-linux64.xml: New file.
10268         * features/s390-vx-linux64.xml: New file.
10269         * features/s390-vx.xml: New file.
10270         * features/s390x-tevx-linux64.xml: New file.
10271         * features/s390x-vx-linux64.xml: New file.
10272         * features/Makefile (WHICH): Add s390-vx-linux64,
10273         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10274         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10275         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10276         macros.
10277         * features/s390-tevx-linux64.c: New generated file.
10278         * features/s390-vx-linux64.c: Likewise.
10279         * features/s390x-tevx-linux64.c: Likewise.
10280         * features/s390x-vx-linux64.c: Likewise.
10281         * regformats/s390-tevx-linux64.dat: Likewise.
10282         * regformats/s390-vx-linux64.dat: Likewise.
10283         * regformats/s390x-tevx-linux64.dat: Likewise.
10284         * regformats/s390x-vx-linux64.dat: Likewise.
10285
10286 2015-02-28  Doug Evans  <xdje42@gmail.com>
10287
10288         * symtab.h (struct symtab) <next>: Fix comment.
10289
10290 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10291
10292         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10293         python_GdbMethods.
10294
10295 2015-02-27  Pedro Alves  <palves@redhat.com>
10296
10297         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10298
10299 2015-02-27  Pedro Alves  <palves@redhat.com>
10300
10301         * common/common-exceptions.h (exception_none): Declare.
10302         * common/common-exceptions.c (exception_none): Moved from
10303         exceptions.c.
10304         (exceptions_state_mc_init): Use exception_none.
10305         * exceptions.c (exception_none): Move to
10306         common/common-exceptions.c.
10307         * exceptions.h (exception_none): Move to
10308         common/common-exceptions.h.
10309
10310 2015-02-27  Pedro Alves  <palves@redhat.com>
10311
10312         * main.c (catch_command_errors, catch_command_errors_const):
10313         Remove 'mask' argument.  Adjust.
10314         (captured_main): Adjust callers.
10315
10316 2015-02-27  Pedro Alves  <palves@redhat.com>
10317
10318         * python/python-internal.h: Include "extension-priv.h".
10319
10320 2015-02-27  Pedro Alves  <palves@redhat.com>
10321
10322         * breakpoint.h (enum print_stop_action): Move further up in the
10323         file.
10324
10325 2015-02-27  Pedro Alves  <palves@redhat.com>
10326
10327         * gdbarch.sh: Include regcache.h.
10328         * gdbarch.h: Regenerate.
10329
10330 2015-02-27  Pedro Alves  <palves@redhat.com>
10331
10332         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10333         Remove duplicate const.
10334         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10335         duplicate const.
10336
10337 2015-02-27  Pedro Alves  <palves@redhat.com>
10338
10339         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10340         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10341         * features/feature_to_c.sh: Tag the generated xml_builtin array
10342         with extern const in C++ mode.
10343
10344 2015-02-27  Tom Tromey  <tromey@redhat.com>
10345
10346         * minidebug.c (struct lzma_stream): Rename to ...
10347         (struct gdb_lzma_stream): ... this.
10348         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10349
10350 2015-02-27  Pedro Alves  <palves@redhat.com>
10351
10352         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10353         function.
10354         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10355         (mi_cmd_stack_list_variables): Use it.
10356
10357 2015-02-27  Pedro Alves  <palves@redhat.com>
10358
10359         * x86-linux-nat.c (u_debugreg_offset): New function.
10360         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10361
10362 2015-02-27  Pedro Alves  <palves@redhat.com>
10363
10364         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10365         declaration.
10366         Include break-common.h.
10367
10368 2015-02-27  Tom Tromey  <tromey@redhat.com>
10369             Pedro Alves <palves@redhat.com>
10370
10371         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10372         local used to iterate over enums.
10373         * completer.c (signal_completer): Likewise.
10374         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10375         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10376         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10377         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10378         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10379         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10380         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10381
10382 2015-02-27  Pedro Alves  <palves@redhat.com>
10383
10384         * target.h: Include "infrun.h".
10385
10386 2015-02-27  Pedro Alves  <palves@redhat.com>
10387
10388         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10389
10390 2015-02-27  Pedro Alves  <palves@redhat.com>
10391
10392         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10393         (IPA_SYM): Use it.
10394         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10395
10396 2015-02-27  Pedro Alves  <palves@redhat.com>
10397
10398         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10399         cli_mld_erase_entire_line, and make it extern "C".
10400         * common/common-defs.h (EXTERN_C): New.
10401         * completer.c (_rl_completion_prefix_display_length)
10402         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10403         out of gdb_display_match_list_1.
10404         (_rl_qsort_string_compare): Move declaration out of
10405         gdb_display_match_list_1, and make it extern "C".
10406         * defs.h (re_comp): Use EXTERN_C.
10407         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10408         and make it extern "C".
10409         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10410         and make it extern "C".
10411         (main): Move declaration out of maintenance_set_profile_cmd.
10412         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10413         EXTERN_C.
10414
10415 2015-02-27  Pedro Alves  <palves@redhat.com>
10416
10417         * python/python.c (GdbMethods): Rename to ...
10418         (python_GdbMethods): ... this and make extern.
10419         (GdbModuleDef): Rename to ...
10420         (python_GdbModuleDef): ... this and make extern.
10421
10422 2015-02-27  Pedro Alves  <palves@redhat.com>
10423
10424         * record-btrace.c (set_record_btrace_cmdlist)
10425         (show_record_btrace_cmdlist): Remove redefinitions.
10426
10427 2015-02-27  Tom Tromey  <tromey@redhat.com>
10428             Pedro Alves  <palves@redhat.com>
10429
10430         * dwarf2-frame.c (enum cfa_how_kind, struct
10431         dwarf2_frame_state_reg_info): Move out of struct
10432         dwarf2_frame_state.
10433         * dwarf2read.c (struct tu_stats): Move out of struct
10434         dwarf2_per_objfile.
10435         (struct file_entry): Move out of struct line_header.
10436         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10437         typedef_field_list): Move out of struct field_info.
10438         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10439         Move out of struct dynamic_prop.
10440         (union type_owner, union field_location, struct field, struct
10441         range_bounds, union type_specific): Move out of struct main_type.
10442         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10443         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10444         (struct call_site_target, union call_site_parameter_u, struct
10445         call_site_parameter): Move out of struct call_site.
10446         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10447         m32c_prologue.
10448         (enum srcdest_kind): Move out of struct srcdest.
10449         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10450         * prologue-value.h (enum prologue_value_kind): Move out of struct
10451         prologue_value.
10452         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10453         gdbarch_tdep.
10454         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10455         out of struct field_info.
10456         * symfile.h (struct other_sections): Move out of struct
10457         section_addr_info.
10458         * symtab.c (struct symbol_cache_slot): Move out struct
10459         block_symbol_cache.
10460         * target-descriptions.c (enum tdesc_type_kind): Move out of
10461         typedef struct tdesc_type.
10462         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10463         struct tui_line_or_address.
10464         * value.c (enum internalvar_kind, union internalvar_data): Move
10465         out of struct internalvar.
10466         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10467         gdbarch_tdep.
10468
10469 2015-02-27  Tom Tromey  <tromey@redhat.com>
10470             Pedro Alves  <palves@redhat.com>
10471
10472         Rename symbols whose names are reserved C++ keywords throughout.
10473
10474 2015-02-27  Pedro Alves  <palves@redhat.com>
10475
10476         * Makefile.in (COMPILER): New, get it from autoconf.
10477         (COMPILE.pre, CC_LD): Use COMPILER.
10478         (CXX): Get from autoconf instead.
10479         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10480         * acinclude.m4: Include build-with-cxx.m4.
10481         * build-with-cxx.m4: New file.
10482         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10483         Disable -Werror by default if building in C++ mode.
10484         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10485         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10486         Run supported-warning-flags tests with the C++ compiler.
10487         Save/restore CXXFLAGS too.
10488         * configure: Regenerate.
10489
10490 2015-02-27  Pedro Alves  <palves@redhat.com>
10491
10492         * libiberty.m4: New file.
10493         * acinclude.m4: Include libiberty.m4.
10494         * configure.ac: Call libiberty_INIT.
10495         * config.in, configure: Regenerate.
10496
10497 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10498
10499         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10500         31-bit targets, but 64-bit targets as well.
10501         (s390_gnu_triplet_regexp): New function.
10502         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10503         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10504         method.
10505
10506 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10507
10508         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10509         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10510         from CONTEXT_DEBUGGER.
10511
10512 2015-02-26  Doug Evans  <dje@google.com>
10513
10514         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10515         CHECK_TYPEDEF.
10516         (set_type_vptr_fieldno): Ditto.
10517         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10518         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10519
10520 2015-02-26  Pedro Alves  <palves@redhat.com>
10521
10522         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10523         * complaints.c (vcomplaint): Pass argument FMT directly to
10524         printf-like functions instead of complaint->fmt.
10525         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10526         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10527         * compile/compile-loc2c.c (pushf, unary, binary): Add
10528         ATTRIBUTE_PRINTF.
10529         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10530         to pushf.
10531         (BINARY): Pass string literal as format string to 'binary'.
10532         * compile/compile-object-load.c (link_callbacks_einfo): Add
10533         ATTRIBUTE_PRINTF.
10534         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10535
10536 2015-02-26  Pedro Alves  <palves@redhat.com>
10537
10538         * windows-termcap.c: Rename to ...
10539         * stub-termcap.c: ... this.  Adjust header line.
10540         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10541         windows-termcap.c.
10542         * configure: Regenerate.
10543         * configure.ac: Refer to stub-termcap.o instead of
10544         windows-termcap.o.
10545         * gdb_curses.h: Mention stub-termcap.c instead of
10546         windows-termcap.c.
10547
10548 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10549
10550         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10551         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10552
10553 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10554
10555         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10556
10557 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10558
10559         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10560         bfd_canonicalize_symtab.
10561
10562 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10563
10564         * amd64fbsd-nat.c: Include sys/user.h.
10565         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10566         instead of KERN_PS_STRINGS to locate the signal trampoline.
10567         * i386fbsd-nat.c: Include sys/user.h.
10568         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10569         instead of KERN_PS_STRINGS to locate the signal trampoline.
10570         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10571         (amd64fbsd_sigtramp_p): New.
10572         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10573         longer set default values.
10574         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10575         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10576         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10577         (i386fbsd_freebsd4_sigtramp_start)
10578         (i386fbsd_freebsd4_sigtramp_middle)
10579         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10580         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10581         (i386fbsd_sigtramp_p): New.
10582         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10583         longer set default values.
10584         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10585
10586 2015-02-25  John Baldwin  <jhb@freebsd.org>
10587
10588         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10589         get_frame_register instead of frame_unwind_register_unsigned.
10590
10591 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10592
10593         PR build/18033
10594         * compile/compile-c-support.c (c_compute_program): Change // comment.
10595         * compile/compile-object-load.c (setup_sections): Change // comment.
10596
10597 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10598
10599         PR build/18033:
10600         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10601
10602 2015-02-23  Pedro Alves  <palves@redhat.com>
10603
10604         * remote.c (skip_to_semicolon): New function.
10605         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10606         special case the stop reasons that look like hex numbers
10607         upfront.  Instead handle real register numbers after matching
10608         all the known stop reasons.
10609
10610 2015-02-21  Doug Evans  <dje@google.com>
10611
10612         PR c++/17976, symtab/17821
10613         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10614         is_in_anonymous.  All callers updated.
10615         (find_symbol_in_baseclass): Ditto.
10616         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10617         for symbols in an anonymous namespace.
10618         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10619         DW_AT_name directly.
10620         (dwarf2_name): Convert missing namespace name to
10621         CP_ANONYMOUS_NAMESPACE_STR.
10622
10623 2015-02-20  Pedro Alves  <palves@redhat.com>
10624
10625         * linux-nat.c (linux_handle_extended_wait): Call
10626         thread_db_notice_clone whenever a new clone LWP is detected.
10627         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10628         functions.
10629         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10630         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10631         (linux_unstop_all_lwps): Declare.
10632         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10633         (thread_get_info_callback): Delete.
10634         (thread_from_lwp): Use td_thr_get_info and record_thread.
10635         (thread_db_attach_lwp): Delete.
10636         (thread_db_notice_clone): New function.
10637         (try_thread_db_load_1): If /proc is mounted and shows the
10638         process'es task list, walk over all LWPs and call thread_from_lwp
10639         instead of relying on td_ta_thr_iter.
10640         (attach_thread): Don't call check_thread_signals here.  Split the
10641         tail part of the function (which adds the thread to the core GDB
10642         thread list) to ...
10643         (record_thread): ... this function.  Call check_thread_signals
10644         here.
10645         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10646         call thread_from_lwp.
10647         (thread_db_update_thread_list): Rename to ...
10648         (thread_db_update_thread_list_org): ... this.
10649         (thread_db_update_thread_list): New function.
10650         (thread_db_find_thread_from_tid): Delete.
10651         (thread_db_get_ada_task_ptid): Simplify.
10652         * nat/linux-procfs.c: Include <sys/stat.h>.
10653         (linux_proc_task_list_dir_exists): New function.
10654         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10655
10656 2015-02-20  Pedro Alves  <palves@redhat.com>
10657
10658         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10659         main LWP.  Handle the case of waitpid returning 0 if we're already
10660         attached to the LWP.  Don't set the LWP's last_resume_kind to
10661         resume_stop if we already knew about the LWP.
10662         (linux_nat_filter_event): Add debug logs.
10663
10664 2015-02-20  Pedro Alves  <palves@redhat.com>
10665
10666         * target.h (forward_target_decr_pc_after_break): Delete
10667         declaration.
10668
10669 2015-02-20  Pedro Alves  <palves@redhat.com>
10670
10671         PR threads/18006
10672         * linux-thread-db.c (thread_get_info_callback): Return early if
10673         the thread's lwp id is -1.
10674
10675 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10676
10677         GDB 7.9 released.
10678
10679 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10680
10681         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10682         (dtrace_get_probes) Change type of variable 'dof'.
10683
10684 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10685
10686         PR breakpoints/16812
10687         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10688         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10689         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10690
10691 2015-02-19  David Taylor  <dtaylor@emc.com>
10692
10693         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10694
10695 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10696
10697         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10698         function.
10699         (tui_putc): Don't call tui_handle_resize_during_io.
10700         (tui_getc): Likewise.
10701         (tui_mld_getc): Likewise.
10702         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10703         (tui_sigwinch_token): New static variable.
10704         (tui_initialize_win): Adjust documentation.  Set
10705         tui_sigwinch_token.
10706         (tui_async_resize_screen): New asynchronous callback.
10707         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10708         invoke tui_async_resize_screen.
10709
10710 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10711
10712         * configure: Regenerated.
10713         * configure.ac: Use GDB_AC_TRANSFORM.
10714         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10715         * acinclude.m4: sinclude transform.m4.
10716         * transform.m4: New file.
10717         (GDB_AC_TRANSFORM): New macro.
10718
10719 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10720
10721         * NEWS: Announce the support for DTrace SDT probes.
10722
10723 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10724
10725         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10726         (amd64_dtrace_parse_probe_argument): New function.
10727         (amd64_dtrace_probe_is_enabled): Likewise.
10728         (amd64_dtrace_enable_probe): Likewise.
10729         (amd64_dtrace_disable_probe): Likewise.
10730         (amd64_linux_init_abi): Register the
10731         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10732         `gdbarch_dtrace_disable_probe' and
10733         `gdbarch_dtrace_probe_is_enabled' hooks.
10734         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10735         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10736         (amd64_dtrace_enable_probe_sequence): Likewise.
10737         (amd64_dtrace_disable_probe_sequence): Likewise.
10738
10739 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10740
10741         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10742         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10743         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10744         handle ELF files.
10745         * Makefile.in (SFILES): dtrace-probe.c added.
10746         * configure: Regenerate.
10747         * dtrace-probe.c: New file.
10748         (SHT_SUNW_dof): New constant.
10749         (dtrace_probe_type): New enum.
10750         (dtrace_probe_arg): New struct.
10751         (dtrace_probe_arg_s): New typedef.
10752         (struct dtrace_probe_enabler): New struct.
10753         (dtrace_probe_enabler_s): New typedef.
10754         (dtrace_probe): New struct.
10755         (dtrace_probe_is_linespec): New function.
10756         (dtrace_dof_sect_type): New enum.
10757         (dtrace_dof_dofh_ident): Likewise.
10758         (dtrace_dof_encoding): Likewise.
10759         (DTRACE_DOF_ENCODE_LSB): Likewise.
10760         (DTRACE_DOF_ENCODE_MSB): Likewise.
10761         (dtrace_dof_hdr): New struct.
10762         (dtrace_dof_sect): Likewise.
10763         (dtrace_dof_provider): Likewise.
10764         (dtrace_dof_probe): Likewise.
10765         (DOF_UINT): New macro.
10766         (DTRACE_DOF_PTR): Likewise.
10767         (DTRACE_DOF_SECT): Likewise.
10768         (dtrace_process_dof_probe): New function.
10769         (dtrace_process_dof): Likewise.
10770         (dtrace_build_arg_exprs): Likewise.
10771         (dtrace_get_arg): Likewise.
10772         (dtrace_get_probes): Likewise.
10773         (dtrace_get_probe_argument_count): Likewise.
10774         (dtrace_can_evaluate_probe_arguments): Likewise.
10775         (dtrace_evaluate_probe_argument): Likewise.
10776         (dtrace_compile_to_ax): Likewise.
10777         (dtrace_probe_destroy): Likewise.
10778         (dtrace_gen_info_probes_table_header): Likewise.
10779         (dtrace_gen_info_probes_table_values): Likewise.
10780         (dtrace_probe_is_enabled): Likewise.
10781         (dtrace_probe_ops): New variable.
10782         (info_probes_dtrace_command): New function.
10783         (_initialize_dtrace_probe): Likewise.
10784         (dtrace_type_name): Likewise.
10785
10786 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10787
10788         * gdbarch.sh (dtrace_parse_probe_argument): New.
10789         (dtrace_probe_is_enabled): Likewise.
10790         (dtrace_enable_probe): Likewise.
10791         (dtrace_disable_probe): Likewise.
10792         * gdbarch.c: Regenerate.
10793         * gdbarch.h: Regenerate.
10794
10795 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10796
10797         * stap-probe.c (stap_probe_ops): Add NULLs in the static
10798         stap_probe_ops for `enable_probe' and `disable_probe'.
10799         * probe.c (enable_probes_command): New function.
10800         (disable_probes_command): Likewise.
10801         (_initialize_probe): Define the cli commands `enable probe' and
10802         `disable probe'.
10803         (parse_probe_linespec): New function.
10804         (info_probes_for_ops): Use parse_probe_linespec.
10805         * probe.h (probe_ops): New hooks `enable_probe' and
10806         `disable_probe'.
10807
10808 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10809
10810         * probe.c (compute_probe_arg): Moved from stap-probe.c
10811         (compile_probe_arg): Likewise.
10812         (probe_funcs): Likewise.
10813         * stap-probe.c (compute_probe_arg): Moved to probe.c.
10814         (compile_probe_arg): Likewise.
10815         (probe_funcs): Likewise.
10816
10817 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10818
10819         * probe.c (print_ui_out_not_applicables): New function.
10820         (exists_probe_with_pops): Likewise.
10821         (info_probes_for_ops): Do not include column headers for probe
10822         types for which no probe has been actually found on any object.
10823         Also invoke `print_ui_out_not_applicables' in order to match the
10824         column rows with the header when probes of several types are
10825         listed.
10826         Print the "Type" column.
10827         * probe.h (probe_ops): Added a new probe operation `type_name'.
10828         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10829         (stap_type_name): New function.
10830
10831 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
10832
10833         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10834         (key_is_command_char): Delete.
10835
10836 2015-02-17  Pedro Alves  <palves@redhat.com>
10837
10838         * tui/tui.c (tui_enable): Resize windows before anything
10839         might show a window.
10840
10841 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10842
10843         PR gdb/17984
10844         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10845         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10846         call.
10847         * aarch64-tdep.h (tdesc_aarch64): Declare.
10848
10849 2015-02-12  Mark Wielaard  <mjw@redhat.com>
10850
10851         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10852
10853 2015-02-13  Doug Evans  <dje@google.com>
10854
10855         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10856         anonymous_namespace to is_in_anonymous for consistency with the rest
10857         of the file.
10858         (cp_lookup_bare_symbol): Fix typo in comment.
10859         (cp_search_static_and_baseclasses): Ditto.
10860         (search_symbol_list): Use vertical space in comment better.
10861         (reset_directive_searched): Ditto. Fix typo.
10862         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10863
10864 2015-02-13  Yao Qi  <yao.qi@arm.com>
10865
10866         * MAINTAINERS: Update my email address.
10867
10868 2015-02-12  Doug Evans  <dje@google.com>
10869
10870         * symtab.c (completion_list_add_name): Fix memory leak.
10871
10872 2015-02-12  Doug Evans  <dje@google.com>
10873
10874         * completer.c (complete_line): Remove incorrect comment.
10875
10876 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10877
10878         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10879         (py_print_frame): Use RETURN_MASK_ERROR.
10880
10881 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10882
10883         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10884         function comment.  Wrap all function that can throw in cleanups.
10885         (gdbpy_apply_frame_filter): Wrap all function that can throw in
10886         cleanups.
10887
10888 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10889
10890         * python/py-framefilter.c (py_print_frame): Substitute goto error.
10891         Remove the error label.
10892
10893 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10894
10895         * python/py-framefilter.c (py_print_frame): Put conditional code paths
10896         with goto first, indent the former else codepath left.  Put variable
10897         'elided' to a new inner block.
10898
10899 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10900
10901         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10902
10903 2015-02-11  Pedro Alves  <palves@redhat.com>
10904
10905         * xcoffread.c (within_function): Delete.
10906
10907 2015-02-11  Tom Tromey  <tromey@redhat.com>
10908             Pedro Alves <palves@redhat.com>
10909
10910         * breakpoint.c (base_breakpoint_ops): Delete.
10911         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10912         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10913         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10914         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10915         * python/py-arch.c (arch_object_type): Make extern.
10916         * python/py-block.c (block_syms_iterator_object_type): Make extern.
10917         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10918         * python/py-cmd.c (cmdpy_object_type): Make extern.
10919         * python/py-continueevent.c (continue_event_object_type)
10920         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10921         parameter.  Update all callers.
10922         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10923         * python/py-exitedevent.c (exited_event_object_type): Make extern.
10924         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10925         * python/py-function.c (fnpy_object_type): Make extern.
10926         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10927         * python/py-infevents.c (call_pre_event_object_type)
10928         (inferior_call_post_event_object_type).
10929         (memory_changed_event_object_type): Make extern.
10930         * python/py-infthread.c (thread_object_type): Make extern.
10931         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10932         * python/py-linetable.c (linetable_entry_object_type)
10933         (linetable_object_type, ltpy_iterator_object_type): Make extern.
10934         * python/py-newobjfileevent.c (new_objfile_event_object_type)
10935         (clear_objfiles_event_object_type): Make extern.
10936         * python/py-objfile.c (objfile_object_type): Make extern.
10937         * python/py-param.c (parmpy_object_type): Make extern.
10938         * python/py-progspace.c (pspace_object_type): Make extern.
10939         * python/py-signalevent.c (signal_event_object_type): Make extern.
10940         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10941         * python/py-type.c (type_object_type, field_object_type)
10942         (type_iterator_object_type): Make extern.
10943         * python/python.c (python_extension_script_ops)
10944         (python_extension_ops): Make extern.
10945         * stap-probe.c (stap_probe_ops): Make extern.
10946
10947 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
10948
10949         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10950         because the event thread is not the current thread.
10951
10952 2015-02-11  Doug Evans  <xdje42@gmail.com>
10953
10954         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10955         been initialized yet, return NULL.
10956
10957 2015-02-11  Doug Evans  <dje@google.com>
10958
10959         * symfile.h (new_symfile_objfile): Delete.
10960         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10961         All callers updated.
10962
10963 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10964
10965         * tui/tui-io.c (tui_handle_resize_during_io): Call
10966         tui_update_gdb_sizes() after resizing the screen.
10967         * tui/tui.c (tui_enable): Resize the terminal before
10968         calling tui_update_gdb_sizes().
10969
10970 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
10971
10972         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10973         line before printing a newline.
10974
10975 2015-02-11  Mark Wielaard  <mjw@redhat.com>
10976
10977         * utils.c (producer_is_gcc): Return true or false.
10978
10979 2015-02-10  Mark Wielaard  <mjw@redhat.com>
10980
10981         * utils.h (producer_is_gcc): Change return type to bool. Add major
10982         argument.
10983         * utils.c (producer_is_gcc): Likewise.
10984         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10985         * dwarf2read.c (check_producer): Likewise.
10986
10987 2015-02-10  Pedro Alves  <palves@redhat.com>
10988
10989         * infrun.c (displaced_step_fixup): Switch to the event thread
10990         before calling gdbarch_displaced_step_fixup.
10991
10992 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
10993
10994         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10995
10996 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
10997
10998         * ada-varobj.c (ada_name_of_child): Constify parent.
10999         (ada_path_expr_of_child): Same.
11000         (ada_value_of_child): Same.
11001         (ada_type_of_child): Same.
11002         * c-varobj.c (c_is_path_expr_parent): Same.
11003         (c_describe_child): Same.
11004         (c_name_of_child): Same.
11005         (c_value_of_child): Same.
11006         (c_type_of_child): Same.
11007         (cplus_number_of_children): Same.
11008         (cplus_describe_child): Constify var.
11009         (cplus_name_of_child): Constify parent.
11010         (cplus_value_of_child): Same.
11011         (cplus_type_of_child): Same.
11012         * jv-varobj.c (java_name_of_child): Same.
11013         (java_value_of_child): Same.
11014         (java_type_of_child): Same.
11015         * varobj.c (value_of_child): Same.
11016         (varobj_default_is_path_expr_parent): Constify var, parent and return
11017         value.
11018         (varobj_get_path_expr): Constify var, modify path_expr through
11019         mutable_var.
11020         (install_new_value): Constify parent.
11021         (value_of_child): Constify parent.
11022         * varobj.h (struct varobj): Constify parent.
11023         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11024         type_of_child.
11025         (varobj_get_path_expr): Constify var.
11026         (varobj_get_path_expr_parent): Constify var and return value.
11027
11028 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11029
11030         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11031         (arm_prologue_this_id): Move PC and SP limit checks to
11032         arm_prologue_unwind_stop_reason.
11033         (arm_prologue_unwind) <stop_reason> : Set to
11034         arm_prologue_unwind_stop_reason.
11035
11036 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11037
11038         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11039         DW_LANG_Fortran08 as language_fortran.
11040
11041 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11042
11043         PR remote/17946
11044         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11045         of pointer against char.
11046
11047 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11048
11049         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11050         (c_type_print_modifier): Likewise.
11051         * dwarf2read.c (read_tag_atomic_type): New function.
11052         (read_type_die_1): Handle DW_TAG_atomic_type.
11053         * gdbtypes.c (make_atomic_type): New function.
11054         (recursive_dump_type): Handle TYPE_ATOMIC.
11055         * gdbtypes.h (enum type_flag_values): Renumber.
11056         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11057         (TYPE_ATOMIC): New macro.
11058         (make_atomic_type): Declare.
11059
11060 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11061
11062         * btrace.c (ftrace_find_call): Skip gaps.
11063         (ftrace_new_function): Initialize level.
11064         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11065         (ftrace_new_switch): Update
11066         level computation.
11067         (ftrace_new_gap): New.
11068         (ftrace_update_function): Create new function after gap.
11069         (btrace_compute_ftrace_bts): Create gap on error.
11070         (btrace_stitch_bts): Update parameters.  Clear trace if it
11071         becomes empty.
11072         (btrace_stitch_trace): Update parameters.  Update callers.
11073         (btrace_clear): Reset the number of gaps.
11074         (btrace_insn_get): Return NULL if the iterator points to a gap.
11075         (btrace_insn_number): Return zero if the iterator points to a gap.
11076         (btrace_insn_end): Allow gaps at the end.
11077         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11078         (btrace_find_insn_by_number): Assert that the found iterator does
11079         not point to a gap.
11080         (btrace_call_next, btrace_call_prev): Assert that the last function
11081         is not a gap.
11082         * btrace.h (btrace_bts_error): New.
11083         (btrace_function): Update comment.
11084         (btrace_function) <insn, insn_offset, number>: Update comment.
11085         (btrace_function) <errcode>: New.
11086         (btrace_thread_info) <ngaps>: New.
11087         (btrace_thread_info) <replay>: Update comment.
11088         (btrace_insn_get): Update comment.
11089         * record-btrace.c (btrace_ui_out_decode_error): New.
11090         (record_btrace_info): Print number of gaps.
11091         (btrace_insn_history, btrace_call_history): Call
11092         btrace_ui_out_decode_error for gaps.
11093         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11094
11095 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11096
11097         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11098         * nat/linux-btrace.c: (btrace_this_cpu): New.
11099         (cpu_supports_bts): Call btrace_this_cpu.
11100         (intel_supports_bts): Add cpu parameter.
11101
11102 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11103
11104         * btrace.h (btrace_insn_class): New.
11105         (btrace_insn) <size, iclass>: New.
11106         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11107         Use instruction classification.
11108         (ftrace_new_return): Update parameters.  Update users.
11109         (ftrace_update_function): Update parameters.  Update users.  Use
11110         instruction classification.
11111         (ftrace_update_insns): Update parameters.  Update users.
11112         (ftrace_classify_insn): New.
11113         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11114         TRY_CATCH around call to gdb_insn_length.
11115
11116 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11117
11118         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11119         Update parameters.  Update users.
11120
11121 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11122
11123         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11124         (btrace_conf_bts_attributes): New.
11125         (btrace_conf_children): Add attributes.
11126         * common/btrace-common.h (btrace_config_bts): New.
11127         (btrace_config)<bts>: New.
11128         (btrace_config): Update comment.
11129         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11130         Use config.
11131         * features/btrace-conf.dtd: Increment version.  Add size
11132         attribute to bts element.
11133         * record-btrace.c (set_record_btrace_bts_cmdlist,
11134         show_record_btrace_bts_cmdlist): New.
11135         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11136         record_btrace_print_conf, cmd_set_record_btrace_bts,
11137         cmd_show_record_btrace_bts): New.
11138         (record_btrace_info): Call record_btrace_print_conf.
11139         (_initialize_record_btrace): Add commands.
11140         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11141         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11142         (btrace_sync_conf): Synchronize bts size.
11143         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11144         * NEWS: Announce new commands and new packets.
11145
11146 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11147
11148         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11149         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11150         (x86_linux_btrace_conf): New.
11151         (x86_linux_create_target): Initialize to_btrace_conf.
11152         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11153         Check format.  Split into this and ...
11154         (linux_enable_bts): ... this.
11155         (linux_btrace_conf): New.
11156         (perf_event_skip_record): Renamed into ...
11157         (perf_event_skip_bts_record): ... this.  Updated users.
11158         (linux_disable_btrace): Split into this and ...
11159         (linux_disable_bts): ... this.
11160         (linux_read_btrace): Check format.
11161         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11162         (linux_btrace_conf): New.
11163         (btrace_target_info)<ptid>: Moved.
11164         (btrace_target_info)<conf>: New.
11165         (btrace_target_info): Split into this and ...
11166         (btrace_tinfo_bts): ... this.  Updated users.
11167         * btrace.c (btrace_enable): Update parameters.
11168         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11169         (btrace_conf_children, btrace_conf_attributes)
11170         (btrace_conf_elements): New.
11171         * btrace.h (btrace_enable): Update parameters.
11172         (btrace_conf, parse_xml_btrace_conf): New.
11173         * common/btrace-common.h (btrace_config): New.
11174         * feature/btrace-conf.dtd: New.
11175         * record-btrace.c (record_btrace_conf): New.
11176         (record_btrace_cmdlist): New.
11177         (record_btrace_enable_warn, record_btrace_open): Pass
11178         &record_btrace_conf.
11179         (record_btrace_info): Print recording format.
11180         (cmd_record_btrace_bts_start): New.
11181         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11182         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11183         Add "record bts" alias command.
11184         * remote.c (remote_state)<btrace_config>: New.
11185         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11186         (remote_protocol_features): Add qXfer:btrace-conf:read.
11187         (remote_open_1): Call remote_btrace_reset.
11188         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11189         (btrace_target_info)<conf>: New.
11190         (btrace_sync_conf, btrace_read_config): New.
11191         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11192         btrace_read_conf.
11193         (remote_btrace_conf): New.
11194         (init_remote_ops): Initialize to_btrace_conf.
11195         (_initialize_remote): Add qXfer:btrace-conf packet.
11196         * target.c (target_enable_btrace): Update parameters.
11197         (target_btrace_conf): New.
11198         * target.h (target_enable_btrace): Update parameters.
11199         (target_btrace_conf): New.
11200         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11201         (target_ops)<to_enable_btrace>: Update parameters and comment.
11202         (target_ops)<to_btrace_conf>: New.
11203         * target-delegates: Regenerate.
11204         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11205         (target_debug_print_const_struct_btrace_target_info_p): New.
11206         * NEWS: Announce new command and new packet.
11207
11208 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11209
11210         * nat/linux-btrace.h (perf_event_buffer): New.
11211         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11212         <bts>: ... this.
11213         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11214         (perf_event_buffer_size, perf_event_buffer_begin)
11215         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11216         Updated users.
11217         (perf_event_new_data): New.
11218
11219 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11220
11221         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11222         * record-btrace.c (record_btrace_open): Remove call to
11223         target_supports_btrace.
11224         * remote.c (remote_supports_btrace): Update parameters.
11225         * target.c (target_supports_btrace): Update parameters.
11226         * target.h (to_supports_btrace, target_supports_btrace): Update
11227         parameters.
11228         * target-delegates.c: Regenerate.
11229         * target-debug.h (target_debug_print_enum_btrace_format): New.
11230         * nat/linux-btrace.c
11231         (kernel_supports_btrace): Rename into ...
11232         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11233         (intel_supports_btrace): Rename into ...
11234         (intel_supports_bts): ... this.  Update users.
11235         (cpu_supports_btrace): Rename into ...
11236         (cpu_supports_bts): ... this.  Update users.
11237         (linux_supports_btrace): Update parameters.  Split into this and ...
11238         (linux_supports_bts): ... this.
11239         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11240
11241 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11242
11243         * Makefile.in (SFILES): Add common/btrace-common.c.
11244         (COMMON_OBS): Add common/btrace-common.o.
11245         (btrace-common.o): Add build rules.
11246         * btrace.c (parse_xml_btrace): Update parameters.
11247         (parse_xml_btrace_block): Set format field.
11248         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11249         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11250         (btrace_compute_ftrace): Split into this and...
11251         (btrace_compute_ftrace_bts): ...this.
11252         (btrace_stitch_trace): Split into this and...
11253         (btrace_stitch_bts): ...this.
11254         * btrace.h (parse_xml_btrace): Update parameters.
11255         (make_cleanup_btrace_data): New.
11256         * common/btrace-common.c: New.
11257         * common/btrace-common.h: Include common-defs.h.
11258         (btrace_block_s): Update comment.
11259         (btrace_format): New.
11260         (btrace_format_string): New.
11261         (btrace_data_bts): New.
11262         (btrace_data): New.
11263         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11264         * remote.c (remote_read_btrace): Update parameters.
11265         * target.c (target_read_btrace): Update parameters.
11266         * target.h (target_read_btrace): Update parameters.
11267         (target_ops)<to_read_btrace>: Update parameters.
11268         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11269         * target-delegates.c: Regenerate.
11270         * target-debug (target_debug_print_struct_btrace_data_p): New.
11271         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11272         (linux_read_bts): ...this.
11273         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11274
11275 2015-02-06  Doug Evans  <dje@google.com>
11276
11277         * remote-m32r-sdi.c: Include symfile.h.
11278
11279 2015-02-06  Doug Evans  <dje@google.com>
11280
11281         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11282         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11283         to here.
11284
11285 2015-02-06  Pedro Alves  <palves@redhat.com>
11286
11287         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11288
11289 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11290
11291         PR gdb/15678
11292         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11293         (enable_count_command): Check args for NULL value.
11294
11295 2015-02-05  Doug Evans  <xdje42@gmail.com>
11296
11297         * guile/scm-frame.c: Fix spelling errors in a comment.
11298
11299 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11300
11301         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11302         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11303         return type.
11304
11305 2015-02-04  Pedro Alves  <palves@redhat.com>
11306
11307         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11308         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11309         returns true.
11310         (resume_stopped_resumed_lwps): Don't check whether the thread is
11311         marked as executing.
11312         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11313
11314 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11315
11316         * regset.h (struct regset): Add flags field.
11317         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11318         * corelow.c (get_core_register_section): Add warning if the size
11319         exceeds the requested size and the regset does not have the
11320         REGSET_VARIABLE_SIZE flag set.
11321         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11322         flag.
11323         * armbsd-tdep.c (armbsd_gregset): Likewise.
11324         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11325         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11326         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11327         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11328
11329 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11330
11331         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11332         For ".reg-xstate", explicitly specify the requested section size
11333         via X86_XSTATE_SIZE instead of just 0 on input and
11334         X86_XSTATE_MAX_SIZE on output.
11335         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11336         Likewise.
11337
11338 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11339
11340         PR corefiles/17808:
11341         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11342         function type, particularly its SIZE parameter.
11343         * gdbarch.h: Regenerate.
11344         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11345         actual against required size using ">=" instead of "==".
11346         (amd64_collect_fpregset): Likewise.
11347         * i386-tdep.c (i386_supply_gregset): Likewise.
11348         (i386_collect_gregset): Likewise.
11349         (i386_supply_fpregset): Likewise.
11350         (i386_collect_fpregset): Likewise.
11351         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11352         (mips_fill_gregset_wrapper): Likewise.
11353         (mips_supply_fpregset_wrapper): Likewise.
11354         (mips_fill_fpregset_wrapper): Likewise.
11355         (mips64_supply_gregset_wrapper): Likewise.
11356         (mips64_fill_gregset_wrapper): Likewise.
11357         (mips64_supply_fpregset_wrapper): Likewise.
11358         (mips64_fill_fpregset_wrapper): Likewise.
11359         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11360         (am33_supply_fpregset_method): Likewise.
11361         (am33_collect_gregset_method): Likewise.
11362         (am33_collect_fpregset_method): Likewise.
11363
11364 2015-02-04  Doug Evans  <dje@google.com>
11365             Pedro Alves  <palves@redhat.com>
11366             Eli Zaretskii  <eliz@gnu.org>
11367
11368         PR tui/17810
11369         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11370         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11371         * tui/tui-file.c: #include tui/tui-command.h.
11372         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11373         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11374         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11375
11376 2015-02-04  Pedro Alves  <palves@redhat.com>
11377
11378         Fix build breakage.
11379         * event-loop.c (gdb_do_one_event): Add default switch case.
11380
11381 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11382
11383         Filter out inferior gcc option -fpreprocessed.
11384         * compile/compile.c (filter_args): New function.
11385         (get_args): Use it.
11386
11387 2015-02-03  Pedro Alves  <palves@redhat.com>
11388
11389         * event-loop.c: Don't declare nor define a queue type for
11390         gdb_event_p.
11391         (event_queue): Delete.
11392         (create_event, create_file_event, gdb_event_xfree)
11393         (initialize_event_loop, process_event): Delete.
11394         (gdb_do_one_event): Return as soon as one event is handled.
11395         (handle_file_event): Change prototype.  Used the passed in
11396         file_handler pointer and ready_mask instead of looping over all
11397         file handlers.
11398         (gdb_wait_for_event): Update the poll/select timeouts before
11399         blocking.  Run event handlers directly instead of queueing events.
11400         Return as soon as one event is handled.
11401         (struct async_event_handler_data): Delete.
11402         (invoke_async_event_handler): Delete.
11403         (check_async_event_handlers): Change return type to int.  Run
11404         event handlers directly instead of queueing events.  Return as
11405         soon as one event is handled.
11406         (handle_timer_event): Delete.
11407         (update_wait_timeout): New function, factored out from
11408         poll_timers.
11409         (poll_timers): Reimplement.
11410         * event-loop.h (initialize_event_loop): Delete declaration.
11411         * top.c (gdb_init): Don't call initialize_event_loop.
11412
11413 2015-02-03  Pedro Alves  <palves@redhat.com>
11414
11415         * event-loop.c (clear_async_event_handler): New function.
11416         * event-loop.h (clear_async_event_handler): New declaration.
11417         * record-btrace.c (record_btrace_async): New function.
11418         (init_record_btrace_ops): Install record_btrace_async.
11419         * record-full.c (record_full_async): New function.
11420         (record_full_resume): Don't mark the async event source here.
11421         (init_record_full_ops): Install record_full_async.
11422         (record_full_core_resume): Don't mark the async event source here.
11423         (init_record_full_core_ops): Install record_full_async.
11424         * remote.c (remote_async): Mark and clear the async stop reply
11425         queue event-loop token as appropriate.
11426
11427 2015-02-03  Pedro Alves  <palves@redhat.com>
11428
11429         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11430         target_is_async_p instead of target_can_async.
11431         (linux_nat_wait): Use target_is_async_p instead of
11432         target_can_async.  Don't enable async here.
11433         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11434         target_is_async_p instead of target_can_async.
11435
11436 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11437
11438         * varobj.h (lang_varobj_ops): Mention which return values need
11439         to be freed.
11440
11441 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11442
11443         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11444
11445 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11446
11447         PR gdb/17856:
11448         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11449         results found in the cache.
11450
11451 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11452
11453         PR gdb/17854:
11454         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11455         when allocating a new one.
11456
11457 2015-02-01  Tom Tromey  <tom@tromey.com>
11458
11459         * MAINTAINERS: Remove myself.
11460
11461 2015-01-31  Doug Evans  <xdje42@gmail.com>
11462
11463         * dwarf2read.c (process_structure_scope): Update setting of
11464         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11465         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11466         (set_type_vptr_fieldno): New function.
11467         (internal_type_vptr_basetype): New function.
11468         (set_type_vptr_basetype): New function.
11469         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11470         TYPE_VPTR_BASETYPE.
11471         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11472         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11473         (print_cplus_stuff): ... moved here.
11474         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11475         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11476         moved to ...
11477         (struct cplus_struct_type): ... here.  All uses updated.
11478         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11479         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11480         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11481         * stabsread.c (read_tilde_fields): Update setting of
11482         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11483
11484 2015-01-31  Doug Evans  <xdje42@gmail.com>
11485
11486         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11487         to self_p.
11488         (cp_print_class_member): Rename local domain to self_type.
11489         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11490         domain_type to self_type.
11491         (set_die_type) <need_gnat_info>: Handle
11492         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11493         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11494         TYPE_SPECIFIC_SELF_TYPE.
11495         * gdbtypes.c (internal_type_self_type): New function.
11496         (set_type_self_type): New function.
11497         (smash_to_memberptr_type): Rename parameter domain to self_type.
11498         Update setting of TYPE_SELF_TYPE.
11499         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11500         (smash_to_method_type): Rename parameter domain to self_type.
11501         Update setting of TYPE_SELF_TYPE.
11502         (check_stub_method): Call smash_to_method_type.
11503         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11504         (copy_type_recursive): Ditto.
11505         * gdbtypes.h (enum type_specific_kind): New value
11506         TYPE_SPECIFIC_SELF_TYPE.
11507         (struct main_type) <type_specific>: New member self_type.
11508         (struct cplus_struct_type) <fn_field.type>: Update comment.
11509         (TYPE_SELF_TYPE): Rewrite.
11510         (internal_type_self_type, set_type_self_type): Declare.
11511         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11512         self_type.
11513         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11514         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11515         TYPE_TARGET_TYPE.
11516         * stabsread.c (read_member_functions): Mark methods with
11517         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11518         TYPE_SELF_TYPE.
11519
11520 2015-01-31  Doug Evans  <xdje42@gmail.com>
11521
11522         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11523         All uses updated.
11524
11525 2015-01-31  Doug Evans  <xdje42@gmail.com>
11526
11527         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11528         or unions.  Return zero if union.
11529         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11530         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11531         gnuv3_get_vtable.
11532         (compute_vtable_size): Assert only passed structs.
11533         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11534
11535 2015-01-31  Doug Evans  <xdje42@gmail.com>
11536
11537         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11538         kinds.
11539
11540 2015-01-31  Gary Benson <gbenson@redhat.com>
11541             Doug Evans  <dje@google.com>
11542
11543         PR cli/9007
11544         PR cli/11920
11545         PR cli/15548
11546         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11547         reached.
11548         * common/common-exceptions.h (enum errors)
11549         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11550         * completer.h (get_max_completions_reached_message): New declaration.
11551         (max_completions): Likewise.
11552         (completion_tracker_t): New typedef.
11553         (new_completion_tracker): New declaration.
11554         (make_cleanup_free_completion_tracker): Likewise.
11555         (maybe_add_completion_enum): New enum.
11556         (maybe_add_completion): New declaration.
11557         (throw_max_completions_reached_error): Likewise.
11558         * completer.c (max_completions): New global variable.
11559         (new_completion_tracker): New function.
11560         (free_completion_tracker): Likewise.
11561         (make_cleanup_free_completion_tracker): Likewise.
11562         (maybe_add_completions): Likewise.
11563         (throw_max_completions_reached_error): Likewise.
11564         (complete_line): Remove duplicates and limit result to max_completions
11565         entries.
11566         (get_max_completions_reached_message): New function.
11567         (gdb_display_match_list): Handle max_completions.
11568         (_initialize_completer): New declaration and function.
11569         * symtab.c: Include completer.h.
11570         (completion_tracker): New static variable.
11571         (completion_list_add_name): Call maybe_add_completion.
11572         (default_make_symbol_completion_list_break_on_1): Renamed from
11573         default_make_symbol_completion_list_break_on.  Maintain
11574         completion_tracker across calls to completion_list_add_name.
11575         (default_make_symbol_completion_list_break_on): New function.
11576         * top.c (init_main): Set rl_completion_display_matches_hook.
11577         * tui/tui-io.c: Include completer.h.
11578         (tui_old_rl_display_matches_hook): New static global.
11579         (tui_rl_display_match_list): Notify user if max-completions reached.
11580         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11581         * NEWS (New Options): Mention set/show max-completions.
11582
11583 2015-01-31  Gary Benson  <gbenson@redhat.com>
11584
11585         * symtab.c (struct add_name_data) <code>: New field.
11586         Updated comments.
11587         (add_symtab_completions): New function.
11588         (symtab_expansion_callback): Likewise.
11589         (default_make_symbol_completion_list_break_on): Set datum.code.
11590         Move minimal symbol scan before calling expand_symtabs_matching.
11591         Scan known primary symtabs for externs and statics before calling
11592         expand_symtabs_matching.  Pass symtab_expansion_callback as
11593         expansion_notify argument to expand_symtabs_matching.  Do not scan
11594         primary symtabs for externs and statics after calling
11595         expand_symtabs_matching.
11596
11597 2015-01-31  Gary Benson  <gbenson@redhat.com>
11598
11599         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11600         (struct quick_symbol_functions) <expand_symtabs_matching>:
11601         New argument expansion_notify.  All uses updated.
11602         (expand_symtabs_matching): New argument expansion_notify.
11603         All uses updated.
11604         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11605         Also print expansion notify.
11606         * symtab.c (expand_symtabs_matching_via_partial): Call
11607         expansion_notify whenever a partial symbol table is expanded.
11608         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11609         expansion_notify whenever a symbol table is instantiated.
11610
11611 2015-01-31  Doug Evans  <xdje42@gmail.com>
11612
11613         * cli-out.c: #include completer.h, readline/readline.h.
11614         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11615         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11616         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11617         * cli-out.h (cli_display_match_list): Declare.
11618         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11619         (ELLIPSIS_LEN): Ditto.
11620         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11621         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11622         (gdb_fnprint, gdb_print_filename): Ditto.
11623         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11624         (gdb_display_match_list): Ditto.
11625         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11626         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11627         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11628         (match_list_displayer): New struct.
11629         (gdb_display_match_list): Declare.
11630         * top.c (init_main): Set rl_completion_display_matches_hook.
11631         * tui/tui-io.c: #include completer.h.
11632         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11633         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11634         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11635         (tui_mld_getc, tui_mld_read_key): Ditto.
11636         (tui_rl_display_match_list): Rewrite.
11637         (tui_handle_resize_during_io): New arg for_completion.  All callers
11638         updated.
11639
11640 2015-01-31  Doug Evans  <xdje42@gmail.com>
11641
11642         Add symbol lookup cache.
11643         * NEWS: Document new options and commands.
11644         * symtab.c (symbol_cache_key): New static global.
11645         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11646         (SYMBOL_LOOKUP_FAILED): New macro.
11647         (symbol_cache_slot_state): New enum.
11648         (block_symbol_cache): New struct.
11649         (symbol_cache): New struct.
11650         (new_symbol_cache_size, symbol_cache_size): New static globals.
11651         (hash_symbol_entry, eq_symbol_entry): New functions.
11652         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11653         (make_symbol_cache, free_symbol_cache): New functions.
11654         (get_symbol_cache, symbol_cache_cleanup): New function.
11655         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11656         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11657         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11658         (symbol_cache_flush, symbol_cache_dump): New functions.
11659         (maintenance_print_symbol_cache): New function.
11660         (maintenance_flush_symbol_cache): New function.
11661         (symbol_cache_stats): New function.
11662         (maintenance_print_symbol_cache_statistics): New function.
11663         (symtab_new_objfile_observer): New function.
11664         (symtab_free_objfile_observer): New function.
11665         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11666         (_initialize_symtab): Init symbol_cache_key.  New parameter
11667         maint symbol-cache-size.  New maint commands print symbol-cache,
11668         print symbol-cache-statistics, flush-symbol-cache.
11669         Install new_objfile, free_objfile observers.
11670
11671 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11672
11673         PR symtab/17855
11674         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11675         to end.
11676
11677 2015-01-31  Doug Evans  <xdje42@gmail.com>
11678
11679         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11680         * auto-load.c: #include ctype.h.
11681         (struct auto_load_pspace_info): Replace member loaded_scripts with
11682         new members loaded_script_files, loaded_script_texts.
11683         (auto_load_pspace_data_cleanup): Update.
11684         (init_loaded_scripts_info): Update.
11685         (get_auto_load_pspace_data_for_loading): Update.
11686         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11687         updated.
11688         (maybe_add_script_text): New function.
11689         (clear_section_scripts): Update.
11690         (source_script_file, execute_script_contents): New functions.
11691         (source_section_scripts): Add support for
11692         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11693         (print_scripts): New function.
11694         (auto_load_info_scripts): Also print inlined scripts.
11695         (maybe_print_unsupported_script_warning): Renamed from
11696         unsupported_script_warning_print.  All callers updated.
11697         (maybe_print_script_not_found_warning): Renamed from
11698         script_not_found_warning_print.  All callers updated.
11699         * extension-priv.h (struct extension_language_script_ops): New member
11700         objfile_script_executor.
11701         * extension.c (ext_lang_objfile_script_executor): New function.
11702         * extension.h (objfile_script_executor_func): New typedef.
11703         (ext_lang_objfile_script_executor): Declare.
11704         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11705         * guile/guile.c (guile_extension_script_ops): Update.
11706         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11707         * python/python.c (python_extension_script_ops): Update.
11708         (gdbpy_execute_objfile_script): New function.
11709
11710 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11711
11712         * tui/tui-io.c (tui_expand_tabs): New function.
11713         (tui_puts, tui_redisplay_readline): Expand TABs into the
11714         appropriate number of spaces.
11715         * tui/tui-regs.c: Include tui-io.h.
11716         (tui_register_format): Call tui_expand_tabs to expand TABs into
11717         the appropriate number of spaces.
11718         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11719
11720 2015-01-30  Doug Evans  <dje@google.com>
11721
11722         * NEWS: "info source" command now display producer string if present.
11723         * source.c (source_info): Print producer string if present.
11724
11725 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11726
11727         * varobj.c (varobj_delete): Fix comment.
11728
11729 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11730
11731         * varobj.c (create_child): Modify comment.
11732
11733 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11734
11735         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11736         parameter.
11737         (ada_name_of_variable): Same.
11738         (ada_path_expr_of_child): Same.
11739         (ada_value_of_variable): Same.
11740         (ada_value_is_changeable_p): Same.
11741         (ada_value_has_mutated): Same.
11742         * c-varobj.c (varobj_is_anonymous_child): Same.
11743         (c_is_path_expr_parent): Same.
11744         (c_number_of_children): Same.
11745         (c_name_of_variable): Same.
11746         (c_path_expr_of_child): Same.
11747         (get_type): Same.
11748         (c_value_of_variable): Same.
11749         (cplus_number_of_children): Same.
11750         (cplus_name_of_variable): Same.
11751         (cplus_path_expr_of_child): Same.
11752         (cplus_value_of_variable): Same.
11753         * jv-varobj.c (java_number_of_children): Same.
11754         (java_name_of_variable): Same.
11755         (java_path_expr_of_child): Same.
11756         (java_value_of_variable): Same.
11757         * varobj.c (number_of_children): Same.
11758         (name_of_variable): Same.
11759         (is_root_p): Same.
11760         (varobj_ensure_python_env): Same.
11761         (varobj_get_objname): Same.
11762         (varobj_get_expression): Same.
11763         (varobj_get_display_format): Same.
11764         (varobj_get_display_hint): Same.
11765         (varobj_has_more): Same.
11766         (varobj_get_thread_id): Same.
11767         (varobj_get_frozen): Same.
11768         (dynamic_varobj_has_child_method): Same.
11769         (varobj_get_gdb_type): Same.
11770         (is_path_expr_parent): Same.
11771         (varobj_default_is_path_expr_parent): Same.
11772         (varobj_get_language): Same.
11773         (varobj_get_attributes): Same.
11774         (varobj_is_dynamic_p): Same.
11775         (varobj_get_child_range): Same.
11776         (varobj_value_has_mutated): Same.
11777         (varobj_get_value_type): Same.
11778         (number_of_children): Same.
11779         (name_of_variable): Same.
11780         (check_scope): Same.
11781         (varobj_editable_p): Same.
11782         (varobj_value_is_changeable_p): Same.
11783         (varobj_floating_p): Same.
11784         (varobj_default_value_is_changeable_p): Same.
11785
11786 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11787
11788         * varobj.c (varobj_get_path_expr): Set var->path_expr.
11789         * c-varobj.c (c_path_expr_of_child): Set local var instead of
11790         child->path_expr.
11791         (cplus_path_expr_of_child): Same.
11792
11793 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11794
11795         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11796         result.
11797         (mi_cmd_var_info_expression): Same.
11798         * varobj.c (varobj_get_expression): Mention in the comment that
11799         the result must by freed by the caller.
11800
11801 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11802
11803         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11804         varobj_get_type.
11805         (varobj_update_one): Same.
11806         * varobj.c (update_type_if_necessary): Free curr_type_str and
11807         new_type_str.
11808         (varobj_get_type): Specify in comment that the result needs to be
11809         freed by the caller.
11810
11811 2015-01-29  Doug Evans  <dje@google.com>
11812
11813         PR symtab/17890
11814         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11815
11816 2015-01-25  Mark Wielaard  <mjw@redhat.com>
11817
11818         * dwarf2read.c (checkproducer): Call producer_is_gcc.
11819         * utils.c (producer_is_gcc_ge_4): Likewise.
11820         (producer_is_gcc): New function.
11821         * utils.h (producer_is_gcc): New declaration.
11822
11823 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11824
11825         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11826         kind.
11827         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11828         parameter by "addr_stack" parameter.
11829         (resolve_dynamic_range): Replace "addr" parameter by
11830         "stack_addr" parameter.  Update function documentation.
11831         Update code accordingly.
11832         (resolve_dynamic_array, resolve_dynamic_union)
11833         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11834         (resolve_dynamic_type): Update code, following the changes made
11835         to resolve_dynamic_type_internal's interface.
11836         * dwarf2loc.h (struct property_addr_info): New.
11837         (dwarf2_evaluate_property): Replace "address" parameter
11838         by "addr_stack" parameter.  Adjust function documentation.
11839         (struct dwarf2_offset_baton): New.
11840         (struct dwarf2_property_baton): Update documentation of
11841         field "referenced_type" to be more general. New field
11842         "offset_info" in union data field.
11843         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11844         parameter by "addr_stack" parameter.  Adjust code accordingly.
11845         Add support for PROP_ADDR_OFFSET properties.
11846         * dwarf2read.c (attr_to_dynamic_prop): Add support for
11847         DW_AT_data_member_location attributes as well.  Use case
11848         statements instead of if/else condition.
11849
11850 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11851
11852         * ada-varobj.c (ada_varobj_get_array_number_of_children):
11853         Return zero if PARENT_VALUE is NULL and parent_type's
11854         range type is dynamic.
11855
11856 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11857
11858         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11859         nonzero if the type's subtype is dynamic.
11860         (resolve_dynamic_range): Also resolve the range's subtype.
11861
11862 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
11863
11864         Pushed by Joel Brobecker  <brobecker@adacore.com>.
11865         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11866
11867 2015-01-27  Doug Evans  <dje@google.com>
11868
11869         * NEWS: Mention gdb.Objfile.username.
11870         * python/py-objfile.c (objfpy_get_username): New function.
11871         (objfile_getset): Add "username".
11872
11873 2015-01-24  Mark Wielaard  <mjw@redhat.com>
11874
11875         * stack.c (return_command): Markup warning message with _.
11876
11877 2015-01-24  Doug Evans  <xdje42@gmail.com>
11878
11879         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11880
11881 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11882
11883         Fix 100x slowdown regression on DWZ files.
11884         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11885         (struct line_header): Add offset and offset_in_dwz.
11886         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11887         (free_line_header_voidp): New declaration.
11888         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11889         functions.
11890         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11891         (handle_DW_AT_stmt_list): Use line_header_hash.
11892         (free_line_header_voidp): New function.
11893         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11894         (dwarf_decode_lines): New parameter decode_mapping, use it.
11895         (dwarf2_free_objfile): Free line_header_hash.
11896
11897 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
11898
11899         PR gdb/17416
11900         * valops.c (value_rtti_indirect_type): Catch exception thrown by
11901         value_ind.
11902
11903 2015-01-15  Mark Wielaard  <mjw@redhat.com>
11904
11905         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11906         DW_AT_noreturn.
11907         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11908         calling_convention an 8 bit bit field.
11909         (TYPE_NO_RETURN): New macro.
11910         * infcmd.c (finish_command): Query if function does not return
11911         normally.
11912         * stack.c (return_command): Likewise.
11913
11914 2015-01-23  Pedro Alves  <palves@redhat.com>
11915
11916         * linux-nat.c (linux_is_async_p): New macro.
11917         (linux_nat_is_async_p):
11918         (linux_nat_terminal_inferior): Check whether the target can async
11919         instead of whether it is already async.
11920         (linux_nat_terminal_ours): Don't check whether the target is
11921         async.
11922         (linux_async_pipe): Use linux_is_async_p.
11923
11924 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11925
11926         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11927         '-ascending'.
11928         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11929         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11930         Sort tp_array using tp_array_compar.
11931         (_initialize_thread): Extend thread_apply_all_command help.
11932
11933 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11934
11935         * corelow.c (core_open): Call also thread_command.
11936         * gdbthread.h (thread_command): New prototype moved from ...
11937         * thread.c (thread_command): ... here.
11938         (thread_command): Make it global.
11939
11940 2015-01-22  Pedro Alves  <palves@redhat.com>
11941
11942         * configure.ac [*mingw32*]: Check $curses_found instead of
11943         $prefer_curses.
11944         * configure: Regenerate.
11945         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11946         HAVE_NCURSES_NCURSES_H checks.
11947
11948 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11949
11950         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11951         fails with the 1st arg NULL, try again with "unknown".  Don't test
11952         the "cup" capability: it isn't supported by the Windows port of
11953         ncurses, but the Windows console driver is still capable of
11954         supporting TUI.
11955
11956 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11957
11958         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11959
11960 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
11961
11962         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11963         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
11964         reason that "make TAGS" is broken.
11965
11966 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
11967
11968         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11969         and check additional store instructions.
11970
11971 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11972
11973         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11974
11975 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
11976
11977         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11978         ppc_canonicalize_syscall, ppc_linux_syscall_record,
11979         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11980         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11981         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11982         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11983         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11984         ppc_process_record_op19, ppc_process_record_op31,
11985         ppc_process_record_op59, ppc_process_record_op60,
11986         ppc_process_record_op63): Likewise.
11987
11988 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
11989
11990         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11991         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11992         strerror.
11993
11994 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
11995
11996         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11997         ppc_process_record_op31, ppc_process_record_op59,
11998         ppc_process_record_op60, ppc_process_record_op63,
11999         ppc_process_record): Fix -Wformat warning.
12000         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12001         Remove unused variables.
12002
12003 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12004
12005         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12006
12007 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12008
12009         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12010         CONFIG_OBS if not building with a curses library.
12011         * configure: Regenerate.
12012
12013         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12014         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12015         HAVE_NCURSES_NCURSES_H is defined.
12016
12017 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12018
12019         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12020         from end of line to start of next line.
12021
12022 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12023
12024         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12025         Scan PLT stub backward for reverse debugging.
12026         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12027
12028 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12029             Ulrich Weigand  <uweigand@de.ibm.com>
12030
12031         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12032         gdb_target_obs.
12033         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12034         record.
12035         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12036         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12037         (ppc_linux_init_abi): Set process_record, process_record_signal.
12038         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12039         ppc_linux_record_tdep to gdbarch_tdep.
12040         (ppc_process_record): New declaration.
12041         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12042         ppc_process_record_op19, ppc_process_record_op31,
12043         ppc_process_record_op59, ppc_process_record_op60,
12044         ppc_process_record_op63, ppc_process_record): New functions.
12045
12046 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12047
12048         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12049         rs6000_in_function_epilogue_frame_p and add an argument
12050         for frame_info.
12051         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12052         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12053         New functions.
12054         (rs6000_epilogue_frame_unwind): New.
12055         (rs6000_gdbarch_init): Append epilogue unwinder.
12056
12057 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12058
12059         * nat/linux-personality.c: Replace "#ifndef
12060         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12061         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12062         systems.
12063
12064 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12065
12066         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12067         functions.
12068         (_initialize_tui_win) <border-kind, border-mode>:
12069         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12070         (tui_set_tab_width_command): Fix the commentary.
12071
12072         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12073
12074         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12075         Doc fix.
12076         (tui_set_tab_width_command): Delete and recreate the source and
12077         the disassembly windows, to show the effect of the changed tab
12078         size immediately.
12079
12080         * tui/tui-data.h (LINE_PREFIX): Make shorter
12081         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12082         "Thread NNNNN.XXXX" thread ID notation on Windows.
12083
12084 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12085
12086         Fix gcc-5 compilation.
12087         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12088
12089 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12090
12091         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12092         (linux-personality.o): New rule.
12093         * common/common-defs.h: Include <stdint.h>.
12094         * config/aarch64/linux.mh (NATDEPFILES): Include
12095         linux-personality.o.
12096         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12097         * config/arm/linux.mh (NATDEPFILES): Likewise.
12098         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12099         * config/i386/linux.mh (NATDEPFILES): Likewise.
12100         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12101         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12102         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12103         * config/mips/linux.mh (NATDEPFILES): Likewise.
12104         * config/pa/linux.mh (NATDEPFILES): Likewise.
12105         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12106         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12107         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12108         * config/s390/linux.mh (NATDEPFILES): Likewise.
12109         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12110         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12111         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12112         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12113         * defs.h: Remove #include <stdint.h> (moved to
12114         common/common-defs.h).
12115         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12116         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12117         nat/linux-personality.c).
12118         (linux_nat_create_inferior): Remove code to disable address space
12119         randomization (moved to nat/linux-personality.c).  Create cleanup
12120         to disable address space randomization.
12121         * nat/linux-personality.c: New file.
12122         * nat/linux-personality.h: Likewise.
12123
12124 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12125
12126         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12127         common/posix-strerror.c.
12128         (posix-strerror.o): New rule.
12129         (mingw-strerror.o): Likewise.
12130         * common/common-utils.h (safe_strerror): Move prototype to here,
12131         from utils.h.
12132         * common/common.host: New file.
12133         * common/mingw-strerror.c: Likewise.
12134         * common/posix-strerror.c: Likewise.
12135         * configure: Regenerated.
12136         * configure.ac: Source common/common.host.  Add variable
12137         common_host_obs to gdb_host_obs.
12138         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12139         gdb/common/posix-strerror.c when warning about the use of
12140         strerror.
12141         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12142         common/mingw-strerror.c.
12143         * posix-hdep.c (safe_strerror): Remove definition; move it to
12144         common/posix-hdep.c.
12145         * utils.h (safe_strerror): Remove prototype; move to
12146         common/common-utils.h.
12147
12148 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12149
12150         GDB 7.8.2 released.
12151
12152 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12153
12154         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12155         ___XA type if the array has already been fixed.
12156
12157 2015-01-14  Yao Qi  <yao@codesourcery.com>
12158
12159         * Makefile.in (ppc-linux.o): New rule.
12160         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12161         * configure.ac: AC_CHECK_FUNCS(getauxval).
12162         * config.in: Re-generated.
12163         * configure: Re-generated.
12164         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12165         Declare.
12166         * nat/ppc-linux.c: New file.
12167         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12168         Call ppc64_64bit_inferior_p.
12169
12170 2015-01-14  Yao Qi  <yao@codesourcery.com>
12171
12172         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12173         nat/ppc-linux.h.
12174         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12175         (PPC_FEATURE_HAS_DFP): Likewise.
12176         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12177         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12178         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12179         Include "nat/ppc-linux.h".
12180         * nat/ppc-linux.h: New file.
12181         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12182
12183 2015-01-14  Pedro Alves  <palves@redhat.com>
12184
12185         PR gdb/17525
12186         * breakpoint.c: Include "interps.h".
12187         (bpstat_do_actions_1): Also check whether the interpreter is
12188         async.
12189
12190 2015-01-14  Pedro Alves  <palves@redhat.com>
12191
12192         PR cli/17828
12193         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12194         reinstall if the interpreter is sync.
12195
12196 2015-01-13  Doug Evans  <dje@google.com>
12197
12198         * objfiles.c (objfile_filename): New function.
12199         * objfiles.h (objfile_filename): Declare it.
12200         (objfile_name): Add function comment.
12201         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12202         bfd file name (which may be realpath'd), and the original name.
12203
12204 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12205
12206         * NEWS: Create a new section for the next release branch.
12207         Rename the section of the current branch, now that it has
12208         been cut.
12209
12210 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12211
12212         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12213         * version.in: Bump version to 7.9.50.DATE-cvs.
12214
12215 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12216
12217         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12218         Remove trailing new-line in argument of call to warning.
12219
12220 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12221
12222         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12223         new-line in argument of call to "warning".
12224
12225 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12226
12227         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12228         in static block, then try searching for primitive types.
12229
12230 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12231
12232         * top.h (gdb_add_history): Declare.
12233         * top.c (command_count): New variable.
12234         (gdb_add_history): New function.
12235         (gdb_safe_append_history): New static function.
12236         (quit_force): Call it.
12237         (command_line_input): Use gdb_add_history instead of
12238         add_history.
12239         * event-top.c (command_line_handler): Likewise.
12240
12241 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12242
12243         PR gdb/17046
12244         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12245         <setjmp.h> #include.
12246
12247 2015-01-11  Doug Evans  <xdje42@gmail.com>
12248
12249         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12250
12251 2015-01-11  Doug Evans  <xdje42@gmail.com>
12252
12253         PR gdb/15830
12254         * NEWS: The "maint demangle" command is renamed as "demangle".
12255         * demangle.c: #include cli/cli-utils.h, language.h.
12256         (demangle_command): New function.
12257         (_initialize_demangle): Add new command "demangle".
12258         * maint.c (maintenance_demangle): Stub out.
12259         (_initialize_maint_cmds): Update help text for "maint demangle",
12260         and mark as deprecated.
12261
12262 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12263
12264         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12265         inferior_thread is a function.
12266
12267 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12268
12269         * Makefile.in (.y.c): Don't munge yacc's #line
12270         directives.
12271
12272 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12273
12274         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12275         to prompt for input.
12276         * tui/tui-hooks.c (tui_query_hook): Remove.
12277         (tui_install_hooks): Don't set deprecated_query_hook.
12278         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12279         height calculation.  Always update the command window's cur_line.
12280
12281 2015-01-09  Pedro Alves  <palves@redhat.com>
12282
12283         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12284         function.
12285         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12286         declaration.
12287         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12288         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12289         stop_reason.
12290         (check_stopped_by_watchpoint): New function.
12291         (save_sigtrap): Reimplement.
12292         (linux_nat_stopped_by_watchpoint): Adjust.
12293         (linux_nat_lp_status_is_event): Delete.
12294         (stop_wait_callback): Only call save_sigtrap after storing the
12295         pending status.
12296         (status_callback): If the thread had been stopped for a breakpoint
12297         that has since been removed, discard the event and resume the LWP.
12298         (count_events_callback, select_event_lwp_callback): Use
12299         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12300         (cancel_breakpoint): Rename to ...
12301         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12302         stopped for a software breakpoint or hardware breakpoint.
12303         (select_event_lwp): Only give preference to the stepping LWP in
12304         all-stop mode.  Adjust comments.
12305         (stop_and_resume_callback): Remove references to new_pending_p.
12306         (linux_nat_filter_event): Likewise.  Leave exit events of the
12307         leader thread pending here.  Handle signal short circuiting here.
12308         Only call save_sigtrap after storing the pending waitstatus.
12309         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12310         new_pending.  Don't handle leaving events the caller is not
12311         interested in pending here, nor handle signal short-circuiting
12312         here.  Also give equal priority to all LWPs that have had events
12313         in non-stop mode.  If reporting a software breakpoint event,
12314         unadjust the LWP's PC.
12315         * linux-nat.h (enum lwp_stop_reason): New.
12316         (struct lwp_info) <stop_pc>: New field.
12317         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12318         (struct lwp_info) <stop_reason>: New field.
12319         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12320
12321 2015-01-09  Pedro Alves  <palves@redhat.com>
12322
12323         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12324         Set the LWP's 'resumed' flag.
12325
12326 2015-01-09  Pedro Alves  <palves@redhat.com>
12327
12328         * linux-nat.c (linux_resume_one_lwp): New function.
12329         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12330         (linux_nat_resume): Use lwp_status_pending_p and
12331         linux_resume_one_lwp.
12332         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12333         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12334         (status_callback, running_callback): Use lwp_status_pending_p.
12335         (lwp_status_pending_p): New function.
12336         (stop_and_resume_callback): Use lwp_status_pending_p.
12337         (linux_nat_filter_event): Use linux_resume_one_lwp.
12338         (linux_nat_wait_1): Always use status_callback to look for an LWP
12339         with a pending status.  Use linux_resume_one_lwp.
12340         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12341         linux_resume_one_lwp.
12342
12343 2015-01-09  Pedro Alves  <palves@redhat.com>
12344
12345         * breakpoint.c (bp_location_inserted_here_p): New function,
12346         factored out from ...
12347         (breakpoint_inserted_here_p): ... here.  Use
12348         ALL_BP_LOCATIONS_AT_ADDR.
12349         (software_breakpoint_inserted_here_p): Use
12350         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12351
12352 2014-01-09  Pedro Alves  <palves@redhat.com>
12353
12354         Skip enabling event reporting if the kernel supports
12355         PTRACE_EVENT_CLONE.
12356         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12357         (thread_db_use_events): New function.
12358         (try_thread_db_load_1): Check thread_db_use_events before enabling
12359         event reporting.
12360         (update_thread_state): New function.
12361         (attach_thread): Use it.  Check thread_db_use_events before
12362         enabling event reporting.
12363         (thread_db_detach): Check thread_db_use_events before disabling
12364         event reporting.
12365         (find_new_threads_callback): Check thread_db_use_events before
12366         enabling event reporting.  Update the thread's state if not using
12367         libthread_db events.
12368
12369 2015-01-09  Pedro Alves  <palves@redhat.com>
12370
12371         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12372         about to wait for is > 0.
12373         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12374         the kernel thread ID is -1.
12375
12376 2015-01-09  Pedro Alves  <palves@redhat.com>
12377
12378         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12379         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12380         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12381         ptrace option flags.
12382         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12383         field.
12384         * nat/linux-procfs.c: Include <dirent.h>.
12385         (linux_proc_get_int): New parameter "warn".  Handle it.
12386         (linux_proc_get_tgid): Adjust.
12387         (linux_proc_get_tracerpid): Rename to ...
12388         (linux_proc_get_tracerpid_nowarn): ... this.
12389         (linux_proc_pid_get_state): New function, factored out from
12390         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12391         and handle it.
12392         (linux_proc_pid_is_gone): New function.
12393         (linux_proc_pid_is_stopped): Adjust.
12394         (linux_proc_pid_is_zombie_maybe_warn)
12395         (linux_proc_pid_is_zombie_nowarn): New functions.
12396         (linux_proc_pid_is_zombie): Use
12397         linux_proc_pid_is_zombie_maybe_warn.
12398         (linux_proc_attach_tgid_threads): New function.
12399         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12400         (linux_proc_get_tracerpid): Rename to ...
12401         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12402         (linux_proc_pid_is_gone): New declaration.
12403         (linux_proc_pid_is_zombie): Update comment.
12404         (linux_proc_pid_is_zombie_nowarn): New declaration.
12405         (linux_proc_attach_lwp_func): New typedef.
12406         (linux_proc_attach_tgid_threads): New declaration.
12407         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12408         use nowarn functions.
12409         (linux_ptrace_attach_fail_reason_string): Move here from
12410         gdbserver/linux-low.c and rename.
12411         (ptrace_supports_feature): If the current ptrace options are not
12412         known yet, check them now, instead of asserting.
12413         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12414         Declare.
12415
12416 2015-01-09  Pedro Alves  <palves@redhat.com>
12417
12418         * linux-thread-db.c (thread_db_find_new_threads_silently)
12419         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12420         (find_new_threads_once): Print debug output on gdb_stdlog.
12421
12422 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12423             Pedro Alves  <palves@redhat.com>
12424
12425         * compile/compile.c: Include "gdb_wait.h".
12426         (do_rmdir): Check return value, and free 'zap'.
12427
12428 2015-01-08  Pedro Alves  <palves@redhat.com>
12429             Yao Qi  <yao@codesourcery.com>
12430
12431         * dwarf2loc.c (indirect_pieced_value): Don't call
12432         gdb_sign_extend.  Call extract_signed_integer instead.
12433         * utils.c (gdb_sign_extend): Remove.
12434         * utils.h (gdb_sign_extend): Remove declaration.
12435
12436 2015-01-07  Pierre Muller  <muller@sourceware.org>
12437
12438         PR symtab/17811
12439         * stabsread.c (define_symbol): Set language for C++ special symbols.
12440
12441 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12442
12443         * inflow.c (initial_gdb_ttystate): Tweak comment.
12444
12445 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12446
12447         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12448         comment documenting function.
12449
12450 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12451
12452         * terminal.h (set_initial_gdb_ttystate): Declare.
12453         * inflow.c (initial_gdb_ttystate): New static variable.
12454         (set_initial_gdb_ttystate): New setter.
12455         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12456         instead of our current terminal state.
12457         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12458
12459 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12460
12461         * guile/scm-type.c (tyscm_array_1): Add comment.
12462         * python/py-type.c (typy_array_1): Add comment.
12463
12464 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12465
12466         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12467         error if N2 is equal to N1 - 1.
12468
12469 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12470
12471         * python/py-type.c (typy_array_1): Do not raise negative-length
12472         exception if N2 is equal to N1 - 1.
12473
12474 2015-01-03  Doug Evans  <xdje42@gmail.com>
12475
12476         * c-exp.y: Whitespace cleanup.
12477         (classify_inner_name): Remove extra ;.
12478
12479 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12480
12481         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12482         offset signed.
12483
12484 2015-01-02  Doug Evans  <dje@google.com>
12485
12486         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12487
12488 2015-01-02  Doug Evans  <dje@google.com>
12489
12490         * symtab.h (struct symbol): Fix typo in comment.
12491
12492 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12493
12494         Update year range in copyright notice of all files.
12495
12496 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12497
12498         * top.c (print_gdb_version): Update copyright year to 2015.
12499
12500 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12501
12502         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12503
12504 For older changes see ChangeLog-2014.
12505 \f
12506 Local Variables:
12507 mode: change-log
12508 left-margin: 8
12509 fill-column: 74
12510 version-control: never
12511 coding: utf-8
12512 End: