gdb: Simplify parse_frame_specification.
[external/binutils.git] / gdb / ChangeLog
1 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
2
3         * stack.c (parse_frame_specification): Remove message parameter,
4         replace with fixed string in function body, update function
5         comment.
6         (frame_info): Remove message to parse_frame_specification.
7         (select_frame_command): Likewise.
8
9 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
10
11         * stack.c (parse_frame_specification): Delete.
12         (parse_frame_specification_1): Rename to
13         parse_frame_specification.
14         (frame_info): Use parse_frame_specification.
15         (select_frame_command): Likewise.
16         (return_command): Use select_frame and print_stack_frame rather
17         than frame_command and select_frame_command.
18         (func_command): Use get_current_frame rather than
19         parse_frame_specification.
20
21 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
22
23         * stack.c (func_command): Return early when there is no ARG
24         string.
25
26 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
27
28         * stack.c: Include safe-ctype.h not ctype.h.
29         (parse_frame_specification): Use ISSPACE not isspace.
30         (backtrace_command): Use TOLOWER not tolower.
31
32 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
33
34         * mep-tdep.c (current_me_module): Add cast.
35         (mep_gdbarch_init): Likewise.
36
37 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
38
39         * m32c-tdep.c (m32c_move_reg_t): Replace with...
40         (m32c_write_reg_t): ...this and...
41         (m32c_read_reg_t): ...this.
42         (struct m32c_reg): Update types of read and write.
43         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
44         adjust definition.
45         (m32c_banked_read): Likewise.
46         (m32c_sb_read): Likewise.
47         (m32c_part_read): Likewise.
48         (m32c_cat_read): Likewise.
49         (m32c_r3r2r1r0_read): Likewise.
50         (m32c_raw_write): Change declaration type to m32c_write_reg_t
51         and adjust definition.
52         (m32c_banked_write): Likewise.
53         (m32c_sb_write): Likewise.
54         (m32c_part_write): Likewise.
55         (m32c_cat_write): Likewise.
56         (m32c_r3r2r1r0_write): Likewise.
57
58 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
59
60         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
61
62 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
63
64         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
65         gdb_sys_no_syscall instead of -1.
66
67 2015-10-12  Yao Qi  <yao.qi@linaro.org>
68
69         * NEWS: Mention the change.
70
71 2015-10-12  Yao Qi  <yao.qi@linaro.org>
72
73         * arch/aarch64-insn.c (emit_load_store): Rename to ...
74         (aarch64_emit_load_store): ... it.  All callers updated.
75
76 2015-10-12  Yao Qi  <yao.qi@linaro.org>
77
78         * arch/aarch64-insn.c (emit_insn): Rename to ...
79         (aarch64_emit_insn): ... it.  All callers updated.
80
81 2015-10-12  Yao Qi  <yao.qi@linaro.org>
82
83         * aarch64-linux-tdep.c: Include arch-utils.h.
84         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
85         set_gdbarch_displaced_step_copy_insn,
86         set_gdbarch_displaced_step_fixup,
87         set_gdbarch_displaced_step_free_closure,
88         set_gdbarch_displaced_step_location,
89         and set_gdbarch_displaced_step_hw_singlestep.
90         * aarch64-tdep.c (struct displaced_step_closure): New.
91         (struct aarch64_displaced_step_data): New.
92         (aarch64_displaced_step_b): New function.
93         (aarch64_displaced_step_b_cond): Likewise.
94         (aarch64_register): Likewise.
95         (aarch64_displaced_step_cb): Likewise.
96         (aarch64_displaced_step_tb): Likewise.
97         (aarch64_displaced_step_adr): Likewise.
98         (aarch64_displaced_step_ldr_literal): Likewise.
99         (aarch64_displaced_step_others): Likewise.
100         (aarch64_displaced_step_copy_insn): Likewise.
101         (aarch64_displaced_step_fixup): Likewise.
102         (aarch64_displaced_step_hw_singlestep): Likewise.
103         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
104         (aarch64_displaced_step_copy_insn): Declare.
105         (aarch64_displaced_step_fixup): Declare.
106         (aarch64_displaced_step_hw_singlestep): Declare.
107         * arch/aarch64-insn.c (emit_insn): Moved from
108         gdbserver/linux-aarch64-low.c.
109         (emit_load_store): Likewise.
110         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
111         gdbserver/linux-aarch64-low.c.
112         (struct aarch64_register): Likewise.
113         (struct aarch64_memory_operand): Likewise.
114         (ENCODE): Likewise.
115         (can_encode_int32): New macro.
116         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
117         (emit_tb, emit_nop): Likewise.
118         (emit_insn): Declare.
119         (emit_load_store): Declare.
120
121 2015-10-12  Yao Qi  <yao.qi@linaro.org>
122
123         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
124         gdbserver/linux-aarch64-low.c.
125         (aarch64_relocate_instruction): Likewise.
126         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
127         (struct aarch64_insn_data): Moved from
128         gdbserver/linux-aarch64-low.c.
129         (struct aarch64_insn_visitor): Likewise.
130         (aarch64_relocate_instruction): Declare.
131
132 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
133
134         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
135         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
136         to the returned value.
137
138 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
139
140         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
141         is large enough for BIT_SIZE.  Update function comment.
142
143 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
144
145         * ada-lang.c (ada_value_primitive_packed_val): Move
146         src_len variable to local block where used.  Override
147         BIT_SIZE if bigger than size of resolved type.
148
149 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
150
151         * gdbtypes.h (is_scalar_type): Add extern declaration.
152         * gdbtypes.c (is_scalar_type): Make non-static.
153         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
154         to compute IS_SCALAR instead of doing it ourselves.
155
156 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
157
158         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
159         of case where TYPE is dynamic.
160
161 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
162
163         * ada-lang.c (ada_unpack_from_contents): New function,
164         extracted from ada_value_primitive_packed_val.
165         (ada_value_primitive_packed_val): Replace extracted out code
166         by call to ada_unpack_from_contents.
167
168 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
169
170         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
171         variable declarations.
172
173 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
174
175         * ada-lang.c (ada_value_primitive_packed_val): Change the type
176         of local variables src and unpacked to "gdb_type *" instead of
177         "unsigned char *".
178
179 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
180
181         * ada-lang.c (ada_value_primitive_packed_val): Make the name
182         of various local variables more explicit and consistent.
183         No real code change otherwise.
184
185 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
186
187         * i386-tdep.h (struct gdbarch_tdep): Change type of
188         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
189
190 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
191
192         * cris-tdep.c (struct instruction_environment): Change type of
193         byte_order to enum bfd_endian.
194
195 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
196
197         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
198         enum gdb_syscall casts.
199
200 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
201
202         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
203         * arm-tdep.c (struct stack_item): Likewise.
204         (push_stack_item): Add gdb_byte* cast.
205         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
206         (push_stack_item): Add gdb_byte* cast.
207         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
208         and add cast.
209         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
210         (push_stack_item): Add gdb_byte* cast.
211         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
212         add cast.
213         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
214         gdb_byte*.
215         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
216         gdb_byte* and remove unnecessary cast.
217         (h8300h_extract_return_value): Likewise.
218         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
219         (h8300h_store_return_value): Likewise.
220         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
221         gdb_byte* and remove unnecessary cast.
222         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
223         and add cast.
224         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
225         gdb_byte* and remove unnecessary cast.
226         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
227         valbuf.
228         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
229         (mep_pseudo_cr64_read): Likewise.
230         (mep_pseudo_csr_write): Likewise.
231         (mep_pseudo_cr32_write): Likewise.
232         (mep_pseudo_cr64_write): Likewise.
233         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
234         gdb_byte* and add cast.
235         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
236         gdb_byte* and remove unnecessary cast.
237         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
238         valbuf.
239         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
240         gdb_byte*.
241         * printcmd.c (void): Likewise.
242         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
243         gdb_byte* and add cast.
244         (infpy_write_memory): Likewise.
245         (infpy_search_memory): Likewise.
246         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
247         and add cast.
248         (regcache_raw_write_unsigned): Likewise.
249         (regcache_cooked_write_signed): Likewise.
250         (regcache_cooked_write_unsigned): Likewise.
251         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
252         gdb_byte*.
253
254 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
255
256         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
257         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
258
259 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
260
261         * stack.c (print_stack_frame):
262         * utils.c (printchar): Fix typos in commentary.
263
264 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
265
266         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
267         (PostfixExpression): Support `expr.sizeof' expressions.
268         (PrimaryExpression): Support `typeof(expr)' expressions.
269
270 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
271
272         * MAINTAINERS: Update my email address.
273
274 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
275
276         * record-btrace.c (record_btrace_resume): Fix void return.
277
278 2015-10-07  Yao Qi  <yao.qi@linaro.org>
279
280         * aarch64-tdep.c: Include opcode/aarch64.h.
281         (submask): Move it above.
282         (bit): Likewise.
283         (bits): Likewise.
284         (aarch64_software_single_step): Call aarch64_decode_insn.
285         Decode instruction by aarch64_inst instead of using
286         aarch64_decode_bcond and decode_masked_match.
287
288 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
289
290         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
291         only when the file is binary.
292
293 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
294
295         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
296         subroutine handling.
297
298 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
299
300         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
301
302 2015-09-30  Doug Evans  <dje@google.com>
303
304         * dwarf2read.c (setup_type_unit_groups): Add comment.
305
306 2015-09-30  Pedro Alves  <palves@redhat.com>
307
308         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
309         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
310         (x86_linux_create_target): Don't install
311         x86_linux_always_non_stop_p.
312
313 2015-09-30  Don Breazeal  <donb@codesourcery.com>
314
315         * remote.c (remote_parse_stop_reply): Call strprefix instead
316         of strncmp.
317
318 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
319
320         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
321         * gdbarch.h: Regenerate.
322         * i386-tdep.c (i386_gdbarch_init): Remove cast to
323         struct gdbarch_tdep_info *.
324         * mips-tdep.c (mips_gdbarch_init): Likewise.
325         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
326         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
327         * spu-multiarch.c (spu_gdbarch): Likewise.
328
329 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
330
331         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
332         record a NULL value.
333
334 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
335
336         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
337         and union arguments the same as pointer arguments when determining
338         size of argument.
339
340 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
341
342         * ft32-tdep.c: #include "opcode/ft32.h".
343         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
344         (ft32_analyze_prologue): Use FT32_* macros.
345
346 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
347
348         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
349         comment.
350
351 2015-09-28  Doug Evans  <dje@google.com>
352
353         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
354
355 2015-09-28  Doug Evans  <dje@google.com>
356
357         * common/filestuff.c (make_cleanup_close): Update comment.
358
359 2015-09-26  Simon Marchi  <simark@nova.polymtl.ca>
360
361         * btrace.c (parse_xml_btrace_block): Fix cast of
362         xml_find_attribute's return value.
363         * memory-map.c (memory_map_start_memory): Likewise.
364         * solib-svr4.c (library_list_start_library): Likewise.
365         * solib-target.c (library_list_start_segment): Likewise.
366         (library_list_start_section): Likewise.
367         * tracepoint.c (traceframe_info_start_memory): Likewise.
368
369 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
370
371         * d-namespace.c (d_lookup_symbol): New arg langdef.
372         All callers updated.  Support looking up symbol as a primitive type.
373         (lookup_module_scope): New arg langdef.  All callers updated.
374         Call d_lookup_symbol directly for simple bare symbols.
375
376 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
377
378         * macrocmd.c (print_macro_callback): Add cast(s).
379         * macrotab.c (macro_bcache_str): Likewise.
380         (new_macro_definition): Likewise.
381         * main.c (captured_main): Likewise.
382         * maint.c (print_bfd_section_info): Likewise.
383         * mdebugread.c (mdebug_build_psymtabs): Likewise.
384         (basic_type): Likewise.
385         * memattr.c (mem_region_cmp): Likewise.
386         * memory-map.c (memory_map_start_memory): Likewise.
387         (memory_map_end_memory): Likewise.
388         (memory_map_start_property): Likewise.
389         (memory_map_end_property): Likewise.
390         (clear_result): Likewise.
391         * memrange.c (compare_mem_ranges): Likewise.
392         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
393         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
394         * mi/mi-console.c (mi_console_file_delete): Likewise.
395         (mi_console_file_fputs): Likewise.
396         (mi_console_raw_packet): Likewise.
397         (mi_console_file_flush): Likewise.
398         (mi_console_set_raw): Likewise.
399         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
400         (mi_new_thread): Likewise.
401         (mi_thread_exit): Likewise.
402         (mi_record_changed): Likewise.
403         (mi_inferior_added): Likewise.
404         (mi_inferior_appeared): Likewise.
405         (mi_inferior_exit): Likewise.
406         (mi_inferior_removed): Likewise.
407         (mi_interp_data): Likewise.
408         (mi_on_normal_stop): Likewise.
409         (mi_traceframe_changed): Likewise.
410         (mi_tsv_created): Likewise.
411         (mi_tsv_deleted): Likewise.
412         (mi_tsv_modified): Likewise.
413         (mi_breakpoint_created): Likewise.
414         (mi_breakpoint_deleted): Likewise.
415         (mi_breakpoint_modified): Likewise.
416         (mi_output_running_pid): Likewise.
417         (mi_inferior_count): Likewise.
418         (mi_solib_loaded): Likewise.
419         (mi_solib_unloaded): Likewise.
420         (mi_command_param_changed): Likewise.
421         (mi_memory_changed): Likewise.
422         (report_initial_inferior): Likewise.
423         (mi_ui_out): Likewise.
424         (mi_set_logging): Likewise.
425         * mi/mi-main.c (collect_cores): Likewise.
426         (print_one_inferior): Likewise.
427         (free_vector_of_ints): Likewise.
428         (free_splay_tree): Likewise.
429         (mi_execute_command): Likewise.
430         * mi/mi-out.c (mi_table_body): Likewise.
431         (mi_table_end): Likewise.
432         (mi_table_header): Likewise.
433         (mi_begin): Likewise.
434         (mi_end): Likewise.
435         (mi_field_int): Likewise.
436         (mi_field_string): Likewise.
437         (mi_field_fmt): Likewise.
438         (mi_flush): Likewise.
439         (mi_redirect): Likewise.
440         (field_separator): Likewise.
441         (mi_open): Likewise.
442         (mi_close): Likewise.
443         (mi_out_buffered): Likewise.
444         (mi_out_rewind): Likewise.
445         (mi_out_put): Likewise.
446         (mi_version): Likewise.
447         (mi_out_data_dtor): Likewise.
448         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
449         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
450         * minidebug.c (lzma_open): Likewise.
451         (lzma_pread): Likewise.
452         (lzma_close): Likewise.
453         (lzma_stat): Likewise.
454         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
455         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
456         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
457         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
458         (mips_micro_frame_cache): Likewise.
459         (mips_insn32_frame_cache): Likewise.
460         (mips_stub_frame_cache): Likewise.
461         (gdb_print_insn_mips): Likewise.
462         (value_of_mips_user_reg): Likewise.
463         (mips_gdbarch_init): Likewise.
464         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
465         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
466         (mipsnbsd_supply_gregset): Likewise.
467         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
468         (am33_collect_gregset_method): Likewise.
469         (am33_collect_fpregset_method): Likewise.
470         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
471         * moxie-tdep.c (moxie_frame_cache): Likewise.
472         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
473         (msp430_analyze_frame_prologue): Likewise.
474         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
475         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
476         (nios2_collect_gregset): Likewise.
477         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
478         (nios2_stub_frame_cache): Likewise.
479         * objc-lang.c (find_methods): Likewise.
480         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
481         (get_objfile_pspace_data): Likewise.
482         (get_objfile_bfd_data): Likewise.
483         (objfile_bfd_data_free): Likewise.
484         (add_to_objfile_sections): Likewise.
485         (do_free_objfile_cleanup): Likewise.
486         (resume_section_map_updates_cleanup): Likewise.
487         * opencl-lang.c (builtin_opencl_type): Likewise.
488         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
489         * osdata.c (osdata_start_osdata): Likewise.
490         (osdata_start_item): Likewise.
491         (osdata_start_column): Likewise.
492         (osdata_end_column): Likewise.
493         (clear_parsing_data): Likewise.
494         (osdata_free_cleanup): Likewise.
495         * parse.c (type_stack_cleanup): Likewise.
496         (exp_uses_objfile_iter): Likewise.
497         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
498         (ppc_linux_collect_gregset): Likewise.
499         (ppu2spu_prev_arch): Likewise.
500         (ppu2spu_this_id): Likewise.
501         (ppu2spu_prev_register): Likewise.
502         (ppu2spu_unwind_register): Likewise.
503         (ppu2spu_sniffer): Likewise.
504         (ppu2spu_dealloc_cache): Likewise.
505         (ppc_linux_init_abi): Likewise.
506         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
507         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
508         * progspace.c (restore_program_space): Likewise.
509         * psymtab.c (find_pc_sect_psymtab): Likewise.
510         (compare_psymbols): Likewise.
511         (psymbol_bcache_full): Likewise.
512         (allocate_psymtab): Likewise.
513         (discard_psymtabs_upto): Likewise.
514         * python/py-block.c (set_block): Likewise.
515         (del_objfile_blocks): Likewise.
516         * python/py-breakpoint.c (build_bp_list): Likewise.
517         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
518         (build_inferior_list): Likewise.
519         (py_free_inferior): Likewise.
520         * python/py-objfile.c (py_free_objfile): Likewise.
521         (objfile_to_objfile_object): Likewise.
522         * python/py-prettyprint.c (py_restore_tstate): Likewise.
523         * python/py-progspace.c (py_free_pspace): Likewise.
524         (pspace_to_pspace_object): Likewise.
525         * python/py-symbol.c (set_symbol): Likewise.
526         (del_objfile_symbols): Likewise.
527         * python/py-symtab.c (set_sal): Likewise.
528         (set_symtab): Likewise.
529         (del_objfile_symtab): Likewise.
530         (del_objfile_sal): Likewise.
531         * python/py-type.c (save_objfile_types): Likewise.
532         (set_type): Likewise.
533         * python/py-unwind.c (pyuw_prev_register): Likewise.
534         (pyuw_on_new_gdbarch): Likewise.
535         * python/py-utils.c (py_decref): Likewise.
536         (py_xdecref): Likewise.
537         (gdb_py_generic_dict): Likewise.
538         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
539         (gdbpy_clone_xmethod_worker_data): Likewise.
540         (gdbpy_get_xmethod_arg_types): Likewise.
541         (gdbpy_get_xmethod_result_type): Likewise.
542         (gdbpy_invoke_xmethod): Likewise.
543         * python/python.c (gdbpy_apply_type_printers): Likewise.
544         (gdbpy_free_type_printers): Likewise.
545         * record-btrace.c (record_btrace_disable_callback): Likewise.
546         (bfcache_hash): Likewise.
547         (bfcache_eq): Likewise.
548         (btrace_get_frame_function): Likewise.
549         (record_btrace_frame_unwind_stop_reason): Likewise.
550         (record_btrace_frame_this_id): Likewise.
551         (record_btrace_frame_prev_register): Likewise.
552         (record_btrace_frame_dealloc_cache): Likewise.
553         * record-full.c (record_full_message_wrapper): Likewise.
554         (record_full_save_cleanups): Likewise.
555         * regcache.c (regcache_descr): Likewise.
556         (do_regcache_xfree): Likewise.
557         (do_regcache_invalidate): Likewise.
558         (do_cooked_read): Likewise.
559         (regcache_transfer_regset): Likewise.
560         * reggroups.c (reggroup_add): Likewise.
561         (reggroup_next): Likewise.
562         (reggroup_prev): Likewise.
563         * remote-fileio.c (do_remote_fileio_request): Likewise.
564         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
565         (do_notif_event_xfree): Likewise.
566         * remote.c (get_remote_arch_state): Likewise.
567         (remote_pspace_data_cleanup): Likewise.
568         (get_remote_exec_file): Likewise.
569         (set_pspace_remote_exec_file): Likewise.
570         (compare_pnums): Likewise.
571         (clear_threads_listing_context): Likewise.
572         (remote_newthread_step): Likewise.
573         (start_thread): Likewise.
574         (end_thread): Likewise.
575         (remove_child_of_pending_fork): Likewise.
576         (remove_stop_reply_for_inferior): Likewise.
577         (remove_stop_reply_of_remote_state): Likewise.
578         (remote_notif_remove_once_on_match): Likewise.
579         (stop_reply_match_ptid_and_ws): Likewise.
580         (kill_child_of_pending_fork): Likewise.
581         (register_remote_g_packet_guess): Likewise.
582         (remote_read_description_p): Likewise.
583         (remote_read_description): Likewise.
584         (free_actions_list_cleanup_wrapper): Likewise.
585         (remote_async_serial_handler): Likewise.
586         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
587         (rl78_analyze_frame_prologue): Likewise.
588         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
589         (ppc_supply_fpregset): Likewise.
590         (ppc_supply_vsxregset): Likewise.
591         (ppc_supply_vrregset): Likewise.
592         (ppc_collect_gregset): Likewise.
593         (ppc_collect_fpregset): Likewise.
594         (ppc_collect_vsxregset): Likewise.
595         (ppc_collect_vrregset): Likewise.
596         (e500_move_ev_register): Likewise.
597         (do_regcache_raw_write): Likewise.
598         (rs6000_frame_cache): Likewise.
599         (rs6000_epilogue_frame_cache): Likewise.
600         (rs6000_gdbarch_init): Likewise.
601         * rx-tdep.c (rx_get_opcode_byte): Likewise.
602         (rx_analyze_frame_prologue): Likewise.
603         (rx_frame_type): Likewise.
604         (rx_frame_sniffer_common): Likewise.
605         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
606         (s390_frame_unwind_cache): Likewise.
607         (s390_stub_frame_unwind_cache): Likewise.
608         (s390_sigtramp_frame_unwind_cache): Likewise.
609         * score-tdep.c (score_make_prologue_cache): Likewise.
610         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
611         (sentinel_frame_prev_arch): Likewise.
612         * ser-base.c (fd_event): Likewise.
613         (push_event): Likewise.
614         (ser_base_write): Likewise.
615         * ser-pipe.c (pipe_close): Likewise.
616         * serial.c (serial_write): Likewise.
617         * sh-tdep.c (sh_frame_cache): Likewise.
618         (sh_stub_this_id): Likewise.
619         * sh64-tdep.c (sh64_frame_cache): Likewise.
620         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
621         (library_list_start_library): Likewise.
622         (library_list_start_list): Likewise.
623         (solib_aix_free_library_list): Likewise.
624         * solib-darwin.c (get_darwin_info): Likewise.
625         * solib-dsbt.c (get_dsbt_info): Likewise.
626         * solib-spu.c (append_ocl_sos): Likewise.
627         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
628         (get_svr4_info): Likewise.
629         (library_list_start_library): Likewise.
630         (svr4_library_list_start_list): Likewise.
631         (hash_probe_and_action): Likewise.
632         (equal_probe_and_action): Likewise.
633         (svr4_update_solib_event_breakpoint): Likewise.
634         (set_solib_svr4_fetch_link_map_offsets): Likewise.
635         (svr4_fetch_link_map_offsets): Likewise.
636         (svr4_have_link_map_offsets): Likewise.
637         * solib-target.c (library_list_start_segment): Likewise.
638         (library_list_start_section): Likewise.
639         (library_list_start_library): Likewise.
640         (library_list_end_library): Likewise.
641         (library_list_start_list): Likewise.
642         (solib_target_free_library_list): Likewise.
643         * solib.c (solib_ops): Likewise.
644         (set_solib_ops): Likewise.
645         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
646         * sparc-tdep.c (sparc_frame_cache): Likewise.
647         (sparc32_frame_cache): Likewise.
648         (sparc32_supply_gregset): Likewise.
649         (sparc32_collect_gregset): Likewise.
650         (sparc32_supply_fpregset): Likewise.
651         (sparc32_collect_fpregset): Likewise.
652         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
653         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
654         (sparc64_collect_gregset): Likewise.
655         (sparc64_supply_fpregset): Likewise.
656         (sparc64_collect_fpregset): Likewise.
657         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
658         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
659         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
660         (sparc64obsd_trapframe_cache): Likewise.
661         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
662         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
663         * spu-multiarch.c (spu_gdbarch): Likewise.
664         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
665         (spu2ppu_prev_arch): Likewise.
666         (spu2ppu_this_id): Likewise.
667         (spu2ppu_prev_register): Likewise.
668         (spu2ppu_dealloc_cache): Likewise.
669         (spu_dis_asm_print_address): Likewise.
670         (gdb_print_insn_spu): Likewise.
671         (spu_get_overlay_table): Likewise.
672         * stabsread.c (rs6000_builtin_type): Likewise.
673         * stack.c (do_print_variable_and_value): Likewise.
674         * stap-probe.c (get_stap_base_address_1): Likewise.
675         * symfile-debug.c (debug_qf_has_symbols): Likewise.
676         (debug_qf_find_last_source_symtab): Likewise.
677         (debug_qf_forget_cached_source_info): Likewise.
678         (debug_qf_map_symtabs_matching_filename): Likewise.
679         (debug_qf_lookup_symbol): Likewise.
680         (debug_qf_print_stats): Likewise.
681         (debug_qf_dump): Likewise.
682         (debug_qf_relocate): Likewise.
683         (debug_qf_expand_symtabs_for_function): Likewise.
684         (debug_qf_expand_all_symtabs): Likewise.
685         (debug_qf_expand_symtabs_with_fullname): Likewise.
686         (debug_qf_map_matching_symbols): Likewise.
687         (debug_qf_expand_symtabs_matching): Likewise.
688         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
689         (debug_qf_map_symbol_filenames): Likewise.
690         (debug_sym_get_probes): Likewise.
691         (debug_sym_new_init): Likewise.
692         (debug_sym_init): Likewise.
693         (debug_sym_read): Likewise.
694         (debug_sym_read_psymbols): Likewise.
695         (debug_sym_finish): Likewise.
696         (debug_sym_offsets): Likewise.
697         (debug_sym_read_linetable): Likewise.
698         (debug_sym_relocate): Likewise.
699         (uninstall_symfile_debug_logging): Likewise.
700         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
701         * symfile.c (place_section): Likewise.
702         (add_section_size_callback): Likewise.
703         (load_progress): Likewise.
704         (load_section_callback): Likewise.
705         (clear_memory_write_data): Likewise.
706         (allocate_symtab): Likewise.
707         * symmisc.c (maintenance_expand_file_matcher): Likewise.
708         * symtab.c (lookup_symtab_callback): Likewise.
709         (hash_demangled_name_entry): Likewise.
710         (eq_demangled_name_entry): Likewise.
711         (get_symbol_cache): Likewise.
712         (symbol_cache_cleanup): Likewise.
713         (set_symbol_cache_size): Likewise.
714         (symbol_cache_flush): Likewise.
715         (maintenance_print_symbol_cache): Likewise.
716         (maintenance_print_symbol_cache_statistics): Likewise.
717         (delete_filename_seen_cache): Likewise.
718         (output_partial_symbol_filename): Likewise.
719         (search_symbols_file_matches): Likewise.
720         (search_symbols_name_matches): Likewise.
721         (do_free_completion_list): Likewise.
722         (maybe_add_partial_symtab_filename): Likewise.
723         (get_main_info): Likewise.
724         (main_info_cleanup): Likewise.
725         * target-dcache.c (target_dcache_cleanup): Likewise.
726         (target_dcache_init_p): Likewise.
727         (target_dcache_invalidate): Likewise.
728         (target_dcache_get): Likewise.
729         (target_dcache_get_or_init): Likewise.
730         * target-descriptions.c (target_find_description): Likewise.
731         (tdesc_find_type): Likewise.
732         (tdesc_data_cleanup): Likewise.
733         (tdesc_find_arch_register): Likewise.
734         (tdesc_register_name): Likewise.
735         (tdesc_register_type): Likewise.
736         (tdesc_register_reggroup_p): Likewise.
737         (set_tdesc_pseudo_register_name): Likewise.
738         (set_tdesc_pseudo_register_type): Likewise.
739         (set_tdesc_pseudo_register_reggroup_p): Likewise.
740         (tdesc_use_registers): Likewise.
741         (free_target_description): Likewise.
742         * target-memory.c (compare_block_starting_address): Likewise.
743         (cleanup_request_data): Likewise.
744         (cleanup_write_requests_vector): Likewise.
745         * target.c (open_target): Likewise.
746         (cleanup_restore_target_terminal): Likewise.
747         (free_memory_read_result_vector): Likewise.
748         * thread.c (disable_thread_stack_temporaries): Likewise.
749         (finish_thread_state_cleanup): Likewise.
750         (do_restore_current_thread_cleanup): Likewise.
751         (restore_current_thread_cleanup_dtor): Likewise.
752         (set_thread_refcount): Likewise.
753         (tp_array_compar): Likewise.
754         (do_captured_thread_select): Likewise.
755         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
756         (tic6x_stub_this_id): Likewise.
757         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
758         * top.c (do_restore_instream_cleanup): Likewise.
759         (gdb_readline_wrapper_cleanup): Likewise.
760         (kill_or_detach): Likewise.
761         (print_inferior_quit_action): Likewise.
762         * tracefile-tfile.c (match_blocktype): Likewise.
763         (build_traceframe_info): Likewise.
764         * tracefile.c (trace_file_writer_xfree): Likewise.
765         * tracepoint.c (memrange_cmp): Likewise.
766         (do_collect_symbol): Likewise.
767         (do_clear_collection_list): Likewise.
768         (do_restore_current_traceframe_cleanup): Likewise.
769         (restore_current_traceframe_cleanup_dtor): Likewise.
770         (free_current_marker): Likewise.
771         (traceframe_info_start_memory): Likewise.
772         (traceframe_info_start_tvar): Likewise.
773         (free_result): Likewise.
774         * tramp-frame.c (tramp_frame_cache): Likewise.
775         * tui/tui-file.c (tui_file_delete): Likewise.
776         (tui_fileopen): Likewise.
777         (tui_sfileopen): Likewise.
778         (tui_file_isatty): Likewise.
779         (tui_file_rewind): Likewise.
780         (tui_file_put): Likewise.
781         (tui_file_fputs): Likewise.
782         (tui_file_get_strbuf): Likewise.
783         (tui_file_adjust_strbuf): Likewise.
784         (tui_file_flush): Likewise.
785         * tui/tui-layout.c (make_command_window): Likewise.
786         (make_data_window): Likewise.
787         (show_source_disasm_command): Likewise.
788         (show_data): Likewise.
789         (make_source_or_disasm_window): Likewise.
790         (show_source_or_disasm_and_command): Likewise.
791         * tui/tui-out.c (tui_field_int): Likewise.
792         (tui_field_string): Likewise.
793         (tui_field_fmt): Likewise.
794         (tui_text): Likewise.
795         * typeprint.c (hash_typedef_field): Likewise.
796         (eq_typedef_field): Likewise.
797         (do_free_typedef_hash): Likewise.
798         (copy_typedef_hash_element): Likewise.
799         (do_free_global_table): Likewise.
800         (find_global_typedef): Likewise.
801         (find_typedef_in_hash): Likewise.
802         * ui-file.c (ui_file_write_for_put): Likewise.
803         (do_ui_file_xstrdup): Likewise.
804         (mem_file_delete): Likewise.
805         (mem_file_rewind): Likewise.
806         (mem_file_put): Likewise.
807         (mem_file_write): Likewise.
808         (stdio_file_delete): Likewise.
809         (stdio_file_flush): Likewise.
810         (stdio_file_read): Likewise.
811         (stdio_file_write): Likewise.
812         (stdio_file_write_async_safe): Likewise.
813         (stdio_file_fputs): Likewise.
814         (stdio_file_isatty): Likewise.
815         (stdio_file_fseek): Likewise.
816         (tee_file_delete): Likewise.
817         (tee_file_flush): Likewise.
818         (tee_file_write): Likewise.
819         (tee_file_fputs): Likewise.
820         (tee_file_isatty): Likewise.
821         * ui-out.c (do_cleanup_table_end): Likewise.
822         (do_cleanup_end): Likewise.
823         * user-regs.c (user_reg_add): Likewise.
824         (user_reg_map_name_to_regnum): Likewise.
825         (usernum_to_user_reg): Likewise.
826         (maintenance_print_user_registers): Likewise.
827         * utils.c (do_bfd_close_cleanup): Likewise.
828         (do_fclose_cleanup): Likewise.
829         (do_obstack_free): Likewise.
830         (do_ui_file_delete): Likewise.
831         (do_ui_out_redirect_pop): Likewise.
832         (do_free_section_addr_info): Likewise.
833         (restore_integer): Likewise.
834         (do_unpush_target): Likewise.
835         (do_htab_delete_cleanup): Likewise.
836         (do_restore_ui_file): Likewise.
837         (do_value_free): Likewise.
838         (do_free_so): Likewise.
839         (free_current_contents): Likewise.
840         (do_regfree_cleanup): Likewise.
841         (core_addr_hash): Likewise.
842         (core_addr_eq): Likewise.
843         (do_free_char_ptr_vec): Likewise.
844         * v850-tdep.c (v850_frame_cache): Likewise.
845         * varobj.c (do_free_variable_cleanup): Likewise.
846         * vax-tdep.c (vax_supply_gregset): Likewise.
847         (vax_frame_cache): Likewise.
848         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
849         * xml-support.c (gdb_xml_body_text): Likewise.
850         (gdb_xml_values_cleanup): Likewise.
851         (gdb_xml_start_element): Likewise.
852         (gdb_xml_start_element_wrapper): Likewise.
853         (gdb_xml_end_element): Likewise.
854         (gdb_xml_end_element_wrapper): Likewise.
855         (gdb_xml_cleanup): Likewise.
856         (gdb_xml_fetch_external_entity): Likewise.
857         (gdb_xml_parse_attr_enum): Likewise.
858         (xinclude_start_include): Likewise.
859         (xinclude_end_include): Likewise.
860         (xml_xinclude_default): Likewise.
861         (xml_xinclude_start_doctype): Likewise.
862         (xml_xinclude_end_doctype): Likewise.
863         (xml_xinclude_cleanup): Likewise.
864         (xml_fetch_content_from_file): Likewise.
865         * xml-syscall.c (free_syscalls_info): Likewise.
866         (syscall_start_syscall): Likewise.
867         * xml-tdesc.c (tdesc_end_arch): Likewise.
868         (tdesc_end_osabi): Likewise.
869         (tdesc_end_compatible): Likewise.
870         (tdesc_start_target): Likewise.
871         (tdesc_start_feature): Likewise.
872         (tdesc_start_reg): Likewise.
873         (tdesc_start_union): Likewise.
874         (tdesc_start_struct): Likewise.
875         (tdesc_start_flags): Likewise.
876         (tdesc_start_field): Likewise.
877         (tdesc_start_vector): Likewise.
878         (fetch_available_features_from_target): Likewise.
879         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
880         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
881         (xtensa_frame_cache): Likewise.
882         (xtensa_frame_prev_register): Likewise.
883         (xtensa_extract_return_value): Likewise.
884
885 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
886
887         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
888         (aarch64_make_stub_cache): Likewise.
889         (value_of_aarch64_user_reg): Likewise.
890         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
891         (get_ada_inferior_data): Likewise.
892         (get_ada_pspace_data): Likewise.
893         (ada_pspace_data_cleanup): Likewise.
894         (ada_complete_symbol_matcher): Likewise.
895         (ada_exc_search_name_matches): Likewise.
896         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
897         (get_ada_tasks_inferior_data): Likewise.
898         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
899         (splay_obstack_alloc): Likewise.
900         (splay_obstack_free): Likewise.
901         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
902         (alpha_linux_collect_gregset): Likewise.
903         (alpha_linux_supply_fpregset): Likewise.
904         (alpha_linux_collect_fpregset): Likewise.
905         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
906         * alpha-tdep.c (alpha_lds): Likewise.
907         (alpha_sts): Likewise.
908         (alpha_sigtramp_frame_unwind_cache): Likewise.
909         (alpha_heuristic_frame_unwind_cache): Likewise.
910         (alpha_supply_int_regs): Likewise.
911         (alpha_fill_int_regs): Likewise.
912         (alpha_supply_fp_regs): Likewise.
913         (alpha_fill_fp_regs): Likewise.
914         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
915         (alphanbsd_aout_supply_gregset): Likewise.
916         (alphanbsd_supply_gregset): Likewise.
917         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
918         (amd64_x32_linux_init_abi): Likewise.
919         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
920         (amd64_collect_native_gregset): Likewise.
921         * amd64-tdep.c (amd64_frame_cache): Likewise.
922         (amd64_sigtramp_frame_cache): Likewise.
923         (amd64_epilogue_frame_cache): Likewise.
924         (amd64_supply_fxsave): Likewise.
925         (amd64_supply_xsave): Likewise.
926         (amd64_collect_fxsave): Likewise.
927         (amd64_collect_xsave): Likewise.
928         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
929         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
930         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
931         (arm_linux_collect_gregset): Likewise.
932         (arm_linux_supply_nwfpe): Likewise.
933         (arm_linux_collect_nwfpe): Likewise.
934         (arm_linux_supply_vfp): Likewise.
935         (arm_linux_collect_vfp): Likewise.
936         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
937         (arm_prologue_unwind_stop_reason): Likewise.
938         (arm_prologue_this_id): Likewise.
939         (arm_prologue_prev_register): Likewise.
940         (arm_exidx_data_free): Likewise.
941         (arm_find_exidx_entry): Likewise.
942         (arm_stub_this_id): Likewise.
943         (arm_m_exception_this_id): Likewise.
944         (arm_m_exception_prev_register): Likewise.
945         (arm_normal_frame_base): Likewise.
946         (gdb_print_insn_arm): Likewise.
947         (arm_objfile_data_free): Likewise.
948         (arm_record_special_symbol): Likewise.
949         (value_of_arm_user_reg): Likewise.
950         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
951         (armbsd_supply_gregset): Likewise.
952         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
953         (get_auto_load_pspace_data): Likewise.
954         (hash_loaded_script_entry): Likewise.
955         (eq_loaded_script_entry): Likewise.
956         (clear_section_scripts): Likewise.
957         (collect_matching_scripts): Likewise.
958         * auxv.c (auxv_inferior_data_cleanup): Likewise.
959         (get_auxv_inferior_data): Likewise.
960         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
961         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
962         * bfd-target.c (target_bfd_xfer_partial): Likewise.
963         (target_bfd_xclose): Likewise.
964         (target_bfd_get_section_table): Likewise.
965         * bfin-tdep.c (bfin_frame_cache): Likewise.
966         * block.c (find_block_in_blockvector): Likewise.
967         (call_site_for_pc): Likewise.
968         (block_find_non_opaque_type_preferred): Likewise.
969         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
970         (signal_catchpoint_remove_location): Likewise.
971         (signal_catchpoint_breakpoint_hit): Likewise.
972         (signal_catchpoint_print_one): Likewise.
973         (signal_catchpoint_print_mention): Likewise.
974         (signal_catchpoint_print_recreate): Likewise.
975         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
976         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
977         (bp_location_compare_addrs): Likewise.
978         (get_first_locp_gte_addr): Likewise.
979         (check_tracepoint_command): Likewise.
980         (do_map_commands_command): Likewise.
981         (get_breakpoint_objfile_data): Likewise.
982         (free_breakpoint_probes): Likewise.
983         (do_captured_breakpoint_query): Likewise.
984         (compare_breakpoints): Likewise.
985         (bp_location_compare): Likewise.
986         (bpstat_remove_breakpoint_callback): Likewise.
987         (do_delete_breakpoint_cleanup): Likewise.
988         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
989         (bsd_uthread_set_collect_uthread): Likewise.
990         (bsd_uthread_activate): Likewise.
991         (bsd_uthread_fetch_registers): Likewise.
992         (bsd_uthread_store_registers): Likewise.
993         * btrace.c (check_xml_btrace_version): Likewise.
994         (parse_xml_btrace_block): Likewise.
995         (parse_xml_btrace_pt_config_cpu): Likewise.
996         (parse_xml_btrace_pt_raw): Likewise.
997         (parse_xml_btrace_pt): Likewise.
998         (parse_xml_btrace_conf_bts): Likewise.
999         (parse_xml_btrace_conf_pt): Likewise.
1000         (do_btrace_data_cleanup): Likewise.
1001         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1002         * charset.c (cleanup_iconv): Likewise.
1003         (do_cleanup_iterator): Likewise.
1004         * cli-out.c (cli_uiout_dtor): Likewise.
1005         (cli_table_begin): Likewise.
1006         (cli_table_body): Likewise.
1007         (cli_table_end): Likewise.
1008         (cli_table_header): Likewise.
1009         (cli_begin): Likewise.
1010         (cli_end): Likewise.
1011         (cli_field_int): Likewise.
1012         (cli_field_skip): Likewise.
1013         (cli_field_string): Likewise.
1014         (cli_field_fmt): Likewise.
1015         (cli_spaces): Likewise.
1016         (cli_text): Likewise.
1017         (cli_message): Likewise.
1018         (cli_wrap_hint): Likewise.
1019         (cli_flush): Likewise.
1020         (cli_redirect): Likewise.
1021         (out_field_fmt): Likewise.
1022         (field_separator): Likewise.
1023         (cli_out_set_stream): Likewise.
1024         * cli/cli-cmds.c (compare_symtabs): Likewise.
1025         * cli/cli-dump.c (call_dump_func): Likewise.
1026         (restore_section_callback): Likewise.
1027         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1028         (do_restore_user_call_depth): Likewise.
1029         (do_free_command_lines_cleanup): Likewise.
1030         * coff-pe-read.c (get_section_vmas): Likewise.
1031         (pe_as16): Likewise.
1032         (pe_as32): Likewise.
1033         * coffread.c (coff_symfile_read): Likewise.
1034         * common/agent.c (agent_look_up_symbols): Likewise.
1035         * common/filestuff.c (do_close_cleanup): Likewise.
1036         * common/format.c (free_format_pieces_cleanup): Likewise.
1037         * common/vec.c (vec_o_reserve): Likewise.
1038         * compile/compile-c-support.c (print_one_macro): Likewise.
1039         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1040         (eq_symbol_error): Likewise.
1041         (del_symbol_error): Likewise.
1042         (error_symbol_once): Likewise.
1043         (gcc_convert_symbol): Likewise.
1044         (gcc_symbol_address): Likewise.
1045         (hash_symname): Likewise.
1046         (eq_symname): Likewise.
1047         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1048         (eq_type_map_instance): Likewise.
1049         (insert_type): Likewise.
1050         (convert_type): Likewise.
1051         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1052         (setup_sections): Likewise.
1053         (link_hash_table_free): Likewise.
1054         (copy_sections): Likewise.
1055         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1056         * compile/compile.c (compile_print_value): Likewise.
1057         (do_rmdir): Likewise.
1058         (cleanup_compile_instance): Likewise.
1059         (cleanup_unlink_file): Likewise.
1060         * completer.c (free_completion_tracker): Likewise.
1061         * corelow.c (add_to_spuid_list): Likewise.
1062         * cp-namespace.c (reset_directive_searched): Likewise.
1063         * cp-support.c (reset_directive_searched): Likewise.
1064         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1065         (cris_frame_unwind_cache): Likewise.
1066         * d-lang.c (builtin_d_type): Likewise.
1067         * d-namespace.c (reset_directive_searched): Likewise.
1068         * dbxread.c (dbx_free_symfile_info): Likewise.
1069         (do_free_bincl_list_cleanup): Likewise.
1070         * disasm.c (hash_dis_line_entry): Likewise.
1071         (eq_dis_line_entry): Likewise.
1072         (dis_asm_print_address): Likewise.
1073         (fprintf_disasm): Likewise.
1074         (do_ui_file_delete): Likewise.
1075         * doublest.c (convert_floatformat_to_doublest): Likewise.
1076         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1077         (dummy_frame_prev_register): Likewise.
1078         (dummy_frame_this_id): Likewise.
1079         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1080         (cache_eq): Likewise.
1081         (cache_find): Likewise.
1082         (tailcall_frame_this_id): Likewise.
1083         (dwarf2_tailcall_prev_register_first): Likewise.
1084         (tailcall_frame_prev_register): Likewise.
1085         (tailcall_frame_dealloc_cache): Likewise.
1086         (tailcall_frame_prev_arch): Likewise.
1087         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1088         (dwarf2_frame_set_init_reg): Likewise.
1089         (dwarf2_frame_init_reg): Likewise.
1090         (dwarf2_frame_set_signal_frame_p): Likewise.
1091         (dwarf2_frame_signal_frame_p): Likewise.
1092         (dwarf2_frame_set_adjust_regnum): Likewise.
1093         (dwarf2_frame_adjust_regnum): Likewise.
1094         (clear_pointer_cleanup): Likewise.
1095         (dwarf2_frame_cache): Likewise.
1096         (find_cie): Likewise.
1097         (dwarf2_frame_find_fde): Likewise.
1098         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1099         (free_dwarf_expr_context_cleanup): Likewise.
1100         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1101         (locexpr_get_frame_base): Likewise.
1102         (loclist_find_frame_base_location): Likewise.
1103         (loclist_get_frame_base): Likewise.
1104         (dwarf_expr_dwarf_call): Likewise.
1105         (dwarf_expr_get_base_type): Likewise.
1106         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1107         (dwarf_expr_get_obj_addr): Likewise.
1108         (entry_data_value_coerce_ref): Likewise.
1109         (entry_data_value_copy_closure): Likewise.
1110         (entry_data_value_free_closure): Likewise.
1111         (get_frame_address_in_block_wrapper): Likewise.
1112         (dwarf2_evaluate_property): Likewise.
1113         (dwarf2_compile_property_to_c): Likewise.
1114         (needs_frame_read_addr_from_reg): Likewise.
1115         (needs_frame_get_reg_value): Likewise.
1116         (needs_frame_frame_base): Likewise.
1117         (needs_frame_frame_cfa): Likewise.
1118         (needs_frame_tls_address): Likewise.
1119         (needs_frame_dwarf_call): Likewise.
1120         (needs_dwarf_reg_entry_value): Likewise.
1121         (get_ax_pc): Likewise.
1122         (locexpr_read_variable): Likewise.
1123         (locexpr_read_variable_at_entry): Likewise.
1124         (locexpr_read_needs_frame): Likewise.
1125         (locexpr_describe_location): Likewise.
1126         (locexpr_tracepoint_var_ref): Likewise.
1127         (locexpr_generate_c_location): Likewise.
1128         (loclist_read_variable): Likewise.
1129         (loclist_read_variable_at_entry): Likewise.
1130         (loclist_describe_location): Likewise.
1131         (loclist_tracepoint_var_ref): Likewise.
1132         (loclist_generate_c_location): Likewise.
1133         * dwarf2read.c (line_header_hash_voidp): Likewise.
1134         (line_header_eq_voidp): Likewise.
1135         (dwarf2_has_info): Likewise.
1136         (dwarf2_get_section_info): Likewise.
1137         (locate_dwz_sections): Likewise.
1138         (hash_file_name_entry): Likewise.
1139         (eq_file_name_entry): Likewise.
1140         (delete_file_name_entry): Likewise.
1141         (dw2_setup): Likewise.
1142         (dw2_get_file_names_reader): Likewise.
1143         (dw2_find_pc_sect_compunit_symtab): Likewise.
1144         (hash_signatured_type): Likewise.
1145         (eq_signatured_type): Likewise.
1146         (add_signatured_type_cu_to_table): Likewise.
1147         (create_debug_types_hash_table): Likewise.
1148         (lookup_dwo_signatured_type): Likewise.
1149         (lookup_dwp_signatured_type): Likewise.
1150         (lookup_signatured_type): Likewise.
1151         (hash_type_unit_group): Likewise.
1152         (eq_type_unit_group): Likewise.
1153         (get_type_unit_group): Likewise.
1154         (process_psymtab_comp_unit_reader): Likewise.
1155         (sort_tu_by_abbrev_offset): Likewise.
1156         (process_skeletonless_type_unit): Likewise.
1157         (psymtabs_addrmap_cleanup): Likewise.
1158         (dwarf2_read_symtab): Likewise.
1159         (psymtab_to_symtab_1): Likewise.
1160         (die_hash): Likewise.
1161         (die_eq): Likewise.
1162         (load_full_comp_unit_reader): Likewise.
1163         (reset_die_in_process): Likewise.
1164         (free_cu_line_header): Likewise.
1165         (handle_DW_AT_stmt_list): Likewise.
1166         (hash_dwo_file): Likewise.
1167         (eq_dwo_file): Likewise.
1168         (hash_dwo_unit): Likewise.
1169         (eq_dwo_unit): Likewise.
1170         (create_dwo_cu_reader): Likewise.
1171         (create_dwo_unit_in_dwp_v1): Likewise.
1172         (create_dwo_unit_in_dwp_v2): Likewise.
1173         (lookup_dwo_unit_in_dwp): Likewise.
1174         (dwarf2_locate_dwo_sections): Likewise.
1175         (dwarf2_locate_common_dwp_sections): Likewise.
1176         (dwarf2_locate_v2_dwp_sections): Likewise.
1177         (hash_dwp_loaded_cutus): Likewise.
1178         (eq_dwp_loaded_cutus): Likewise.
1179         (lookup_dwo_cutu): Likewise.
1180         (abbrev_table_free_cleanup): Likewise.
1181         (dwarf2_free_abbrev_table): Likewise.
1182         (find_partial_die_in_comp_unit): Likewise.
1183         (free_line_header_voidp): Likewise.
1184         (follow_die_offset): Likewise.
1185         (follow_die_sig_1): Likewise.
1186         (free_heap_comp_unit): Likewise.
1187         (free_stack_comp_unit): Likewise.
1188         (dwarf2_free_objfile): Likewise.
1189         (per_cu_offset_and_type_hash): Likewise.
1190         (per_cu_offset_and_type_eq): Likewise.
1191         (get_die_type_at_offset): Likewise.
1192         (partial_die_hash): Likewise.
1193         (partial_die_eq): Likewise.
1194         (dwarf2_per_objfile_free): Likewise.
1195         (hash_strtab_entry): Likewise.
1196         (eq_strtab_entry): Likewise.
1197         (add_string): Likewise.
1198         (hash_symtab_entry): Likewise.
1199         (eq_symtab_entry): Likewise.
1200         (delete_symtab_entry): Likewise.
1201         (cleanup_mapped_symtab): Likewise.
1202         (add_indices_to_cpool): Likewise.
1203         (hash_psymtab_cu_index): Likewise.
1204         (eq_psymtab_cu_index): Likewise.
1205         (add_address_entry_worker): Likewise.
1206         (unlink_if_set): Likewise.
1207         (write_one_signatured_type): Likewise.
1208         (save_gdb_index_command): Likewise.
1209         * elfread.c (elf_symtab_read): Likewise.
1210         (elf_gnu_ifunc_cache_hash): Likewise.
1211         (elf_gnu_ifunc_cache_eq): Likewise.
1212         (elf_gnu_ifunc_record_cache): Likewise.
1213         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1214         (elf_get_probes): Likewise.
1215         (probe_key_free): Likewise.
1216         * f-lang.c (builtin_f_type): Likewise.
1217         * frame-base.c (frame_base_append_sniffer): Likewise.
1218         (frame_base_set_default): Likewise.
1219         (frame_base_find_by_frame): Likewise.
1220         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1221         (frame_unwind_append_unwinder): Likewise.
1222         (frame_unwind_find_by_frame): Likewise.
1223         * frame.c (frame_addr_hash): Likewise.
1224         (frame_addr_hash_eq): Likewise.
1225         (frame_stash_find): Likewise.
1226         (do_frame_register_read): Likewise.
1227         (unwind_to_current_frame): Likewise.
1228         (frame_cleanup_after_sniffer): Likewise.
1229         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1230         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1231         * ft32-tdep.c (ft32_frame_cache): Likewise.
1232         * gcore.c (do_bfd_delete_cleanup): Likewise.
1233         (gcore_create_callback): Likewise.
1234         * gdb_bfd.c (hash_bfd): Likewise.
1235         (eq_bfd): Likewise.
1236         (gdb_bfd_open): Likewise.
1237         (free_one_bfd_section): Likewise.
1238         (gdb_bfd_ref): Likewise.
1239         (gdb_bfd_unref): Likewise.
1240         (get_section_descriptor): Likewise.
1241         (gdb_bfd_map_section): Likewise.
1242         (gdb_bfd_crc): Likewise.
1243         (gdb_bfd_mark_parent): Likewise.
1244         (gdb_bfd_record_inclusion): Likewise.
1245         (gdb_bfd_requires_relocations): Likewise.
1246         (print_one_bfd): Likewise.
1247         * gdbtypes.c (type_pair_hash): Likewise.
1248         (type_pair_eq): Likewise.
1249         (builtin_type): Likewise.
1250         (objfile_type): Likewise.
1251         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1252         (vtable_address_point_offset): Likewise.
1253         (gnuv3_get_vtable): Likewise.
1254         (hash_value_and_voffset): Likewise.
1255         (eq_value_and_voffset): Likewise.
1256         (compare_value_and_voffset): Likewise.
1257         (compute_vtable_size): Likewise.
1258         (gnuv3_get_typeid_type): Likewise.
1259         * go-lang.c (builtin_go_type): Likewise.
1260         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1261         (bkscm_eq_block_smob): Likewise.
1262         (bkscm_objfile_block_map): Likewise.
1263         (bkscm_del_objfile_blocks): Likewise.
1264         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1265         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1266         (gdbscm_disasm_print_address): Likewise.
1267         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1268         (frscm_eq_frame_smob): Likewise.
1269         (frscm_inferior_frame_map): Likewise.
1270         (frscm_del_inferior_frames): Likewise.
1271         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1272         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1273         (ofscm_objfile_smob_from_objfile): Likewise.
1274         * guile/scm-ports.c (ioscm_write): Likewise.
1275         (ioscm_file_port_delete): Likewise.
1276         (ioscm_file_port_rewind): Likewise.
1277         (ioscm_file_port_put): Likewise.
1278         (ioscm_file_port_write): Likewise.
1279         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1280         (psscm_pspace_smob_from_pspace): Likewise.
1281         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1282         (scscm_recording_unwind_handler): Likewise.
1283         (gdbscm_with_catch): Likewise.
1284         (scscm_call_0_body): Likewise.
1285         (scscm_call_1_body): Likewise.
1286         (scscm_call_2_body): Likewise.
1287         (scscm_call_3_body): Likewise.
1288         (scscm_call_4_body): Likewise.
1289         (scscm_apply_1_body): Likewise.
1290         (scscm_eval_scheme_string): Likewise.
1291         (gdbscm_safe_eval_string): Likewise.
1292         (scscm_source_scheme_script): Likewise.
1293         (gdbscm_safe_source_script): Likewise.
1294         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1295         (gdbscm_call_scm_from_stringn): Likewise.
1296         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1297         (syscm_eq_symbol_smob): Likewise.
1298         (syscm_get_symbol_map): Likewise.
1299         (syscm_del_objfile_symbols): Likewise.
1300         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1301         (stscm_eq_symtab_smob): Likewise.
1302         (stscm_objfile_symtab_map): Likewise.
1303         (stscm_del_objfile_symtabs): Likewise.
1304         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1305         (tyscm_eq_type_smob): Likewise.
1306         (tyscm_type_map): Likewise.
1307         (tyscm_copy_type_recursive): Likewise.
1308         (save_objfile_types): Likewise.
1309         * guile/scm-utils.c (extract_arg): Likewise.
1310         * h8300-tdep.c (h8300_frame_cache): Likewise.
1311         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1312         * hppa-tdep.c (compare_unwind_entries): Likewise.
1313         (find_unwind_entry): Likewise.
1314         (hppa_frame_cache): Likewise.
1315         (hppa_stub_frame_unwind_cache): Likewise.
1316         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1317         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1318         (hppaobsd_supply_fpregset): Likewise.
1319         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1320         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1321         * i386-tdep.c (i386_frame_cache): Likewise.
1322         (i386_epilogue_frame_cache): Likewise.
1323         (i386_sigtramp_frame_cache): Likewise.
1324         (i386_supply_gregset): Likewise.
1325         (i386_collect_gregset): Likewise.
1326         (i386_gdbarch_init): Likewise.
1327         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1328         (i386obsd_trapframe_cache): Likewise.
1329         * i387-tdep.c (i387_supply_fsave): Likewise.
1330         (i387_collect_fsave): Likewise.
1331         (i387_supply_fxsave): Likewise.
1332         (i387_collect_fxsave): Likewise.
1333         (i387_supply_xsave): Likewise.
1334         (i387_collect_xsave): Likewise.
1335         * ia64-tdep.c (ia64_frame_cache): Likewise.
1336         (ia64_sigtramp_frame_cache): Likewise.
1337         * infcmd.c (attach_command_continuation): Likewise.
1338         (attach_command_continuation_free_args): Likewise.
1339         * inferior.c (restore_inferior): Likewise.
1340         (delete_thread_of_inferior): Likewise.
1341         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1342         (get_inflow_inferior_data): Likewise.
1343         (inflow_inferior_exit): Likewise.
1344         * infrun.c (displaced_step_clear_cleanup): Likewise.
1345         (restore_current_uiout_cleanup): Likewise.
1346         (release_stop_context_cleanup): Likewise.
1347         (do_restore_infcall_suspend_state_cleanup): Likewise.
1348         (do_restore_infcall_control_state_cleanup): Likewise.
1349         (restore_inferior_ptid): Likewise.
1350         * inline-frame.c (block_starting_point_at): Likewise.
1351         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1352         * jit.c (get_jit_objfile_data): Likewise.
1353         (get_jit_program_space_data): Likewise.
1354         (jit_object_close_impl): Likewise.
1355         (jit_find_objf_with_entry_addr): Likewise.
1356         (jit_breakpoint_deleted): Likewise.
1357         (jit_unwind_reg_set_impl): Likewise.
1358         (jit_unwind_reg_get_impl): Likewise.
1359         (jit_dealloc_cache): Likewise.
1360         (jit_frame_sniffer): Likewise.
1361         (jit_frame_prev_register): Likewise.
1362         (jit_prepend_unwinder): Likewise.
1363         (jit_inferior_exit_hook): Likewise.
1364         (free_objfile_data): Likewise.
1365         * jv-lang.c (jv_per_objfile_free): Likewise.
1366         (get_dynamics_objfile): Likewise.
1367         (get_java_class_symtab): Likewise.
1368         (builtin_java_type): Likewise.
1369         * language.c (language_string_char_type): Likewise.
1370         (language_bool_type): Likewise.
1371         (language_lookup_primitive_type): Likewise.
1372         (language_lookup_primitive_type_as_symbol): Likewise.
1373         * linespec.c (hash_address_entry): Likewise.
1374         (eq_address_entry): Likewise.
1375         (iterate_inline_only): Likewise.
1376         (iterate_name_matcher): Likewise.
1377         (decode_line_2_compare_items): Likewise.
1378         (collect_one_symbol): Likewise.
1379         (compare_symbols): Likewise.
1380         (compare_msymbols): Likewise.
1381         (add_symtabs_to_list): Likewise.
1382         (collect_symbols): Likewise.
1383         (compare_msyms): Likewise.
1384         (add_minsym): Likewise.
1385         (cleanup_linespec_result): Likewise.
1386         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1387         * linux-nat.c (delete_lwp_cleanup): Likewise.
1388         (count_events_callback): Likewise.
1389         (select_event_lwp_callback): Likewise.
1390         (resume_stopped_resumed_lwps): Likewise.
1391         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1392         (invalidate_linux_cache_inf): Likewise.
1393         (get_linux_inferior_data): Likewise.
1394         (linux_find_memory_regions_thunk): Likewise.
1395         (linux_make_mappings_callback): Likewise.
1396         (linux_corefile_thread_callback): Likewise.
1397         (find_mapping_size): Likewise.
1398         * linux-thread-db.c (find_new_threads_callback): Likewise.
1399         * lm32-tdep.c (lm32_frame_cache): Likewise.
1400         * m2-lang.c (builtin_m2_type): Likewise.
1401         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1402         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1403         (m32r_linux_supply_gregset): Likewise.
1404         (m32r_linux_collect_gregset): Likewise.
1405         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1406         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1407         * m68k-tdep.c (m68k_frame_cache): Likewise.
1408         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1409         (m68kbsd_supply_gregset): Likewise.
1410         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1411         * m88k-tdep.c (m88k_frame_cache): Likewise.
1412         (m88k_supply_gregset): Likewise.
1413
1414 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1415
1416         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1417         to allocation result assignment.
1418         * ada-exp.y (write_object_renaming): Likewise.
1419         (write_ambiguous_var): Likewise.
1420         (ada_nget_field_index): Likewise.
1421         (write_var_or_type): Likewise.
1422         * ada-lang.c (ada_decode_symbol): Likewise.
1423         (ada_value_assign): Likewise.
1424         (value_pointer): Likewise.
1425         (cache_symbol): Likewise.
1426         (add_nonlocal_symbols): Likewise.
1427         (ada_name_for_lookup): Likewise.
1428         (symbol_completion_add): Likewise.
1429         (ada_to_fixed_type_1): Likewise.
1430         (ada_get_next_arg): Likewise.
1431         (defns_collected): Likewise.
1432         * ada-lex.l (processId): Likewise.
1433         (processString): Likewise.
1434         * ada-tasks.c (read_known_tasks_array): Likewise.
1435         (read_known_tasks_list): Likewise.
1436         * ada-typeprint.c (decoded_type_name): Likewise.
1437         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1438         * amd64-tdep.c (amd64_push_arguments): Likewise.
1439         (amd64_displaced_step_copy_insn): Likewise.
1440         (amd64_classify_insn_at): Likewise.
1441         (amd64_relocate_instruction): Likewise.
1442         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1443         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1444         (initialize_current_architecture): Likewise.
1445         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1446         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1447         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1448         (arm_push_dummy_call): Likewise.
1449         (extend_buffer_earlier): Likewise.
1450         (arm_adjust_breakpoint_address): Likewise.
1451         (arm_skip_stub): Likewise.
1452         * auto-load.c (filename_is_in_pattern): Likewise.
1453         (maybe_add_script_file): Likewise.
1454         (maybe_add_script_text): Likewise.
1455         (auto_load_objfile_script_1): Likewise.
1456         * auxv.c (ld_so_xfer_auxv): Likewise.
1457         * ax-general.c (new_agent_expr): Likewise.
1458         (grow_expr): Likewise.
1459         (ax_reg_mask): Likewise.
1460         * bcache.c (bcache_full): Likewise.
1461         * breakpoint.c (program_breakpoint_here_p): Likewise.
1462         * btrace.c (parse_xml_raw): Likewise.
1463         * build-id.c (build_id_to_debug_bfd): Likewise.
1464         * buildsym.c (end_symtab_with_blockvector): Likewise.
1465         * c-exp.y (string_exp): Likewise.
1466         (qualified_name): Likewise.
1467         (write_destructor_name): Likewise.
1468         (operator_stoken): Likewise.
1469         (parse_number): Likewise.
1470         (scan_macro_expansion): Likewise.
1471         (yylex): Likewise.
1472         (c_print_token): Likewise.
1473         * c-lang.c (c_get_string): Likewise.
1474         (emit_numeric_character): Likewise.
1475         * charset.c (wchar_iterate): Likewise.
1476         * cli/cli-cmds.c (complete_command): Likewise.
1477         (make_command): Likewise.
1478         * cli/cli-dump.c (restore_section_callback): Likewise.
1479         (restore_binary_file): Likewise.
1480         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1481         * cli/cli-script.c (execute_control_command): Likewise.
1482         * cli/cli-setshow.c (do_set_command): Likewise.
1483         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1484         (read_pe_exported_syms): Likewise.
1485         * coffread.c (coff_read_struct_type): Likewise.
1486         (coff_read_enum_type): Likewise.
1487         * common/btrace-common.c (btrace_data_append): Likewise.
1488         * common/buffer.c (buffer_grow): Likewise.
1489         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1490         * common/format.c (parse_format_string): Likewise.
1491         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1492         * common/xml-utils.c (xml_escape_text): Likewise.
1493         * compile/compile-object-load.c (copy_sections): Likewise.
1494         (compile_object_load): Likewise.
1495         * compile/compile-object-run.c (compile_object_run): Likewise.
1496         * completer.c (filename_completer): Likewise.
1497         * corefile.c (read_memory_typed_address): Likewise.
1498         (write_memory_unsigned_integer): Likewise.
1499         (write_memory_signed_integer): Likewise.
1500         (complete_set_gnutarget): Likewise.
1501         * corelow.c (get_core_register_section): Likewise.
1502         * cp-name-parser.y (d_grab): Likewise.
1503         (allocate_info): Likewise.
1504         (cp_new_demangle_parse_info): Likewise.
1505         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1506         (cp_lookup_symbol_in_namespace): Likewise.
1507         (lookup_namespace_scope): Likewise.
1508         (find_symbol_in_baseclass): Likewise.
1509         (cp_lookup_nested_symbol): Likewise.
1510         (cp_lookup_transparent_type_loop): Likewise.
1511         * cp-support.c (copy_string_to_obstack): Likewise.
1512         (make_symbol_overload_list): Likewise.
1513         (make_symbol_overload_list_namespace): Likewise.
1514         (make_symbol_overload_list_adl_namespace): Likewise.
1515         (first_component_command): Likewise.
1516         * cp-valprint.c (cp_print_value): Likewise.
1517         * ctf.c (ctf_xfer_partial): Likewise.
1518         * d-exp.y (StringExp): Likewise.
1519         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1520         (lookup_module_scope): Likewise.
1521         (find_symbol_in_baseclass): Likewise.
1522         (d_lookup_nested_symbol): Likewise.
1523         * dbxread.c (find_stab_function_addr): Likewise.
1524         (read_dbx_symtab): Likewise.
1525         (dbx_end_psymtab): Likewise.
1526         (cp_set_block_scope): Likewise.
1527         * dcache.c (dcache_alloc): Likewise.
1528         * demangle.c (_initialize_demangler): Likewise.
1529         * dicos-tdep.c (dicos_load_module_p): Likewise.
1530         * dictionary.c (dict_create_hashed_expandable): Likewise.
1531         (dict_create_linear_expandable): Likewise.
1532         (expand_hashtable): Likewise.
1533         (add_symbol_linear_expandable): Likewise.
1534         * dwarf2-frame.c (add_cie): Likewise.
1535         (add_fde): Likewise.
1536         (dwarf2_build_frame_info): Likewise.
1537         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1538         (dwarf_expr_fetch_address): Likewise.
1539         (add_piece): Likewise.
1540         (execute_stack_op): Likewise.
1541         * dwarf2loc.c (chain_candidate): Likewise.
1542         (dwarf_entry_parameter_to_value): Likewise.
1543         (read_pieced_value): Likewise.
1544         (write_pieced_value): Likewise.
1545         * dwarf2read.c (dwarf2_read_section): Likewise.
1546         (add_type_unit): Likewise.
1547         (read_comp_units_from_section): Likewise.
1548         (fixup_go_packaging): Likewise.
1549         (dwarf2_compute_name): Likewise.
1550         (dwarf2_physname): Likewise.
1551         (create_dwo_unit_in_dwp_v1): Likewise.
1552         (create_dwo_unit_in_dwp_v2): Likewise.
1553         (read_func_scope): Likewise.
1554         (read_call_site_scope): Likewise.
1555         (dwarf2_attach_fields_to_type): Likewise.
1556         (process_structure_scope): Likewise.
1557         (mark_common_block_symbol_computed): Likewise.
1558         (read_common_block): Likewise.
1559         (abbrev_table_read_table): Likewise.
1560         (guess_partial_die_structure_name): Likewise.
1561         (fixup_partial_die): Likewise.
1562         (add_file_name): Likewise.
1563         (dwarf2_const_value_data): Likewise.
1564         (dwarf2_const_value_attr): Likewise.
1565         (build_error_marker_type): Likewise.
1566         (guess_full_die_structure_name): Likewise.
1567         (anonymous_struct_prefix): Likewise.
1568         (typename_concat): Likewise.
1569         (dwarf2_canonicalize_name): Likewise.
1570         (dwarf2_name): Likewise.
1571         (write_constant_as_bytes): Likewise.
1572         (dwarf2_fetch_constant_bytes): Likewise.
1573         (copy_string): Likewise.
1574         (parse_macro_definition): Likewise.
1575         * elfread.c (elf_symfile_segments): Likewise.
1576         (elf_rel_plt_read): Likewise.
1577         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1578         (elf_gnu_ifunc_resolve_by_got): Likewise.
1579         (elf_read_minimal_symbols): Likewise.
1580         (elf_gnu_ifunc_record_cache): Likewise.
1581         * event-top.c (top_level_prompt): Likewise.
1582         (command_line_handler): Likewise.
1583         * exec.c (resize_section_table): Likewise.
1584         * expprint.c (print_subexp_standard): Likewise.
1585         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1586         * findcmd.c (parse_find_args): Likewise.
1587         * findvar.c (address_from_register): Likewise.
1588         * frame.c (get_prev_frame_always): Likewise.
1589         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1590         (get_section_descriptor): Likewise.
1591         * gdb_obstack.c (obconcat): Likewise.
1592         (obstack_strdup): Likewise.
1593         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1594         (create_set_type): Likewise.
1595         (lookup_unsigned_typename): Likewise.
1596         (lookup_signed_typename): Likewise.
1597         (resolve_dynamic_union): Likewise.
1598         (resolve_dynamic_struct): Likewise.
1599         (add_dyn_prop): Likewise.
1600         (copy_dynamic_prop_list): Likewise.
1601         (arch_flags_type): Likewise.
1602         (append_composite_type_field_raw): Likewise.
1603         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1604         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1605         * go-exp.y (string_exp): Likewise.
1606         * go-lang.c (go_demangle): Likewise.
1607         * guile/guile.c (compute_scheme_string): Likewise.
1608         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1609         (gdbscm_canonicalize_command_name): Likewise.
1610         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1611         (ioscm_init_memory_port): Likewise.
1612         (ioscm_reinit_memory_port): Likewise.
1613         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1614         (gdbscm_gc_dup_argv): Likewise.
1615         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1616         * hppa-tdep.c (internalize_unwinds): Likewise.
1617         (read_unwind_info): Likewise.
1618         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1619         (windows_core_xfer_shared_libraries): Likewise.
1620         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1621         (i386_stap_parse_special_token_triplet): Likewise.
1622         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1623         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1624         * inf-child.c (inf_child_fileio_readlink): Likewise.
1625         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1626         (inf_ptrace_store_register): Likewise.
1627         * infrun.c (follow_exec): Likewise.
1628         (displaced_step_prepare_throw): Likewise.
1629         (save_stop_context): Likewise.
1630         (save_infcall_suspend_state): Likewise.
1631         * jit.c (jit_read_descriptor): Likewise.
1632         (jit_read_code_entry): Likewise.
1633         (jit_symtab_line_mapping_add_impl): Likewise.
1634         (finalize_symtab): Likewise.
1635         (jit_unwind_reg_get_impl): Likewise.
1636         * jv-exp.y (QualifiedName): Likewise.
1637         * jv-lang.c (get_java_utf8_name): Likewise.
1638         (type_from_class): Likewise.
1639         (java_demangle_type_signature): Likewise.
1640         (java_class_name_from_physname): Likewise.
1641         * jv-typeprint.c (java_type_print_base): Likewise.
1642         * jv-valprint.c (java_value_print): Likewise.
1643         * language.c (add_language): Likewise.
1644         * linespec.c (add_sal_to_sals_basic): Likewise.
1645         (add_sal_to_sals): Likewise.
1646         (decode_objc): Likewise.
1647         (find_linespec_symbols): Likewise.
1648         * linux-fork.c (fork_save_infrun_state): Likewise.
1649         * linux-nat.c (linux_nat_detach): Likewise.
1650         (linux_nat_fileio_readlink): Likewise.
1651         * linux-record.c (record_linux_sockaddr): Likewise.
1652         (record_linux_msghdr): Likewise.
1653         (Do): Likewise.
1654         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1655         (linux_collect_regset_section_cb): Likewise.
1656         (linux_get_siginfo_data): Likewise.
1657         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1658         (try_thread_db_load_from_dir): Likewise.
1659         (thread_db_load_search): Likewise.
1660         (info_auto_load_libthread_db): Likewise.
1661         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1662         (m32c_m16c_pointer_to_address): Likewise.
1663         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1664         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1665         * machoread.c (macho_check_dsym): Likewise.
1666         * macroexp.c (resize_buffer): Likewise.
1667         (gather_arguments): Likewise.
1668         (maybe_expand): Likewise.
1669         * macrotab.c (new_macro_key): Likewise.
1670         (new_source_file): Likewise.
1671         (new_macro_definition): Likewise.
1672         * mdebugread.c (parse_symbol): Likewise.
1673         (parse_type): Likewise.
1674         (parse_partial_symbols): Likewise.
1675         (psymtab_to_symtab_1): Likewise.
1676         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1677         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1678         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1679         (mi_cmd_data_read_memory_bytes): Likewise.
1680         (mi_cmd_data_write_memory_bytes): Likewise.
1681         (mi_cmd_trace_frame_collected): Likewise.
1682         * mi/mi-parse.c (mi_parse_argv): Likewise.
1683         (mi_parse): Likewise.
1684         * minidebug.c (lzma_open): Likewise.
1685         (lzma_pread): Likewise.
1686         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1687         (mips_print_fp_register): Likewise.
1688         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1689         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1690         * mt-tdep.c (mt_register_name): Likewise.
1691         (mt_registers_info): Likewise.
1692         (mt_push_dummy_call): Likewise.
1693         * namespace.c (add_using_directive): Likewise.
1694         * nat/linux-btrace.c (perf_event_read): Likewise.
1695         (linux_enable_bts): Likewise.
1696         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1697         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1698         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1699         (nto_parse_redirection): Likewise.
1700         * objc-lang.c (objc_demangle): Likewise.
1701         (find_methods): Likewise.
1702         * objfiles.c (get_objfile_bfd_data): Likewise.
1703         (set_objfile_main_name): Likewise.
1704         (allocate_objfile): Likewise.
1705         (objfile_relocate): Likewise.
1706         (update_section_map): Likewise.
1707         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1708         * p-exp.y (exp): Likewise.
1709         (yylex): Likewise.
1710         * p-valprint.c (pascal_object_print_value): Likewise.
1711         * parse.c (initialize_expout): Likewise.
1712         (mark_completion_tag): Likewise.
1713         (copy_name): Likewise.
1714         (parse_float): Likewise.
1715         (type_stack_reserve): Likewise.
1716         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1717         (ppu2spu_prev_register): Likewise.
1718         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1719         * printcmd.c (printf_wide_c_string): Likewise.
1720         (printf_pointer): Likewise.
1721         * probe.c (parse_probes): Likewise.
1722         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1723         (cmdpy_init): Likewise.
1724         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1725         * python/py-symtab.c (set_sal): Likewise.
1726         * python/py-unwind.c (pyuw_sniffer): Likewise.
1727         * python/python.c (python_interactive_command): Likewise.
1728         (compute_python_string): Likewise.
1729         * ravenscar-thread.c (get_running_thread_id): Likewise.
1730         * record-full.c (record_full_exec_insn): Likewise.
1731         (record_full_core_open_1): Likewise.
1732         * regcache.c (regcache_raw_read_signed): Likewise.
1733         (regcache_raw_read_unsigned): Likewise.
1734         (regcache_cooked_read_signed): Likewise.
1735         (regcache_cooked_read_unsigned): Likewise.
1736         * remote-fileio.c (remote_fileio_func_open): Likewise.
1737         (remote_fileio_func_rename): Likewise.
1738         (remote_fileio_func_unlink): Likewise.
1739         (remote_fileio_func_stat): Likewise.
1740         (remote_fileio_func_system): Likewise.
1741         * remote-mips.c (mips_xfer_memory): Likewise.
1742         (mips_load_srec): Likewise.
1743         (pmon_end_download): Likewise.
1744         * remote.c (new_remote_state): Likewise.
1745         (map_regcache_remote_table): Likewise.
1746         (remote_register_number_and_offset): Likewise.
1747         (init_remote_state): Likewise.
1748         (get_memory_packet_size): Likewise.
1749         (remote_pass_signals): Likewise.
1750         (remote_program_signals): Likewise.
1751         (remote_start_remote): Likewise.
1752         (remote_check_symbols): Likewise.
1753         (remote_query_supported): Likewise.
1754         (extended_remote_attach): Likewise.
1755         (process_g_packet): Likewise.
1756         (store_registers_using_G): Likewise.
1757         (putpkt_binary): Likewise.
1758         (read_frame): Likewise.
1759         (compare_sections_command): Likewise.
1760         (remote_hostio_pread): Likewise.
1761         (remote_hostio_readlink): Likewise.
1762         (remote_file_put): Likewise.
1763         (remote_file_get): Likewise.
1764         (remote_pid_to_exec_file): Likewise.
1765         (_initialize_remote): Likewise.
1766         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1767         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1768         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1769         (bfd_uses_spe_extensions): Likewise.
1770         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1771         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1772         * solib-dsbt.c (decode_loadmap): Likewise.
1773         (fetch_loadmap): Likewise.
1774         (scan_dyntag): Likewise.
1775         (enable_break): Likewise.
1776         (dsbt_relocate_main_executable): Likewise.
1777         * solib-frv.c (fetch_loadmap): Likewise.
1778         (enable_break2): Likewise.
1779         (frv_relocate_main_executable): Likewise.
1780         * solib-spu.c (spu_relocate_main_executable): Likewise.
1781         (spu_bfd_open): Likewise.
1782         * solib-svr4.c (lm_info_read): Likewise.
1783         (read_program_header): Likewise.
1784         (find_program_interpreter): Likewise.
1785         (scan_dyntag): Likewise.
1786         (elf_locate_base): Likewise.
1787         (open_symbol_file_object): Likewise.
1788         (read_program_headers_from_bfd): Likewise.
1789         (svr4_relocate_main_executable): Likewise.
1790         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1791         * solib.c (solib_find_1): Likewise.
1792         (exec_file_find): Likewise.
1793         (solib_find): Likewise.
1794         * source.c (openp): Likewise.
1795         (print_source_lines_base): Likewise.
1796         (forward_search_command): Likewise.
1797         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1798         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1799         (spu_get_overlay_table): Likewise.
1800         * stabsread.c (patch_block_stabs): Likewise.
1801         (define_symbol): Likewise.
1802         (again:): Likewise.
1803         (read_member_functions): Likewise.
1804         (read_one_struct_field): Likewise.
1805         (read_enum_type): Likewise.
1806         (common_block_start): Likewise.
1807         * stack.c (read_frame_arg): Likewise.
1808         (backtrace_command): Likewise.
1809         * stap-probe.c (stap_parse_register_operand): Likewise.
1810         * symfile.c (syms_from_objfile_1): Likewise.
1811         (find_separate_debug_file): Likewise.
1812         (load_command): Likewise.
1813         (load_progress): Likewise.
1814         (load_section_callback): Likewise.
1815         (reread_symbols): Likewise.
1816         (add_filename_language): Likewise.
1817         (allocate_compunit_symtab): Likewise.
1818         (read_target_long_array): Likewise.
1819         (simple_read_overlay_table): Likewise.
1820         * symtab.c (symbol_set_names): Likewise.
1821         (resize_symbol_cache): Likewise.
1822         (rbreak_command): Likewise.
1823         (completion_list_add_name): Likewise.
1824         (completion_list_objc_symbol): Likewise.
1825         (add_filename_to_list): Likewise.
1826         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1827         * target-memory.c (target_write_memory_blocks): Likewise.
1828         * target.c (target_read_string): Likewise.
1829         (read_whatever_is_readable): Likewise.
1830         (target_read_alloc_1): Likewise.
1831         (simple_search_memory): Likewise.
1832         (target_fileio_read_alloc_1): Likewise.
1833         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1834         * top.c (command_line_input): Likewise.
1835         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1836         * tracefile.c (tracefile_fetch_registers): Likewise.
1837         * tracepoint.c (add_memrange): Likewise.
1838         (init_collection_list): Likewise.
1839         (add_aexpr): Likewise.
1840         (trace_dump_actions): Likewise.
1841         (parse_trace_status): Likewise.
1842         (parse_tracepoint_definition): Likewise.
1843         (parse_tsv_definition): Likewise.
1844         (parse_static_tracepoint_marker_definition): Likewise.
1845         * tui/tui-file.c (tui_sfileopen): Likewise.
1846         (tui_file_adjust_strbuf): Likewise.
1847         * tui/tui-io.c (tui_expand_tabs): Likewise.
1848         * tui/tui-source.c (tui_set_source_content): Likewise.
1849         * typeprint.c (find_global_typedef): Likewise.
1850         * ui-file.c (do_ui_file_xstrdup): Likewise.
1851         (ui_file_obsavestring): Likewise.
1852         (mem_file_write): Likewise.
1853         * utils.c (make_hex_string): Likewise.
1854         (get_regcomp_error): Likewise.
1855         (puts_filtered_tabular): Likewise.
1856         (gdb_realpath_keepfile): Likewise.
1857         (ldirname): Likewise.
1858         (gdb_bfd_errmsg): Likewise.
1859         (substitute_path_component): Likewise.
1860         * valops.c (search_struct_method): Likewise.
1861         (find_oload_champ_namespace_loop): Likewise.
1862         * valprint.c (print_decimal_chars): Likewise.
1863         (read_string): Likewise.
1864         (generic_emit_char): Likewise.
1865         * varobj.c (varobj_delete): Likewise.
1866         (varobj_value_get_print_value): Likewise.
1867         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1868         * windows-tdep.c (display_one_tib): Likewise.
1869         * xcoffread.c (read_xcoff_symtab): Likewise.
1870         (process_xcoff_symbol): Likewise.
1871         (swap_sym): Likewise.
1872         (scan_xcoff_symtab): Likewise.
1873         (xcoff_initial_scan): Likewise.
1874         * xml-support.c (gdb_xml_end_element): Likewise.
1875         (xml_process_xincludes): Likewise.
1876         (xml_fetch_content_from_file): Likewise.
1877         * xml-syscall.c (xml_list_of_syscalls): Likewise.
1878         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1879
1880 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
1881
1882         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1883         instead of builtin_func_ptr.
1884         (ft32_pointer_to_address): New function.
1885         (ft32_address_class_type_flags): New function.
1886         (ft32_address_class_type_flags_to_name): New function.
1887         (ft32_address_class_name_to_type_flags): New function.
1888         (ft32_gdbarch_init): Set tdep->pc_type.  Call
1889         set_gdbarch_pointer_to_address,
1890         set_gdbarch_address_class_type_flags
1891         set_gdbarch_address_class_name_to_type_flags,
1892         and set_gdbarch_address_class_type_flags_to_name.
1893         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1894
1895 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
1896
1897         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1898         value is a reference, actually dereference it in order to get
1899         the underlying value.
1900
1901 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
1902
1903         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1904
1905 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
1906
1907         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1908         * linespec.c (linespec_lexer_lex_string): Same.
1909
1910 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1911
1912         * NEWS: Mention support for fast tracepoints on aarch64-linux.
1913
1914 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1915
1916         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1917         variable.  Call aarch64_decode_adr instead of
1918         aarch64_decode_adrp.
1919         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1920         (aarch64_decode_adr): New function declaration.
1921         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1922         (aarch64_decode_adr): New function, factored out from
1923         aarch64_decode_adrp to decode both adr and adrp instructions.
1924
1925 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
1926
1927         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1928         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1929         (aarch64-insn.o): New rule.
1930         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1931         (aarch64*-*-linux*): Likewise.
1932         * arch/aarch64-insn.c: New file.
1933         * arch/aarch64-insn.h: New file.
1934         * aarch64-tdep.c: Include arch/aarch64-insn.h.
1935         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
1936         arch/aarch64-insn.h.
1937         (decode_add_sub_imm): Rename to ...
1938         (aarch64_decode_add_sub_imm): ... this.
1939         (decode_adrp): Rename to ...
1940         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
1941         Declare in arch/aarch64-insn.h.
1942         (decode_b): Rename to ...
1943         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
1944         Declare in arch/aarch64-insn.h.
1945         (decode_bcond): Rename to ...
1946         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
1947         Declare in arch/aarch64-insn.h.
1948         (decode_br): Rename to ...
1949         (aarch64_decode_br): ... this.
1950         (decode_cb): Rename to ...
1951         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
1952         Declare in arch/aarch64-insn.h.
1953         (decode_eret): Rename to ...
1954         (aarch64_decode_eret): ... this.
1955         (decode_movz): Rename to ...
1956         (aarch64_decode_movz): ... this.
1957         (decode_orr_shifted_register_x): Rename to ...
1958         (aarch64_decode_orr_shifted_register_x): ... this.
1959         (decode_ret): Rename to ...
1960         (aarch64_decode_ret): ... this.
1961         (decode_stp_offset): Rename to ...
1962         (aarch64_decode_stp_offset): ... this.
1963         (decode_stp_offset_wb): Rename to ...
1964         (aarch64_decode_stp_offset_wb): ... this.
1965         (decode_stur): Rename to ...
1966         (aarch64_decode_stur): ... this.
1967         (decode_tb): Rename to ...
1968         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
1969         Declare in arch/aarch64-insn.h.
1970         (aarch64_analyze_prologue): Adjust calls to renamed functions.
1971
1972 2015-09-20  Doug Evans  <xdje42@gmail.com>
1973
1974         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1975
1976 2015-09-20  Doug Evans  <xdje42@gmail.com>
1977
1978         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
1979         variable name that collides with a parameter.
1980
1981 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
1982
1983         * dwarf2loc.c (locexpr_get_frame_base): Renames
1984         block_op_get_frame_base.
1985         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1986         block_op_get_frame_base by reference to locexpr_get_frame_base.
1987         (loclist_get_frame_base): New function, near identical copy of
1988         locexpr_get_frame_base.
1989         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1990         block_op_get_frame_base by reference to loclist_get_frame_base.
1991
1992 2015-09-19  Doug Evans  <xdje42@gmail.com>
1993
1994         * ravenscar-thread.c (ravenscar_inferior_created): Replace
1995         current_inferior ()->gdbarch with its wrapper target_gdbarch.
1996
1997 2015-09-18  Doug Evans  <xdje42@gmail.com>
1998
1999         * linux-thread-db.c (record_thread): Return the created thread.
2000         (thread_from_lwp): Likewise.
2001         (thread_db_get_thread_local_address): Update.
2002
2003 2015-09-18  Doug Evans  <xdje42@gmail.com>
2004
2005         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2006         move only member demangled_name up.  All uses updated.
2007
2008 2015-09-18  Doug Evans  <xdje42@gmail.com>
2009
2010         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2011         kind of minimal symbol in the error message.
2012         * objfiles.c (objfile_flavour_name): New function.
2013         * objfiles.h (objfile_flavour_name): Declare.
2014
2015 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2016
2017         * nat/aarch64-linux.c: Include elf/common.h,
2018         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2019         (aarch64_ps_get_thread_area): New function.
2020         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2021         (aarch64_ps_get_thread_area): Declare.
2022         * aarch64-linux-nat.c (ps_get_thread_area): Call
2023         aarch64_ps_get_thread_area.
2024
2025 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2026
2027         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2028
2029 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2030
2031         * NEWS: Announce new scheduler-locking mode.
2032         * infrun.c (schedlock_replay): New.
2033         (scheduler_enums): Add schedlock_replay.
2034         (scheduler_mode): Change default to schedlock_replay.
2035         (user_visible_resume_ptid): Handle schedlock_replay.
2036         (clear_proceed_status_thread): Stop replaying if resumed thread is
2037         not replaying.
2038         (schedlock_applies): Handle schedlock_replay.
2039         (_initialize_infrun): Document new scheduler-locking mode.
2040         * record-btrace.c (record_btrace_resume): Remove code to stop other
2041         threads when not replaying the resumed thread.
2042
2043 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2044
2045         * record-btrace.c ((record_btrace_will_replay): New.
2046         (init_record_btrace_ops): Initialize to_record_will_replay.
2047         * record-full.c ((record_full_will_replay): New.
2048         (init_record_full_ops): Initialize to_record_will_replay.
2049         * target-delegates.c: Regenerated.
2050         * target.c (target_record_will_replay): New.
2051         * target.h (struct target_ops) <to_record_will_replay>: New.
2052         (target_record_will_replay): New.
2053
2054 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2055
2056         * record-btrace.c (record_btrace_resume): Call
2057         target_record_stop_replaying.
2058         (record_btrace_stop_replaying_all): New.
2059         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2060         * record-full.c (record_full_stop_replaying): New.
2061         (init_record_full_ops ): Initialize to_record_stop_replaying.
2062         * target-delegates.c: Regenerated.
2063         * target.c (target_record_stop_replaying): New.
2064         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2065         (target_record_stop_replaying): New.
2066
2067 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2068
2069         * record-btrace.c (record_btrace_xfer_partial)
2070         (record_btrace_store_registers, record_btrace_prepare_to_store):
2071         Call record_btrace_is_replaying with inferior_ptid instead of
2072         minus_one_ptid.
2073         (record_btrace_store_registers): Change error message.
2074
2075 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2076
2077         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2078         Update users to pass minus_one_ptid.
2079         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2080         * record.c (cmd_record_delete): Pass inferior_ptid to
2081         target_record_is_replaying.
2082         * target-delegates.c: Regenerated.
2083         * target.c (target_record_is_replaying): Add ptid argument.
2084         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2085         argument.
2086         (target_record_is_replaying): Add ptid argument.
2087
2088 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2089
2090         * record-btrace.c (record_btrace_open): Remove non_stop check.
2091         * NEWS: Announce that record btrace supports non-stop mode.
2092
2093 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2094
2095         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2096         in the TARKET_WAITKIND_NO_HISTORY case.
2097
2098 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2099
2100         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2101         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2102
2103 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2104
2105         * record-btrace.c (get_thread_current_frame): New.
2106         (record_btrace_start_replaying): Call get_thread_current_frame.
2107
2108 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2109
2110         * record-btrace.c (record_btrace_resume_thread): A move request
2111         overwrites a previous move request.
2112         (record_btrace_find_resume_thread): Removed.
2113         (record_btrace_resume): Resume all requested threads.
2114
2115 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2116
2117         * record-btrace.c: Include vec.h.
2118         (record_btrace_find_thread_to_move): Removed.
2119         (btrace_step_no_resumed, btrace_step_again)
2120         (record_btrace_stop_replaying_at_end): New.
2121         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2122         (record_btrace_single_step_forward): Remove calls to
2123         record_btrace_stop_replaying.
2124         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2125         BTHR_RCONT.  Keep threads at the end of their history moving.
2126         (record_btrace_wait): Call record_btrace_step_thread for all threads
2127         until one reports an event.  Call record_btrace_stop_replaying_at_end
2128         for the eventing thread.
2129
2130 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2131
2132         * record-btrace.c (record_btrace_single_step_forward): Return
2133         NO_HISTORY if a step brings us to the end of the execution history.
2134
2135 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2136
2137         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2138         to ...
2139         (record_btrace_single_step_forward): ... here and
2140         (record_btrace_single_step_backward): ... here.
2141
2142 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2143
2144         * record-btrace.c (btrace_step_spurious)
2145         (record_btrace_single_step_forward)
2146         (record_btrace_single_step_backward): New.
2147         (record_btrace_step_thread): Call record_btrace_single_step_forward
2148         and record_btrace_single_step_backward.
2149
2150 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2151
2152         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2153         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2154
2155 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2156
2157         * record-btrace.c (btrace_thread_flag_to_str)
2158         (record_btrace_cancel_resume): New.
2159         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2160         (record_btrace_resume): Print execution direction.
2161         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2162         (record_btrace_wait): Call record_btrace_cancel_resume.
2163
2164 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2165
2166         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2167         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2168         (record_btrace_find_thread_to_move): Also accept threads that have
2169         BTHR_STOP set.
2170         (btrace_step_stopped_on_request, record_btrace_stop): New.
2171         (record_btrace_step_thread): Support BTHR_STOP.
2172         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2173         (init_record_btrace_ops): Initialize to_stop.
2174
2175 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2176
2177         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2178         target_is_non_stop_p ().
2179
2180 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2181
2182         * ada-typeprint.c (print_array_type): Do not describe arrays as
2183         packed when they embed dynamic elements.
2184
2185 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2186
2187         * symtab.h (address_class): Document that TLS variables
2188         are handled by LOC_UNRESOLVED.
2189         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2190         * printcmd.c (address_info): Don't relocate TLS variables.
2191
2192 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2193
2194         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2195         (decode_adrp): Likewise.
2196         (decode_b): Likewise.
2197         (decode_bcond): Likewise.
2198         (decode_br): Likewise.
2199         (decode_cb): Likewise.
2200         (decode_eret): Likewise.
2201         (decode_movz): Likewise.
2202         (decode_orr_shifted_register_x): Likewise.
2203         (decode_ret): Likewise.
2204         (decode_stp_offset): Likewise.
2205         (decode_stp_offset_wb): Likewise.
2206         (decode_stur): Likewise.
2207         (decode_tb): Likewise.
2208         (aarch64_analyze_prologue): Likewise.
2209         (pass_in_x): Likewise.
2210         (pass_in_v): Likewise.
2211         (pass_on_stack): Likewise.
2212         (aarch64_push_dummy_call): Likewise.
2213         (aarch64_extract_return_value): Likewise.
2214         (aarch64_store_return_value): Likewise.
2215         (aarch64_return_value): Likewise.
2216         (aarch64_record_asimd_load_store): Likewise.
2217         (aarch64_record_load_store): Likewise.
2218         (aarch64_record_data_proc_simd_fp): Likewise.
2219
2220 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2221
2222         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2223         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2224         (ppc64_skip_trampoline_code_1): ... here.
2225         (ppc64_skip_trampoline_code): New wrapper function.
2226         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2227
2228 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2229
2230         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2231         function.
2232         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2233         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2234         if target_can_do_single_step returns 1.
2235         * remote.c (struct vCont_action_support) <s, S>: New fields.
2236         (PACKET_vContSupported): New enum.
2237         (remote_protocol_features): New element for vContSupported.
2238         (remote_query_supported): Append "vContSupported+".
2239         (remote_vcont_probe): Remove support_s and support_S, use
2240         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2241         vCont packet if c and C actions are not supported.
2242         (remote_can_do_single_step): New function.
2243         (init_remote_ops): Install it to to_can_do_single_step.
2244         (_initialize_remote): Call add_packet_config_cmd.
2245         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2246         (target_can_do_single_step): New macro.
2247         * target-delegates.c: Re-generated.
2248
2249 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2250
2251         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2252         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2253         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2254         New function.
2255         (aarch64_siginfo_from_compat_siginfo): New function.
2256         * nat/aarch64-linux.h: Include signal.h.
2257         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2258         (compat_timer_t, compat_clock_t): Likewise.
2259         (struct compat_timeval): New.
2260         (union compat_sigval): New.
2261         (struct compat_siginfo): New.
2262         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2263         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2264         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2265         (cpt_si_band, cpt_si_fd): Likewise.
2266
2267 2015-09-14  Pedro Alves  <palves@redhat.com>
2268
2269         * infrun.c (current_stop_id): New global.
2270         (get_stop_id, new_stop_id): New functions.
2271         (fetch_inferior_event): Handle normal_stop proceeding the target.
2272         (struct stop_context): New.
2273         (save_stop_context, release_stop_context_cleanup)
2274         (stop_context_changed): New functions.
2275         (normal_stop): Return true if the hook-stop changes the stop
2276         context.
2277         * infrun.h (get_stop_id): Declare.
2278         (normal_stop): Now returns int.  Add documentation.
2279
2280 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2281
2282         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2283         comment.  Handle packed arrays.
2284
2285 2015-09-14  Pedro Alves  <palves@redhat.com>
2286
2287         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2288         mention of maint set/show target-non-stop.
2289
2290 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2291
2292         * NEWS: Announce new remote packets for the exec-events
2293         feature and the exec-events feature and associated commands.
2294
2295 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2296
2297         * remote.c (remote_exec_event_p): New function.
2298         (remote_insert_exec_catchpoint): New function.
2299         (remote_remove_exec_catchpoint): New function.
2300         (init_extended_remote_ops): Initialize extended_remote_ops
2301         members to_insert_exec_catchpoint and
2302         to_remove_exec_catchpoint.
2303
2304 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2305             Luis Machado  <lgustavo@codesourcery.com>
2306
2307         * infrun.c (follow_exec): Use process-style ptid for
2308         exec message.  Call add_inferior_with_spaces and
2309         target_follow_exec.
2310         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2311         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2312         * remote.c (remote_pspace_data): New static variable.
2313         (remote_pspace_data_cleanup): New function.
2314         (get_remote_exec_file): New function.
2315         (set_remote_exec_file_1): New function.
2316         (set_remote_exec_file): New function.
2317         (show_remote_exec_file): New function.
2318         (remote_exec_file): Delete static variable.
2319         (anonymous enum) <PACKET_exec_event_feature>: New
2320         enumeration constant.
2321         (remote_protocol_features): Add entry for exec-events feature.
2322         (remote_query_supported): Add client side of qSupported query
2323         for exec-events feature.
2324         (remote_follow_exec): New function.
2325         (remote_parse_stop_reply): Handle 'exec' stop reason.
2326         (extended_remote_run, extended_remote_create_inferior): Call
2327         get_remote_exec_file and set_remote_exec_file_1.
2328         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2329         member.
2330         (_initialize_remote): Call
2331         register_program_space_data_with_cleanup.  Call
2332         add_packet_config_cmd for remote exec-events feature.
2333         Modify call to add_setshow_string_noescape_cmd for exec-file
2334         to use new functions set_remote_exec_file and
2335         show_remote_exec_file.
2336         * target-debug.h, target-delegates.c: Regenerated.
2337         * target.c (target_follow_exec): New function.
2338         * target.h (struct target_ops) <to_follow_exec>: New member.
2339         (target_follow_exec): Declare new function.
2340
2341 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2342
2343         * aarch64-tdep.c (decode_cb): Move up comment describing the
2344         encoding.
2345         (decode_tb): Fix a typo in comment above the function.  Move up
2346         comment describing the encoding.
2347
2348 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2349
2350         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2351
2352 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2353
2354         PR gdb/18947
2355         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2356         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2357
2358 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2359
2360         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2361         operations.
2362
2363 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2364
2365         * ada-lang.c (ada_search_struct_field): Constify parameters
2366         and/or variables..
2367         (xget_renaming_scope): Likewise.
2368         (ada_is_redundant_range_encoding): Likewise.
2369         (scan_discrim_bound): Likewise.
2370         (to_fixed_range_type): Likewise.
2371
2372 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2373
2374         * breakpoint.c (download_tracepoint_locations): New local
2375         can_download_tracepoint.  Check the result of
2376         target_can_download_tracepoint and save it in
2377         can_download_tracepoint if there are tracepoints to download.
2378         * linux-nat.h (enum tribool): Move it to ...
2379         * common/common-types.h: ... here.
2380
2381 2015-09-09  Pedro Alves  <palves@redhat.com>
2382
2383         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2384         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2385
2386 2015-09-09  Pedro Alves  <palves@redhat.com>
2387
2388         * continuations.c (add_continuation, restore_thread_cleanup)
2389         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2390         (do_all_continuations_thread, do_all_continuations)
2391         (discard_all_continuations_thread_callback)
2392         (discard_all_continuations_thread, discard_all_continuations)
2393         (add_intermediate_continuation)
2394         (do_all_intermediate_continuations_thread_callback)
2395         (do_all_intermediate_continuations_thread)
2396         (do_all_intermediate_continuations)
2397         (discard_all_intermediate_continuations_thread_callback)
2398         (discard_all_intermediate_continuations_thread)
2399         (discard_all_intermediate_continuations): Delete.
2400         * continuations.h (add_continuation, do_all_continuations)
2401         (do_all_continuations_thread, discard_all_continuations)
2402         (discard_all_continuations_thread, add_intermediate_continuation)
2403         (do_all_intermediate_continuations)
2404         (do_all_intermediate_continuations_thread)
2405         (discard_all_intermediate_continuations)
2406         (discard_all_intermediate_continuations_thread): Delete
2407         declarations.
2408         * event-top.c (stdin_event_handler): Delete references to
2409         continuations.
2410         * gdbthread.h (struct thread_info): Delete continuations and
2411         intermediate_continuations fields.
2412         * inf-loop.c (inferior_event_handler): Remove references to
2413         continuations.
2414         * infrun.c (infrun_thread_stop_requested_callback): Remove
2415         references to continuations.
2416         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2417         * thread.c: Don't include "continuations.h".
2418         (clear_thread_inferior_resources): Remove references to
2419         continuations.
2420
2421 2015-09-09  Pedro Alves  <palves@redhat.com>
2422
2423         * infcall.c (struct dummy_frame_context_saver): Delete.
2424         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2425         (dummy_frame_context_saver_drop)
2426         (dummy_frame_context_saver_cleanup)
2427         (dummy_frame_context_saver_get_regs)
2428         (dummy_frame_context_saver_setup): Delete.
2429         * infcall.h (dummy_frame_context_saver_drop)
2430         (dummy_frame_context_saver_cleanup)
2431         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2432         Delete.
2433         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2434         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2435         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2436
2437 2015-09-09  Pedro Alves  <palves@redhat.com>
2438
2439         * breakpoint.c: Include "thread-fsm.h".
2440         (struct until_break_command_continuation_args): Delete.
2441         (struct until_break_fsm): New.
2442         (until_break_fsm_ops): New global.
2443         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2444         (until_break_command_continuation): Delete.
2445         (until_break_fsm_clean_up): New function.
2446         (until_break_fsm_async_reply_reason): New function.
2447         (until_break_command): Adjust to create an until_break_fsm instead
2448         of a continuation.
2449         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2450         here.
2451         * infcmd.c (struct until_next_fsm): New.
2452         (until_next_fsm_ops): New global.
2453         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2454         (until_next_continuation): Delete.
2455         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2456         functions.
2457         (until_next_command): Adjust to create a new until_next_fsm
2458         instead of a continuation.
2459
2460 2015-09-09  Pedro Alves  <palves@redhat.com>
2461
2462         * infcall.c: Include thread_fsm.h.
2463         (struct call_return_meta_info): New.
2464         (get_call_return_value): New function, factored out from
2465         call_function_by_hand_dummy.
2466         (struct call_thread_fsm): New.
2467         (call_thread_fsm_ops): New global.
2468         (new_call_thread_fsm, call_thread_fsm_should_stop)
2469         (call_thread_fsm_should_notify_stop): New functions.
2470         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2471         the thread.
2472         (call_function_by_hand_dummy): Create a new call_thread_fsm
2473         instance, associate it with the thread, and wait for the FSM to
2474         finish.  If finished successfully, fetch the function's result
2475         value out of the FSM.
2476         * infrun.c (fetch_inferior_event): If the FSM says the stop
2477         shouldn't be notified, don't call normal_stop.
2478         (maybe_remove_breakpoints): New function, factored out from ...
2479         (normal_stop): ... here.  Simplify.
2480         * infrun.h (maybe_remove_breakpoints): Declare.
2481         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2482         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2483         (thread_fsm_should_notify_stop): Declare.
2484
2485 2015-09-09  Pedro Alves  <palves@redhat.com>
2486
2487         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2488         * breakpoint.c (handle_jit_event): Print debug output.
2489         (bpstat_what): Split event callback handling to ...
2490         (bpstat_run_callbacks): ... this new function.
2491         (momentary_bkpt_print_it): No longer handle bp_finish here.
2492         * breakpoint.h (bpstat_run_callbacks): Declare.
2493         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2494         <thread_fsm>: New field.
2495         (thread_cancel_execution_command): Declare.
2496         * infcmd.c: Include thread-fsm.h.
2497         (struct step_command_fsm): New.
2498         (step_command_fsm_ops): New global.
2499         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2500         (step_1): Adjust to use step_command_fsm_prepare and
2501         prepare_one_step.
2502         (struct step_1_continuation_args): Delete.
2503         (step_1_continuation): Delete.
2504         (step_command_fsm_should_stop): New function.
2505         (step_once): Delete.
2506         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2507         (prepare_one_step): New function, based on step_once.
2508         (until_next_command): Remove step_multi reference.
2509         (struct return_value_info): New.
2510         (print_return_value): Rename to ...
2511         (print_return_value_1): ... this.  New struct return_value_info
2512         parameter.  Adjust.
2513         (print_return_value): Reimplement as wrapper around
2514         print_return_value_1.
2515         (struct finish_command_fsm): New.
2516         (finish_command_continuation): Delete.
2517         (finish_command_fsm_ops): New global.
2518         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2519         functions.
2520         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2521         New.
2522         (finish_command_continuation_free_arg): Delete.
2523         (finish_command_fsm_async_reply_reason): New.
2524         (finish_backward, finish_forward): Change symbol parameter to a
2525         finish_command_fsm.  Adjust.
2526         (finish_command): Create a finish_command_fsm.  Adjust.
2527         * infrun.c: Include "thread-fsm.h".
2528         (clear_proceed_status_thread): Delete the thread's FSM.
2529         (infrun_thread_stop_requested_callback): Cancel the thread's
2530         execution command.
2531         (clean_up_just_stopped_threads_fsms): New function.
2532         (fetch_inferior_event): Handle the event_thread's should_stop
2533         method saying the command isn't done yet.
2534         (process_event_stop_test): Run breakpoint callbacks here.
2535         (print_stop_event): Rename to ...
2536         (print_stop_location): ... this.
2537         (restore_current_uiout_cleanup): New function.
2538         (print_stop_event): Reimplement.
2539         (normal_stop): No longer notify the end_stepping_range observers
2540         here handle "step N" nor "finish" here.  No longer call
2541         print_stop_event here.
2542         * infrun.h (struct return_value_info): Forward declare.
2543         (print_return_value): Declare.
2544         (print_stop_event): Change prototype.
2545         * thread-fsm.c: New file.
2546         * thread-fsm.h: New file.
2547         * thread.c: Include "thread-fsm.h".
2548         (thread_cancel_execution_command): New function.
2549         (clear_thread_inferior_resources): Call it.
2550         * cli/cli-interp.c (cli_on_normal_stop): New function.
2551         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2552         observer.
2553         * mi/mi-interp.c: Include "thread-fsm.h".
2554         (restore_current_uiout_cleanup): Delete.
2555         (mi_on_normal_stop): If the thread has an FSM associated, and it
2556         finished, ask it for the async-reply-reason to print.  Always call
2557         print_stop_event here, regardless of the top-level interpreter.
2558         Check bpstat_what to tell whether an asynchronous breakpoint hit
2559         triggered.
2560         * tui/tui-interp.c (tui_on_normal_stop): New function.
2561         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2562
2563 2015-09-09  Pedro Alves  <palves@redhat.com>
2564
2565         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2566         check whether the target can async.
2567         * inf-loop.c (inferior_event_handler): Only call target_async if
2568         the target can async.
2569         * infcall.c: Include top.h and interps.h.
2570         (run_inferior_call): For the interpreter to sync mode while
2571         running the infcall.  Call wait_sync_command_done instead of
2572         wait_for_inferior plus normal_stop.
2573         * infcmd.c (prepare_execution_command): Don't check whether the
2574         target can async when running in the foreground.
2575         (step_1): Delete synchronous case handling.
2576         (step_once): Always install a continuation, even in sync mode.
2577         (until_next_command, finish_forward): Don't check whether the
2578         target can async.
2579         (attach_command_post_wait, notice_new_inferior): Always install a
2580         continuation, even in sync mode.
2581         * infrun.c (mark_infrun_async_event_handler): New function.
2582         (proceed): In sync mode, mark infrun's event source instead of
2583         waiting for events here.
2584         (fetch_inferior_event): If the target can't async, do a blocking
2585         wait.
2586         (prepare_to_wait): In sync mode, mark infrun's event source.
2587         (infrun_async_inferior_event_handler): No longer bail out if the
2588         target can't async.
2589         * infrun.h (mark_infrun_async_event_handler): New declaration.
2590         * linux-nat.c (linux_nat_wait_1): Remove calls to
2591         set_sigint_trap/clear_sigint_trap.
2592         (linux_nat_terminal_inferior): No longer check whether the target
2593         can async.
2594         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2595         comment.
2596         (mi_execute_command_input_handler): No longer check whether the
2597         target is async.  Update and simplify comment.
2598         * target.c (default_target_wait): New function.
2599         * target.h (struct target_ops) <to_wait>: Now defaults to
2600         default_target_wait.
2601         (default_target_wait): Declare.
2602         * top.c (wait_sync_command_done): New function, factored out from
2603         ...
2604         (maybe_wait_sync_command_done): ... this.
2605         * top.h (wait_sync_command_done): Declare.
2606         * target-delegates.c: Regenerate.
2607
2608 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2609
2610         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2611         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2612         Remove include of sys/utsname.h.
2613         (linux_determine_kernel_ptr_bits): Remove.
2614         (linux_determine_kernel_start): New.
2615         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2616         Update check.
2617         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2618         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2619         initialization.
2620         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2621         assignment.
2622
2623 2015-09-07  Pedro Alves  <palves@redhat.com>
2624
2625         * guile/guile-internal.h (as_a_scm_t_subr): New.
2626         * guile/guile.c (misc_guile_functions): Use it.
2627         * guile/scm-arch.c (arch_functions): Use it.
2628         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2629         Use it.
2630         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2631         * guile/scm-cmd.c (command_functions): Use it.
2632         * guile/scm-disasm.c (disasm_functions): Use it.
2633         * guile/scm-exception.c (exception_functions)
2634         (private_exception_functions): Use it.
2635         * guile/scm-frame.c (frame_functions)
2636         * guile/scm-gsmob.c (gsmob_functions): Use it.
2637         * guile/scm-iterator.c (iterator_functions): Use it.
2638         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2639         * guile/scm-math.c (math_functions): Use it.
2640         * guile/scm-objfile.c (objfile_functions): Use it.
2641         * guile/scm-param.c (parameter_functions): Use it.
2642         * guile/scm-ports.c (port_functions, private_port_functions): Use
2643         it.
2644         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2645         * guile/scm-progspace.c (pspace_functions): Use it.
2646         * guile/scm-string.c (string_functions): Use it.
2647         * guile/scm-symbol.c (symbol_functions): Use it.
2648         * guile/scm-symtab.c (symtab_functions): Use it.
2649         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2650         it.
2651         * guile/scm-value.c (value_functions): Use it.
2652
2653 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2654
2655         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2656         (tui_next_win): Likewise.
2657         (tui_prev_win): Likewise.
2658         (tui_partial_win_by_name): Likewise.
2659         (tui_init_generic_part): Likewise.
2660         (init_content_element): Likewise.
2661         (tui_del_window): Likewise.
2662         (tui_free_window): Likewise.
2663         (tui_del_data_windows): Likewise.
2664         (tui_free_data_content): Likewise.
2665         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2666         * tui/tui-regs.c (tui_show_register_group): Likewise.
2667         * tui/tui-win.c (tui_resize_all): Likewise.
2668         (tui_set_focus): Likewise.
2669         (tui_set_win_height): Likewise.
2670         (make_invisible_and_set_new_height): Likewise.
2671         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2672         * tui/tui-wingeneral.c (make_visible): Likewise.
2673
2674 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2675
2676         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2677
2678 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2679
2680         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2681         pointer.
2682         * dbxread.c (dbx_end_psymtab): Likewise.
2683         * gnu-nat.c (gnu_write_inferior): Likewise.
2684         * mdebugread.c (cross_ref): Likewise.
2685         * p-valprint.c (pascal_val_print): Likewise.
2686         * xcoffread.c (xcoff_end_psymtab): Likewise.
2687
2688 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2689
2690         * NEWS: Mention the aarch64 multi-arch debugging support.
2691
2692 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2693
2694         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2695         type instead of a TYPE_CODE_INT one for the string_char_type
2696         and the ada_primitive_type_char types.
2697
2698 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2699
2700         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2701         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2702         aarch64_linux_region_ok_for_watchpoint.
2703         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2704         New function.
2705         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2706         Declare it.
2707
2708 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2709
2710         * gdb_obstack.h (obstack_strdup): Declare.
2711         * gdb_obstack.c (obstack_strdup): Define.
2712         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2713         * gdbarch.c: Regenerate.
2714         * gdbarch.h: Regenerate.
2715         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2716
2717 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2718
2719         * gdbtypes.c (copy_type_recursive): Update documentation.
2720
2721 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2722
2723         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2724         as zero.
2725
2726 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2727
2728         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2729
2730 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2731
2732         * solib-svr4.c (solib_event_probe_action): Call
2733         get_probe_argument_count using TRY...CATCH.
2734         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2735
2736 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2737
2738         * probe.h (struct probe_ops) <get_probe_argument_count,
2739         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2740         the comment that the function can throw an exception.
2741         (get_probe_argument_count): Likewise.
2742         (evaluate_probe_argument): Likewise.
2743         * stap-probe.c (stap_get_opcode): Call error instead of
2744         internal_error.
2745         (stap_get_expected_argument_type): Likewise.  Add argument
2746         'probe'.  Improve error message by mentioning the probe's name.
2747         (stap_parse_probe_arguments): Adjust call to
2748         stap_get_expected_argument_type.
2749         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2750         not zero.  Call internal_error if GDB requests an argument but the
2751         probe has no arguments.
2752
2753 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2754
2755         * ada-lang.c (ada_resolve_function): Do not ask the user what
2756         match to use when in completion mode.
2757
2758 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2759
2760         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2761         cast of NULL.
2762
2763 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2764
2765         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2766         call_abi using XSHAL_ABI macro.
2767
2768 2015-08-29  Doug Evans  <xdje42@gmail.com>
2769
2770         * symtab.h (struct symbol): Tweak comment.
2771
2772 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2773
2774         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2775         gdbarch obstack instead of on the heap.  Update commentary
2776         accordingly.
2777
2778 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2779
2780         GDB 7.10 released.
2781
2782 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2783
2784         * NEWS: Update entry about non-8-bits addressable memory.
2785
2786 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2787
2788         Revert:
2789         2014-11-06  Doug Evans  <xdje42@gmail.com>
2790         * solib.c (solib_global_lookup): Fetch arch from objfile,
2791         not target_gdbarch.
2792
2793 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2794
2795         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2796         attempt to relocate a TLS variable offset.
2797
2798 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2799
2800         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2801         registered yet.  Set inferior_ptid while calling target_read_memory.
2802
2803 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2804
2805         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2806         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2807         * linux-nat.c (check_stopped_by_breakpoint): Use
2808         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2809
2810 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2811
2812         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2813         thread was not yet discovered, use thread_from_lwp instead of
2814         calling thread_db_find_new_threads_1.
2815
2816 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2817
2818         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2819         statements.
2820
2821 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2822
2823         * NEWS: Document support for non-8-bits addressable memory.
2824
2825 2015-08-27  Pedro Alves  <palves@redhat.com>
2826
2827         * configure.ac: Remove AC_TYPE_SIGNAL call.
2828         * configure, config.in: Regenerate.
2829
2830 2015-08-27  Pedro Alves  <palves@redhat.com>
2831
2832         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2833         * extension-priv.h: Include signal.h.
2834         (struct signal_handler) <handler>: Change type to sighandler_t.
2835         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2836         * inflow.c (sigint_ours, sigquit_ours): Change type to
2837         sighandler_t.
2838         (child_terminal_inferior): Remove casts.
2839         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
2840         (osig): Change type to sighandler_t.
2841         * nto-procfs.c (ofunc): Change type to sighandler_t.
2842         (procfs_wait): Remove casts.
2843         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2844         * remote-sim.c (gdbsim_wait): Use sighandler_t.
2845         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2846
2847 2015-08-27  Pedro Alves  <palves@redhat.com>
2848
2849         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2850         * gnulib/aclocal.m4: Renegerate.
2851         * gnulib/config.in: Renegerate.
2852         * gnulib/configure: Renegerate.
2853         * gnulib/import/Makefile.am: Update.
2854         * gnulib/import/Makefile.in: Regenerate.
2855         * gnulib/import/m4/gnulib-cache.m4: Update.
2856         * gnulib/import/m4/gnulib-comp.m4: Update.
2857         * gnulib/import/m4/signal_h.m4: New file.
2858         * gnulib/import/signal.in.h: New file.
2859
2860 2015-08-27  Pedro Alves  <palves@redhat.com>
2861
2862         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2863         (MIN_MEMORY_PACKET_SIZE): New.
2864         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2865         (get_memory_packet_size): Adjust.  No longer limit the max packet
2866         size.
2867         (set_memory_packet_size): Adjust, and remove dead code.
2868         (remote_check_symbols): Use xmalloc and a cleanup instead of
2869         alloca.
2870         (remote_packet_size): No longer cap the packet size.
2871         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2872
2873 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
2874
2875         * compile/compile.c (compile_to_object): Mention language in
2876         error message.
2877
2878 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
2879
2880         * target.c (target_pre_inferior): Unset attach_flag.
2881
2882 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2883
2884         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2885         * gdbarch.c: Re-generate.
2886
2887 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
2888
2889         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2890         function with the XNEW-family equivalent.
2891         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2892         * ada-exp.y (write_ambiguous_var): Likewise.
2893         * ada-lang.c (resolve_subexp): Likewise.
2894         (user_select_syms): Likewise.
2895         (assign_aggregate): Likewise.
2896         (ada_evaluate_subexp): Likewise.
2897         (cache_symbol): Likewise.
2898         * addrmap.c (allocate_key): Likewise.
2899         (addrmap_create_mutable): Likewise.
2900         * aix-thread.c (sync_threadlists): Likewise.
2901         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2902         (alpha_gdbarch_init): Likewise.
2903         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2904         * arm-linux-nat.c (arm_linux_add_process): Likewise.
2905         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2906         * arm-tdep.c (push_stack_item): Likewise.
2907         (arm_displaced_step_copy_insn): Likewise.
2908         (arm_gdbarch_init): Likewise.
2909         (_initialize_arm_tdep): Likewise.
2910         * avr-tdep.c (push_stack_item): Likewise.
2911         * ax-general.c (new_agent_expr): Likewise.
2912         * block.c (block_initialize_namespace): Likewise.
2913         * breakpoint.c (alloc_counted_command_line): Likewise.
2914         (update_dprintf_command_list): Likewise.
2915         (parse_breakpoint_sals): Likewise.
2916         (decode_static_tracepoint_spec): Likewise.
2917         (until_break_command): Likewise.
2918         (clear_command): Likewise.
2919         (update_global_location_list): Likewise.
2920         (get_breakpoint_objfile_data) Likewise.
2921         * btrace.c (ftrace_new_function): Likewise.
2922         (btrace_set_insn_history): Likewise.
2923         (btrace_set_call_history): Likewise.
2924         * buildsym.c (add_symbol_to_list): Likewise.
2925         (record_pending_block): Likewise.
2926         (start_subfile): Likewise.
2927         (start_buildsym_compunit): Likewise.
2928         (push_subfile): Likewise.
2929         (end_symtab_get_static_block): Likewise.
2930         (buildsym_init): Likewise.
2931         * cli/cli-cmds.c (source_command): Likewise.
2932         * cli/cli-decode.c (add_cmd): Likewise.
2933         * cli/cli-script.c (build_command_line): Likewise.
2934         (setup_user_args): Likewise.
2935         (realloc_body_list): Likewise.
2936         (process_next_line): Likewise.
2937         (copy_command_lines): Likewise.
2938         * cli/cli-setshow.c (do_set_command): Likewise.
2939         * coff-pe-read.c (read_pe_exported_syms): Likewise.
2940         * coffread.c (coff_locate_sections): Likewise.
2941         (coff_symtab_read): Likewise.
2942         (coff_read_struct_type): Likewise.
2943         * common/cleanups.c (make_my_cleanup2): Likewise.
2944         * common/common-exceptions.c (throw_it): Likewise.
2945         * common/filestuff.c (make_cleanup_close): Likewise.
2946         * common/format.c (parse_format_string): Likewise.
2947         * common/queue.h (DEFINE_QUEUE_P): Likewise.
2948         * compile/compile-object-load.c (munmap_list_add): Likewise.
2949         (compile_object_load): Likewise.
2950         * compile/compile-object-run.c (compile_object_run): Likewise.
2951         * compile/compile.c (append_args): Likewise.
2952         * corefile.c (specify_exec_file_hook): Likewise.
2953         * cp-support.c (make_symbol_overload_list): Likewise.
2954         * cris-tdep.c (push_stack_item): Likewise.
2955         (cris_gdbarch_init): Likewise.
2956         * ctf.c (ctf_trace_file_writer_new): Likewise.
2957         * dbxread.c (init_header_files): Likewise.
2958         (add_new_header_file): Likewise.
2959         (init_bincl_list): Likewise.
2960         (dbx_end_psymtab): Likewise.
2961         (start_psymtab): Likewise.
2962         (dbx_end_psymtab): Likewise.
2963         * dcache.c (dcache_init): Likewise.
2964         * dictionary.c (dict_create_hashed): Likewise.
2965         (dict_create_hashed_expandable): Likewise.
2966         (dict_create_linear): Likewise.
2967         (dict_create_linear_expandable): Likewise.
2968         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2969         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2970         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2971         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2972         (decode_frame_entry_1): Likewise.
2973         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2974         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2975         * dwarf2read.c (dwarf2_has_info): Likewise.
2976         (create_signatured_type_table_from_index): Likewise.
2977         (dwarf2_read_index): Likewise.
2978         (dw2_get_file_names_reader): Likewise.
2979         (create_all_type_units): Likewise.
2980         (read_cutu_die_from_dwo): Likewise.
2981         (init_tu_and_read_dwo_dies): Likewise.
2982         (init_cutu_and_read_dies): Likewise.
2983         (create_all_comp_units): Likewise.
2984         (queue_comp_unit): Likewise.
2985         (inherit_abstract_dies): Likewise.
2986         (read_call_site_scope): Likewise.
2987         (dwarf2_add_field): Likewise.
2988         (dwarf2_add_typedef): Likewise.
2989         (dwarf2_add_member_fn): Likewise.
2990         (attr_to_dynamic_prop): Likewise.
2991         (abbrev_table_alloc_abbrev): Likewise.
2992         (abbrev_table_read_table): Likewise.
2993         (add_include_dir): Likewise.
2994         (add_file_name): Likewise.
2995         (dwarf_decode_line_header): Likewise.
2996         (dwarf2_const_value_attr): Likewise.
2997         (dwarf_alloc_block): Likewise.
2998         (parse_macro_definition): Likewise.
2999         (set_die_type): Likewise.
3000         (write_psymtabs_to_index): Likewise.
3001         (create_cus_from_index): Likewise.
3002         (dwarf2_create_include_psymtab): Likewise.
3003         (process_psymtab_comp_unit_reader): Likewise.
3004         (build_type_psymtab_dependencies): Likewise.
3005         (read_comp_units_from_section): Likewise.
3006         (compute_compunit_symtab_includes): Likewise.
3007         (create_dwo_unit_in_dwp_v1): Likewise.
3008         (create_dwo_unit_in_dwp_v2): Likewise.
3009         (read_func_scope): Likewise.
3010         (process_structure_scope): Likewise.
3011         (mark_common_block_symbol_computed): Likewise.
3012         (load_partial_dies): Likewise.
3013         (dwarf2_symbol_mark_computed): Likewise.
3014         * elfread.c (elf_symfile_segments): Likewise.
3015         (elf_read_minimal_symbols): Likewise.
3016         * environ.c (make_environ): Likewise.
3017         * eval.c (evaluate_subexp_standard): Likewise.
3018         * event-loop.c (create_file_handler): Likewise.
3019         (create_async_signal_handler): Likewise.
3020         (create_async_event_handler): Likewise.
3021         (create_timer): Likewise.
3022         * exec.c (build_section_table): Likewise.
3023         * fbsd-nat.c (fbsd_remember_child): Likewise.
3024         * fork-child.c (fork_inferior): Likewise.
3025         * frv-tdep.c (new_variant): Likewise.
3026         * gdbarch.sh (gdbarch_alloc): Likewise.
3027         (append_name): Likewise.
3028         * gdbtypes.c (rank_function): Likewise.
3029         (copy_type_recursive): Likewise.
3030         (add_dyn_prop): Likewise.
3031         * gnu-nat.c (make_proc): Likewise.
3032         (make_inf): Likewise.
3033         (gnu_write_inferior): Likewise.
3034         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3035         (build_std_type_info_type): Likewise.
3036         * guile/scm-param.c (compute_enum_list): Likewise.
3037         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3038         * guile/scm-value.c (gdbscm_value_call): Likewise.
3039         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3040         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3041         (read_unwind_info): Likewise.
3042         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3043         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3044         (call_function_by_hand_dummy): Likewise.
3045         * infcmd.c (step_once): Likewise.
3046         (finish_forward): Likewise.
3047         (attach_command): Likewise.
3048         (notice_new_inferior): Likewise.
3049         * inferior.c (add_inferior_silent): Likewise.
3050         * infrun.c (add_displaced_stepping_state): Likewise.
3051         (save_infcall_control_state): Likewise.
3052         (save_inferior_ptid): Likewise.
3053         (_initialize_infrun): Likewise.
3054         * jit.c (bfd_open_from_target_memory): Likewise.
3055         (jit_gdbarch_data_init): Likewise.
3056         * language.c (add_language): Likewise.
3057         * linespec.c (decode_line_2): Likewise.
3058         * linux-nat.c (add_to_pid_list): Likewise.
3059         (add_initial_lwp): Likewise.
3060         * linux-thread-db.c (add_thread_db_info): Likewise.
3061         (record_thread): Likewise.
3062         (info_auto_load_libthread_db): Likewise.
3063         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3064         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3065         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3066         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3067         * macrocmd.c (macro_define_command): Likewise.
3068         * macroexp.c (gather_arguments): Likewise.
3069         * macroscope.c (sal_macro_scope): Likewise.
3070         * macrotab.c (new_macro_table): Likewise.
3071         * mdebugread.c (push_parse_stack): Likewise.
3072         (parse_partial_symbols): Likewise.
3073         (parse_symbol): Likewise.
3074         (psymtab_to_symtab_1): Likewise.
3075         (new_block): Likewise.
3076         (new_psymtab): Likewise.
3077         (mdebug_build_psymtabs): Likewise.
3078         (add_pending): Likewise.
3079         (elfmdebug_build_psymtabs): Likewise.
3080         * mep-tdep.c (mep_gdbarch_init): Likewise.
3081         * mi/mi-main.c (mi_execute_command): Likewise.
3082         * mi/mi-parse.c (mi_parse_argv): Likewise.
3083         * minidebug.c (lzma_open): Likewise.
3084         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3085         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3086         * mips-tdep.c (mips_gdbarch_init): Likewise.
3087         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3088         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3089         * mt-tdep.c (mt_registers_info): Likewise.
3090         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3091         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3092         (linux_enable_pt): Likewise.
3093         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3094         (linux_xfer_osdata_processgroups): Likewise.
3095         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3096         * nto-procfs.c (procfs_meminfo): Likewise.
3097         * objc-lang.c (start_msglist): Likewise.
3098         (selectors_info): Likewise.
3099         (classes_info): Likewise.
3100         (find_methods): Likewise.
3101         * objfiles.c (allocate_objfile): Likewise.
3102         (update_section_map): Likewise.
3103         * osabi.c (gdbarch_register_osabi): Likewise.
3104         (gdbarch_register_osabi_sniffer): Likewise.
3105         * parse.c (start_arglist): Likewise.
3106         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3107         (hwdebug_insert_point): Likewise.
3108         * printcmd.c (display_command): Likewise.
3109         (ui_printf): Likewise.
3110         * procfs.c (create_procinfo): Likewise.
3111         (load_syscalls): Likewise.
3112         (proc_get_LDT_entry): Likewise.
3113         (proc_update_threads): Likewise.
3114         * prologue-value.c (make_pv_area): Likewise.
3115         (pv_area_store): Likewise.
3116         * psymtab.c (extend_psymbol_list): Likewise.
3117         (init_psymbol_list): Likewise.
3118         (allocate_psymtab): Likewise.
3119         * python/py-inferior.c (add_thread_object): Likewise.
3120         * python/py-param.c (compute_enum_values): Likewise.
3121         * python/py-value.c (valpy_call): Likewise.
3122         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3123         * python/python.c (ensure_python_env): Likewise.
3124         * record-btrace.c (record_btrace_start_replaying): Likewise.
3125         * record-full.c (record_full_reg_alloc): Likewise.
3126         (record_full_mem_alloc): Likewise.
3127         (record_full_end_alloc): Likewise.
3128         (record_full_core_xfer_partial): Likewise.
3129         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3130         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3131         * remote-notif.c (remote_notif_state_allocate): Likewise.
3132         * remote.c (demand_private_info): Likewise.
3133         (remote_notif_stop_alloc_reply): Likewise.
3134         (remote_enable_btrace): Likewise.
3135         * reverse.c (save_bookmark_command): Likewise.
3136         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3137         * rx-tdep.c (rx_gdbarch_init): Likewise.
3138         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3139         * ser-go32.c (dos_get_tty_state): Likewise.
3140         (dos_copy_tty_state): Likewise.
3141         * ser-mingw.c (ser_windows_open): Likewise.
3142         (ser_console_wait_handle): Likewise.
3143         (ser_console_get_tty_state): Likewise.
3144         (make_pipe_state): Likewise.
3145         (net_windows_open): Likewise.
3146         * ser-unix.c (hardwire_get_tty_state): Likewise.
3147         (hardwire_copy_tty_state): Likewise.
3148         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3149         * solib-dsbt.c (dsbt_current_sos): Likewise.
3150         (dsbt_relocate_main_executable): Likewise.
3151         * solib-frv.c (frv_current_sos): Likewise.
3152         (frv_relocate_main_executable): Likewise.
3153         * solib-spu.c (spu_bfd_fopen): Likewise.
3154         * solib-svr4.c (lm_info_read): Likewise.
3155         (svr4_copy_library_list): Likewise.
3156         (svr4_default_sos): Likewise.
3157         * source.c (find_source_lines): Likewise.
3158         (line_info): Likewise.
3159         (add_substitute_path_rule): Likewise.
3160         * spu-linux-nat.c (spu_bfd_open): Likewise.
3161         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3162         * stabsread.c (dbx_lookup_type): Likewise.
3163         (read_type): Likewise.
3164         (read_member_functions): Likewise.
3165         (read_struct_fields): Likewise.
3166         (read_baseclasses): Likewise.
3167         (read_args): Likewise.
3168         (_initialize_stabsread): Likewise.
3169         * stack.c (func_command): Likewise.
3170         * stap-probe.c (handle_stap_probe): Likewise.
3171         * symfile.c (addrs_section_sort): Likewise.
3172         (addr_info_make_relative): Likewise.
3173         (load_section_callback): Likewise.
3174         (add_symbol_file_command): Likewise.
3175         (init_filename_language_table): Likewise.
3176         * symtab.c (create_filename_seen_cache): Likewise.
3177         (sort_search_symbols_remove_dups): Likewise.
3178         (search_symbols): Likewise.
3179         * target.c (make_cleanup_restore_target_terminal): Likewise.
3180         * thread.c (new_thread): Likewise.
3181         (enable_thread_stack_temporaries): Likewise.
3182         (make_cleanup_restore_current_thread): Likewise.
3183         (thread_apply_all_command): Likewise.
3184         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3185         * top.c (gdb_readline_wrapper): Likewise.
3186         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3187         * tracepoint.c (trace_find_line_command): Likewise.
3188         (all_tracepoint_actions_and_cleanup): Likewise.
3189         (make_cleanup_restore_current_traceframe): Likewise.
3190         (get_uploaded_tp): Likewise.
3191         (get_uploaded_tsv): Likewise.
3192         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3193         (tui_alloc_win_info): Likewise.
3194         (tui_alloc_content): Likewise.
3195         (tui_add_content_elements): Likewise.
3196         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3197         (tui_set_disassem_content): Likewise.
3198         * ui-file.c (ui_file_new): Likewise.
3199         (stdio_file_new): Likewise.
3200         (tee_file_new): Likewise.
3201         * utils.c (make_cleanup_restore_integer): Likewise.
3202         (add_internal_problem_command): Likewise.
3203         * v850-tdep.c (v850_gdbarch_init): Likewise.
3204         * valops.c (find_oload_champ): Likewise.
3205         * value.c (allocate_value_lazy): Likewise.
3206         (record_latest_value): Likewise.
3207         (create_internalvar): Likewise.
3208         * varobj.c (install_variable): Likewise.
3209         (new_variable): Likewise.
3210         (new_root_variable): Likewise.
3211         (cppush): Likewise.
3212         (_initialize_varobj): Likewise.
3213         * windows-nat.c (windows_make_so): Likewise.
3214         * x86-nat.c (x86_add_process): Likewise.
3215         * xcoffread.c (arrange_linetable): Likewise.
3216         (allocate_include_entry): Likewise.
3217         (process_linenos): Likewise.
3218         (SYMBOL_DUP): Likewise.
3219         (xcoff_start_psymtab): Likewise.
3220         (xcoff_end_psymtab): Likewise.
3221         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3222         * xtensa-tdep.c (xtensa_register_type): Likewise.
3223         * gdbarch.c: Regenerate.
3224         * gdbarch.h: Regenerate.
3225
3226 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3227
3228         * infrun.c (follow_exec): Re-order operations for
3229         handling follow-exec-mode "new".
3230         (handle_inferior_event_1): Assign ecs->event_thread
3231         to the current thread.
3232         * remote.c (get_remote_arch_state): Add an assertion.
3233
3234 2015-08-26  Pedro Alves  <palves@redhat.com>
3235
3236         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3237
3238 2015-08-25  Pedro Alves  <palves@redhat.com>
3239
3240         PR gdb/18804
3241         * defs.h (maybe_quit): Declare.
3242         (QUIT): Now calls maybe_quit.
3243         * event-loop.c (clear_async_signal_handler)
3244         (async_signal_handler_is_marked): New functions.
3245         * event-loop.h (async_signal_handler_is_marked)
3246         (clear_async_signal_handler): New declarations.
3247         * remote.c (remote_check_pending_interrupt): New function.
3248         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3249         longer check whether the target is async.  If waiting for a stop
3250         reply, and a Ctrl-C as been sent to the target, offer to
3251         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3252         Otherwise do not disconnect and throw a quit.
3253         (_initialize_remote): Install remote_check_pending_interrupt as
3254         to_check_pending_interrupt.
3255         * target.c (target_check_pending_interrupt): New function.
3256         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3257         field.
3258         (target_check_pending_interrupt): New declaration.
3259         * utils.c (maybe_quit): New function.
3260         * target-delegates.c: Regenerate.
3261
3262 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3263
3264         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3265         Rename local variable pid to tid, and get lwpid of lwp.  Update
3266         debug output.
3267
3268 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3269
3270         * ada-lang.c (ada_read_var_value): Add a var_block argument
3271         and pass it to default_read_var_value.
3272         * block.c (block_static_link): New accessor.
3273         * block.h (block_static_link): Declare it.
3274         * buildsym.c (finish_block_internal): Add a static_link
3275         argument.  If there is a static link, associate it to the new
3276         block.
3277         (finish_block): Add a static link argument and pass it to
3278         finish_block_internal.
3279         (end_symtab_get_static_block): Update calls to finish_block and
3280         to finish_block_internal.
3281         (end_symtab_with_blockvector): Update call to
3282         finish_block_internal.
3283         * buildsym.h: Forward-declare struct dynamic_prop.
3284         (struct context_stack): Add a static_link field.
3285         (finish_block): Add a static link argument.
3286         * c-exp.y: Remove an obsolete comment (evaluation of variables
3287         already start from the selected frame, and now they climb *up*
3288         the call stack) and propagate the block information to the
3289         produced expression.
3290         * d-exp.y: Likewise.
3291         * f-exp.y: Likewise.
3292         * go-exp.y: Likewise.
3293         * jv-exp.y: Likewise.
3294         * m2-exp.y: Likewise.
3295         * p-exp.y: Likewise.
3296         * coffread.c (coff_symtab_read): Update calls to finish_block.
3297         * dbxread.c (process_one_symbol): Likewise.
3298         * xcoffread.c (read_xcoff_symtab): Likewise.
3299         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3300         "sym" parameter to struct block_symbol, update its uses and pass
3301         its block to calls to read_var_value.
3302         (convert_symbol_sym): Update the calls to convert_one_symbol.
3303         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3304         call to read_var_value.
3305         * dwarf2loc.c (block_op_get_frame_base): New.
3306         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3307         get_frame_base method.
3308         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3309         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3310         instead of the selected frame in order to evaluate the
3311         expression.
3312         (dwarf2_evaluate_property): Add a frame argument.  Update call
3313         to dwarf2_locexpr_baton_eval to provide a frame in available and
3314         to handle the absence of address stack.
3315         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3316         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3317         declaration.
3318         (read_func_scope): Record any available static link description.
3319         Update call to finish_block.
3320         (read_lexical_block_scope): Update call to finish_block.
3321         * findvar.c (follow_static_link): New.
3322         (get_hosting_frame): New.
3323         (default_read_var_value): Add a var_block argument.  Use
3324         get_hosting_frame to handle non-local references.
3325         (read_var_value): Add a var_block argument and pass it to the
3326         LA_READ_VAR_VALUE method.
3327         * gdbtypes.c (resolve_dynamic_range): Update calls to
3328         dwarf2_evaluate_property.
3329         (resolve_dynamic_type_internal): Likewise.
3330         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3331         read_var_value, passing it the block coming from symbol lookup.
3332         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3333         read_var_value (TODO).
3334         * infcmd.c (finish_command_continuation): Update call to
3335         read_var_value, passing it the block coming from symbol lookup.
3336         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3337         * language.h (struct language_defn): Add a var_block argument to
3338         the LA_READ_VAR_VALUE method.
3339         * objfiles.c (struct static_link_htab_entry): New.
3340         (static_link_htab_entry_hash): New.
3341         (static_link_htab_entry_eq): New.
3342         (objfile_register_static_link): New.
3343         (objfile_lookup_static_link): New.
3344         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3345         * objfiles.h: Include hashtab.h.
3346         (struct objfile): Add a static_links field.
3347         (objfile_register_static_link): New.
3348         (objfile_lookup_static_link): New.
3349         * printcmd.c (print_variable_and_value): Update call to
3350         read_var_value.
3351         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3352         * python/py-frame.c (frapy_read_var): Update call to
3353         read_var_value, passing it the block coming from symbol lookup.
3354         * python/py-framefilter.c (extract_sym): Add a sym_block
3355         parameter and set the pointed value to NULL (TODO).
3356         (enumerate_args): Update call to extract_sym.
3357         (enumerate_locals): Update calls to extract_sym and to
3358         read_var_value.
3359         * python/py-symbol.c (sympy_value): Update call to
3360         read_var_value (TODO).
3361         * stack.c (read_frame_local): Update call to read_var_value.
3362         (read_frame_arg): Likewise.
3363         (return_command): Likewise.
3364         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3365         method.
3366         (struct symbol): Add a block field.
3367         (SYMBOL_BLOCK): New accessor.
3368         * valops.c (value_of_variable): Remove frame/block handling and
3369         pass the block argument to read_var_value, which does this job
3370         now.
3371         (value_struct_elt_for_reference): Update calls to
3372         read_var_value.
3373         (value_of_this): Pass the block found to read_var_value.
3374         * value.h (read_var_value): Add a var_block argument.
3375         (default_read_var_value): Likewise.
3376
3377 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3378
3379         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3380         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3381         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3382
3383 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3384
3385         * Makefile.in (aarch64-liunx.o): New rule.
3386         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3387         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3388         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3389         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3390         extern.
3391         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3392         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3393         * nat/aarch64-linux.c: New file.
3394         * nat/aarch64-linux.h: New file.
3395
3396 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3397
3398         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3399         lwp_arch_private_info and ptid_of_lwp.
3400
3401 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3402
3403         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3404         Move it to nat/aarch64-linux-hw-point.c.
3405         (debug_reg_change_callback): Likewise.
3406         (aarch64_notify_debug_reg_change): :Likewise.
3407         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3408         (aarch64_dr_update_callback_param): New.
3409         (debug_reg_change_callback): New function.
3410         (aarch64_notify_debug_reg_change): Likewise.
3411         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3412         Remove the declaration.
3413
3414 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3415
3416         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3417         Call current_lwp_ptid.
3418
3419 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3420
3421         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3422         debug_printf.
3423
3424 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3425
3426         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3427         ptid_get_pid rather than ptid_get_lwp.
3428
3429 2015-08-24  Pedro Alves  <palves@redhat.com>
3430
3431         * NEWS (New commands): Mention set/show remote
3432         multiprocess-extensions-packet.
3433         * remote.c (remote_query_supported): Only tell the server to use
3434         the multiprocess extensions if the user hasn't force-disabled them
3435         with "set remote multiprocess-extensions-packet off".
3436
3437 2015-08-24  Pedro Alves  <palves@redhat.com>
3438
3439         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3440         1029a8112290f6eee9d7878a391c49db42c999bd.
3441         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3442         Regenerate.
3443         * gnulib/import/Makefile.am: Update.
3444         * gnulib/import/Makefile.in: Update.
3445         * gnulib/import/alloca.in.h: Update.
3446         * gnulib/import/basename-lgpl.c: Update.
3447         * gnulib/import/canonicalize-lgpl.c: Update.
3448         * gnulib/import/config.charset: Update.
3449         * gnulib/import/dirent.in.h: Update.
3450         * gnulib/import/dirfd.c: Update.
3451         * gnulib/import/dirname-lgpl.c: Update.
3452         * gnulib/import/dirname.h: Update.
3453         * gnulib/import/dosname.h: Update.
3454         * gnulib/import/errno.in.h: Update.
3455         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3456         * gnulib/import/extra/snippet/c++defs.h: Update.
3457         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3458         * gnulib/import/extra/update-copyright: Update.
3459         * gnulib/import/float+.h: Update.
3460         * gnulib/import/float.c: Update.
3461         * gnulib/import/float.in.h: Update.
3462         * gnulib/import/fnmatch.c: Update.
3463         * gnulib/import/fnmatch.in.h: Update.
3464         * gnulib/import/fnmatch_loop.c: Update.
3465         * gnulib/import/fpucw.h: Update.
3466         * gnulib/import/frexp.c: Update.
3467         * gnulib/import/frexpl.c: Update.
3468         * gnulib/import/gettimeofday.c: Update.
3469         * gnulib/import/inttypes.in.h: Update.
3470         * gnulib/import/isnan.c: Update.
3471         * gnulib/import/isnand-nolibm.h: Update.
3472         * gnulib/import/isnand.c: Update.
3473         * gnulib/import/isnanl-nolibm.h: Update.
3474         * gnulib/import/isnanl.c: Update.
3475         * gnulib/import/itold.c: Update.
3476         * gnulib/import/localcharset.c: Update.
3477         * gnulib/import/localcharset.h: Update.
3478         * gnulib/import/lstat.c: Update.
3479         * gnulib/import/m4/00gnulib.m4: Update.
3480         * gnulib/import/m4/absolute-header.m4: Update.
3481         * gnulib/import/m4/alloca.m4: Update.
3482         * gnulib/import/m4/canonicalize.m4: Update.
3483         * gnulib/import/m4/codeset.m4: Update.
3484         * gnulib/import/m4/configmake.m4: Update.
3485         * gnulib/import/m4/dirent_h.m4: Update.
3486         * gnulib/import/m4/dirfd.m4: Update.
3487         * gnulib/import/m4/dirname.m4: Update.
3488         * gnulib/import/m4/double-slash-root.m4: Update.
3489         * gnulib/import/m4/eealloc.m4: Update.
3490         * gnulib/import/m4/errno_h.m4: Update.
3491         * gnulib/import/m4/exponentd.m4: Update.
3492         * gnulib/import/m4/exponentl.m4: Update.
3493         * gnulib/import/m4/extensions.m4: Update.
3494         * gnulib/import/m4/extern-inline.m4: Update.
3495         * gnulib/import/m4/fcntl-o.m4: Update.
3496         * gnulib/import/m4/float_h.m4: Update.
3497         * gnulib/import/m4/fnmatch.m4: Update.
3498         * gnulib/import/m4/fpieee.m4: Update.
3499         * gnulib/import/m4/frexp.m4: Update.
3500         * gnulib/import/m4/frexpl.m4: Update.
3501         * gnulib/import/m4/gettimeofday.m4: Update.
3502         * gnulib/import/m4/glibc21.m4: Update.
3503         * gnulib/import/m4/gnulib-cache.m4: Update.
3504         * gnulib/import/m4/gnulib-common.m4: Update.
3505         * gnulib/import/m4/gnulib-comp.m4: Update.
3506         * gnulib/import/m4/gnulib-tool.m4: Update.
3507         * gnulib/import/m4/include_next.m4: Update.
3508         * gnulib/import/m4/inttypes-pri.m4: Update.
3509         * gnulib/import/m4/inttypes.m4: Update.
3510         * gnulib/import/m4/isnand.m4: Update.
3511         * gnulib/import/m4/isnanl.m4: Update.
3512         * gnulib/import/m4/largefile.m4: Update.
3513         * gnulib/import/m4/localcharset.m4: Update.
3514         * gnulib/import/m4/locale-fr.m4: Update.
3515         * gnulib/import/m4/locale-ja.m4: Update.
3516         * gnulib/import/m4/locale-zh.m4: Update.
3517         * gnulib/import/m4/longlong.m4: Update.
3518         * gnulib/import/m4/lstat.m4: Update.
3519         * gnulib/import/m4/malloc.m4: Update.
3520         * gnulib/import/m4/malloca.m4: Update.
3521         * gnulib/import/m4/math_h.m4: Update.
3522         * gnulib/import/m4/mbrtowc.m4: Update.
3523         * gnulib/import/m4/mbsinit.m4: Update.
3524         * gnulib/import/m4/mbsrtowcs.m4: Update.
3525         * gnulib/import/m4/mbstate_t.m4: Update.
3526         * gnulib/import/m4/memchr.m4: Update.
3527         * gnulib/import/m4/memmem.m4: Update.
3528         * gnulib/import/m4/mmap-anon.m4: Update.
3529         * gnulib/import/m4/multiarch.m4: Update.
3530         * gnulib/import/m4/nocrash.m4: Update.
3531         * gnulib/import/m4/off_t.m4: Update.
3532         * gnulib/import/m4/pathmax.m4: Update.
3533         * gnulib/import/m4/readlink.m4: Update.
3534         * gnulib/import/m4/rename.m4: Update.
3535         * gnulib/import/m4/rmdir.m4: Update.
3536         * gnulib/import/m4/ssize_t.m4: Update.
3537         * gnulib/import/m4/stat.m4: Update.
3538         * gnulib/import/m4/stdbool.m4: Update.
3539         * gnulib/import/m4/stddef_h.m4: Update.
3540         * gnulib/import/m4/stdint.m4: Update.
3541         * gnulib/import/m4/stdio_h.m4: Update.
3542         * gnulib/import/m4/stdlib_h.m4: Update.
3543         * gnulib/import/m4/string_h.m4: Update.
3544         * gnulib/import/m4/strstr.m4: Update.
3545         * gnulib/import/m4/strtok_r.m4: Update.
3546         * gnulib/import/m4/sys_socket_h.m4: Update.
3547         * gnulib/import/m4/sys_stat_h.m4: Update.
3548         * gnulib/import/m4/sys_time_h.m4: Update.
3549         * gnulib/import/m4/sys_types_h.m4: Update.
3550         * gnulib/import/m4/time_h.m4: Update.
3551         * gnulib/import/m4/unistd_h.m4: Update.
3552         * gnulib/import/m4/warn-on-use.m4: Update.
3553         * gnulib/import/m4/wchar_h.m4: Update.
3554         * gnulib/import/m4/wchar_t.m4: Update.
3555         * gnulib/import/m4/wctype_h.m4: Update.
3556         * gnulib/import/m4/wint_t.m4: Update.
3557         * gnulib/import/malloc.c: Update.
3558         * gnulib/import/malloca.c: Update.
3559         * gnulib/import/malloca.h: Update.
3560         * gnulib/import/math.in.h: Update.
3561         * gnulib/import/mbrtowc.c: Update.
3562         * gnulib/import/mbsinit.c: Update.
3563         * gnulib/import/mbsrtowcs-impl.h: Update.
3564         * gnulib/import/mbsrtowcs-state.c: Update.
3565         * gnulib/import/mbsrtowcs.c: Update.
3566         * gnulib/import/memchr.c: Update.
3567         * gnulib/import/memmem.c: Update.
3568         * gnulib/import/pathmax.h: Update.
3569         * gnulib/import/readlink.c: Update.
3570         * gnulib/import/ref-add.sin: Update.
3571         * gnulib/import/ref-del.sin: Update.
3572         * gnulib/import/rename.c: Update.
3573         * gnulib/import/rmdir.c: Update.
3574         * gnulib/import/same-inode.h: Update.
3575         * gnulib/import/stat.c: Update.
3576         * gnulib/import/stdbool.in.h: Update.
3577         * gnulib/import/stddef.in.h: Update.
3578         * gnulib/import/stdint.in.h: Update.
3579         * gnulib/import/stdio.c: Update.
3580         * gnulib/import/stdio.in.h: Update.
3581         * gnulib/import/stdlib.in.h: Update.
3582         * gnulib/import/str-two-way.h: Update.
3583         * gnulib/import/streq.h: Update.
3584         * gnulib/import/string.in.h: Update.
3585         * gnulib/import/stripslash.c: Update.
3586         * gnulib/import/strnlen1.c: Update.
3587         * gnulib/import/strnlen1.h: Update.
3588         * gnulib/import/strstr.c: Update.
3589         * gnulib/import/strtok_r.c: Update.
3590         * gnulib/import/sys_stat.in.h: Update.
3591         * gnulib/import/sys_time.in.h: Update.
3592         * gnulib/import/sys_types.in.h: Update.
3593         * gnulib/import/time.in.h: Update.
3594         * gnulib/import/unistd.in.h: Update.
3595         * gnulib/import/verify.h: Update.
3596         * gnulib/import/wchar.in.h: Update.
3597         * gnulib/import/wctype.in.h: Update.
3598         * gnulib/import/gettimeofday.c: New file.
3599         * gnulib/import/m4/absolute-header.m4: New file.
3600         * gnulib/import/m4/gettimeofday.m4: New file.
3601         * gnulib/import/m4/sys_socket_h.m4: New file.
3602         * gnulib/import/m4/sys_time_h.m4: New file.
3603         * gnulib/import/stdio.c: Delete file.
3604         * gnulib/import/sys_time.in.h: New file.
3605
3606 2015-08-24  Pedro Alves  <palves@redhat.com>
3607
3608         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3609         * common/gdb_sys_time.h: New file.
3610         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3611         * gdb_select.h: Likewise.
3612         * gdb_usleep.c: Likewise.
3613         * maint.c: Likewise.
3614         * mi/mi-main.c: Likewise.
3615         * mi/mi-parse.h: Likewise.
3616         * remote-fileio.c: Likewise.
3617         * remote-m32r-sdi.c: Likewise.
3618         * remote.c: Likewise.
3619         * ser-base.c: Likewise.
3620         * ser-pipe.c: Likewise.
3621         * ser-tcp.c: Likewise.
3622         * ser-unix.c: Likewise.
3623         * symfile.c: Likewise.
3624         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3625         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3626         * utils.c: Likewise.
3627
3628 2015-08-24  Pedro Alves  <palves@redhat.com>
3629
3630         * NEWS: Mention removed support for the various ROM monitors.
3631         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3632         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3633         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3634         gdb_target_obs.
3635         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3636         gdb_target_obs.
3637         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3638         dsrec.o from gdb_target_obs.
3639         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3640         from gdb_target_obs.
3641         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3642         gdb_target_obs.
3643         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3644         dink32-rom.o from gdb_target_obs.
3645         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3646         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3647         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3648         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3649
3650 2015-08-21  Pedro Alves  <palves@redhat.com>
3651
3652         * frame.c (null_frame_id): Explicitly zero-initialize.
3653
3654 2015-08-21  Tom Tromey  <tromey@redhat.com>
3655
3656         * dwarf2read.c (struct dwarf2_section_info): Rename field
3657         'asection' to 'section'.
3658         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3659         (dwarf2_locate_sections, dwarf2_locate_sections)
3660         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3661         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3662         (dwarf2_locate_v2_dwp_sections): Adjust.
3663
3664 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3665
3666         * top.h (gdb_in_secondary_prompt_p): Declare.
3667         * top.c (gdb_secondary_prompt_depth): Define.
3668         (gdb_in_secondary_prompt_p): Define.
3669         (gdb_readline_wrapper_cleanup): Decrement
3670         gdb_secondary_prompt_depth.
3671         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3672         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3673         are in a secondary prompt.
3674
3675 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3676
3677         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3678         emit the newline.
3679
3680 2015-08-21  Gary Benson  <gbenson@redhat.com>
3681
3682         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3683
3684 2015-08-21  Gary Benson  <gbenson@redhat.com>
3685
3686         * target.h (struct target_ops) <to_fileio_open>: New argument
3687         warn_if_slow.  Update comment.  All implementations updated.
3688         (target_fileio_open_warn_if_slow): New declaration.
3689         * target.c (target_fileio_open): Renamed as...
3690         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3691         Pass warn_if_slow to implementation.  Update debug printing.
3692         (target_fileio_open): New function.
3693         (target_fileio_open_warn_if_slow): Likewise.
3694         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3695         target_fileio_open_warn_if_slow.
3696
3697 2015-08-21  Gary Benson  <gbenson@redhat.com>
3698
3699         * nat/linux-namespaces.c (linux_mntns_access_fs):
3700         Do not overwrite old_chain.
3701
3702 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3703
3704         * arch/xtensa.h: New file.
3705         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3706         (ps_get_thread_area): New function.
3707         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3708         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3709         * xtensa-tdep.c (osabi.h): New #include.
3710         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3711         xtensa-specific hooks.
3712         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3713         member and move the structure to arch/xtensa.h.
3714
3715 2015-08-21  Pedro Alves  <palves@redhat.com>
3716
3717         * remote.c (struct readahead_cache): New.
3718         (struct remote_state) <readahead_cache>: New field.
3719         (remote_open_1): Invalidate the cache.
3720         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3721         functions.
3722         (remote_hostio_pwrite): Invalidate the readahead cache.
3723         (remote_hostio_pread): Rename to ...
3724         (remote_hostio_pread_vFile): ... this.
3725         (remote_hostio_pread_from_cache): New function.
3726         (remote_hostio_pread): Reimplement.
3727         (remote_hostio_close): Invalidate the readahead cache.
3728
3729 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3730
3731         PR build/18843
3732         * procfs.c: Include "filestuff.h".
3733
3734 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3735
3736         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3737         curch.
3738         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3739         cur_line or curch, instead call wmove().
3740         (init_win_info) [CMD_WIN]: Likewise.
3741         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3742         instead call getcury().
3743         (tui_redisplay_readline): Don't set cur_line or curch.
3744         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3745         getcury().
3746         (tui_cont_sig): Remove call to wmove.
3747         (tui_getc): Don't read cur_line or curch, instead call getcury()
3748         or getyx().  Don't set curch.
3749         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3750         set cur_line or curch.  Always move cursor to (0,0).
3751
3752 2015-08-20  Pedro Alves  <palves@redhat.com>
3753
3754         * infrun.c (print_target_wait_results): Make extern.
3755         * infrun.h (print_target_wait_results): Declare.
3756         * remote.c (set_stop_requested_callback): Delete.
3757         (process_initial_stop_replies): New function.
3758         (remote_start_remote): Use it.
3759         (stop_reply_queue_length): New function.
3760
3761 2015-08-20  Pedro Alves  <palves@redhat.com>
3762
3763         * dwarf2read.c (process_full_comp_unit): To tell whether
3764         start_subfile managed to deduce a language, test for
3765         language_unknown instead of language_c.
3766
3767 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3768
3769         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3770         matches attributes.
3771
3772 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3773
3774         * dwarf2read.c (dwarf2_string_attr): New function.
3775         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3776         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3777         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3778         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3779         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3780
3781 2015-08-18  Doug Evans  <dje@google.com>
3782             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3783
3784         PR mi/18833
3785         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3786         if MI-like.
3787         * mi/mi-out.c: #include "vec.h".
3788         (ui_filep): New type.
3789         (DEV_VEC_P (ui_filep)): New type.
3790         (struct ui_out_data) <buffer, original_buffer>: Delete.
3791         (struct ui_out_data) <streams>: New member.
3792         (mi_ui_out_impl): Add data_destroy field.
3793         (mi_field_string, mi_field_fmt): Update.
3794         (mi_flush, mi_redirect, field_separator): Update.
3795         (mi_open, mi_close): Update.
3796         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3797         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3798         (mi_out_new): Call mi_out_data_ctor.
3799
3800 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3801
3802         * remote.c (strprefix): New.
3803         (remote_parse_stop_reply): Use strprefix instead of strncmp
3804         to ensure exact match of keyword.
3805
3806 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3807
3808         * gdb_bfd.c (debug_bfd_cache): New variable.
3809         (show_bfd_cache_debug): New function.
3810         (gdb_bfd_open): Add debug logging.
3811         (gdb_bfd_ref): Likewise.
3812         (gdb_bfd_unref): Likewise.
3813         (_initialize_gdb_bfd): Add new set/show command.
3814         * NEWS: Mention new command.
3815
3816 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3817
3818         * gdb_bfd.c (bfd_sharing): New variable.
3819         (show_bfd_sharing): New function.
3820         (gdb_bfd_open): Check bfd_sharing variable.
3821         (_initialize_gdb_bfd): Add new set/show command.
3822         * NEWS: Mention new command.
3823
3824 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3825
3826         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3827         field.
3828         (struct gdb_bfd_cache_search): Likewise.
3829         (eq_bfd): Compare the size, inode, and device id fields.
3830         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3831         (gdb_bfd_ref): Likewise.
3832         (gdb_bfd_unref): Likewise.
3833
3834 2015-08-18  Pedro Alves  <palves@redhat.com>
3835
3836         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3837         target implements to_always_non_stop_p, call it.
3838         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3839         (x86_linux_create_target): Install it as to_always_non_stop_p
3840         method.
3841
3842 2015-08-17  Doug Evans  <dje@google.com>
3843
3844         * ui-out.c (default_ui_out_impl): Add comment.
3845
3846 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
3847
3848         * d-exp.y (type_aggregate_p): New function.
3849         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3850         (classify_inner_name): Likewise.
3851         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3852
3853 2015-08-15  Doug Evans  <xdje42@gmail.com>
3854
3855         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
3856         updated.
3857         (add_psymbol_to_list): Ditto.
3858
3859 2015-08-15  Doug Evans  <xdje42@gmail.com>
3860
3861         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
3862         updated.  Call end_psymtab_common.
3863         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3864         end_psymtab_common.
3865         (build_type_psymtabs_reader): Ditto.
3866         * psympriv.h (sort_pst_symbols): Delete.
3867         (end_psymtab_common): Declare.
3868         * psymtab.c (sort_pst_symbols): Make static.
3869         (end_psymtab_common): New function.
3870         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3871
3872 2015-08-15  Doug Evans  <xdje42@gmail.com>
3873
3874         * defs.h (LANGUAGE_BITS): Define.
3875         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3876         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3877         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3878         (minimal_symbol_type): Add nr_minsym_types.
3879         (MINSYM_TYPE_BITS): Define.
3880         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3881         (domain_enum_tag): Add NR_DOMAINS.
3882         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3883         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3884
3885 2015-08-15  Doug Evans  <xdje42@gmail.com>
3886
3887         * objfiles.h: Whitespace cleanup.
3888         * psympriv.h: Whitespace cleanup.
3889         * psymtab.c: Whitespace/coding convention cleanup.
3890
3891 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
3892
3893         * inferior.c (detach_inferior_command): Don't call
3894         any_thread_of_process when pid is 0.
3895         (kill_inferior_command): Likewise.
3896
3897 2015-08-14  Doug Evans  <xdje42@gmail.com>
3898
3899         PR gdb/11833
3900         * NEWS: Document new /s modifier for the disassemble command.
3901         * cli/cli-cmds.c (disassemble_command): Add support for /s.
3902         (_initialize_cli_cmds): Update online docs of disassemble command.
3903         * disasm.c: #include "source.h".
3904         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3905         All uses updated.
3906         (dis_line_entry): New struct.
3907         (hash_dis_line_entry, eq_dis_line_entry): New functions.
3908         (allocate_dis_line_table): New functions.
3909         (maybe_add_dis_line_entry, line_has_code_p): New functions.
3910         (dump_insns): New arg end_pc.  All callers updated.
3911         (do_mixed_source_and_assembly_deprecated): Renamed from
3912         do_mixed_source_and_assembly.  All callers updated.
3913         (do_mixed_source_and_assembly): New function.
3914         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3915         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3916         DISASSEMBLY_SOURCE.  All uses updated.
3917         (DISASSEMBLY_SOURCE): New macro.
3918         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3919
3920 2015-08-14  Keith Seitz  <keiths@redhat.com>
3921
3922         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3923         `typename' to `type_name' to avoid C++ reserved word.
3924
3925 2015-08-14  Keith Seitz  <keiths@redhat.com>
3926
3927         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3928         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3929         silence ARI errors.
3930
3931 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3932
3933         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3934         xstrprintf instead of malloc and sprintf.
3935         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3936         (lex_one_token): Likewise.
3937
3938 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3939
3940         * solib-svr4.c (read_program_header): Add base_addr argument to
3941         report the runtime address of the segment.
3942         (find_program_interpreter): Update read_program_header call to pass
3943         a NULL pointer for the new argument.
3944         (scan_dyntag): Add ptr_addr argument to report the runtime address
3945         of the tag payload.
3946         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3947         read_program_header to get the base address of the dynamic segment.
3948         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3949         read_program_header.
3950         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3951
3952 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3953
3954         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3955
3956 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3957
3958         * d-exp.y (%union): Add voidval.
3959         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3960         name in the lexing stage.
3961         (PostfixExpression): Move symbol completion handling in grammar here
3962         from PrimaryExpression.
3963         (PrimaryExpression): Move routines to handle resolving identifier
3964         tokens in the grammar here from push_expression_name.
3965         (IdentifierExp): Remove the handling of alternating '.' and identifier
3966         tokens.
3967         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3968         (BasicType): Remove C-style typename rules.
3969         (d_type_from_name, d_module_from_name, push_variable)
3970         (push_fieldnames, push_type_name, push_module_name)
3971         (push_expression_name): Remove.
3972         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
3973         (token_and_value): New type.
3974         (token_fifo, popping, name_obstack): New globals.
3975         (classify_name): New function.
3976         (classify_inner_name): Likewise.
3977         (yylex): Likewise.
3978         (d_parse): Initialize token_fifo, popping and name_obstack.
3979
3980 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
3981
3982         * Makefile.in (SFILES): Add d-namespace.c.
3983         (COMMON_OBS): Add d-namespace.o.
3984         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3985         la_lookup_symbol_nonlocal callback function pointer.
3986         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3987         (d_lookup_nested_symbol): New declaration.
3988         * d-namespace.c: New file.
3989
3990 2015-08-13  Pedro Alves  <palves@redhat.com>
3991
3992         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3993         cleanup after the decref cleanup, not before.
3994
3995 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
3996
3997         * ada-lang.c: Include namespace.h
3998         (aux_add_nonlocal_symbols): Fix a function name in comment.
3999         (ada_add_block_renamings): New.
4000         (add_nonlocal_symbols): Add global renamings handling.
4001         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4002         to...
4003         (ada_add_all_symbols): ... this new function.
4004         (ada_add_block_symbols): Try to match the input name against the
4005         "using directives list", perform a recursive symbol lookup on
4006         the matched declarations.
4007         * block.h (struct block): Move the_namespace to top-level as
4008         namespace_info. Remove the language_specific field.
4009         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4010         * buildsym.h (using_directives): Rename into...
4011         (local_using_directives): ... this.
4012         (global_using_directives): New.
4013         (struct context_stack): Rename the using_directives field into
4014         local_using_directives.
4015         * buildsym.c (finish_block_internal): Deal with the proper
4016         using directives repository (local or global).
4017         (prepare_for_building): Reset local_using_directives. Assert
4018         that there is no pending global using directive.
4019         (reset_symtab_globals): Reset global_using_directives and
4020         local_using_directives.
4021         (end_symtab_get_static_block): Don't ignore symtabs that have
4022         only using directives.
4023         (push_context): Update references to local_using_directives.
4024         (buildsym_init): Do not reset using_directives.
4025         * cp-support.c: Include namespace.h.
4026         * cp-support.h (struct using_direct): Move to namespace.h.
4027         (cp_add_using_directives): Move to namespace.h.
4028         * cp-namespace.c: Include namespace.h
4029         (cp_add_using_directive): Move to namespace.c, rename it to
4030         add_using_directive, add a "using_directives" argument and use
4031         it as the pending using directives repository.  All callers
4032         updated.
4033         * dwarf2read.c (using_directives): New.
4034         (read_import_statement): Call using_directives.
4035         (read_func_scope): Update references to local_using_directives.
4036         (read_lexical_block_scope): Likewise.
4037         (read_namespace): Update the heading comment, call
4038         using_directives.
4039         * namespace.h: New file.
4040         * namespace.c: New file.
4041         * Makefile.in (SFILES): Add namespace.c.
4042         (COMMON_OBS): Add namespace.o
4043
4044 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4045
4046         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4047         compute RETADDR.
4048
4049 2015-08-12  Keith Seitz  <keiths@redhat.com>
4050
4051         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4052         reserved C++ keyword "explicit" to "explicit_loc".
4053         * breakpoint.c (create_overlay_event_breakpoint)
4054         (create_longjmp_master_breakpoint)
4055         (create_std_terminate_master_breakpoint)
4056         (create_exception_master_breakpoint, update_static_tracepoint):
4057         Rename reserved C++ keyword "explicit" to "explicit_loc".
4058         * completer.c (collect_explicit_location_matches)
4059         (explicit_location_completer): Rename reserved C++ keyword
4060         "explicit" to "explicit_loc".
4061         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4062         (canonicalize_linespec, create_sals_line_offset)
4063         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4064         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4065         "explicit" to "explicit_loc".
4066         * location.c (struct event_location) <explicit>: Rename to
4067         "explicit_loc".
4068         (initialize_explicit_location, new_explicit_location)
4069         (explicit_location_to_string_internal, explicit_location_to_linespec):
4070         Rename reserved C++ keyword "explicit" to "explicit_loc".
4071         * location.h (explicit_location_to_string)
4072         (explicit_location_to_linespec, initialize_explicit_location)
4073         (new_explicit_location): Rename reserved C++ keyword "explicit"
4074         to "explicit_loc".
4075         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4076         keyword "explicit" to "explicit_loc".
4077
4078 2015-08-12  Keith Seitz  <keiths@redhat.com>
4079
4080         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4081         and only call decode_line_1 when it is non-NULL.
4082
4083 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4084
4085         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4086         location address is not meaningful.
4087         (breakpoint_address_is_meaningful): Update comment.
4088
4089 2015-08-11  Keith Seitz  <keiths@redhat.com>
4090
4091         * NEWS: Mention explicit locations.
4092         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4093         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4094         (_initialize_breakpoint): Update documentation for
4095         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4096
4097 2015-08-11  Keith Seitz  <keiths@redhat.com>
4098
4099         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4100         explicit locations, options "--source", "--function",
4101         "--label", and "--line".
4102
4103 2015-08-11  Keith Seitz  <keiths@redhat.com>
4104
4105         * completer.c: Include location.h.
4106         (enum match_type): New enum.
4107         (location_completer): Rename to ...
4108         (linespec_completer): ... this.
4109         (collect_explicit_location_matches, backup_text_ptr)
4110         (explicit_location_completer): New functions.
4111         (location_completer): "New" function; handle linespec
4112         and explicit location completions.
4113         (complete_line_internal): Remove all location completer-specific
4114         handling.
4115         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4116         (find_toplevel_char): Export.
4117         (linespec_parse_line_offset): Export.
4118         Issue error if STRING is not numerical.
4119         (gdb_get_linespec_parser_quote_characters): New function.
4120         * linespec.h (linespec_parse_line_offset): Declare.
4121         (get_gdb_linespec_parser_quote_characters): Declare.
4122         (is_ada_operator): Declare.
4123         (find_toplevel_char): Declare.
4124         (linespec_lexer_lex_keyword): Declare.
4125         * location.c (explicit_to_event_location): New function.
4126         (explicit_location_lex_one): New function.
4127         (string_to_explicit_location): New function.
4128         (string_to_event_location): Handle explicit locations.
4129         * location.h (explicit_to_event_location): Declare.
4130         (string_to_explicit_location): Declare.
4131
4132 2015-08-11  Keith Seitz  <keiths@redhat.com>
4133
4134         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4135         linespec into explicit location.
4136         * breakpoint.c (create_overlay_breakpoint)
4137         (create_longjmp_master_breakpoint)
4138         (create_std_terminate_master_breakpoint)
4139         (create_exception_master_breakpoint): Convert linespec into explicit
4140         location.
4141         (update_static_tracepoint): Convert linespec into explicit location.
4142         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4143         location.h.
4144         (struct linespec) <expression, expr_pc, source_filename>
4145         <function_name, label_name, line_offset>: Replace with ...
4146         <explicit>: ... this.
4147         <is_linespec>: New member.
4148         (PARSER_EXPLICIT): New accessor macro.
4149         (undefined_label_error): New function.
4150         (source_file_not_found_error): New function.
4151         (linespec_parse_basic): The parser result is now an explicit location.
4152         Use PARSER_EXPLICIT to access it.
4153         Use undefined_label_error.
4154         (canonicalize_linespec): Convert canonical linespec into explicit
4155         location.
4156         Move string representation of location to explicit_location_to_linespec
4157         and use it and explicit_location_to_string to save string
4158         representations of the canonical location.
4159         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4160         explicit location.  Update all references.
4161         (convert_explicit_location_to_sals): New function.
4162         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4163         result's explicit location.
4164         (linespec_state_constructor): Initialize is_linespec.
4165         Use PARSER_EXPLICIT.
4166         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4167         result.
4168         (event_location_to_sals): For linespec locations, set is_linespec.
4169         Handle explicit locations.
4170         (decode_objc): 'ls' contains an explicit location now. Update all
4171         references.
4172         (symtabs_from_filename): Use source_file_not_found_error.
4173         * location.c (struct event_location.u) <explicit>: New member.
4174         (initialize_explicit_location): New function.
4175         (initialize_event_location): Initialize explicit locations.
4176         (new_explicit_location, get_explicit_location)
4177         (get_explicit_location_const): New functions.
4178         (explicit_to_string_internal): New function; most of contents moved
4179         from canonicalize_linespec.
4180         (explicit_location_to_string): New function.
4181         (explicit_location_to_linespec): New function.
4182         (copy_event_location, delete_event_location)
4183         (event_location_to_string_const, event_location_empty_p): Handle
4184         explicit locations.
4185         * location.h (enum offset_relative_sign, struct line_offset): Move
4186         here from linespec.h.
4187         (enum event_location_type): Add EXPLICIT_LOCATION.
4188         (struct explicit_location): New structure.
4189         (explicit_location_to_string): Declare.
4190         (explicit_location_to_linespec): Declare.
4191         (new_explicit_location, get_explicit_locationp
4192         (get_explicit_location_const, initialize_explicit_location): Declare.
4193
4194 2015-08-11  Keith Seitz  <keiths@redhat.com>
4195
4196         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4197         linespec for stap probe to probe location.
4198         * breakpoint.c (create_longjmp_master_breakpoint)
4199         (create_exception_master_breakpoint): Likewise.
4200         (break_command_1): Remove local variable `arg_cp'.
4201         Check location type to set appropriate breakpoint ops methods.
4202         (trace_command): Likewise.
4203         * linespec.c (event_location_to_sals): Assert on probe locations.
4204         * location.c (EL_PROBE): Add macro definition.
4205         (new_probe_location, get_probe_location): New functions.
4206         (copy_event_location, delete_event_location, event_location_to_string)
4207         (string_to_event_location, event_location_empty_p): Handle probe
4208         locations.
4209         * location.h (enum event_location_type): Add PROBE_LOCATION.
4210         (new_probe_location, get_probe_location): Declare.
4211         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4212         Convert linespec into probe location.
4213
4214 2015-08-11  Keith Seitz  <keiths@redhat.com>
4215
4216         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4217         Convert linespec to address location.
4218         * linespec.c (canonicalize_linespec): Do not handle address
4219         locations here.
4220         (convert_address_location_to_sals): New function; contents moved
4221         from ...
4222         (convert_linespc_to_sals): ... here.
4223         (parse_linespec): Remove address locations from linespec grammar.
4224         Remove handling of address locations.
4225         (linespec_lex_to_end): Remove handling of address linespecs.
4226         (event_location_to_sals): Handle ADDRESS_LOCATION.
4227         (linespec_expression_to_pc): Export.
4228         * linespec.h (linespec_expression_to_pc): Add declaration.
4229         * location.c (struct event_location.u) <address>: New member.
4230         (new_address_location, get_address_location): New functions.
4231         (copy_event_location, delete_event_location, event_location_to_string)
4232         (string_to_event_location, event_location_empty_p): Handle address
4233         locations.
4234         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4235         (new_address_location, get_address_location): Declare.
4236         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4237         to address location.
4238         * spu-tdep.c (spu_catch_start): Likewise.
4239
4240 2015-08-11  Keith Seitz  <keiths@redhat.com>
4241
4242         * ax-gdb.c: Include location.h.
4243         (agent_command_1) Use linespec location instead of address
4244         string.
4245         * break-catch-throw.c: Include location.h.
4246         (re_set_exception_catchpoint): Use linespec locations instead
4247         of address strings.
4248         * breakpoint.c: Include location.h.
4249         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4250         (create_std_terminate_master_breakpoint)
4251         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4252         Use linespec location instead of address string.
4253         (print_breakpoint_location):  Use locations and
4254         event_location_to_string.
4255         Print extra_string for pending locations for non-MI streams.
4256         (print_one_breakpoint_location): Use locations and
4257         event_location_to_string.
4258         (init_raw_breakpoint_without_location): Initialize b->location.
4259         (create_thread_event_breakpoint): Use linespec location instead of
4260         address string.
4261         (init_breakpoint_sal): Likewise.
4262         Only save extra_string if it is non-NULL and not the empty string.
4263         Use event_location_to_string instead of `addr_string'.
4264         Constify `p' and `endp'.
4265         Use skip_spaces_const/skip_space_const instead of non-const versions.
4266         Copy the location into the breakpoint.
4267         If LOCATION is NULL, save the breakpoint address as a linespec location
4268         instead of an address string.
4269         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4270         event_location. All uses updated.
4271         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4272         (parse_breakpoint_sals): Use locations instead of address strings.
4273         Remove check for empty linespec with conditional.
4274         Refactor.
4275         (decode_static_tracepoint_spec): Make argument const and update
4276         function.
4277         (create_breakpoint): Change `arg' to a struct event_location and
4278         rename.
4279         Remove `copy_arg' and `addr_start'.
4280         If EXTRA_STRING is empty, set it to NULL.
4281         Don't populate `canonical' for pending breakpoints.
4282         Pass `extra_string' to find_condition_and_thread.
4283         Clear `extra_string' if `rest' was NULL.
4284         Do not error with "garbage after location" if setting a dprintf
4285         breakpoint.
4286         Copy the location into the breakpoint instead of an address string.
4287         (break_command_1): Use string_to_event_location and pass this to
4288         create_breakpoint instead of an address string.
4289         Check against `arg_cp' for a probe linespec.
4290         (dprintf_command): Use string_to_event_location and pass this to
4291         create_breakpoint instead of an address string.
4292         Throw an exception if no format string was specified.
4293         (print_recreate_ranged_breakpoint): Use event_location_to_string
4294         instead of address strings.
4295         (break_range_command, until_break_command)
4296         (init_ada_exception_breakpoint): Use locations instead
4297         of address strings.
4298         (say_where): Print out extra_string for pending locations.
4299         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4300         the breakpoint.
4301         (base_breakpoint_create_sals_from_location): Use struct event_location
4302         instead of address string.
4303         Remove `addr_start' and `copy_arg' parameters.
4304         (base_breakpoint_decode_location): Use struct event_location instead of
4305         address string.
4306         (bkpt_re_set): Use locations instead of address strings.
4307         Use event_location_empty_p to check for unset location.
4308         (bkpt_print_recreate): Use event_location_to_string instead of
4309         an address string.
4310         Print out extra_string for pending locations.
4311         (bkpt_create_sals_from_location, bkpt_decode_location)
4312         (bkpt_probe_create_sals_from_location): Use struct event_location
4313         instead of address string.
4314         (bkpt_probe_decode_location): Use struct event_location instead of
4315         address string.
4316         (tracepoint_print_recreate): Use event_location_to_string to
4317         recreate the tracepoint.
4318         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4319         (tracepoint_probe_create_sals_from_location)
4320         (tracepoint_probe_decode_location): Use struct event_location
4321         instead of address string.
4322         (dprintf_print_recreate): Use event_location_to_string to recreate
4323         the dprintf.
4324         (dprintf_re_set): Remove check for valid/missing format string.
4325         (strace_marker_create_sals_from_location)
4326         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4327         (update_static_tracepoint): Use struct event_location instead of
4328         address string.
4329         (location_to_sals): Likewise.
4330         Pass `extra_string' to find_condition_and_thread.
4331         For newly resolved pending breakpoint locations, clear the location's
4332         string representation.
4333         Assert that the breakpoint's condition string is NULL when
4334         condition_not_parsed.
4335         (breakpoint_re_set_default, create_sals_from_location_default)
4336         (decode_location_default, trace_command, ftrace_command)
4337         (strace_command, create_tracepoint_from_upload): Use locations
4338         instead of address strings.
4339         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4340         Use struct event_location instead of address string.
4341         Update all uses.
4342         <decode_location>: Likewise.
4343         (struct breakpoint) <addr_string>: Change to struct event_location
4344         and rename `location'.
4345         <addr_string_range_end>: Change to struct event_location and rename
4346         `location_range_end'.
4347         (create_breakpoint): Use struct event_location instead of address
4348         string.
4349         * cli/cli-cmds.c: Include location.h.
4350         (edit_command, list_command): Use locations instead of address strings.
4351         * elfread.c: Include location.h.
4352         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4353         * guile/scm-breakpoint.c: Include location.h.
4354         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4355         (gdbscm_register_breakpoint): Use locations instead of address
4356         strings.
4357         * linespec.c: Include location.h.
4358         (struct ls_parser) <stream>: Change to const char *.
4359         (PARSER_STREAM): Update.
4360         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4361         keywords must be followed by whitespace.
4362         (canonicalize_linespec): Save a linespec location into `canonical'.
4363         Save a canonical linespec into `canonical'.
4364         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4365         All uses updated.
4366         Update function description.
4367         (linespec_parser_new): Initialize `parser'.
4368         Update initialization of  parsing stream.
4369         (event_location_to_sals): New function.
4370         (decode_line_full): Change `argptr' to a struct event_location and
4371         rename it `location'.
4372         Use locations instead of address strings.
4373         Call event_location_to_sals instead of parse_linespec.
4374         (decode_line_1): Likewise.
4375         (decode_line_with_current_source, decode_line_with_last_displayed)
4376         Use locations instead of address strings.
4377         (decode_objc): Likewise.
4378         Change `argptr' to const char * and rename `arg'.
4379         (destroy_linespec_result): Delete the linespec result's location
4380         instead of freeing the address string.
4381         * linespec.h (struct linespec_result) <addr_string>: Change to
4382         struct event_location and rename to ...
4383         <location>: ... this.
4384         (decode_line_1, decode_line_full): Change `argptr' to struct
4385         event_location.  All callers updated.
4386         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4387         (mi_cmd_break_insert_1): Use locations instead of address strings.
4388         Throw an error if there was "garbage" at the end of the specified
4389         linespec.
4390         * probe.c: Include location.h.
4391         (parse_probes): Change `argptr' to struct event_location.
4392         Use event locations instead of address strings.
4393         * probe.h (parse_probes): Change `argptr' to struct event_location.
4394         * python/py-breakpoint.c: Include location.h.
4395         (bppy_get_location): Constify local variable `str'.
4396         Use event_location_to_string.
4397         (bppy_init): Use locations instead of address strings.
4398         * python/py-finishbreakpoint.c: Include location.h.
4399         (bpfinishpy_init): Remove local variable `addr_str'.
4400         Use locations instead of address strings.
4401         * python/python.c: Include location.h.
4402         (gdbpy_decode_line): Use locations instead of address strings.
4403         * remote.c: Include location.h.
4404         (remote_download_tracepoint): Use locations instead of address
4405         strings.
4406         * spu-tdep.c: Include location.h.
4407         (spu_catch_start): Remove local variable `buf'.
4408         Use locations instead of address strings.
4409         * tracepoint.c: Include location.h.
4410         (scope_info): Use locations instead of address strings.
4411         (encode_source_string): Constify parameter `src'.
4412         * tracepoint.h (encode_source_string): Likewise.
4413
4414 2015-08-11  Keith Seitz  <keiths@redhat.com>
4415
4416         * Makefile.in (SFILES): Add location.c.
4417         (HFILES_NO_SRCDIR): Add location.h.
4418         (COMMON_OBS): Add location.o.
4419         * linespec.c (linespec_lex_to_end): New function.
4420         * linespec.h (linespec_lex_to_end): Declare.
4421         * location.c: New file.
4422         * location.h: New file.
4423
4424 2015-08-11  Keith Seitz  <keiths@redhat.com>
4425
4426         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4427         Renamed to create_sals_from_location.
4428         <decode_linespec>: Renamed to decode_location.
4429         Update all callers.
4430         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4431         (create_sals_from_location_default): ... this.
4432         (addr_string_to_sals): Renamed to ...
4433         (location_to_sals): ... this.
4434         (decode_linespec_default): Renamed to ...
4435         (decode_location_default): ... this.
4436         (base_breakpoint_create_sals_from_address): Renamed to ...
4437         (base_breakpoint_create_sals_from_location): ... this.
4438         (bkpt_create_sals_from_address): Renamed to ...
4439         (bkpt_create_sals_from_location): ... this.
4440         (bkpt_decode_linespec): Renamed to ...
4441         (bkpt_decode_location): ... this.
4442         (bkpt_probe_create_sals_from_address): Renamed to ...
4443         (bkpt_probe_create_sals_from_location): ... this.
4444         (tracepoint_create_sals_from_address): Renamed to ...
4445         (tracepoint_create_sals_from_location): ... this.
4446         (tracepoint_decode_linespec): Renamed to ...
4447         (tracepoint_decode_location): ... this.
4448         (tracepoint_probe_create_sals_from_address): Renamed to ...
4449         (tracepoint_probe_create_sals_from_location): ... this.
4450         (tracepoint_probe_decode_linespec): Renamed to ...
4451         (tracepoint_probe_decode_location): ... this.
4452         (strace_marker_create_sals_from_address): Renamed to ...
4453         (strace_marker_create_sals_from_location): ... this.
4454         (decode_linespec_default): Renamed to ...
4455         (decode_location_default): ... this.
4456
4457 2015-08-10  Doug Evans  <dje@google.com>
4458             Keith Seitz  <keiths@redhat.com>
4459
4460         PR gdb/17960
4461         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4462         make_file_symbol_completion_list and made static.
4463         (make_file_symbol_completion_list): New function.
4464
4465 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4466
4467         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4468         trailing new-line at end of warning message.
4469         (proceed): Add i18n marker to error messages.
4470
4471 2015-08-07  Pedro Alves  <palves@redhat.com>
4472
4473         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4474
4475 2015-08-07  Pedro Alves  <palves@redhat.com>
4476
4477         * s390-linux-tdep.c (is_non_branch_ril)
4478         (s390_displaced_step_copy_insn): New functions.
4479         (s390_displaced_step_fixup): Update comment.
4480         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4481         gdbarch_displaced_step_copy_insn hook.
4482
4483 2015-08-07  Pedro Alves  <palves@redhat.com>
4484
4485         * infrun.c (displaced_step_prepare_throw): Return -1 if
4486         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4487         comment.
4488         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4489         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4490         in file.
4491         (ppc_displaced_step_copy_insn): New function.
4492         (ppc_displaced_step_fixup): Update comment.
4493         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4494         gdbarch_displaced_step_copy_insn hook.
4495         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4496         NULL return.
4497         * gdbarch.h: Regenerate.
4498
4499 2015-08-07  Pedro Alves  <palves@redhat.com>
4500
4501         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4502         field.
4503         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4504         Return false if dispaced stepping failed before.
4505         (resume): Pass the current inferior to
4506         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4507         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4508         displaced_stepping_failed flag, and fall back to an in-line
4509         step-over.
4510
4511 2015-08-07  Pedro Alves  <palves@redhat.com>
4512
4513         * darwin-nat.c (darwin_stop): Rename to ...
4514         (darwin_interrupt): ... this.
4515         (_initialize_darwin_inferior): Adjust.
4516         * gnu-nat.c (gnu_stop): Delete.
4517         (gnu_target): Don't install gnu_stop.
4518         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4519         (inf_ptrace_interrupt): ... this.
4520         (inf_ptrace_target): Adjust.
4521         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4522         target_stop.
4523         * linux-nat (linux_nat_stop): Rename to ...
4524         (linux_nat_interrupt): ... this.
4525         (linux_nat_stop): Reimplement.
4526         (linux_nat_add_target): Install linux_nat_interrupt.
4527         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4528         (nto_handle_sigint_twice): ... this.
4529         (nto_interrupt): Rename to ...
4530         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4531         target_stop.
4532         (procfs_wait): Adjust.
4533         (procfs_stop): Rename to ...
4534         (procfs_interrupt): ... this.
4535         (init_procfs_targets): Adjust.
4536         * procfs.c (procfs_stop): Rename to ...
4537         (procfs_interrupt): ... this.
4538         (procfs_target): Adjust.
4539         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4540         (m32r_interrupt): ... this.
4541         (init_m32r_ops): Adjust.
4542         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4543         (gdbsim_interrupt_inferior): ... this.
4544         (gdbsim_stop): Rename to ...
4545         (gdbsim_interrupt): ... this.
4546         (gdbsim_cntrl_c): Adjust.
4547         (init_gdbsim_ops): Adjust.
4548         * remote.c (sync_remote_interrupt): Adjust comments.
4549         (remote_stop_as): Rename to ...
4550         (remote_interrupt_as): ... this.
4551         (remote_stop): Adjust comment.
4552         (remote_interrupt): New function.
4553         (init_remote_ops): Install remote_interrupt.
4554         * target.c (target_interrupt): New function.
4555         * target.h (struct target_ops) <to_interrupt>: New field.
4556         (target_interrupt): New declaration.
4557         * windows-nat.c (windows_stop): Rename to ...
4558         (windows_interrupt): ... this.
4559         * target-delegates.c: Regenerate.
4560
4561 2015-08-07  Pedro Alves  <palves@redhat.com>
4562
4563         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4564         threads" as alternative to "switching back to stepped thread".
4565
4566 2015-08-07  Pedro Alves  <palves@redhat.com>
4567
4568         * NEWS: Mention "maint set/show target-non-stop".
4569         * breakpoint.c (update_global_location_list): Check
4570         target_is_non_stop_p instead of non_stop.
4571         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4572         * infrun.c (show_can_use_displaced_stepping)
4573         (can_use_displaced_stepping_p, start_step_over_inferior):
4574         Likewise.
4575         (internal_resume_ptid): New function.
4576         (resume): Use it.
4577         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4578         all-stop mode but the target is always in non-stop mode, start all
4579         the other threads that are implicitly resumed too.
4580         (for_each_just_stopped_thread, fetch_inferior_event)
4581         (adjust_pc_after_break, stop_all_threads): Check
4582         target_is_non_stop_p instead of non_stop.
4583         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4584         with the target always in non-stop mode.
4585         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4586         instead of non_stop.
4587         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4588         instead of non_stop.
4589         (keep_going_stepped_thread): Use internal_resume_ptid.
4590         (stop_waiting): If in all-stop mode, and the target is in non-stop
4591         mode, stop all threads.
4592         (keep_going_pass): Likewise, when starting a new in-line step-over
4593         sequence.
4594         * linux-nat.c (get_pending_status, select_event_lwp)
4595         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4596         target_is_non_stop_p instead of non_stop.
4597         (linux_nat_always_non_stop_p): New function.
4598         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4599         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4600         * target-delegates.c: Regenerate.
4601         * target.c (target_is_non_stop_p): New function.
4602         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4603         (maint_set_target_non_stop_command)
4604         (maint_show_target_non_stop_command): New functions.
4605         (_initilize_target): Install "maint set/show target-non-stop"
4606         commands.
4607         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4608         (target_non_stop_enabled): New declaration.
4609         (target_is_non_stop_p): New declaration.
4610
4611 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4612
4613         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4614         has a pending status, return true.
4615         * gdbthread.h: Include target/waitstatus.h.
4616         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4617         stop_pc>: New fields.
4618         (struct thread_info) <resumed>: New field.
4619         (set_resumed): Declare.
4620         * infrun.c: Include "event-loop.h".
4621         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4622         (infrun_async): New function.
4623         (clear_step_over_info): Add debug output.
4624         (displaced_step_in_progress_any_inferior): New function.
4625         (displaced_step_fixup): New returns int.
4626         (start_step_over): Handle in-line step-overs too.  Assert the
4627         thread is marked resumed.
4628         (resume_cleanups): Clear the thread's resumed flag.
4629         (resume): Set the thread's resumed flag.  Return early if the
4630         thread has a pending status.  Allow stepping a breakpoint with no
4631         signal.
4632         (proceed): Adjust to check 'resumed' instead of 'executing'.
4633         (clear_proceed_status_thread): If the thread has a pending status,
4634         and that status is a finished step, discard the pending status.
4635         (clear_proceed_status): Don't clear step_over_info here.
4636         (random_pending_event_thread, do_target_wait): New functions.
4637         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4638         do_target_wait.
4639         (wait_one): New function.
4640         (THREAD_STOPPED_BY): New macro.
4641         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4642         (thread_stopped_by_hw_breakpoint): New functions.
4643         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4644         functions.
4645         (handle_inferior_event): Also call set_resumed(false) on all
4646         threads implicitly stopped by the event.
4647         (restart_threads, resumed_thread_with_pending_status): New
4648         functions.
4649         (finish_step_over): If we were doing an in-line step-over before,
4650         and no longer are after trying to start a new step-over, restart
4651         all threads.  If we have multiple threads with pending events,
4652         save the current event and go through the event loop again.
4653         (handle_signal_stop): Return early if finish_step_over returns
4654         false.
4655         <random signal>: If we get a signal while stepping over a
4656         breakpoint in-line in non-stop mode, restart all threads.  Clear
4657         step_over_info before delivering the signal.
4658         (keep_going_stepped_thread): Use internal_error instead of
4659         gdb_assert.  Mark the thread as resumed.
4660         (keep_going_pass_signal): Assert the thread isn't already resumed.
4661         If some other thread is doing an in-line step-over, defer the
4662         resume.  If we just started a new in-line step-over, stop all
4663         threads.  Don't clear step_over_info.
4664         (infrun_async_inferior_event_handler): New function.
4665         (_initialize_infrun): Create async event handler with
4666         infrun_async_inferior_event_handler as callback.
4667         (infrun_async): New declaration.
4668         * target.c (target_async): New function.
4669         * target.h (target_async): Declare macro and readd as function
4670         declaration.
4671         * target/waitstatus.h (enum target_stop_reason)
4672         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4673         * thread.c (new_thread): Clear the new waitstatus field.
4674         (set_resumed): New function.
4675
4676 2015-08-07  Pedro Alves  <palves@redhat.com>
4677
4678         * infrun.c (keep_going_stepped_thread): New function, factored out
4679         from ...
4680         (switch_back_to_stepped_thread): ... here.
4681
4682 2015-08-07  Pedro Alves  <palves@redhat.com>
4683
4684         * infrun.c (currently_stepping): Extend intro comment.
4685         * target.h (target_resume): Extend intro comment.
4686
4687 2015-08-07  Pedro Alves  <palves@redhat.com>
4688
4689         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4690         of inferior_ptid.  If the stepped thread vanished, return 0
4691         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4692         the current stop_pc in log message.  Clear trap_expected if the
4693         thread advanced.  Don't pass currently_stepping to
4694         do_target_resume.
4695
4696 2015-08-07  Pedro Alves  <palves@redhat.com>
4697
4698         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4699         * infrun.c (struct execution_control_state): Move higher up in the
4700         file.
4701         (reset_ecs): New function.
4702         (start_step_over): Now returns int.  Rewrite to use
4703         keep_going_pass_signal instead of manually starting a displaced step.
4704         (resume): Don't call set_running here.  If displaced stepping
4705         can't start now, clear trap_expected.
4706         (find_thread_needs_step_over): Delete function.
4707         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4708         If the current thread needs a step over, push it in the step-over
4709         chain.  Don't set insert breakpoints nor call resume directly
4710         here.  Instead rewrite to use start_step_over and
4711         keep_going_pass_signal.
4712         (finish_step_over): New function.
4713         (handle_signal_stop): Call finish_step_over instead of
4714         start_step_over.
4715         (switch_back_to_stepped_thread): If the event thread needs another
4716         step-over do that first.  Use start_step_over.
4717         (keep_going_pass_signal): New function, factored out from ...
4718         (keep_going): ... here.
4719         (_initialize_infrun): Comment moved here.
4720         * thread.c (set_running_thread): New function.
4721         (set_running, finish_thread_state): Use set_running_thread.
4722
4723 2015-08-07  Pedro Alves  <palves@redhat.com>
4724
4725         * gdbthread.h (struct thread_info) <step_over_prev,
4726         step_over_next>: New fields.
4727         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4728         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4729         declarations.
4730         * infrun.c (struct displaced_step_request): Delete.
4731         (struct displaced_step_inferior_state) <step_request_queue>:
4732         Delete field.
4733         (displaced_step_prepare): Assert that trap_expected is set.  Use
4734         thread_step_over_chain_enqueue.  Split starting a new displaced
4735         step to ...
4736         (start_step_over): ... this new function.
4737         (resume): Assert the thread isn't waiting for a step over already.
4738         (proceed): Assert the thread isn't waiting for a step over
4739         already.
4740         (infrun_thread_stop_requested): Adjust to remove threads from the
4741         embedded step-over chain.
4742         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4743         displaced_step_fixup.
4744         (handle_signal_stop): Call start_step_over after
4745         displaced_step_fixup.
4746         * infrun.h (step_over_queue_head): New declaration.
4747         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4748         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4749         (thread_step_over_chain_enqueue)
4750         (thread_step_over_chain_remove): New functions.
4751         (delete_thread_1): Remove thread from the step-over chain.
4752
4753 2015-08-07  Pedro Alves  <palves@redhat.com>
4754
4755         * infrun.c (thread_still_needs_step_over): Rename to ...
4756         (thread_still_needs_step_over_bp): ... this.
4757         (enum step_over_what): New.
4758         (thread_still_needs_step_over): Reimplement.
4759
4760 2015-08-07  Pedro Alves  <palves@redhat.com>
4761
4762         * remote.c (remote_wait_as): If not waiting for a stop reply,
4763         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4764         requested, don't block waiting forever.
4765
4766 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4767
4768         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4769         waitstatus pointers instead of an ecs.  Adjust.
4770         (handle_inferior_event): Adjust caller.
4771
4772 2015-08-07  Pedro Alves  <palves@redhat.com>
4773
4774         * infrun.c (handle_inferior_event): If we get
4775         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4776         mode, mark all threads of the exiting process as not-executing.
4777         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4778         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4779         exiting process, if inferior_ptid still points at a process.
4780         * thread.c (struct current_thread_cleanup) <next>: New field.
4781         (current_thread_cleanup_chain): New global.
4782         (restore_current_thread_ptid_changed): New function.
4783         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4784         current_thread_cleanup_chain list.
4785         (make_cleanup_restore_current_thread): Add the cleanup data to the
4786         current_thread_cleanup_chain list.
4787         (_initialize_thread): Install restore_current_thread_ptid_changed
4788         as thread_ptid_changed observer.
4789
4790 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4791
4792         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4793         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4794         smaller than expected.
4795
4796 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4797
4798         * stack.c (get_frame_language): Moved ...
4799         * frame.c (get_frame_language): ... to here.
4800         * language.h (get_frame_language): Declaration moved to frame.h.
4801         * frame.h: Add language.h include, for language enum.
4802         (get_frame_language): Declaration moved from language.h.
4803         * language.c: Add frame.h include.
4804         * top.c: Add frame.h include.
4805         * symtab.h (struct obj_section): Declare.
4806         (struct cmd_list_element): Declare.
4807
4808 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4809
4810         * language.c (show_language_command): Find selected frame before
4811         asking for the language of that frame.
4812         (set_language_command): Likewise.
4813         * language.h (get_frame_language): Add frame parameter.
4814         * stack.c (get_frame_language): Add frame parameter, assert
4815         parameter is not NULL, update comment and reindent.
4816         * top.c (check_frame_language_change): Pass the selected frame
4817         into get_frame_language.
4818
4819 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4820
4821         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4822         (pt_btrace_insn_flags): New.
4823         (ftrace_add_pt): Call pt_btrace_insn_flags.
4824         * btrace.h (btrace_insn_flag): New.
4825         (btrace_insn) <flags>: New.
4826         * record-btrace.c (btrace_insn_history): Print insn prefix.
4827         * NEWS: Announce it.
4828
4829 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4830
4831         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4832         * configure: Regenerate.
4833
4834 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4835
4836         * Makefile.in (LIBICONV): Define.
4837         (CLIBS): Add LIBICONV.
4838         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4839         * configure: Regenerate.
4840
4841 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4842             Pedro Alves  <palves@redhat.com>
4843
4844         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4845         (arm_set_abi): Likewise.
4846         * ax-general.c (ax_print): Likewise.
4847         * c-exp.y (exp : string_exp): Likewise.
4848         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4849         (do_compile_dwarf_expr_to_c): Likewise.
4850         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4851         Likewise.
4852         * dwarf2expr.c (execute_stack_op): Likewise.
4853         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4854         (disassemble_dwarf_expression): Likewise.
4855         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4856         (read_array_order): Likewise.
4857         (abbrev_table_read_table): Likewise.
4858         (read_attribute_value): Likewise.
4859         (skip_unknown_opcode): Likewise.
4860         (dwarf_decode_macro_bytes): Likewise.
4861         (dwarf_decode_macros): Likewise.
4862         * eval.c (value_f90_subarray): Likewise.
4863         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4864         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4865         * infrun.c (handle_command): Likewise.
4866         * memory-map.c (memory_map_start_memory): Likewise.
4867         * osabi.c (set_osabi): Likewise.
4868         * parse.c (operator_length_standard): Likewise.
4869         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4870         single return point.
4871         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4872         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4873         (gdbpy_lookup_global_symbol): Likewise.
4874         * record-full.c (record_full_restore): Likewise.
4875         * regcache.c (regcache_register_status): Likewise.
4876         (regcache_raw_read): Likewise.
4877         (regcache_cooked_read): Likewise.
4878         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4879         * symtab.c (initialize_ordinary_address_classes): Likewise.
4880         * target-debug.h (target_debug_print_signals): Likewise.
4881         * utils.c (do_restore_current_language): Likewise.
4882
4883 2015-08-06  Clem Dickey  <clemd@acm.org>
4884
4885         PR python/17136
4886         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4887
4888 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4889
4890         * complaints.c (enum complaint_series): Add newlines and remove
4891         out of date comment.
4892         (struct complaints) <series>: Change type to enum
4893         complaint_series and remove out of date comment.
4894         (symfile_complaint_hook): Use equivalent enum value
4895         ISOLATED_MESSAGE instead of 0.
4896
4897 2015-08-06  Pedro Alves  <palves@redhat.com>
4898
4899         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4900         returned > 0.
4901
4902 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
4903
4904         * common/agent.c (symbol_list) <required>: Remove.
4905
4906 2015-08-06  Pedro Alves  <palves@redhat.com>
4907
4908         * target/waitstatus.h (enum target_stop_reason)
4909         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4910
4911 2015-08-05  Pedro Alves  <palves@redhat.com>
4912             Joel Brobecker  <brobecker@adacore.com>
4913
4914         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4915         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4916         case where BS->STOP is not set.
4917
4918 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
4919
4920         * nat/gdb_thread_db.h: Add copyright header.
4921         Protect against multiple inclusion.
4922
4923 2015-08-05  Yao Qi  <yao.qi@linaro.org>
4924
4925         * aarch64-linux-nat.c (get_thread_id): Remove.
4926         (debug_reg_change_callback): Call ptid_get_lwp instead of
4927         get_thread_id.
4928         (fetch_gregs_from_thread): Likewise.
4929         (store_gregs_to_thread): Likewise.
4930         (fetch_fpregs_from_thread): Likewise.
4931         (store_fpregs_to_thread): Likewise.
4932         (aarch64_linux_get_debug_reg_capacity): Likewise.
4933         * arm-linux-nat.c (get_thread_id): Remove.
4934         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4935         * xtensa-linux-nat.c (get_thread_id): Remove.
4936         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4937         * arm-linux-nat.c (get_thread_id): Remove.
4938         (GET_THREAD_ID): Remove.
4939         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4940         (store_fpregs, fetch_regs, store_regs): Likewise.
4941         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4942         (fetch_vfp_regs, store_vfp_regs): Likewise.
4943         (arm_linux_read_description): Likewise.
4944         (arm_linux_get_hwbp_cap): Likewise.
4945         * xtensa-linux-nat.c (get_thread_id): Remove.
4946         (GET_THREAD_ID): Remove.
4947         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4948         GET_THREAD_ID.
4949
4950 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
4951
4952         * python/py-linetable.c: Fix case of Linetable to LineTable
4953         in docstrings and code comments.
4954         * python/py-symtab.c: Same.
4955
4956 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4957
4958         * infcmd.c (signal_command): Call do_cleanups for args_chain.
4959
4960 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4961
4962         PR gdb/18767
4963         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4964         use.
4965
4966 2015-08-04  Pedro Alves  <palves@redhat.com>
4967
4968         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4969         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4970         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4971         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4972         (td_thr_validate_ftype, td_thr_get_info_ftype)
4973         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4974         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4975         New typedefs.
4976         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4977         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4978         local macros and use them instead of verbose_dlsym and dlsym
4979         calls.
4980
4981 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
4982
4983         * nios2-tdep.h: Include opcode/nios2.h here.
4984         (NIOS2_CDX_OPCODE_SIZE): New.
4985         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4986         * nios2-tdep.c: Don't include opcode/nios2.h here.
4987         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4988         4-byte read fails.
4989         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4990         (nios2_match_addi, nios2_match_orhi): Likewise.
4991         (nios2_match_stw, nios2_match_ldw): Likewise.
4992         (nios2_match_rdctl): Likewise.
4993         (nios2_match_stwm, nios2_match_ldwm): New.
4994         (nios2_match_branch): Add cases for R2 encodings.
4995         (nios2_match_jmpi, nios2_match_calli): Likewise.
4996         (nios2_match_jmpr, nios2_match_callr): Likewise.
4997         (nios2_match_break, nios2_match_trap): Likewise.
4998         (nios2_in_epilogue_p): Add R2 support.
4999         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5000         prologues.
5001         (nios2_breakpoint_from_pc): Handle R2 instructions.
5002         (nios2_get_next_pc): Likewise.  Adjust call to
5003         tdep->syscall_next_pc.
5004         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5005         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5006         instruction field macros instead of literal hex values.
5007         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5008         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5009         Use size field from OP instead of assuming all instructions
5010         are the same size.
5011         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5012
5013 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5014
5015         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5016         variable warning with some compilers.
5017
5018 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5019
5020         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5021         in comment.  Replace "rw" with "type".
5022         (arm_linux_remove_watchpoint): Change type of "rw" to
5023         "enum target_hw_bp_type".
5024
5025 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5026
5027         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5028         lookup_symbol.
5029         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5030         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5031         * mt-tdep.c (mt_skip_prologue): Likewise.
5032         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5033
5034 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5035
5036         * ada-exp.y (write_object_renaming): Replace struct
5037         ada_symbol_info with struct block_symbol.  Update field
5038         references accordingly.
5039         (block_lookup, select_possible_type_sym): Likewise.
5040         (find_primitive_type): Likewise.  Also update call to
5041         ada_lookup_symbol to extract the symbol itself.
5042         (write_var_or_type, write_name_assoc): Likewise.
5043         * ada-lang.h (struct ada_symbol_info): Remove.
5044         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5045         struct block_symbol.
5046         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5047         (ada_lookup_symbol): Return struct block_symbol instead of a
5048         mere symbol.
5049         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5050         with struct block_symbol.
5051         (resolve_subexp, ada_resolve_function, sort_choices,
5052         user_select_syms, is_nonfunction, add_defn_to_vec,
5053         num_defns_collected, defns_collected,
5054         symbols_are_identical_enums, remove_extra_symbols,
5055         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5056         ada_lookup_symbol_list, ada_iterate_over_symbols,
5057         ada_lookup_encoded_symbol, get_var_value): Likewise.
5058         (ada_lookup_symbol): Return a block_symbol instead of a mere
5059         symbol.  Replace struct ada_symbol_info with struct
5060         block_symbol.
5061         (ada_lookup_symbol_nonlocal): Likewise.
5062         (standard_lookup): Make block passing explicit through
5063         lookup_symbol_in_language.
5064         * ada-tasks.c (get_tcb_types_info): Update the calls to
5065         lookup_symbol_in_language to extract the mere symbol out of the
5066         returned value.
5067         (ada_tasks_inferior_data_sniffer): Likewise.
5068         * ax-gdb.c (gen_static_field): Likewise for the call to
5069         lookup_symbol.
5070         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5071         lookup functions.
5072         (gen_expr): Likewise.
5073         * c-exp.y: Likewise.  Remove uses of block_found.
5074         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5075         (classify_name): Likewise.  Rename the "sym" local variable to
5076         "bsym".
5077         * c-valprint.c (print_unpacked_pointer): Likewise.
5078         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5079         "sym" parameter from struct symbol * to struct block_symbol.
5080         Use it to remove uses of block_found.  Deal with struct
5081         block_symbol from lookup functions.
5082         (gcc_convert_symbol): Likewise.  Update the call to
5083         convert_symbol_sym.
5084         * compile/compile-object-load.c (compile_object_load): Deal with
5085         struct block_symbol from lookup functions.
5086         * cp-namespace.c (cp_lookup_nested_symbol_1,
5087         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5088         cp_search_static_and_baseclasses,
5089         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5090         cp_lookup_symbol_imports_or_template,
5091         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5092         lookup_namespace_scope, cp_lookup_nonlocal,
5093         find_symbol_in_baseclass): Return struct block_symbol instead of
5094         mere symbols and deal with struct block_symbol from lookup
5095         functions.
5096         * cp-support.c (inspect_type, replace_typedefs,
5097         cp_lookup_rtti_type): Deal with struct block_symbol from
5098         lookup functions.
5099         * cp-support.h (cp_lookup_symbol_nonlocal,
5100         cp_lookup_symbol_from_namespace,
5101         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5102         Return struct block_symbol instead of mere symbols.
5103         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5104         push_module_name):
5105         Deal with struct block_symbol from lookup functions.  Remove
5106         uses of block_found.
5107         * eval.c (evaluate_subexp_standard): Update call to
5108         cp_lookup_symbol_namespace.
5109         * f-exp.y: Deal with struct block_symbol from lookup functions.
5110         Remove uses of block_found.
5111         (yylex): Likewise.
5112         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5113         lookup_enum, lookup_template_type, check_typedef): Deal with
5114         struct block_symbol from lookup functions.
5115         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5116         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5117         (gdbscm_lookup_global_symbol): Likewise.
5118         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5119         * go-exp.y: Likewise.  Remove uses of block_found.
5120         (package_name_p, classify_packaged_name, classify_name):
5121         Likewise.
5122         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5123         * jv-exp.y (push_variable): Likewise.
5124         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5125         * language.c (language_bool_type): Likewise.
5126         * language.h (struct language_defn): Update
5127         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5128         than a mere symbol.
5129         * linespec.c (find_label_symbols): Deal with struct block_symbol
5130         from lookup functions.
5131         * m2-exp.y: Likewise.  Remove uses of block_found.
5132         (yylex): Likewise.
5133         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5134         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5135         * p-exp.y: Likewise.  Remove uses of block_found.
5136         (yylex): Likewise.
5137         * p-valprint.c (pascal_val_print): Likewise.
5138         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5139         block_found.
5140         * parser-defs.h (struct symtoken): Turn the SYM field into a
5141         struct block_symbol.
5142         * printcmd.c (address_info): Deal with struct block_symbol from
5143         lookup functions.
5144         * python/py-frame.c (frapy_read_var): Likewise.
5145         * python/py-symbol.c (gdbpy_lookup_symbol,
5146         gdbpy_lookup_global_symbol): Likewise.
5147         * skip.c (skip_function_command): Likewise.
5148         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5149         block_symbol instead of a mere symbol.
5150         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5151         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5152         * solib.c (solib_global_lookup): Likewise.
5153         * solist.h (solib_global_lookup): Likewise.
5154         (struct target_so_ops): Update lookup_lib_global_symbol to
5155         return a struct block_symbol rather than a mere symbol.
5156         * source.c (select_source_symtab): Deal with struct block_symbol
5157         from lookup functions.
5158         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5159         Likewise.
5160         * symfile.c (set_initial_language): Likewise.
5161         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5162         block_symbol.
5163         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5164         (struct symbol_cache_slot): Turn the FOUND field into a struct
5165         block_symbol.
5166         (block_found): Remove.
5167         (eq_symbol_entry): Update to deal with struct block_symbol in
5168         cache slots.
5169         (symbol_cache_lookup): Return a struct block_symbol rather than
5170         a mere symbol.
5171         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5172         appropriately the cache slots.  Update callers.
5173         (symbol_cache_dump): Update cache slots handling to the type
5174         change.
5175         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5176         lookup_symbol_aux, lookup_local_symbol,
5177         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5178         lookup_symbol_in_objfile_symtabs,
5179         lookup_symbol_in_objfile_from_linkage_name,
5180         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5181         lookup_symbol_in_static_block, lookup_static_symbol,
5182         lookup_global_symbol):
5183         Return a struct block_symbol rather than a mere symbol.  Deal
5184         with struct block_symbol from other lookup functions.  Remove
5185         uses of block_found.
5186         (lookup_symbol_in_block): Remove uses of block_found.
5187         (struct global_sym_lookup_data): Turn the RESULT field into a
5188         struct block_symbol.
5189         (lookup_symbol_global_iterator_cb): Update references to the
5190         RESULT field.
5191         (search_symbols): Deal with struct block_symbol from lookup
5192         functions.
5193         * symtab.h (struct block_symbol): New structure.
5194         (block_found): Remove.
5195         (lookup_symbol_in_language, lookup_symbol,
5196         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5197         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5198         lookup_global_symbol_from_objfile): Return a struct block_symbol
5199         rather than just a mere symbol.  Update comments to remove
5200         mentions of block_found.
5201         * valops.c (find_function_in_inferior,
5202         value_struct_elt_for_reference, value_maybe_namespace_elt,
5203         value_of_this):  Deal with struct block_symbol from lookup
5204         functions.
5205         * value.c (value_static_field, value_fn_field): Likewise.
5206
5207 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5208
5209         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5210         instead of integer.
5211
5212 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5213             Pedro Alves  <palves@redhat.com>
5214
5215         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5216         type or value instead of integer.
5217         (aarch64_linux_insert_watchpoint): Likewise.
5218         (aarch64_linux_remove_watchpoint): Likewise.
5219         * ada-lang.c (ada_op_print_tab): Likewise.
5220         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5221         (amd64_linux_syscall_record_common): Likewise.
5222         * arch-utils.c (target_byte_order_user): Likewise.
5223         (default_byte_order): Likewise.
5224         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5225         (arm_linux_get_hwbp_type): Likewise.
5226         (arm_linux_hw_watchpoint_initialize): Likewise.
5227         (arm_linux_insert_watchpoint): Likewise.
5228         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5229         (arm_linux_syscall_record): Likewise.
5230         * breakpoint.c (update_watchpoint): Likewise.
5231         (breakpoint_here_p): Likewise.
5232         (bpstat_print): Likewise.
5233         (enable_breakpoint_disp): Likewise.
5234         * c-lang.c (c_op_print_tab): Likewise.
5235         * cli/cli-decode.c (add_info_alias): Likewise.
5236         * d-lang.c (d_op_print_tab): Likewise.
5237         * eval.c (evaluate_subexp_standard): Likewise.
5238         * f-exp.y (dot_ops): Likewise.
5239         (f77_keywords): Likewise.
5240         * f-lang.c (f_op_print_tab): Likewise.
5241         * go-lang.c (go_op_print_tab): Likewise.
5242         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5243         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5244         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5245         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5246         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5247         (struct scm_from_stringn_data): Likewise.
5248         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5249         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5250         (ia64_linux_remove_watchpoint): Likewise.
5251         (ia64_linux_can_use_hw_breakpoint): Likewise.
5252         * infrun.c (print_stop_event): Likewise.
5253         * jv-lang.c (java_op_print_tab): Likewise.
5254         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5255         * linux-nat.h (struct lwp_info): Likewise.
5256         * linux-thread-db.c (enable_thread_event): Likewise.
5257         * m2-lang.c (m2_op_print_tab): Likewise.
5258         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5259         (mi_cmd_stack_list_variables): Likewise.
5260         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5261         * mi/mi-out.c (mi_table_begin): Likewise.
5262         (mi_table_header): Likewise.
5263         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5264         (mips_linux_insert_watchpoint): Likewise.
5265         (mips_linux_remove_watchpoint): Likewise.
5266         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5267         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5268         (mips_linux_watch_type_to_irw): Likewise.
5269         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5270         (procfs_insert_hw_watchpoint): Likewise.
5271         (procfs_remove_hw_watchpoint): Likewise.
5272         (procfs_hw_watchpoint): Likewise.
5273         (procfs_can_use_hw_breakpoint): Likewise.
5274         (procfs_remove_hw_watchpoint): Likewise.
5275         (procfs_insert_hw_watchpoint): Likewise.
5276         * p-lang.c (pascal_op_print_tab): Likewise.
5277         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5278         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5279         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5280         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5281         (procfs_insert_watchpoint): Likewise.
5282         (procfs_remove_watchpoint): Likewise.
5283         * psymtab.c (recursively_search_psymtabs): Likewise.
5284         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5285         (m32r_insert_watchpoint): Likewise.
5286         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5287         (mips_insert_watchpoint): Likewise.
5288         (mips_remove_watchpoint): Likewise.
5289         * remote.c (watchpoint_to_Z_packet): Likewise.
5290         (remote_insert_watchpoint): Likewise.
5291         (remote_remove_watchpoint): Likewise.
5292         (remote_check_watch_resources): Likewise.
5293         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5294         (s390_remove_watchpoint): Likewise.
5295         (s390_can_use_hw_breakpoint): Likewise.
5296         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5297         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5298         * target.h (struct target_ops): Likewise.
5299         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5300         * ui-out.c (struct ui_out_hdr): Likewise.
5301         (append_header_to_list): Likewise.
5302         (get_next_header): Likewise.
5303         (verify_field): Likewise.
5304         (ui_out_begin): Likewise.
5305         (ui_out_field_int): Likewise.
5306         (ui_out_field_fmt_int): Likewise.
5307         (ui_out_field_skip): Likewise.
5308         (ui_out_field_string): Likewise.
5309         (ui_out_field_fmt): Likewise.
5310         * varobj.c (new_variable): Likewise.
5311         * x86-nat.c (x86_insert_watchpoint): Likewise.
5312         (x86_remove_watchpoint): Likewise.
5313         (x86_can_use_hw_breakpoint): Likewise.
5314         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5315         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5316         previously anonymous enumeration type..
5317         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5318         value.
5319         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5320         (target_debug_print_enum_bptype): New.
5321         * target-delegates.c: Regenerate.
5322
5323 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5324
5325         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5326         already says and disallow non-stack memory writes in the prologue.
5327
5328 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5329
5330         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5331         reflect how current GCC emits stack overflow checks.  Match
5332         both trap and break instructions for backward compatbility.
5333         Disallow other trap and break instructions in the prologue.
5334
5335 2015-07-30  Pedro Alves  <palves@redhat.com>
5336
5337         PR threads/18600
5338         * linux-nat.c (wait_lwp): Report to the core when thread group
5339         leader exits.
5340
5341 2015-07-30  Pedro Alves  <palves@redhat.com>
5342             Simon Marchi  <simon.marchi@ericsson.com>
5343
5344         PR threads/18600
5345         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5346         mark the new thread as resumed.  Remove STOPPING parameter.
5347         (wait_lwp): Adjust call to linux_handle_extended_wait.
5348         (linux_nat_filter_event): Adjust call to
5349         linux_handle_extended_wait.
5350         (resume_stopped_resumed_lwps): Add debug output.
5351
5352 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5353
5354         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5355         isize argument.
5356         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5357         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5358         gdbarch_fast_tracepoint_valid_at.
5359         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5360         * gdbarch.h: Regenerate.
5361         * gdbarch.c: Regenerate.
5362         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5363         argument.  Do not set it.
5364         * remote.c (remote_download_tracepoint): Adjust call to
5365         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5366         the instruction length.
5367
5368 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5369
5370         * arm-tdep.h (enum gdb_regnum): Move it to ...
5371         * arch/arm.h: ... here.  New file.
5372         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5373
5374 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5375
5376         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5377         Change its type to int *.
5378         (decode_br): Rename link argument to is_blr.  Change its type to
5379         int *.
5380         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5381         int *.
5382         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5383         int *.  Set is_tbnz to either 1 or 0.
5384         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5385         new variables is_cbnz and is_tbnz.  Adjust call to
5386         aarch64_decode_cb and aarch64_decode_tb.
5387
5388 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5389
5390         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5391         parameter.
5392         (mips_linux_new_thread): Likewise.
5393         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5394
5395 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5396
5397         * top.c: Include "tui/tui.h".
5398         (undo_terminal_modifications_before_exit): New static function.
5399         (quit_force): Use it.
5400
5401 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5402
5403         * target.c (terminal_state): Initialize to terminal_is_ours.
5404
5405 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5406
5407         PR record/18691
5408         * dcache.c (dcache_read_memory_partial): Call
5409         raw_memory_xfer_partial.
5410         * target.c (raw_memory_xfer_partial): Make it non-static.
5411         * target.h (raw_memory_xfer_partial): Declare.
5412
5413 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5414
5415         * c-valprint.c (c_val_print_array): Consider addressable memory
5416         unit size.
5417         (c_val_print_ptr): Likewise.
5418         (c_val_print_int): Likewise.
5419         * findvar.c (read_frame_register_value): Likewise.
5420         * valarith.c (find_size_for_pointer_math): Likewise.
5421         (value_ptrdiff): Likewise.
5422         (value_subscripted_rvalue): Likewise.
5423         * valops.c (read_value_memory): Likewise (and rename variables).
5424         (value_assign): Likewise.
5425         (value_repeat): Likewise.
5426         (value_array): Likewise.
5427         (value_slice): Likewise.
5428         * valprint.c (generic_val_print_ptr): Likewise.
5429         (generic_val_print_enum): Likewise.
5430         (generic_val_print_bool): Likewise.
5431         (generic_val_print_int): Likewise.
5432         (generic_val_print_char): Likewise.
5433         (generic_val_print_float): Likewise.
5434         (generic_val_print_decfloat): Likewise.
5435         (generic_val_print_complex): Likewise.
5436         (val_print_scalar_formatted): Likewise.
5437         (val_print_array_elements): Likewise.
5438         * value.c (set_value_parent): Likewise.
5439         (value_contents_copy_raw): Likewise.
5440         (set_internalvar_component): Likewise.
5441         (value_primitive_field): Likewise.
5442         (value_fetch_lazy): Likewise.
5443         * value.h (read_value_memory): Update comment.
5444
5445 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5446
5447         * value.c (get_value_arch): New function.
5448         * value.h (get_value_arch): New declaration.
5449
5450 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5451
5452         * value.c (struct value): Update comments.
5453
5454 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5455
5456         * gdbtypes.c (type_length_units): New function.
5457         * gdbtypes.h (type_length_units): New declaration.
5458         (struct type) <length>: Update comment.
5459
5460 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5461
5462         * valprint.c (generic_val_print): Factor out complex
5463         printing code to ...
5464         (generic_val_print_complex): ... this new function.
5465
5466 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5467
5468         * valprint.c (generic_val_print): Factor out decfloat
5469         printing code to ...
5470         (generic_val_print_decfloat): ... this new function.
5471
5472 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5473
5474         * valprint.c (generic_val_print): Factor out float
5475         printing code to ...
5476         (generic_val_print_float): ... this new function.
5477
5478 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5479
5480         * valprint.c (generic_val_print): Factor out char
5481         printing code to ...
5482         (generic_val_print_char): ... this new function.
5483
5484 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5485
5486         * valprint.c (generic_val_print): Factor out integer
5487         printing code to ...
5488         (generic_val_print_int): ... this new function.
5489
5490 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5491
5492         * valprint.c (generic_val_print): Factor out bool
5493         printing code to ...
5494         (generic_val_print_bool): ... this new function.
5495
5496 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5497
5498         * valprint.c (generic_val_print): Factor out function/method
5499         printing code to ...
5500         (generic_val_print_func): ... this new function.
5501
5502 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5503
5504         * valprint.c (generic_val_print): Factor out flags
5505         printing code to ...
5506         (generic_val_print_flags): ... this new function.
5507
5508 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5509
5510         * valprint.c (generic_val_print): Factor out enum
5511         printing code to ...
5512         (generic_val_print_enum): ... this new function.
5513
5514 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5515
5516         * valprint.c (generic_val_print): Factor out reference
5517         printing code to ...
5518         (generic_val_print_ref): ... this new function.
5519
5520 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5521
5522         * valprint.c (generic_val_print): Factor out memberptr
5523         printing code to ...
5524         (generic_val_print_memberptr): ... this new function.
5525
5526 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5527
5528         * valprint.c (generic_val_print): Factor out pointer
5529         printing code to ...
5530         (generic_val_print_ptr): ... this new function.
5531
5532 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5533
5534         * valprint.c (generic_val_print): Factor out array
5535         printing code to ...
5536         (generic_val_print_array): ... this new function.
5537
5538 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5539
5540         * valprint.c (generic_val_print): Factor out
5541         print_unpacked_pointer code to ...
5542         (print_unpacked_pointer): ... this new function.
5543
5544 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5545
5546         * event-top.c (handle_sigterm): Don't inspect
5547         target_can_async_p.  Always set the quit flag and always mark
5548         the async signal handler.
5549
5550 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5551
5552         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5553
5554 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5555
5556         * remote.c (read_ptid): Return null_ptid when no thread id
5557         is found.
5558         (remote_current_thread): Add log warning for malformed
5559         qC reply.
5560         (remote_start_remote): Add log warning when current thread
5561         not found.
5562
5563 2015-07-24  Pedro Alves  <palves@redhat.com>
5564
5565         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5566         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5567         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5568
5569 2015-07-24  Pedro Alves  <palves@redhat.com>
5570
5571         PR gdb/18717
5572         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5573         is resumed, and extend the debug log.
5574
5575 2015-07-24  Pedro Alves  <palves@redhat.com>
5576
5577         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5578
5579 2015-07-24  Pedro Alves  <palves@redhat.com>
5580
5581         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5582         sys/ptrace.h.
5583         * alpha-linux-nat.c: Likewise.
5584         * amd64-linux-nat.c: Likewise.
5585         * arm-linux-nat.c: Likewise.
5586         * hppa-linux-nat.c: Likewise.
5587         * i386-linux-nat.c: Likewise.
5588         * ia64-linux-nat.c: Likewise.
5589         * linux-fork.c: Likewise.
5590         * linux-nat.c: Likewise.
5591         * m32r-linux-nat.c: Likewise.
5592         * m68klinux-nat.c: Likewise.
5593         * mips-linux-nat.c: Likewise.
5594         * nat/linux-btrace.c: Likewise.
5595         * nat/linux-ptrace.c: Likewise.
5596         * nat/linux-ptrace.h
5597         * nat/mips-linux-watch.c: Likewise.
5598         * nat/x86-linux-dregs.c: Likewise.
5599         * ppc-linux-nat.c: Likewise.
5600         * s390-linux-nat.c: Likewise.
5601         * spu-linux-nat.c: Likewise.
5602         * tilegx-linux-nat.c: Likewise.
5603         * x86-linux-nat.c: Likewise.
5604         * xtensa-linux-nat.c: Likewise.
5605
5606 2015-07-24  Pedro Alves  <palves@redhat.com>
5607
5608         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5609         __ptrace_request as first parameter type instead of int.
5610         (PTRACE_TYPE_ARG1): Define.
5611         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5612         that casts first argument to PTRACE_TYPE_ARG1.
5613         * config.in: Regenerate.
5614         * configure: Regenerate.
5615
5616 2015-07-24  Pedro Alves  <palves@redhat.com>
5617
5618         * gdb_ptrace.h: Move ...
5619         * nat/gdb_ptrace.h: ... here.
5620         * inf-ptrace.c: Adjust.
5621
5622 2015-07-24  Pedro Alves  <palves@redhat.com>
5623
5624         * acinclude.m4: Include ptrace.m4.
5625         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5626         * ptrace.m4: ... to this new file.
5627
5628 2015-07-23  Doug Evans  <dje@google.com>
5629
5630         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5631         (load_cu): Handle dummy CUs.
5632         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5633         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5634
5635 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5636
5637         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5638         documentation to say that it returns a list rather than
5639         a FrozenSet.
5640         (linetable_object_methods): Update the docstring of the
5641         "source_line" entry.
5642
5643 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5644
5645         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5646         type to the recursive call instead of the original (maybe
5647         TYPE_CODE_TYPEDEF) type.
5648
5649 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5650
5651         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5652         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5653         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5654
5655 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5656
5657         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5658         Move it to nat/aarch64-linux-hw-point.c.
5659         (aarch64_linux_child_post_startup_inferior): Update.
5660         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5661         New function.
5662         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5663         Declare it.
5664
5665 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5666
5667         * common/btrace-common.c (btrace_data_append): Change case label.
5668
5669 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5670
5671         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5672         Re-indent the code.
5673         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5674         "unsigned long long".
5675
5676 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5677
5678         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5679         to be set for SEC_ALLOC sections too.
5680
5681 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5682
5683         * Makefile.in (HFILES_NO_SRCDIR): Add
5684         nat/aarch64-linux-hw-point.h.
5685         (aarch64-linux-hw-point.o): New rule.
5686         * nat/aarch64-linux-hw-point.h: New file.
5687         * nat/aarch64-linux-hw-point.c: New file.
5688         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5689         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5690         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5691         (AARCH64_HWP_ALIGNMENT): Likewise.
5692         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5693         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5694         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5695         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5696         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5697         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5698         (struct aarch64_debug_reg_state): Likewise.
5699         (struct arch_lwp_info): Likewise.
5700         (aarch64_linux_set_debug_regs): Likewise.
5701         (aarch64_notify_debug_reg_change): Remove static.
5702         (aarch64_align_watchpoint): Likewise.
5703         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5704         (aarch64_watchpoint_length): Likewise.
5705         (aarch64_point_encode_ctrl_reg): Likewise
5706         (aarch64_point_is_aligned): Likewise.
5707         (aarch64_dr_state_insert_one_point): Likewise.
5708         (aarch64_dr_state_remove_one_point): Likewise.
5709         (aarch64_handle_breakpoint): Likewise.
5710         (aarch64_handle_aligned_watchpoint): Likewise.
5711         (aarch64_handle_unaligned_watchpoint): Likewise.
5712         (aarch64_handle_watchpoint): Likewise.
5713         * config/aarch64/linux.mh (NAT_FILE): Add
5714         aarch64-linux-hw-point.o.
5715
5716 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5717
5718         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5719         state and don't call aarch64_get_debug_reg_state.  All callers
5720         update.
5721         (aarch64_linux_insert_hw_breakpoint): Call
5722         aarch64_get_debug_reg_state earlier.
5723         (aarch64_linux_remove_hw_breakpoint): Likewise.
5724         (aarch64_handle_aligned_watchpoint): Add argument state and
5725         don't call aarch64_get_debug_reg_state.  All callers update.
5726         (aarch64_handle_unaligned_watchpoint): Likewise.
5727         (aarch64_handle_watchpoint): Add argument state.
5728         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5729         earlier.
5730         (aarch64_linux_remove_watchpoint): Likewise.
5731
5732 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5733
5734         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5735         debug_printf.
5736         (aarch64_handle_unaligned_watchpoint): Likewise.
5737
5738 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5739
5740         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5741         argument type's type to 'enum target_hw_bp_type'.
5742         (aarch64_dr_state_remove_one_point): Likewise.
5743         (aarch64_handle_breakpoint): Likewise.
5744         (aarch64_linux_insert_hw_breakpoint): Likewise.
5745         (aarch64_linux_remove_hw_breakpoint): Likewise.
5746         (aarch64_handle_aligned_watchpoint): Likewise.
5747
5748 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5749
5750         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5751         ptid_get_pid instead of get_thread_id.
5752
5753 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5754
5755         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5756         (add_current_inferior_and_thread): Don't initialise ptid.
5757
5758 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5759
5760         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5761         unavailable if invalid.
5762
5763 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5764
5765         Revert the previous 6 commits:
5766         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5767         Move gdb_regex* to common/
5768         Prepare linux_find_memory_regions_full & co. for move
5769         Move linux_find_memory_regions_full & co.
5770         gdbserver build-id attribute generator
5771         Validate symbol file using build-id
5772
5773 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5774             Jan Kratochvil  <jan.kratochvil@redhat.com>
5775
5776         Validate symbol file using build-id.
5777         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5778         and 'show validate-build-id'.  Add build-id attribute.
5779         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5780         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5781         * solib-frv.c (_initialize_frv_solib): Ditto.
5782         * solib-spu.c (set_spu_solib_ops): Ditto.
5783         * solib-svr4.c: Include rsp-low.h.
5784         (NOTE_GNU_BUILD_ID_NAME): New define.
5785         (svr4_validate): New function.
5786         (svr4_copy_library_list): Duplicate field build_id.
5787         (library_list_start_library): Parse 'build-id' attribute.
5788         (svr4_library_attributes): Add 'build-id' attribute.
5789         (_initialize_svr4_solib): Assign validate value.
5790         * solib-target.c (solib.h): Include.
5791         (_initialize_solib_target): Assign validate value.
5792         * solib.c (validate_build_id, show_validate_build_id): New.
5793         (solib_map_sections): Use ops->validate.
5794         (clear_so): Free build_id.
5795         (default_solib_validate): New function.
5796         (_initialize_solib): Add "validate-build-id".
5797         * solib.h (default_solib_validate): New declaration.
5798         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5799         (target_so_ops): New field 'validate'.
5800
5801 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5802             Jan Kratochvil  <jan.kratochvil@redhat.com>
5803
5804         gdbserver build-id attribute generator.
5805         * features/library-list-svr4.dtd (library-list-svr4): New
5806         'build-id' attribute.
5807
5808 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5809             Jan Kratochvil  <jan.kratochvil@redhat.com>
5810
5811         Move linux_find_memory_regions_full & co.
5812         * linux-tdep.c (nat/linux-maps.h): Include.
5813         (gdb_regex.h): Remove the include.
5814         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5815         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5816         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5817         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5818         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5819         and target/target.h.
5820         (struct smaps_vmflags, read_mapping, decode_vmflags)
5821         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5822         (linux_find_memory_regions_full): Move from linux-tdep.c.
5823         * nat/linux-maps.h (read_mapping): New declaration.
5824         (linux_find_memory_region_ftype, enum filterflags): Moved from
5825         linux-tdep.c.
5826         (linux_find_memory_regions_full): New declaration.
5827         * target.c (target/target-utils.h): Include.
5828         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5829         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5830         definitions to target/target-utils.c.
5831         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5832         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5833         from target.c.
5834         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5835         (read_alloc): New declaration.
5836         (read_stralloc_func_ftype): New typedef.
5837         (read_stralloc): New declaration.
5838         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5839
5840 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5841             Jan Kratochvil  <jan.kratochvil@redhat.com>
5842
5843         Prepare linux_find_memory_regions_full & co. for move.
5844         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5845         (linux_find_memory_regions_full): Change signature and prepare
5846         for moving to linux-maps.
5847         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5848         (linux_find_memory_regions_thunk): New.
5849         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5850         (linux_find_memory_regions_gdb): New.
5851         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5852         (linux_make_mappings_corefile_notes): Use
5853         linux_find_memory_regions_gdb.
5854         * target.c (read_alloc_pread_ftype): New typedef.
5855         (target_fileio_read_alloc_1_pread): New function.
5856         (read_alloc): Refactor from target_fileio_read_alloc_1.
5857         (read_stralloc_func_ftype): New typedef.
5858         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5859         (read_stralloc): Refactored from target_fileio_read_stralloc.
5860         (target_fileio_read_stralloc): New implementation, use read_stralloc.
5861
5862 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5863
5864         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5865         common/gdb_regex.h.
5866         (COMMON_OBS): Add gdb_regex.o.
5867         (gdb_regex.o): New.
5868         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5869         --without-included-regex and USE_INCLUDED_REGEX.
5870         * common/gdb_regex.c: New file from utils.c functions.
5871         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5872         file wrapping define name.
5873         * configure: Rebuilt.
5874         * configure.ac (gdb_use_included_regex, --without-included-regex)
5875         (USE_INCLUDED_REGEX): Move them to common/common.m4.
5876         * gdb_regex.h: Move it to common/gdb_regex.h.
5877         * utils.c: Remove include gdb_regex.h.
5878         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5879         (compile_rx_or_error): Move them to common/gdb_regex.c.
5880
5881 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5882             Jan Kratochvil  <jan.kratochvil@redhat.com>
5883
5884         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5885         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5886         common/target-utils.h.
5887         (COMMON_OBS): Add target-utils.o.
5888         (linux-maps.o, target-utils.o): New.
5889         * target/target-utils.c: New file.
5890         * target/target-utils.h: New file.
5891         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5892         * config/i386/linux64.mh (NATDEPFILES): Ditto.
5893         * nat/linux-maps.c: New file.
5894         * nat/linux-maps.h: New file.
5895
5896 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
5897             Pedro Alves <palves@redhat.com>
5898
5899         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5900         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5901         (perf_event_read_bts): Change the type of SIZE and READ.
5902         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5903         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
5904         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
5905         mmap page.
5906         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
5907         buffer size to UINT_MAX.
5908         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5909         DATA_TAIL.
5910         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5911         <last_head>: Change type.
5912         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5913         * common/btrace-common.c (btrace_data_append): Change the type of
5914         SIZE.
5915         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
5916         check.
5917
5918 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
5919
5920         * gdbtypes.h (CHECK_TYPEDEF): Remove.
5921         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5922         with check_typedef.
5923         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5924         (ada_array_length): Likewise.
5925         (find_parallel_type_by_descriptive_type): Likewise.
5926         (ada_check_typedef): Likewise.
5927         * arm-tdep.c (arm_return_in_memory): Likewise.
5928         * ax-gdb.c (gen_trace_static_fields): Likewise.
5929         (gen_struct_ref_recursive): Likewise.
5930         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5931         (variable: block COLONCOLON name): Likewise.
5932         (qualified_name: TYPENAME COLONCOLON name): Likewise.
5933         * c-lang.c (classify_type): Likewise.
5934         * c-typeprint.c (c_print_type): Likewise.
5935         (c_print_typedef): Likewise.
5936         (c_type_print_base): Likewise.
5937         * c-valprint.c (c_val_print): Likewise.
5938         * compile/compile-c-types.c (convert_type): Likewise.
5939         * compile/compile-object-load.c (get_out_value_type): Likewise.
5940         * completer.c (add_struct_fields): Likewise.
5941         (expression_completer): Likewise.
5942         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5943         (cp_lookup_nested_symbol_1): Likewise.
5944         (cp_lookup_nested_symbol): Likewise.
5945         * cp-valprint.c (cp_print_value_fields): Likewise.
5946         (cp_print_static_field): Likewise.
5947         * d-valprint.c (d_val_print): Likewise.
5948         * eval.c (evaluate_subexp_standard): Likewise.
5949         (evaluate_subexp_for_sizeof): Likewise.
5950         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5951         * f-typeprint.c (f_type_print_base): Likewise.
5952         * f-valprint.c (f_val_print): Likewise.
5953         * gdbtypes.c (get_discrete_bounds): Likewise.
5954         (create_array_type_with_stride): Likewise.
5955         (type_name_no_tag_or_error): Likewise.
5956         (lookup_struct_elt_type): Likewise.
5957         (get_unsigned_type_max): Likewise.
5958         (internal_type_vptr_fieldno): Likewise.
5959         (set_type_vptr_fieldno): Likewise.
5960         (internal_type_vptr_basetype): Likewise.
5961         (set_type_vptr_basetype): Likewise.
5962         (get_vptr_fieldno): Likewise.
5963         (is_integral_type): Likewise.
5964         (is_scalar_type): Likewise.
5965         (is_scalar_type_recursive): Likewise.
5966         (distance_to_ancestor): Likewise.
5967         (is_unique_ancestor_worker): Likewise.
5968         (check_types_equal): Likewise.
5969         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5970
5971 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5972
5973         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5974         also test for language_d.
5975         (dwarf2_compute_name): Likewise.
5976         (read_func_scope): Likewise.
5977         (read_structure_type): Likewise.
5978         (new_symbol_full): Likewise.
5979         (determine_prefix): Likewise.
5980         (read_import_statement): Use dot as the separator for language_d.
5981         (typename_concat): Likewise, but don't prefix the D main function.
5982
5983 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
5984
5985         * nat/linux-namespaces.c (setns): Rename from this ...
5986         (do_setns): ... to this.  Support calling setns if it exists.
5987         (mnsh_handle_setns): Call do_setns.
5988
5989 2015-07-13  Yao Qi  <yao.qi@linaro.org>
5990
5991         * exec.c (exec_file_attach): Add period at the end of error
5992         message.
5993
5994 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
5995
5996         * tui/tui-win.c (window_name_completer): New function.
5997         (focus_completer): Call window_name_completer.  All old content
5998         moved into window_name_completer.
5999         (winheight_completer): New function.
6000         (_initialize_tui_win): Rename variable.  Add completer to
6001         winheight command.  Update doc string on winheight.
6002
6003 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6004
6005         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6006         all nios2 mach variants.
6007
6008 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6009
6010         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6011         of target_read_memory.
6012
6013 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6014
6015         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6016         string copy.
6017         (parse_scrolling_args): Likewise.
6018
6019 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6020
6021         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6022         names in this function.
6023
6024 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6025
6026         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6027         (CMD_NAME): Likewise.
6028         (DATA_NAME): Likewise.
6029         (DISASSEM_NAME): Likewise.
6030         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6031         (tui_set_win_height): Likewise.
6032         (parse_scrolling_args): Likewise.
6033
6034 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6035
6036         * record-btrace.c (record_btrace_goto_begin)
6037         (record_btrace_goto_end, record_btrace_goto): Move call to
6038         print_stack_frame ...
6039         (record_btrace_set_replay): ... here.  Set stop_pc.
6040         * record-full.c (record_full_goto_entry): Set stop_pc.
6041
6042 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6043
6044         * NEWS: Mention support for tracepoints on aarch64-linux.
6045
6046 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6047
6048         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6049         function.  Return 1.
6050         (the_low_target): Install it.
6051
6052 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6053
6054         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6055         * gdb.trace/collection.exp: Likewise.
6056         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6057         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6058         * gdb.trace/report.exp: Likewise.
6059         * gdb.trace/trace-break.exp: Likewise.
6060         * gdb.trace/unavailable.exp: Likewise.
6061         * gdb.trace/while-dyn.exp: Likewise.
6062
6063 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6064
6065         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6066         (aarch64_gen_return_address): New function.
6067         (aarch64_gdbarch_init): Hook it.
6068
6069 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6070
6071         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6072         swallow NOT_AVAILABLE_ERROR.
6073         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6074         available_p is not set.
6075         (aarch64_stub_frame_unwind_stop_reason): New function.
6076         (aarch64_stub_unwind): Install it.
6077
6078 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6079
6080         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6081         field.
6082         (aarch64_make_prologue_cache_1): New function, factored out from
6083         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6084         available_p.
6085         (aarch64_make_prologue_cache): Reimplement wrapping
6086         aarch64_make_prologue_cache_1, and swallowing
6087         NOT_AVAILABLE_ERROR.
6088         (aarch64_prologue_frame_unwind_stop_reason): New function.
6089         Return UNWIND_UNAVAILABLE if available_p is not set.
6090         (aarch64_prologue_unwind): Install it.
6091         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6092         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6093         frame_id_build_unavailable_stack if available_p is not set.
6094
6095 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6096
6097         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6098         fields.
6099         (aarch64_scan_prologue): Set prev_pc.
6100         (aarch64_make_prologue_cache): Set func.
6101         (aarch64_make_stub_cache): Set prev_pc.
6102         (aarch64_prologue_this_id): Remove local variables id, pc and
6103         func.  Read prev_pc and func from cache.
6104         (aarch64_stub_this_id): Read prev_pc from cache.
6105
6106 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6107
6108         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6109         argument this_cache.  Remove unused local variables reg and
6110         unwound_fp.  Return early if this_cache is already set.  Set
6111         this_cache.
6112         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6113
6114 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6115
6116         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6117         New argument this_cache.  Return early if this_cache is already
6118         set.  Set this_cache.
6119         (aarch64_prologue_this_id): Update call to
6120         aarch64_make_prologue_cache.
6121         (aarch64_prologue_prev_register): Likewise.
6122         (aarch64_normal_frame_base): Likewise.
6123
6124 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6125
6126         * c-valprint.c (c_val_print): Factor out memberptr printing code
6127         from c_val_print to ...
6128         (c_val_print_memberptr): ... this new function.
6129
6130 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6131
6132         * c-valprint.c (c_val_print): Factor out int printing code to ...
6133         (c_val_print_int): ... this new function.
6134
6135 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6136
6137         * c-valprint.c (c_val_print): Factor out struct and union
6138         printing code to ...
6139         (c_val_print_struct): ... this new function ...
6140         (c_val_print_union): ... and this new function.
6141
6142 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6143
6144         * c-valprint.c (c_val_print): Factor out pointer printing code
6145         to ...
6146         (c_val_print_ptr): ... this new function.
6147
6148 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6149
6150         * c-valprint.c (c_valprint): Factor our array printing code from
6151         c_val_print to ...
6152         (c_val_print_array): ... this new function.
6153
6154 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6155
6156         * c-valprint.c (c_val_print): Factor out pointer printing code
6157         to ...
6158         (print_unpacked_pointer): ... this new function.
6159
6160 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6161
6162         * c-valprint.c (c_val_print): Remove an assignment to i and move
6163         its declaration.
6164
6165 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6166
6167         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6168         argument ptid.  Update comments.  Caller update.
6169
6170 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6171
6172         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6173         mnt packets.
6174
6175 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6176
6177         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6178
6179 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6180
6181         * progspace.c (delete_program_space): Add missing spaces.
6182
6183 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6184
6185         * inferior.c (delete_inferior_1): Rename to ...
6186         (delete_inferior): ..., remove 'silent' parameter, delete
6187         program space when unused and remove call to prune_program_spaces.
6188         Remove the old, unused, delete_inferior.
6189         (delete_inferior_silent): Remove.
6190         (prune_inferiors): Change call from delete_inferior_1 to
6191         delete_inferior and remove 'silent' parameter. Remove call to
6192         prune_program_spaces.
6193         (remove_inferior_command): Idem.
6194         * inferior.h (delete_inferior_1): Rename to...
6195         (delete_inferior): ..., remove 'silent' parameter and remove the
6196         original delete_inferior.
6197         (delete_inferior_silent): Remove.
6198         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6199         delete_inferior_1 to delete_inferior and remove 'silent'
6200         parameter.
6201         * progspace.c (prune_program_spaces): Remove.
6202         (pspace_empty_p): Rename to...
6203         (program_space_empty_p): ... and make non-static.
6204         (delete_program_space): New.
6205         * progspace.h (prune_program_spaces): Remove declaration.
6206         (program_space_empty_p): New declaration.
6207         (delete_program_space): New declaration.
6208         * monitor.c (monitor_close): Replace call to
6209         delete_thread_silent and delete_inferior_silent with
6210         discard_all_inferiors.
6211
6212 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6213
6214         * defs.h (deprecated_register_changed_hook): Remove prototype.
6215         * interps.c (clear_iterpreter_hooks): Remove reference to
6216         deprecated_register_changed_hook.
6217         * top.c (deprecated_register_changed_hook): Remove prototype.
6218         * valops.c (value_assign): Remove reference to
6219         deprecated_register_changed_hook.
6220         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6221         Add comment documenting the function.
6222         (tui_register_changed_observer): Define.
6223         (tui_install_hooks): Remove reference to
6224         deprecated_register_changed_hook.  Set
6225         tui_register_changed_observer.
6226         (tui_remove_hooks): Remove reference to
6227         deprecated_register_changed_hook.  Unset
6228         tui_register_changed_observer.
6229
6230 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6231
6232         PR compile/18484
6233         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6234
6235 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6236
6237         PR exp/18617
6238         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6239
6240 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6241
6242         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6243
6244 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6245
6246         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6247         Use safe_strerror() instead of strerror().
6248
6249 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6250
6251         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6252         * features/arm-with-m-fpa-layout.c: Regenerated.
6253         * features/arm-with-m-vfp-d16.xml: Likewise.
6254         * features/arm-with-m-vfp-d16.c: Regenerated.
6255         * features/arm-with-m.xml: Likewise.
6256         * features/arm-with-m.c: Regenerated.
6257         * features/arm-with-neon.xml: Likewise.
6258         * features/arm-with-neon.c: Regenerated.
6259         * features/arm-with-vfpv2.xml: Likewise.
6260         * features/arm-with-vfpv2.c: Regenerated.
6261         * features/arm-with-vfpv3.xml: Likewise.
6262         * features/arm-with-vfpv3.c: Regenerated.
6263
6264 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6265
6266         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6267         arm-linux-nat.c.
6268         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6269         elf/external.h.
6270         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6271         if target is 32-bit.
6272         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6273         if target is 32-bit.
6274         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6275         if target is 32-bit.
6276         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6277         if target is 32-bit.
6278         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6279         (aarch64_linux_read_description): Return the right target
6280         description.
6281         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6282         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6283         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6284         arm-linux-tdep.o.
6285
6286 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6287
6288         * aarch32-linux-nat.c: New file.
6289         * aarch32-linux-nat.h: New file.
6290         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6291         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6292         aarch32_gp_regcache_supply.
6293         (store_regs): Move code to aarch32-linux-nat.c.  Call
6294         aarch32_gp_regcache_collect.
6295         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6296         aarch32_vfp_regcache_supply.
6297         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6298         aarch32_vfp_regcache_collect.
6299         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6300
6301 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6302
6303         * arm-linux-nat.c (store_fpregister): Remove.
6304         (store_register): Likewise.
6305         (fetch_fpregister): Likewise.
6306         (fetch_register): Likewise.
6307         (arm_linux_store_inferior_registers): Call store_regs and
6308         store_fpregs instead.
6309         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6310         fetch_regs instead.
6311
6312 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6313
6314         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6315         and focus commands.
6316
6317 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6318
6319         * NEWS: Create a new section for the next release branch.
6320         Rename the section of the current branch, now that it has
6321         been cut.
6322
6323 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6324
6325         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6326         * version.in: Bump version to 7.10.50.DATE-cvs.
6327
6328 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6329
6330         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6331         breakpoints in a special way.
6332         (remove_breakpoint): Likewise.
6333         (mark_breakpoints_out): Likewise.
6334
6335 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6336
6337         * doc/gdb.texinfo (TUI): Add comma after @xref.
6338
6339 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6340
6341         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6342         instead of casting the structure type.
6343
6344 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6345
6346         * valops.c (search_struct_field): Remove OFFSET parameter.
6347         (value_cast_structs): Adjust calls to search_struct_field.
6348         (value_struct_elt): Same.
6349         (find_overload_match): Same.
6350
6351 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6352
6353         * value.c (value_fetch_lazy): Update comment, change return
6354         value to void.
6355         * value.h (value_fetch_lazy): Change return value to void.
6356
6357 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6358
6359         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6360         (tui_win_name): Make parameter and result const.
6361         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6362
6363 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6364
6365         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6366         use printf_unfiltered.
6367         (set_mpx_cmd): Add missing trailing space to command string
6368         literal.
6369         (_initialize_i386_tdep): Give the "mpx" prefix command its
6370         correct name.
6371
6372 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6373
6374         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6375         (enum rx_frame_type): New.
6376         (struct rx_prologue): Add new field `frame_type'.
6377         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6378         parameter in the prologue struct.  Add code for recording
6379         locations of PC and PSW for fast interrupt and exception frames.
6380         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6381         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6382         (rx_frame_type): New function.
6383         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6384         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6385         `this_cache'.
6386         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6387         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6388         RX_FRAME_TYPE_FAST_INTERRUPT.
6389         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6390         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6391         (rx_frame_unwind): Use rx_frame_sniffer instead of
6392         default_frame_sniffer.
6393         (rx_frame_unwind): New unwinder.
6394         (rx_gdbarch_init): Register new unwinder.
6395
6396 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6397
6398         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6399         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6400         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6401         and RX_FPSW_REGNUM.
6402         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6403
6404 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6405
6406         Fix GCC false warning.
6407         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6408
6409 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6410
6411         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6412         typo in the debugging message.
6413
6414 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6415
6416         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6417         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6418         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6419         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6420         (btrace_maint_clear): New.
6421         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6422         (pt_print_packet, btrace_maint_decode_pt)
6423         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6424         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6425         (maint_btrace_packet_history_cmd)
6426         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6427         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6428         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6429         (maint_info_btrace_cmd, _initialize_btrace): New.
6430         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6431         (btrace_maint_packet_history, btrace_maint_info): New.
6432         (btrace_thread_info) <maint>: New.
6433         * NEWS: Announce it.
6434
6435 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6436
6437         * btrace.c (btrace_fetch): Append the new trace data.
6438         (btrace_clear): Clear the stored trace data.
6439         * btrace.h (btrace_thread_info) <data>: New.
6440         * common/btrace-common.h (btrace_data_clear)
6441         (btrace_data_append): New.
6442         * common/btrace-common.c (btrace_data_clear)
6443         (btrace_data_append): New.
6444
6445 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6446
6447         * nat/linux-btrace.c (linux_enable_bts): Check for
6448         PERF_ATTR_SIZE_VER5.
6449         Check for data_offset and data_size fields.  Use them.
6450
6451 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6452
6453         * NEWS: Announce new commands "record btrace pt" and "record pt".
6454         Announce new options "set|show record btrace pt buffer-size".
6455         * btrace.c: Include "rsp-low.h".
6456         Include "inttypes.h".
6457         (btrace_add_pc): Add forward declaration.
6458         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6459         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6460         (btrace_compute_ftrace_pt): New.
6461         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6462         (check_xml_btrace_version): Update version check.
6463         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6464         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6465         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6466         (btrace_pt_children): New.
6467         (btrace_children): Add support for "pt".
6468         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6469         (btrace_conf_children): Add support for "pt".
6470         * btrace.h: Include "intel-pt.h".
6471         (btrace_pt_error): New.
6472         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6473         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6474         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6475         (struct btrace_config_pt): New.
6476         (struct btrace_config)<pt>: New.
6477         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6478         (struct btrace_data)<pt>: New.
6479         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6480         (pt): New.
6481         * features/btrace.dtd (btrace)<pt>: New.
6482         (pt, pt-config, cpu): New.
6483         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6484         (perf_event_pt_event_type, kernel_supports_pt)
6485         (linux_supports_pt): New.
6486         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6487         (linux_enable_bts): Free tinfo on error.
6488         (linux_enable_pt): New.
6489         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6490         (linux_disable_pt): New.
6491         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6492         (linux_fill_btrace_pt_config, linux_read_pt): New.
6493         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6494         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6495         (struct btrace_target_info)<pt>: New.
6496         * record-btrace.c (set_record_btrace_pt_cmdlist)
6497         (show_record_btrace_pt_cmdlist): New.
6498         (record_btrace_print_pt_conf): New.
6499         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6500         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6501         (cmd_record_btrace_pt_start): New.
6502         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6503         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6504         (_initialize_record_btrace): Add new commands.
6505         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6506         (remote_protocol_features): Add "Qbtrace:pt".
6507         Add "Qbtrace-conf:pt:size".
6508         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6509         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6510         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6511         (_initialize_remote): Add new commands.
6512
6513 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6514
6515         * configure.ac: check for libipt
6516         * configure: Regenerate.
6517         * config.in: Regenerate.
6518         * Makefile.in (LIBIPT): New.
6519         (CLIBS): Add $LIBIPT.
6520         * NEWS: document new configure options
6521
6522 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6523
6524         * compile/compile-object-load.c (compile_object_load): Replace debug
6525         message "lookup undefined ELF symbol" by 3 more specific messages.
6526
6527 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6528
6529         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6530         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6531         (rl78_gdbarch_init): Initialize rl78_psw_type.
6532
6533 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6534
6535         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6536         Update commentary.  Always refresh the registers when frame
6537         information has changed.
6538         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6539         Change return type to int.  Return 1 if frame information has
6540         changed, 0 otherwise.
6541         (tui_before_prompt): Update commentary.
6542         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6543         int.
6544
6545 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6546
6547         PR tui/13378
6548         * frame.c (select_frame): Remove reference to
6549         deprecated_selected_frame_level_changed_hook.
6550         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6551         declaration.
6552         * stack.c (deprecated_selected_frame_level_changed_hook):
6553         Likewise.
6554         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6555         Rename to ...
6556         (tui_refresh_frame_and_register_information): ... this.  Bail
6557         out if there is no stack.  Don't update register information
6558         unless registers_too_p is true.
6559         (tui_print_frame_info_listing_hook): Rename to ...
6560         (tui_dummy_print_frame_info_listing_hook): ... this.
6561         (tui_before_prompt): New function.
6562         (tui_normal_stop): New function.
6563         (tui_before_prompt_observer): New observer.
6564         (tui_normal_stop_observer): New observer.
6565         (tui_install_hooks): Set
6566         deprecated_print_frame_info_listing_hook to
6567         tui_dummy_print_frame_info_listing_hook.  Register
6568         tui_before_prompt_observer to call tui_before_prompt and
6569         tui_normal_stop_observer to call tui_normal_stop.  Remove
6570         reference to deprecated_selected_frame_level_changed_hook.
6571         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6572         and tui_normal_stop_observer.  Remove reference to
6573         deprecated_selected_frame_level_changed_hook.
6574
6575 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6576
6577         PR tui/13378
6578         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6579         return an int instead of void.  Return whether the locator
6580         window has changed.
6581         (tui_show_frame_info): If the locator info has not changed, then
6582         bail out early to avoid refreshing the windows.
6583
6584 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6585
6586         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6587         LOCATOR_WIN to tui_alloc_content.
6588
6589 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6590
6591         PR tdep/18605
6592         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6593         instructions.
6594
6595 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6596
6597         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6598         (rx_dwarf_reg_to_regnum): New function.
6599         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6600         unwinding.
6601
6602 2015-06-29  Pedro Alves  <palves@redhat.com>
6603
6604         PR threads/18127
6605         * infcall.c (run_inferior_call): On infcall success, if the thread
6606         was marked stopped before, reset it back to stopped.
6607         * infrun.c (resume): Don't suppress the set_running calls when
6608         doing an infcall.
6609         (normal_stop): Only discard the finish_thread_state cleanup if the
6610         infcall succeeded.
6611
6612 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6613
6614         * MAINTAINERS (Write After Approval): Update my email address.
6615
6616 2015-06-26  Keith Seitz  <keiths@redhat.com>
6617             Doug Evans  <dje@google.com>
6618
6619         PR 16253
6620         * block.c (block_lookup_symbol): For non-function blocks,
6621         continue to search for a symbol with an exact domain match
6622         Otherwise, return any previously found "best domain" symbol.
6623         (block_lookup_symbol_primary): Likewise.
6624
6625 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6626
6627         * NEWS: Mention the new option "history remove-duplicates".
6628         * top.c (history_remove_duplicates): New static variable.
6629         (show_history_remove_duplicates): New static function.
6630         (gdb_add_history): Conditionally remove duplicate history
6631         entries.
6632         (init_main): Add "history remove-duplicates" option.
6633
6634 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6635
6636         * tui/tui-win.c (focus_completer): New static function.
6637         (_initialize_tui_win): Set the completion function of the
6638         "focus" command to focus_completer.
6639
6640 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6641
6642         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6643         and language_asm..
6644         * symtab.c (find_function_start_sal): Likewise.
6645
6646 2015-06-25  Gary Benson  <gbenson@redhat.com>
6647
6648         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6649         it is the empty string after trailing slashes have been stripped.
6650
6651 2015-06-25  Gary Benson  <gbenson@redhat.com>
6652
6653         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6654         * infrun.c (follow_exec): Likewise.
6655         * remote.c (remote_filesystem_is_local): Likewise.
6656         * solib.c (solib_find_1): Likewise.
6657
6658 2015-06-24  Keith Seitz  <keiths@redhat.com>
6659
6660         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6661         return value from lrealpath.
6662
6663 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6664
6665         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6666
6667 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6668
6669         * remote-sim.c: Include gdb_bfd.h.
6670         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6671         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6672
6673 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6674
6675         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6676         set_gdbarch_get_siginfo_type.
6677         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6678         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6679         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6680         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6681         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6682         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6683         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6684         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6685         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6686         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6687
6688 2015-06-24  Gary Benson  <gbenson@redhat.com>
6689
6690         * common/buffer.c (stdint.h): Do not include.
6691         * common/print-utils.c (stdint.h): Likewise.
6692         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6693         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6694         * ft32-tdep.c (gdb_assert.h): Likewise.
6695         * guile/scm-utils.c (stdint.h): Likewise.
6696         * i386-linux-tdep.c (stdint.h): Likewise.
6697         * i386-tdep.c (stdint.h): Likewise.
6698         * nat/linux-btrace.c (stdint.h): Likewise.
6699         * nat/linux-btrace.h (stdint.h): Likewise.
6700         * nat/linux-ptrace.c (stdint.h): Likewise.
6701         * nat/mips-linux-watch.h (stdint.h): Likewise.
6702         * ppc-linux-nat.c (stdint.h): Likewise.
6703         * python/python-internal.h (stdint.h): Likewise.
6704         * stub-termcap.c (stdlib.h): Likewise.
6705         * target/target.h (stdint.h): Likewise.
6706         * xtensa-linux-nat.c (stdint.h): Likewise.
6707
6708 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6709
6710         * top.c (init_history): Look at errno after calling strtol to
6711         properly map large GDBHISTSIZE values to infinity.
6712
6713 2015-06-23  Doug Evans  <dje@google.com>
6714
6715         * inferior.h (struct inferior_suspend_state): Delete, unused.
6716         All references deleted.
6717
6718 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6719
6720         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6721         (microblaze_push_dummy_call): Likewise.
6722         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6723         and set_gdbarch_push_dummy_call.
6724
6725 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6726
6727         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6728         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6729         (amd64_linux_store_inferior_registers): Likewise.
6730         * arm-linux-nat.c (fetch_fpregister): Likewise.
6731         (fetch_fpregs, store_fpregister): Likewise.
6732         (store_fpregister, store_fpregs): Likewise.
6733         (fetch_register, fetch_regs): Likewise.
6734         (store_register, store_regs): Likewise.
6735         (fetch_vfp_regs, store_vfp_regs): Likewise.
6736         (arm_linux_read_description): Check have_ptrace_getregset is
6737         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6738         or TRIBOOL_FALSE.
6739         * i386-linux-nat.c (fetch_xstateregs): Check
6740         have_ptrace_getregset is not TRIBOOL_TRUE.
6741         (store_xstateregs): Likewise.
6742         * linux-nat.c (have_ptrace_getregset): Change its type to
6743         enum tribool.
6744         * linux-nat.h (tribool): New enum.
6745         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6746         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6747
6748 2015-06-19  Doug Evans  <dje@google.com>
6749
6750         * NEWS: Mention Sun's version of stabs is no longer supported.
6751         * elfread.c (free_elfinfo): Delete.  All uses updated.
6752         (elfstab_offset_sections): Delete.  All uses updated.
6753         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6754         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6755         All uses updated.
6756         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6757         All callers updated.
6758
6759 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6760
6761         * common/rsp-low.c (needs_escaping): New.
6762         (remote_escape_output): Add unit_size parameter. Refactor to
6763         support multi-byte addressable units.  Rename parameters.
6764         * common/rsp-low.h (remote_escape_output): Add unit_size
6765         parameter and rename others. Update doc.
6766         * remote.c (align_for_efficient_write): New.
6767         (remote_write_bytes_aux): Add unit_size parameter and use it.
6768         Rename some variables.  Update doc.
6769         (remote_xfer_partial): Get unit size and use it.
6770         (remote_read_bytes_1): Add unit_size parameter and use it.
6771         Rename some variables. Update doc.
6772         (remote_write_bytes): Same.
6773         (remote_xfer_live_readonly_partial): Same.
6774         (remote_read_bytes): Same.
6775         (remote_flash_write): Update call to remote_write_bytes_aux.
6776         (remote_write_qxfer): Update call to remote_escape_output.
6777         (remote_search_memory): Same.
6778         (remote_hostio_pwrite): Same.
6779
6780 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6781
6782         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6783         locations as inserted.
6784         Update and expand comment about permanent locations.
6785         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6786         Move comment to add_location_to_breakpoint.
6787         (update_global_location_list): Don't error out if a permanent
6788         breakpoint is not marked inserted.
6789         Don't error out if a non-permanent breakpoint location is inserted on
6790         top of a permanent breakpoint.
6791
6792 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6793
6794         * breakpoint.c (make_breakpoint_permanent): Remove unused
6795         function.
6796         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6797
6798 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6799
6800         PR gdb/16999
6801         * NEWS: Mention new GDBHISTSIZE behavior.
6802         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6803         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6804
6805 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6806
6807         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6808         * top.c (init_history): Read from GDBHISTSIZE instead of
6809         HISTSIZE.
6810         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6811
6812 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6813
6814         * top.c (gdb_safe_append_history): Do not call
6815         history_truncate_file if the history is not stifled.
6816
6817 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6818
6819         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6820         * syscalls/s390x-linux.xml: Likewise.
6821
6822 2015-06-16  Michael Eager  <eager@eagercon.com>
6823
6824         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6825
6826 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6827
6828         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6829         target_terminal_ours_for_output() before calling
6830         tui_show_frame_info(), and restore the original terminal
6831         settings afterwards.
6832
6833 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6834
6835         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6836
6837 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6838
6839         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6840         memory unit size.
6841         (mi_cmd_data_write_memory_bytes): Same.
6842
6843 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6844
6845         * corefile.c (write_memory): Update doc.
6846         * gdbcore.h (write_memory): Same.
6847
6848 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6849
6850         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6851         (dump_mapping_p): Use it for parameter filterflags.
6852         (linux_find_memory_regions_full): Use it for variable filterflags.
6853
6854 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6855             Jan Kratochvil  <jan.kratochvil@redhat.com>
6856
6857         Merge multiple hex conversions.
6858         * monitor.c: Include rsp-low.h.
6859         (fromhex): Remove definition.
6860
6861 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6862             Jan Kratochvil  <jan.kratochvil@redhat.com>
6863
6864         Move utility functions to common/.
6865         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6866         Move defs to common/common-utils.c.
6867         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6868         (skip_to_space_const): Move decls to common/common-utils.h.
6869         * common/common-defs.h: Move include of common-types.h before
6870         common-utils.h.
6871         * common/common-utils.c: Include host-defs.h and ctype.h.
6872         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6873         from utils.c.
6874         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6875         cli/cli-utils.c.
6876         * common/common-utils.h (strtoulst): Move decl from utils.h.
6877         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6878         Move from cli/cli-utils.h.
6879         * common/host-defs.h: Include limits.h.
6880         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6881         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6882         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6883         common/common-utils.h.
6884         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6885         (strtoulst): Move to common/common-utils.c.
6886         * utils.h (strtoulst): Moved decl to common/common-utils.h.
6887
6888 2015-06-15  Yao Qi  <yao.qi@linaro.org>
6889
6890         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6891
6892 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
6893
6894         * build-id.c: Don't include elf-bfd.h.
6895         (build_id_bfd_get): Use bfd_build_id.
6896         (build_id_verify): Ditto.
6897         * build-id.h: Ditto.
6898         (find_separate_debug_file_by_buildid): Ditto.
6899         * python/py-objfile.c: Don't include elf-bfd.h.
6900         (objfpy_get_build_id) Use bfd_build_id.
6901         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6902         * coffread.c: Include build-id.h.
6903         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6904
6905 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
6906
6907         * windows-nat.c (do_windows_fetch_inferior_registers)
6908         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6909         conditional with __CYGWIN__.
6910
6911 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6912
6913         * completer.c: Add arch-utils.h include.
6914         (enum reg_completer_targets): New enum.
6915         (reg_or_group_completer_1): New function containing old
6916         reg_or_group_completer, add and use new parameter to control what
6917         is completed on.  Use get_current_arch rather than architecture of
6918         currently selected frame.
6919         (reg_or_group_completer): Call new reg_or_group_completer_1.
6920         (reggroup_completer): Call new reg_or_group_completer_1.
6921         * completer.h (reggroup_completer): Add declaration.
6922         * tui/tui-regs.c: Add 'completer.h' include.
6923         (tui_reg_next_command): Renamed to...
6924         (tui_reg_next): ...this.  Adjust parameters and return rather than
6925         display new group.
6926         (tui_reg_prev_command): Renamed to...
6927         (tui_reg_prev): ...this.  Adjust parameters and return rather than
6928         display new group.
6929         (tui_reg_float_command): Delete.
6930         (tui_reg_general_command): Delete.
6931         (tui_reg_system_command): Delete.
6932         (tui_reg_command): Rewrite to perform switching of register group.
6933         Add header comment.
6934         (tuireglist): Remove.
6935         (tui_reggroup_completer): New function.
6936         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6937         creation of 'tui reg' command.
6938         * NEWS: Add comment about 'tui reg' changes.
6939
6940 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6941
6942         * target.c (target_read): Consider addressable unit size when
6943         reading from a memory object.
6944         (read_memory_robust): Same.
6945         (read_whatever_is_readable): Same.
6946         (target_write_with_progress): Consider addressable unit size
6947         when writing to a memory object.
6948         * target.h (target_read): Update documentation.
6949         (target_write): Add documentation.
6950
6951 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6952
6953         * arch-utils.h (default_addressable_memory_unit_size): New.
6954         * arch-utils.c (default_addressable_memory_unit_size): New.
6955         * gdbarch.sh (addressable_memory_unit_size): New.
6956         * gdbarch.h: Re-generate.
6957         * gdbarch.c: Re-generate.
6958
6959 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
6960
6961         * target.c (target_read): Rename variables and use
6962         TARGET_XFER_E_IO.
6963         (target_read_with_progress): Same.
6964         (read_memory_robust): Constify parameters and rename
6965         variables.
6966         (read_whatever_is_readable): Constify parameters,
6967         rename variables, adjust formatting.
6968         * target.h (read_memory_robust): Constify parameters.
6969
6970 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6971
6972         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6973         synthetic (non-AltiVec) vector types.
6974         (ppc64_sysv_abi_return_value): Likewise.
6975
6976 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6977
6978         PR breakpoints/16465
6979         * breakpoint.c (create_breakpoint): Save extra_string for
6980         pending breakpoints.
6981
6982 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6983
6984         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6985         and bt_mask to CORE_ADDR.
6986
6987 2015-06-11  Gary Benson <gbenson@redhat.com>
6988
6989         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6990         (mnsh_recv_message): Likewise.
6991
6992 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6993
6994         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6995         long long int and plongest instead of %ll.
6996
6997 2015-06-11  Gary Benson <gbenson@redhat.com>
6998
6999         * nat/linux-namespaces.c (gdb_wait.h): New include.
7000         (sys/wait.h): Do not include.
7001
7002 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7003
7004         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7005         end_sequence is true.
7006
7007 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7008
7009         Code cleanup.
7010         * solib-target.c (library_list_start_list): Use explicit NULL
7011         comparison.
7012
7013 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7014
7015         * solib-target.c (library_list_start_list): Do not dereference
7016         variable version in its initialization.  Make the VERSION check handle
7017         NULL.
7018         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7019
7020 2015-06-10  Gary Benson <gbenson@redhat.com>
7021
7022         * NEWS: Announce support for direct access of executable and
7023         shared library files when attaching to inferiors in containers
7024         on GNU/Linux systems.
7025
7026 2015-06-10  Gary Benson <gbenson@redhat.com>
7027
7028         * remote.c (struct remote_state) <fs_pid>: New field.
7029         (new_remote_state): Initialize the above.
7030         (PACKET_vFile_setfs): New enum value.
7031         (remote_hostio_set_filesystem): New function.
7032         (remote_hostio_open): Call the above.
7033         (remote_hostio_unlink): Likewise.
7034         (remote_hostio_readlink): Likewise.
7035         (_initialize_remote): Register new "set/show remote
7036         hostio-setfs-packet" command.
7037         * NEWS: Announce new vFile:setfs packet.
7038
7039 2015-06-10  Gary Benson <gbenson@redhat.com>
7040
7041         * linux-nat.c (nat/linux-namespaces.h): New include.
7042         (fileio.h): Likewise.
7043         (linux_nat_filesystem_is_local): New function.
7044         (linux_nat_fileio_pid_of): Likewise.
7045         (linux_nat_fileio_open): Likewise.
7046         (linux_nat_fileio_readlink): Likewise.
7047         (linux_nat_fileio_unlink): Likewise.
7048         (linux_nat_add_target): Initialize to_filesystem_is_local,
7049         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7050         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7051         commands.
7052         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7053
7054 2015-06-10  Gary Benson <gbenson@redhat.com>
7055
7056         * target.h (struct inferior): New forward declaration.
7057         (struct target_ops) <to_filesystem_is_local>: Update comment.
7058         (struct target_ops) <to_fileio_open>: New argument inf.
7059         Update comment.  All implementations updated.
7060         (struct target_ops) <to_fileio_unlink>: Likewise.
7061         (struct target_ops) <to_fileio_readlink>: Likewise.
7062         (target_filesystem_is_local): Update comment.
7063         (target_fileio_open): New argument inf.  Update comment.
7064         (target_fileio_unlink): Likewise.
7065         (target_fileio_readlink): Likewise.
7066         (target_fileio_read_alloc): Likewise.
7067         (target_fileio_read_stralloc): Likewise.
7068         * target.c (target_fileio_open): New argument inf.
7069         Pass inf to implementation.  Update debug printing.
7070         (target_fileio_unlink): Likewise.
7071         (target_fileio_readlink): Likewise.
7072         (target_fileio_read_alloc_1): New argument inf. Pass inf
7073         to target_fileio_open.
7074         (target_fileio_read_alloc): New argument inf. Pass inf to
7075         target_fileio_read_alloc_1.
7076         (target_fileio_read_stralloc): Likewise.
7077         * gdb_bfd.c (inferior.h): New include.
7078         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7079         argument with new argument "inferior".  Pass inferior to
7080         target_fileio_open.
7081         (gdb_bfd_open): Supply inferior argument to
7082         gdb_bfd_iovec_fileio_open.
7083         * linux-tdep.c (linux_info_proc): Supply inf argument to
7084         relevant target_fileio calls.
7085         (linux_find_memory_regions_full): Likewise.
7086         (linux_fill_prpsinfo): Likewise.
7087         * remote.c (remote_filesystem_is_local): Supply inf
7088         argument to remote_hostio_open.
7089         (remote_file_put): Likewise.
7090         (remote_file_get): Likewise.
7091         (remote_file_delete): Supply inf argument to
7092         remote_hostio_unlink.
7093
7094 2015-06-10  Gary Benson <gbenson@redhat.com>
7095
7096         * inf-child.c (inf_child_fileio_open): Replace comment.
7097         (inf_child_fileio_pwrite): Likewise.
7098         (inf_child_fileio_pread): Likewise.
7099         (inf_child_fileio_fstat): Insert blank line before comment.
7100         (inf_child_fileio_close): Replace comment.
7101         (inf_child_fileio_unlink): Likewise.
7102         (inf_child_fileio_readlink): Likewise.
7103         * remote.c (remote_hostio_open): Likewise.
7104         (remote_hostio_pread): Likewise.
7105         (remote_hostio_pwrite): Likewise.
7106         (remote_hostio_close): Likewise.
7107         (remote_hostio_unlink): Likewise.
7108         (remote_hostio_readlink): Likewise.
7109         (remote_hostio_fstat): Likewise.
7110         (remote_filesystem_is_local): Likewise.
7111         * target.c (target_fileio_open): Likewise.
7112         (target_fileio_pwrite): Likewise.
7113         (target_fileio_pread): Likewise.
7114         (target_fileio_fstat): Insert blank line before comment.
7115         (target_fileio_close): Replace comment.
7116         (target_fileio_unlink): Likewise.
7117         (target_fileio_readlink): Likewise.
7118         (target_fileio_read_alloc): Likewise.
7119         (target_fileio_read_stralloc): Likewise.
7120
7121 2015-06-10  Gary Benson <gbenson@redhat.com>
7122
7123         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7124         (check_pid_namespace_match): Use linux_ns_same rather than
7125         linux_proc_pid_get_ns to spot PID namespace mismatches.
7126         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7127         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7128
7129 2015-06-10  Gary Benson <gbenson@redhat.com>
7130
7131         * configure.ac (AC_CHECK_FUNCS): Add setns.
7132         * config.in: Regenerate.
7133         * configure: Likewise.
7134         * nat/linux-namespaces.h: New file.
7135         * nat/linux-namespaces.c: Likewise.
7136         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7137         (linux-namespaces.o): New rule.
7138         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7139         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7140         * config/arm/linux.mh (NATDEPFILES): Likewise.
7141         * config/i386/linux.mh (NATDEPFILES): Likewise.
7142         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7143         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7144         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7145         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7146         * config/mips/linux.mh (NATDEPFILES): Likewise.
7147         * config/pa/linux.mh (NATDEPFILES): Likewise.
7148         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7149         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7150         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7151         * config/s390/linux.mh (NATDEPFILES): Likewise.
7152         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7153         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7154         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7155         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7156
7157 2015-06-10  Gary Benson <gbenson@redhat.com>
7158
7159         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7160         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7161         (make_cleanup_close): Likewise.
7162         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7163         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7164         (make_cleanup_close): Likewise.
7165
7166 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7167
7168         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7169         from SuspendThread().
7170
7171 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7172
7173         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7174         from OutputDebugString.
7175
7176 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7177                         Mircea Gherzan  <mircea.gherzan@intel.com>
7178
7179         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7180         MPX_BT_MASK_32): New macros.
7181         (i386_mpx_set_bounds): New function that implements
7182         the command "set-mpx-bound".
7183         (i386_mpx_enabled): Helper function to test MPX availability.
7184         (i386_mpx_bd_base): Helper function to calculate the base directory
7185         address.
7186         (i386_mpx_get_bt_entry): Helper function to access a bound
7187         table entry.
7188         (i386_mpx_print_bounds): Effectively display bound information.
7189         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7190         "show mpx".
7191         (_initialize_i386_tdep):
7192         Add "bound" to the commands "show mpx" and "set mpx" commands.
7193         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7194         and "show mpx" commands.
7195         * NEWS: List new commands for MPX support.
7196
7197 2015-06-09  Gary Benson <gbenson@redhat.com>
7198
7199         * common/fileio.h (fileio_to_host_mode): New declaration.
7200         * common/fileio.c (fileio_to_host_mode): New Function.
7201         * inf-child.c (inf_child_fileio_open): Process mode argument
7202         with fileio_to_host_mode.
7203
7204 2015-06-09  Gary Benson <gbenson@redhat.com>
7205
7206         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7207         conditional.
7208
7209 2015-06-05  Gary Benson <gbenson@redhat.com>
7210
7211         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7212         * remote.c (remote_filesystem_is_local): ...here.
7213
7214 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7215
7216         * gdbarch.c: Regenerate it.
7217
7218 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7219
7220         * arch-utils.c (default_infcall_munmap): New.
7221         * arch-utils.h (default_infcall_munmap): New declaration.
7222         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7223         (munmap_list_free, munmap_listp_free_cleanup): New.
7224         (struct setup_sections_data): Add field munmap_list_headp.
7225         (setup_sections): Call munmap_list_add.
7226         (compile_object_load): New variable munmap_list_head, initialize
7227         setup_sections_data.munmap_list_headp, return munmap_list_head.
7228         * compile/compile-object-load.h (struct munmap_list): New declaration.
7229         (struct compile_module): Add field munmap_list_head.
7230         (munmap_list_free): New declaration.
7231         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7232         munmap_list_head.
7233         (do_module_cleanup): Call munmap_list_free.
7234         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7235         * gdbarch.c: Regenerate.
7236         * gdbarch.h: Regenerate.
7237         * gdbarch.sh (infcall_munmap): New.
7238         * linux-tdep.c (linux_infcall_munmap): New.
7239         (linux_init_abi): Install it.
7240
7241 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7242
7243         PR gdb/15564
7244         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7245
7246 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7247
7248         * i386-linux-nat.c: Include linux-nat.h.
7249
7250 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7251             Jan Kratochvil  <jan.kratochvil@redhat.com>
7252
7253         PR symtab/18392
7254         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7255         assertion.
7256         * dwarf2loc.c (chain_candidate): Likewise.
7257
7258 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7259
7260         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7261         (store_vfp_regs): Use PTRACE_SETREGSET.
7262
7263 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7264
7265         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7266         (fetch_fpregs): Likewise.
7267         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7268         (store_fpregs): Likewise.
7269
7270 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7271
7272         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7273         (fetch_regs): Likewise.
7274         (store_regs): Use PTRACE_SETREGSET.
7275         (store_register): Likewise.
7276
7277 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7278
7279         * arm-linux-nat.c (arm_linux_read_description): Check whether
7280         kernel supports PTRACE_GETREGSET.
7281
7282 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7283
7284         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7285         * linux-nat.c: ... here.
7286         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7287         to ...
7288         * linux-nat.h: ... here.
7289
7290 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7291
7292         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7293         * i386-linux-nat.c: Likewise.
7294         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7295         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7296         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7297         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7298         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7299
7300 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7301
7302         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7303         compatible to what read_child and write_child return.  This
7304         unbreaks that DJGPP build of GDB which was broken since v7.7.
7305
7306 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7307
7308         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7309
7310 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7311
7312         PR gdb/18464
7313         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7314         rather than internal_error for an unrecognized value.
7315
7316 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7317
7318         * xtensa-tdep.c (xtensa_pseudo_register_read)
7319         (xtensa_pseudo_register_write): Don't alias last pseudo register
7320         to a1.
7321
7322 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7323
7324         * infrun.c (follow_fork_inferior): Ensure the use of
7325         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7326         messages.
7327
7328 2015-05-28  Doug Evans  <dje@google.com>
7329
7330         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7331
7332 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7333
7334         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7335         (arm_linux_fetch_inferior_registers): Use
7336         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7337         (arm_linux_store_inferior_registers): Likewise.
7338         (arm_linux_read_description): Don't set
7339         arm_linux_has_wmmx_registers.
7340         * arm-tdep.c (arm_gdbarch_init): Set
7341         tdep->have_wmmx_registers according target descriptions.
7342         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7343         field.
7344
7345 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7346
7347         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7348         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7349         instead of arm_linux_vfp_register_count.
7350         (store_vfp_regs): Likewise.
7351         (arm_linux_fetch_inferior_registers): Likewise.
7352         (arm_linux_store_inferior_registers): Likewise.
7353         (arm_linux_read_description): Don't set
7354         arm_linux_vfp_register_count.
7355         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7356         Adjust.
7357         * arm-tdep.c (arm_gdbarch_init): Add assert on
7358         vfp_register_count.
7359         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7360         field to vfp_register_count.  All users updated.
7361
7362 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7363
7364         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7365         ELFOSABI_GNU binaries.
7366
7367 2015-05-27  Doug Evans  <dje@google.com>
7368
7369         * dwarf2read.c (lnp_state_machine): New typedef.
7370         (lnp_reader_state): New typedef.
7371         (dwarf_record_line_1): Renamed from dwarf_record_line.
7372         All callers updated.
7373         (dwarf_record_line): New function.
7374         (init_lnp_state_machine): New function.
7375         (check_line_address): Replace p_record_line parameter with state.
7376         All callers updated.
7377         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7378         Update to record state in lnp_state_machine.
7379
7380 2015-05-27  Doug Evans  <dje@google.com>
7381
7382         * dwarf2read.c (record_line_ftype): New typedef.
7383         (check_line_address): New function.
7384         (dwarf_decode_lines_1): Call it.
7385
7386 2015-05-27  Doug Evans  <dje@google.com>
7387
7388         * NEWS: Mention "set debug dwarf-line".
7389         * dwarf2read.c (dwarf_line_debug): New static global.
7390         (add_include_dir): Add debug dwarf-line support.
7391         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7392         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7393
7394 2015-05-27  Doug Evans  <dje@google.com>
7395
7396         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7397         All callers updated.
7398         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7399         * cp-support.h (cp_lookup_nested_symbol): Update.
7400
7401 2015-05-27  Doug Evans  <dje@google.com>
7402
7403         PR symtab/18258
7404         * block.c (block_find_symbol): New function.
7405         (block_find_non_opaque_type): Ditto.
7406         (block_find_non_opaque_type_preferred): Ditto.
7407         * block.h (block_symbol_matcher_ftype): New typedef.
7408         (block_find_symbol): Declare.
7409         (block_find_non_opaque_type): Ditto.
7410         (block_find_non_opaque_type_preferred): Ditto.
7411         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7412         * psymtab.c (psym_lookup_symbol): Ditto.
7413         * symtab.c (basic_lookup_transparent_type_1): New function.
7414         (basic_lookup_transparent_type): Call it.
7415
7416 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7417
7418         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7419         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7420
7421 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7422
7423         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7424         before operator &&.
7425         (aarch64_record_load_store): Likewise.
7426
7427 2015-05-26  Doug Evans  <dje@google.com>
7428
7429         PR c++/18141, c++/18417.
7430         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7431         a typedef.
7432
7433 2015-05-26  Doug Evans  <dje@google.com>
7434
7435         * NEWS: Add entries for command renamings.
7436         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7437         All uses updated.
7438         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7439         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7440         All uses updated.
7441         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7442         All callers updated.  Fix spelling of DWARF in help text.
7443         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7444         All uses updated.
7445         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7446         All uses updated.
7447         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7448         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7449         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7450         All uses updated.
7451         (show_dwarf_always_disassemble): Renamed from
7452         show_dwarf2_always_disassemble.  All callers updated.
7453         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7454         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7455         "set/show dwarf max-cache-age".  Rename
7456         "set/show dwarf2 always-disassemble" to
7457         "set/show dwarf always-disassemble".  Rename
7458         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7459         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7460
7461 2015-05-26  Doug Evans  <dje@google.com>
7462
7463         PR python/18438
7464         * python/py-lazy-string.c (stpy_convert_to_value): Use
7465         gdbpy_gdb_memory_error not PyExc_MemoryError.
7466         (gdbpy_create_lazy_string_object): Ditto.
7467
7468 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7469
7470         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7471
7472 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7473
7474         * tui/tui-regs.c (tui_reg_prev_command): New function.
7475         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7476         * reggroups.c (reggroup_prev): New function.
7477         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7478
7479 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7480             Yao Qi  <yao.qi@linaro.org>
7481
7482         * aarch64-linux-tdep.c: Include linux-record.h and
7483         record-full.h.
7484         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7485         (aarch64_syscall): New enum.
7486         (aarch64_canonicalize_syscall): New function.
7487         (aarch64_all_but_pc_registers_record): New function.
7488         (aarch64_linux_syscall_record): New function.
7489         (aarch64_linux_init_abi): Install AArch64 process record
7490         handler.  Update to handle syscall recording.
7491         * aarch64-tdep.c: Include record.h and record-full.h.
7492         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7493         (struct aarch64_mem_r): Define.
7494         (aarch64_record_result): New enum.
7495         (struct insn_decode_record): Define.
7496         (insn_decode_record): New typedef.
7497         (aarch64_record_data_proc_reg): New function.
7498         (aarch64_record_data_proc_imm): New function.
7499         (aarch64_record_branch_except_sys): New function.
7500         (aarch64_record_load_store): New function.
7501         (aarch64_record_data_proc_simd_fp): New function.
7502         (aarch64_record_asimd_load_store): New function.
7503         (aarch64_record_decode_insn_handler): New function.
7504         (deallocate_reg_mem): New function.
7505         (aarch64_process_record): New function.
7506         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7507         New field.
7508         (aarch64_process_record): New extern declaration.
7509         * configure.tgt: Add linux-record.o to gdb_target_obs.
7510         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7511
7512 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7513
7514         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7515         targets.
7516
7517 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7518
7519         * amd64-tdep.c: Replace in_function_epilogue_p with
7520         stack_frame_destroyed_p throughout.
7521         * arch-utils.c: Ditto.
7522         * arch-utils.h: Ditto.
7523         * arm-tdep.c: Ditto.
7524         * breakpoint.c: Ditto.
7525         * gdbarch.sh: Ditto.
7526         * hppa-tdep.c: Ditto.
7527         * i386-tdep.c: Ditto.
7528         * mips-tdep.c: Ditto.
7529         * nios2-tdep.c: Ditto.
7530         * rs6000-tdep.c: Ditto.
7531         * s390-linux-tdep.c: Ditto.
7532         * score-tdep.c: Ditto.
7533         * sh-tdep.c: Ditto.
7534         * sparc-tdep.c: Ditto.
7535         * sparc-tdep.h: Ditto.
7536         * sparc64-tdep.c: Ditto.
7537         * spu-tdep.c: Ditto.
7538         * tic6x-tdep.c: Ditto.
7539         * tilegx-tdep.c: Ditto.
7540         * xstormy16-tdep.c: Ditto.
7541         * gdbarch.c, gdbarch.h: Re-generated.
7542
7543 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7544
7545         * NEWS: Mention 'tui enable' and 'tui disable'.
7546         * tui/tui.c (tui_enable_command): New function.
7547         (tui_disable_command): New function.
7548         (_initialize_tui): New function.
7549
7550 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7551
7552         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7553
7554 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7555
7556         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7557         buf_ptr is freed.
7558
7559 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7560
7561         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7562         into ...
7563         (tui_set_layout_for_display_command): ...here, before calling
7564         tui_set_layout.  Only set the layout if gdb has not already
7565         entered the TUI_FAILURE state.
7566
7567 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7568
7569         * tui/tui-layout.c (layout_completer): New function.
7570         (_initialize_tui_layout): Set completer on layout command.
7571
7572 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7573
7574         * tui/tui-layout.c (tui_set_layout): Remove
7575         tui_register_display_type parameter.  Remove all checking of this
7576         parameter, and reindent function.  Update header comment.
7577         (tui_set_layout_for_display_command): Rename to...
7578         (tui_set_layout_by_name): ...this, and don't check for different
7579         register class types, don't pass a tui_register_display_type to
7580         tui_set_layout.  Update header comment.
7581         (layout_names): Remove register set specific names.
7582         * tui/tui-layout.h (tui_set_layout): Remove
7583         tui_register_display_type parameter.
7584         * tui/tui.c (tui_rl_change_windows): Don't pass a
7585         tui_register_display_type to tui_set_layout.
7586         (tui_rl_delete_other_windows): Likewise.
7587         (tui_enable): Likewise.
7588         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7589         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7590         (TUI_GENERAL_REGS_NAME): Remove.
7591         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7592         (TUI_SPECIAL_REGS_NAME): Remove.
7593         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7594         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7595         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7596         (enum tui_register_display_type): Remove.
7597         (struct tui_layout_def): Remove regs_display_type and
7598         float_regs_display_type fields.
7599         (struct tui_data_info): Remove regs_display_type field.
7600         (tui_layout_command): Use new name for
7601         tui_set_layout_for_display_command.
7602         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7603         (tui_clear_win_detail): Don't initialise removed fields of
7604         win_info.
7605         * tui/tui-regs.c (tui_show_registers): Use new name for
7606         tui_set_layout_for_display_command.
7607         * tui/tui.h (tui_set_layout_for_display_command): Rename
7608         declaration to...
7609         (tui_set_layout_by_name): ...this.
7610         * printcmd.c (display_command): Remove tui related layout call,
7611         and reindent.
7612
7613 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7614
7615         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7616         (handle_inferior_event): New function.
7617
7618 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7619
7620         * ada-lang.c (to_fixed_array_type): Rename local variable
7621         typename into type_name.
7622
7623 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7624
7625         Fix ASAN crash for gdb.compile/compile.exp.
7626         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7627
7628 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7629
7630         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7631         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7632         * compile/compile-object-load.c (setup_sections, compile_object_load):
7633         Likewise.
7634         * compile/compile.c (compile_to_object): Likewise.
7635
7636 2015-05-16  Doug Evans  <xdje42@gmail.com>
7637
7638         * NEWS: Mention support for unbuffered Guile memory ports.
7639         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7640         (ioscm_lseek_address): Improve overflow calculation.
7641         (gdbscm_memory_port_fill_input): Add assert.
7642         (gdbscm_memory_port_write): Handle unbuffered ports.
7643         Handle large writes identical to Guile's fport_write.
7644         (gdbscm_memory_port_seek): Fix seeking past end check.
7645         (gdbscm_memory_port_close): Handle closing unbuffered port.
7646         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7647         (ioscm_init_memory_port): Handle unbuffered ports.
7648         (ioscm_reinit_memory_port): Ditto.
7649         (ioscm_init_memory_port): Update size calculation.
7650         (gdbscm_open_memory): Support zero sized ports.
7651
7652 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7653
7654         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7655         variable compiler warnings.
7656
7657 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7658
7659         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7660
7661 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7662             Phil Muldoon  <pmuldoon@redhat.com>
7663
7664         * NEWS (Changes since GDB 7.9): Add compile print.
7665         * compile/compile-c-support.c (add_code_header, add_code_footer)
7666         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7667         COMPILE_I_PRINT_VALUE_SCOPE.
7668         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7669         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7670         New.
7671         * compile/compile-object-load.c: Include block.h.
7672         (get_out_value_type): New function.
7673         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7674         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7675         OUT_VALUE_TYPE.
7676         * compile/compile-object-load.h (struct compile_module): Add fields
7677         out_value_addr and out_value_type.
7678         * compile/compile-object-run.c: Include valprint.h and compile.h.
7679         (struct do_module_cleanup): Add fields out_value_addr and
7680         out_value_type.
7681         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7682         COMPILE_I_PRINT_VALUE_SCOPE.
7683         (compile_object_run): Propagate out_value_addr and out_value_type.
7684         Pass OUT_VALUE_ADDR.
7685         * compile/compile.c: Include valprint.h.
7686         (compile_print_value, compile_print_command): New functions.
7687         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7688         (_initialize_compile): Update compile code help text.  Install
7689         compile_print_command.
7690         * compile/compile.h (compile_print_value): New prototype.
7691         * defs.h (enum compile_i_scope_types): Add
7692         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7693
7694 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7695
7696         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7697         Rely on its parameter count.
7698         (compile_object_load): Replace lookup_minimal_symbol_text by
7699         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7700         return value.
7701         * compile/compile-object-load.h (struct compile_module): Replace
7702         func_addr by func_sym.
7703         * compile/compile-object-run.c: Include block.h.
7704         (compile_object_run): Reset module variable after it is freed.  Use
7705         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7706
7707 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7708
7709         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7710         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7711         (c_compute_program): Call generate_register_struct after typedefs.
7712         * compile/compile-loc2c.c (push, pushf_register_address)
7713         (pushf_register): Cast to GCC_UINTPTR.
7714         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7715         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7716         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7717         * compile/compile.c (_initialize_compile): Enable warnings for
7718         COMPILE_ARGS.
7719
7720 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7721
7722         * cli/cli-script.c (execute_control_command): Update
7723         eval_compile_command caller.
7724         * compile/compile-object-load.c (compile_object_load): Add parameters
7725         scope and scope_data.  Set them.
7726         * compile/compile-object-load.h (struct compile_module): Add fields
7727         scope and scope_data.
7728         (compile_object_load): Add parameters scope and scope_data.
7729         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7730         scope and scope_data.
7731         (compile_object_run): Propagate the fields scope and scope_data.
7732         * compile/compile.c (compile_file_command, compile_code_command):
7733         Update eval_compile_command callers.
7734         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7735         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7736         * defs.h (struct command_line): Add field scope_data.
7737
7738 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7739
7740         * printcmd.c (struct format_data): Move it to valprint.h.
7741         (print_command_parse_format, print_value): New functions from ...
7742         (print_command_1): ... here.  Call them.
7743         * valprint.h (struct format_data): Move it here from printcmd.c.
7744         (print_command_parse_format, print_value): New declarations.
7745
7746 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7747
7748         * compile/compile-object-load.c (compile_object_load): Add
7749         COMPILE_DEBUG message.
7750
7751 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7752
7753         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7754         index to get element instead of enum value.
7755         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7756         of index to compute length, but enum values to compute bounds.
7757         (ada_array_length): Use enum position of index instead of enum value.
7758         (pos_atr): Move position computation to...
7759         (ada_evaluate_subexp): Use enum values to compute bounds.
7760         * gdbtypes.c (discrete_position): ...this new function.
7761         * gdbtypes.h (discrete_position): New function declaration.
7762         * valprint.c (val_print_array_elements): Call discrete_position
7763         to handle array indexed by non-contiguous enumeration types.
7764
7765 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7766
7767         * ada-lang.c (find_parallel_type_by_descriptive_type):
7768         Go through typedefs during lookup.
7769         (to_fixed_array_type): Add support for non-bit packed arrays
7770         as variable-length fields.
7771
7772 2015-05-15  Pedro Alves  <palves@redhat.com>
7773             Simon Marchi  <simon.marchi@ericsson.com>
7774
7775         * event-loop.c (gdb_notifier) <next_file_handler,
7776         next_poll_fds_index>: New fields.
7777         (get_next_file_handler_to_handle_and_advance): New function.
7778         (delete_file_handler): If deleting the next file handler to
7779         handle, advance to the next file handler.
7780         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7781         handlers in round-robin fashion.
7782
7783 2015-05-15  Pedro Alves  <palves@redhat.com>
7784
7785         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7786         'private' to 'priv'.
7787
7788 2015-05-15  Pedro Alves  <palves@redhat.com>
7789
7790         * nat/linux-nat.h: Include "target/waitstatus.h".
7791
7792 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7793
7794         * python/py-unwind.c (struct reg_info): Move out of ...
7795         (struct cached_frame_info): ... this scope.
7796         (pending_frame_object_type, unwind_info_object_type): Make extern.
7797
7798 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7799
7800         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7801         accumSize is never negative.
7802
7803 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7804
7805         * tui/tui-command.c: Remove include of <ctype.h>.
7806         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7807
7808 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7809
7810         * dwarf2read.c (die_needs_namespace): Return 1 for
7811         DW_TAG_inlined_subroutine.
7812
7813 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7814
7815         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7816         (regcache_cpy_no_passthrough): Make it static, add function comment.
7817         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7818         (regcache_cpy_no_passthrough): Remove declaration.
7819
7820 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7821
7822         * gdbthread.h (struct thread_control_state): Update comment for
7823         proceed_to_finish.
7824         * infcall.c (run_inferior_call): Update comment about
7825         proceed_to_finish.
7826         * infcmd.c (get_return_value): Update comment about stop_registers.
7827         (finish_forward): Update comment about proceed_to_finish.
7828         * infrun.c (stop_registers): Remove.
7829         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7830         * infrun.h (stop_registers): Remove.
7831
7832 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7833
7834         * infcall.c (struct dummy_frame_context_saver)
7835         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7836         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7837         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7838         New.
7839         (call_function_by_hand_dummy): Move discard_cleanups of
7840         inf_status_cleanup before dummy_frame_push.  Call
7841         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7842         Use dummy_frame_context_saver_get_regs instead of stop_registers.
7843         * infcall.h (struct dummy_frame_context_saver)
7844         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7845         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7846         New declarations.
7847         * infcmd.c: Include infcall.h.
7848         (get_return_value): Add parameter ctx_saver, use it instead of
7849         stop_registers.
7850         (print_return_value): Add parameter ctx_saver, pass it.
7851         (struct finish_command_continuation_args): Add field ctx_saver.
7852         (finish_command_continuation): Update print_return_value caller.
7853         (finish_command_continuation_free_arg): Free also ctx_saver.
7854         (finish_forward): Call dummy_frame_context_saver_setup.
7855         * inferior.h (struct dummy_frame_context_saver): New declaration.
7856         (get_return_value): Add parameter ctx_saver.
7857         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7858         get_return_value caller.
7859
7860 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7861
7862         * dummy-frame.c (struct dummy_frame_dtor_list): New.
7863         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7864         (remove_dummy_frame): Process dtor_list.
7865         (pop_dummy_frame): Process dtor_list.
7866         (register_dummy_frame_dtor): Maintain dtor_list.
7867         (find_dummy_frame_dtor): Handle dtor_list.
7868         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7869         Update comments.
7870
7871 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7872
7873         * compile/compile-object-run.c (do_module_cleanup): Add parameter
7874         registers_valid.
7875         (compile_object_run): Update do_module_cleanup caller.
7876         * dummy-frame.c: Include infcall.h.
7877         (struct dummy_frame): Update dtor comment.
7878         (remove_dummy_frame): Call dtor.
7879         (pop_dummy_frame): Update dtor caller.
7880         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7881         registers_valid.
7882
7883 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7884
7885         GDB 7.9.1 released.
7886
7887 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
7888
7889         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
7890         Xmethods now being able to specify a result type to that new
7891         sectioin.
7892
7893 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7894
7895         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7896         first before resizing the window.
7897         * tui/tui.c (tui_enable): Likewise.
7898
7899 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7900
7901         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7902         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7903         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7904         dummy_dtor parameter.
7905         * infcall.h: Include dummy-frame.h.
7906         (call_function_by_hand_dummy_dtor_ftype): Remove.
7907         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7908         parameter.
7909
7910 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
7911
7912         PR gdb/17820
7913         * top.c (history_size_setshow_var): Change type to signed.
7914         Initialize to -2.  Update documentation.
7915         (set_readline_history_size): Define.
7916         (set_history_size_command): Use it.  Remove logic for handling
7917         out-of-range sizes.
7918         (init_history): Use set_readline_history_size().  Test for a
7919         value of -2 instead of 0 when determining whether to set a
7920         default history size.
7921         (init_main): Decode the argument of the "size" command as a
7922         zuinteger_unlimited.
7923
7924 2015-05-12  Doug Evans  <dje@google.com>
7925
7926         * dwarf2read.c (struct file_entry): Tweak comments.
7927         (get_debug_line_section): Tweak comments.
7928
7929 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7930
7931         * NEWS: Announce fork support in the RSP and support
7932         for fork debugging in extended mode.
7933
7934 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7935
7936         * remote.c (remote_insert_fork_catchpoint): New function.
7937         (remote_remove_fork_catchpoint): New function.
7938         (remote_insert_vfork_catchpoint): New function.
7939         (remote_remove_vfork_catchpoint): New function.
7940         (pending_fork_parent_callback): New function.
7941         (remove_new_fork_child): New function.
7942         (remote_update_thread_list): Call remote_notif_get_pending_events
7943         and remove_new_fork_child.
7944         (extended_remote_kill): Kill fork child when killing the
7945         parent before follow_fork completes.
7946         (init_extended_remote_ops): Initialize target vector with
7947         new fork catchpoint functions.
7948
7949 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7950
7951         * remote.c (remove_vfork_event_p): New function.
7952         (remote_follow_fork): Add vfork event type to event checking.
7953         (remote_parse_stop_reply): New stop reasons "vfork" and
7954         "vforkdone" for RSP 'T' Stop Reply Packet.
7955
7956 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7957
7958         * linux-nat.c (linux_nat_ptrace_options): New function.
7959         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7960         Call linux_nat_ptrace_options and use different argument to
7961         linux_enable_event_reporting.
7962         (_initialize_linux_nat): Delete call to
7963         linux_ptrace_set_additional_flags.
7964         * nat/linux-ptrace.c (current_ptrace_options): Rename to
7965         supported_ptrace_options.
7966         (additional_flags): Delete variable.
7967         (linux_check_ptrace_features): Use supported_ptrace_options.
7968         (linux_test_for_tracesysgood, linux_test_for_tracefork):
7969         Likewise, and remove additional_flags check.
7970         (linux_enable_event_reporting): Change 'attached' argument to
7971         'options'.  Use supported_ptrace_options.
7972         (ptrace_supports_feature): Change comment.  Use
7973         supported_ptrace_options.
7974         (linux_ptrace_set_additional_flags): Delete function.
7975         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7976         Delete function prototype.
7977         * remote.c (remote_fork_event_p): New function.
7978         (remote_detach_pid): New function.
7979         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7980         if doing detach-on-fork.
7981         (remote_follow_fork): New function.
7982         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7983         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7984         (init_extended_remote_ops): Initialize to_follow_fork.
7985
7986 2015-05-12  Don Breazeal  <donb@codesourcery.com>
7987
7988         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7989         from static to extern.
7990         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7991         * remote.c (anonymous enum): <PACKET_fork_event_feature,
7992         * PACKET_vfork_event_feature>: New enumeration constants.
7993         (remote_protocol_features): Add table entries for new packets.
7994         (remote_query_supported): Add new feature queries to qSupported
7995         packet.
7996
7997 2015-05-12  Gary Benson <gbenson@redhat.com>
7998
7999         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8000         for fake PIDs as well as real ones.
8001         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8002
8003 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8004
8005         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8006         * python/py-value.c (valpy_reference_value): New function.
8007         (valpy_const_value): Likewise.
8008         (value_object_methods): Add new methods.
8009         * value.c (make_cv_value): New function.
8010         * value.h (make_cv_value): Declare.
8011
8012 2015-05-08  Yao Qi  <yao@codesourcery.com>
8013             Sandra Loosemore  <sandra@codesourcery.com>
8014
8015         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8016         to 'lh->include_dirs' before accessing to it.
8017         (psymtab_include_file_name): Likewise.
8018         (dwarf_decode_lines_1): Likewise.
8019         (dwarf_decode_lines): Likewise.
8020         (file_file_name): Likewise.
8021
8022 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8023
8024         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8025         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8026         (nios2_linux_rt_sigreturn_init): Adjust base address of
8027         register save area.
8028
8029 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8030
8031         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8032         "trap 31" as the breakpoint instruction on all targets.
8033
8034 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8035
8036         * infcmd.c (print_return_value): Remove unused declaration.
8037
8038 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8039
8040         * dwarf2read.c (attr_to_dynamic_prop)
8041         <DW_AT_data_member_location>: Use read_type_die isntead of
8042         get_die_type.
8043
8044 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8045
8046         * ada-lang.c (ada_convert_actual): Add handling of formals
8047         passed inside an aligner type.
8048
8049 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8050
8051         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8052
8053 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8054
8055         PR python/18291
8056         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8057         Print xmethod matcher status.
8058
8059 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8060
8061         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8062         register in the regcache when treating the PSWM register, and vice
8063         versa.
8064
8065 2015-05-07  Gary Benson <gbenson@redhat.com>
8066
8067         * linux-thread-db.c (struct thread_db_info)
8068         <td_ta_map_id2thr_p>: Remove field.
8069         (try_thread_db_load_1): Remove initialization for the above.
8070
8071 2015-05-07  Gary Benson <gbenson@redhat.com>
8072
8073         * linux-thread-db.c (struct thread_db_info)
8074         <td_thr_validate_p>: Remove field.
8075         (try_thread_db_load_1): Remove initialization for the above.
8076
8077 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8078
8079         * compile/compile-object-load.c (compile_object_load): Support
8080         mst_text_gnu_ifunc.
8081
8082 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8083
8084         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8085         const.  Use new variables for the const compatibility.
8086         (eval_compile_command): Make the cmd_string parameter const.
8087         * compile/compile.h (eval_compile_command): Make the cmd_string
8088         parameter const.
8089
8090 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8091
8092         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8093         comment.
8094         * top.c (deprecated_init_ui_hook): Delete.
8095         (gdb_init): Remove handling of deprecated_init_ui_hook.
8096         * interps.c (clear_interpreter_hooks): Remove handling of
8097         deprecated_init_ui_hook.
8098         * main.c (captured_main): Update comment.
8099
8100 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8101
8102         * solib.c (_initialize_solib): Add "info dll" alias creation.
8103         * windows-nat.c (set_windows_aliases): Delete.
8104         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8105         assignment.
8106         * NEWS: Add news entry about "info dll" now being available
8107         on all platforms.
8108
8109 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8110
8111         * ada-lang.c (value_assign_to_component): Reformat and improve
8112         documentation. Remove all trailing spaces.
8113
8114 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8115
8116         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8117         Stop counting inlined frames as soon as an out-of-line function
8118         is found.
8119
8120 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8121
8122         * dwarf2read.c (inherit_abstract_dies): Skip
8123         DW_TAG_GNU_call_site dies while inheriting children of an
8124         abstract DIE into a scope.
8125         (read_lexical_block_scope): Inherit abstract DIE's for
8126         lexical scopes.
8127
8128 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8129
8130         * ada-valprint.c (val_print_packed_array_elements): Delete
8131         variable "len".  Add a type-length check when comparing two
8132         consecutive elements of the array.  Use the element's actual
8133         length in call to value_contents_eq.
8134         * ada-lang.c (ada_value_primitive_packed_val): Always return
8135         a value whose type has been resolved.
8136
8137 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8138
8139         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8140         BIT_SIZE and LEN if the size of the resolved type is smaller
8141         than BIT_SIZE * HOST_CHAR_BIT.
8142
8143 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8144
8145         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8146         correct address in call to value_at.  Adjust call to
8147         value_address accordingly.
8148
8149 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8150
8151         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8152         to print it.
8153
8154 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8155
8156         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8157         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8158         pinfo->valaddr.
8159         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8160         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8161         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8162         Add handling of addr_stack->valaddr.
8163         (resolve_dynamic_type): Add "valaddr" parameter.
8164         Set pinfo.valaddr field.
8165         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8166         resolve_dynamic_type.
8167         (ada_discrete_type_low_bound): Likewise.
8168         * findvar.c (default_read_var_value): Likewise.
8169         * value.c (value_from_contents_and_address): Likewise.
8170
8171 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8172
8173         * gdbtypes.c (resolve_dynamic_array): Use
8174         create_array_type_with_stride instead of create_array_type.
8175
8176 2015-04-30  DJ Delorie  <dj@redhat.com>
8177
8178         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8179         rl78_decode_opcode
8180
8181 2015-04-29  Doug Evans  <dje@google.com>
8182
8183         PR python/18285
8184         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8185         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8186         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8187         * extension-priv.h (struct extension_language_ops)
8188         <get_xmethod_result_type>: New member.
8189         * extension.c (get_xmethod_result_type): New function.
8190         * extension.h (get_xmethod_result_type): Declare.
8191         * python/py-xmethods.c (get_result_type_method_name): New static
8192         global.
8193         (py_get_result_type_method_name): Ditto.
8194         (gdbpy_get_xmethod_result_type): New function.
8195         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8196         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8197         * python/python.c (python_extension_ops): Add
8198         gdbpy_get_xmethod_result_type.
8199         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8200         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8201         xmethods.
8202         (value_x_unop): Ditto.
8203         * value.c (result_type_of_xmethod): New function.
8204         * value.h (result_type_of_xmethod): Declare.
8205
8206 2015-04-29  Gary Benson <gbenson@redhat.com>
8207
8208         * solib.c (solib_find_1): Allow fd argument to be NULL.
8209         (exec_file_find): Update comment.
8210         (solib_find): Likewise.
8211         * exec.c (exec_file_locate_attach): Use NULL as fd
8212         argument to exec_file_find to avoid having to close
8213         the opened file.
8214         * infrun.c (follow_exec): Likewise.
8215
8216 2015-04-28  Doug Evans  <dje@google.com>
8217
8218         PR python/18299
8219         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8220         name or __name__ attributes.  Handle gdb module as first argument.
8221
8222 2015-04-28  Doug Evans  <dje@google.com>
8223
8224         PR python/18089
8225         * python/py-prettyprint.c (print_children): Verify result of children
8226         iterator.  Provide better error message.
8227         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8228         * python/python.c (gdbpy_print_python_errors_p): New function.
8229
8230 2015-04-28  Doug Evans  <dje@google.com>
8231
8232         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8233
8234 2015-04-28  Sasha Smundak  <asmundak@google.com>
8235
8236         * NEWS: Mention gdb.Type.optimized_out method.
8237         * python/py-type.c (typy_optimized_out):  New function.
8238
8239 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8240
8241         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8242
8243 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8244
8245         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8246         (initialize_utils): Move call of init_page_info() to ...
8247         * top.c (gdb_init): ... here.
8248
8249 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8250
8251         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8252         (tui_sigwinch_handler): Still update our idea of
8253         the terminal's width and height even when TUI is not active.
8254
8255 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8256
8257         * utils.h (set_screen_width_and_height): Declare.
8258         * utils.c (set_screen_width_and_height): Define.
8259         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8260
8261 2015-04-28  Gary Benson <gbenson@redhat.com>
8262
8263         * infrun.c (solist.h): New include.
8264         (follow_exec): Use exec_file_find to prefix execd_pathname
8265         with gdb_sysroot.
8266
8267 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8268
8269         * tui/tui-source.c (tui_set_source_content): Avoid calling
8270         strcpy() when offset is 0.
8271
8272 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8273
8274         PR gdb/18155
8275         * tui/tui-data.c (tui_free_window): Don't free the locator
8276         window when passed an SRC_WIN or a DISASSEM_WIN.
8277
8278 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8279
8280         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8281         (tui_win_content): Move declaration.
8282         (struct tui_gen_win_info): Give 'content' field the
8283         type tui_win_content.
8284         * tui/tui-data.c (init_content_element): Remove redundant and
8285         erroneous casts.
8286         (tui_add_content_elements): Remove erroneous cast.
8287         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8288         casts.
8289         (tui_get_begin_asm_address): Likewise.
8290         * tui/tui-regs.c (tui_show_registers): Likewise.
8291         (tui_show_register_group): Likewise.
8292         (tui_display_registers_from): Likewise.
8293         (tui_check_register_values): Likewise.
8294         * tui/tui-source.c (tui_set_source_content): Likewise.
8295         (tui_set_source_content_nil): Likewise.
8296         (tui_source_is_displayed): Likewise.
8297         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8298         (tui_set_locator_fullname): Likewise.
8299         (tui_set_locator_info): Likewise.
8300         (tui_show_frame_info): Likewise.
8301         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8302         (tui_show_source_line): Likewise.
8303         (tui_horizontal_source_scroll): Likewise.
8304         (tui_update_breakpoint_info): Likewise.
8305         (tui_set_exec_info_content): Likewise.
8306         (tui_show_exec_info_content): Likewise.
8307         (tui_alloc_source_buffer): Likewise.
8308         (tui_line_is_displayed): Likewise.
8309         (tui_addr_is_displayed): Likewise.
8310
8311 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8312
8313         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8314         event if PL_FLAG_EXEC is set.
8315         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8316         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8317         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8318         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8319         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8320
8321 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8322
8323         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8324         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8325         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8326         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8327         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8328         [PT_LWPINFO] (fbsd_wait): New function.
8329         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8330         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8331         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8332         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8333         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8334         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8335         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8336         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8337         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8338         "fbsd_wait".
8339         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8340         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8341         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8342         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8343         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8344         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8345         Set "to_post_attach" to "fbsd_post_attach".
8346
8347 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8348
8349         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8350         (fbsd_find_memory_regions): Mark static.
8351         (fbsd_nat_add_target): New function.
8352         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8353         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8354         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8355         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8356         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8357         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8358
8359 2015-04-27  Gary Benson <gbenson@redhat.com>
8360
8361         * objfiles.c (allocate_objfile): Do not attempt to expand name
8362         if name is a "target:" filename.
8363         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8364         to load auto-load scripts for objfiles with "target:" filenames.
8365
8366 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8367
8368         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8369         (enum s390_vector_abi_kind): New enum.
8370         (struct gdbarch_tdep)<vector_abi>: New field.
8371         (s390_effective_inner_type): Add parameter min_size.  Stop
8372         unwrapping if the inner type is smaller than min_size.
8373         (s390_function_arg_float): Adjust call to
8374         s390_effective_inner_type.
8375         (s390_function_arg_vector): New function.
8376         (s390_function_arg_integer): Adjust comment.
8377         (struct s390_arg_state)<vr>: New field.
8378         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8379         arguments according to vector ABI when appropriate.
8380         (s390_push_dummy_call): Initialize the argument state's field
8381         'vr'.  Adjust calls to s390_handle_arg.
8382         (s390_register_return_value): Handle vector return values.
8383         (s390_return_value): Apply the "register" return value convention
8384         to a vector when appropriate.
8385         (s390_gdbarch_init): Initialize tdep->vector_abi.
8386         * NEWS: Announce S390 vector ABI support.
8387
8388 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8389
8390         * s390-linux-tdep.c (s390_return_value_convention): Remove
8391         function.  Inline its logic...
8392         (s390_return_value): ...here.  Instead, move the handling of the
8393         "register" return value convention...
8394         (s390_register_return_value): ...here.  New function.
8395
8396 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8397
8398         * s390-linux-tdep.c
8399         (is_float_singleton): Remove function.  Move the "singleton" part
8400         of the logic...
8401         (s390_effective_inner_type): ...here.  New function.
8402         (is_float_like): Remove function.  Inline its logic...
8403         (s390_function_arg_float): ...here.
8404         (is_pointer_like, is_integer_like, is_struct_like): Remove
8405         functions.  Inline their logic...
8406         (s390_function_arg_integer): ...here.
8407         (s390_function_arg_pass_by_reference): Remove function.
8408         (extend_simple_arg): Remove function.
8409         (alignment_of): Remove function.
8410         (struct s390_arg_state): New structure.
8411         (s390_handle_arg): New function.
8412         (s390_push_dummy_call): Move parameter placement logic to the new
8413         function s390_handle_arg.  Call it for calculating the stack area
8414         sizes first, and again for actually writing the parameters.
8415
8416 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8417
8418         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8419           false if the argument is zero.
8420
8421 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8422
8423         * ada-lang.c (template_to_static_fixed_type): Return input type
8424         when it is already fixed.  Cache the input type itself when not
8425         creating a static fixed copy.  Make it explicit that we never
8426         molestate the input type.
8427         * gdbtypes.c (resolve_dynamic_struct): Reset the
8428         TYPE_TARGET_TYPE field for resolved copies.
8429
8430 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8431
8432         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8433         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8434         (template_to_static_fixed_type): Call ada_check_typedef only
8435         when necessary.
8436
8437 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8438
8439         * cli/cli-dump.c (srec_dump_command): Add internationalization
8440         mark ups.
8441         (ihex_dump_command): Likewise.
8442         (tekhex_dump_command): Likewise.
8443         (binary_dump_command): Likewise.
8444         (binary_append_command): Likewise.
8445
8446 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8447
8448         * cli/cli-dump.c (verilog_cmdlist): New variable.
8449         (dump_verilog_memory): New function.
8450         (dump_verilog_value): New function.
8451         (verilog_dump_command): New function.
8452         (_initialize_cli_dump): Add new commands to support verilog dump
8453         format.
8454         * NEWS: Add entry for "dump verilog".
8455
8456 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8457
8458         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8459         descriptive type when there is none.
8460
8461 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8462
8463         * tui/tui-win.c (tui_async_resize_screen): Call
8464         rl_resize_terminal().
8465
8466 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8467
8468         * windows-nat.c (handle_output_debug_string): Don't change
8469         current_event.dwThreadId.
8470         (get_windows_debug_event): Use thread_id, rather than relying on
8471         current_event.dwThreadId being changed.
8472
8473 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8474
8475         * windows-nat.c (windows_continue): Report an error if
8476         ContinueDebugEvent() fails.
8477
8478 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8479
8480         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8481
8482 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8483
8484         * windows-nat.c (get_windows_debug_event): Replace retval with
8485         thread_id throughout.  Update stale comment.
8486
8487 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8488
8489         * windows-nat.c (get_windows_debug_event): Don't use ternary
8490         conditional operator.
8491
8492 2015-04-21  Pierre Muller  <muller@sourceware.org>
8493
8494         PR pascal/17815
8495         p-exp.y (yylex): Reorganize code to return the matched pattern
8496         for a field of this.
8497
8498 2015-04-21  Gary Benson <gbenson@redhat.com>
8499
8500         * common/fileio.h (fileio_to_host_openflags): New declaration.
8501         * common/fileio.c (fcntl.h): New include.
8502         (fileio_to_host_openflags): New function, factored out from...
8503         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8504         Single use updated.
8505
8506 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8507
8508         * rl78-tdep.c (RL78_SP_ADDR): Define.
8509         (opc_reg_to_gdb_regnum): New static function.
8510         (rl78_analyze_prologue): Recognize instructions forming slightly
8511         more interesting prologues.
8512
8513 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8514
8515         Revert:
8516         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8517         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8518         TYPE_CODE_REF types so that they are not considered as dynamic
8519         depending on the referenced type.
8520         (resolve_dynamic_type_internal): Likewise.
8521
8522 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8523
8524         Revert:
8525         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8526         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8527         "top_level" parameter.
8528         (resolve_dynamic_type_internal): Remove the unused "top_level"
8529         parameter.  Update call to is_dynamic_type_internal.
8530         (is_dynamic_type): Update call to is_dynamic_type_internal.
8531         (resolve_dynamic_range): Update call to
8532         resolve_dynamic_type_internal.
8533         (resolve_dynamic_union): Likewise.
8534         (resolve_dynamic_struct): Likewise.
8535         (resolve_dynamic_type): Likewise.
8536
8537 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8538
8539         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8540         xmalloc.
8541
8542 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8543
8544         * reply_mig_hack.awk: Robustify parsing.
8545
8546         * reply_mig_hack.awk: Don't bother to declare an intermediate
8547         function pointer variable.
8548
8549 2015-04-17  Doug Evans  <dje@google.com>
8550
8551         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8552         to "exec_displacement" to avoid confusion with inner use of the name.
8553
8554 2015-04-17  Pedro Alves  <palves@redhat.com>
8555
8556         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8557         if HW point of TYPE isn't supported.
8558
8559 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8560             Pedro Alves  <palves@redhat.com>
8561
8562         * target.h (target_can_use_hardware_watchpoint): Update comments.
8563         Remove trailing ";".
8564
8565 2015-04-17  Gary Benson <gbenson@redhat.com>
8566
8567         * remote.c (remote_add_inferior): New argument try_open_exec.
8568         If nonzero, attempt to open the inferior's executable file as
8569         the main executable if no main executable is open already.
8570         All callers updated.
8571         * NEWS: Mention that GDB now supports automatic location and
8572         retrieval of executable + files from remote targets.
8573
8574 2015-04-17  Gary Benson <gbenson@redhat.com>
8575
8576         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8577         * remote.c (PACKET_qXfer_exec_file): Likewise.
8578         (remote_protocol_features): Register the
8579         "qXfer:exec-file:read" feature.
8580         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8581         (remote_pid_to_exec_file): New function.
8582         (init_remote_ops): Initialize to_pid_to_exec_file.
8583         (_initialize_remote): Register new "set/show remote
8584         pid-to-exec-file-packet" command.
8585         * NEWS: Announce new qXfer:exec-file:read packet.
8586
8587 2015-04-17  Gary Benson <gbenson@redhat.com>
8588
8589         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8590         New declaration.
8591         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8592         New function, factored out from...
8593         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8594
8595 2015-04-17  Gary Benson <gbenson@redhat.com>
8596
8597         * exec.c (solist.h): New include.
8598         (exec_file_locate_attach): Prefix absolute executable
8599         paths with gdb_sysroot if set.
8600         * NEWS: Mention that executable paths may be prepended
8601         with sysroot.
8602
8603 2015-04-17  Gary Benson <gbenson@redhat.com>
8604
8605         * solist.h (exec_file_find): New declaration.
8606         * solib.c (solib_find_1): New function, factored out from...
8607         (solib_find): ...here.
8608         (exec_file_find): New function.
8609
8610 2015-04-17  Gary Benson <gbenson@redhat.com>
8611
8612         * gdbcore.h (exec_file_locate_attach): New declaration.
8613         * exec.c (exec_file_locate_attach): New function, factored
8614         out from...
8615         * infcmd.c (attach_command_post_wait): ...here.
8616
8617 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8618
8619         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8620
8621 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8622
8623         * infrun.c (maybe_software_singlestep): Declare.
8624         (displaced_step_fixup): Call maybe_software_singlestep.
8625
8626 2015-04-15  Doug Evans  <dje@google.com>
8627
8628         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8629
8630 2015-04-15  Doug Evans  <dje@google.com>
8631
8632         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8633
8634 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8635
8636         * python/lib/gdb/command/unwinders.py: Add parentheses.
8637
8638 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8639
8640         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8641
8642 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8643
8644         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8645
8646 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8647
8648         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8649         dsc->insn_size instead of 4.
8650
8651 2015-04-14  Gary Benson <gbenson@redhat.com>
8652
8653         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8654         * minidebug.c (lzma_stat): Likewise.
8655         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8656         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8657
8658 2015-04-13  Stan Shebs  <stanshebs@google.com>
8659
8660         * MAINTAINERS: Update my email address.
8661
8662 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8663
8664         * amd64-tdep.c (amd64_target_description): New function.
8665         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8666         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8667         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8668         x86 extended save area.
8669         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8670         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8671         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8672         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8673         "amd64fbsd_read_description".
8674         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8675         (amd64fbsd_supply_xstateregset): New function.
8676         (amd64fbsd_collect_xstateregset): New function.
8677         Add "amd64fbsd_xstateregset".
8678         (amd64fbsd_iterate_over_regset_sections): New function.
8679         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8680         "I386_FBSD_XSAVE_XCR0_OFFSET".
8681         Add "iterate_over_regset_sections" gdbarch method.
8682         Add "core_read_description" gdbarch method.
8683         * i386-tdep.c (i386_target_description): New function.
8684         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8685         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8686         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8687         x86 extended save area.
8688         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8689         * i386bsd-nat.h: Export i386bsd_xsave_len.
8690         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8691         (_initialize_i386fbsd_nat): Set "to_read_description" to
8692         "i386fbsd_read_description".
8693         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8694         (i386fbsd_core_read_description): New function.
8695         (i386fbsd_supply_xstateregset): New function.
8696         (i386fbsd_collect_xstateregset): New function.
8697         Add "i386fbsd_xstateregset".
8698         (i386fbsd_iterate_over_regset_sections): New function.
8699         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8700         "I386_FBSD_XSAVE_XCR0_OFFSET".
8701         Add "iterate_over_regset_sections" gdbarch method.
8702         Add "core_read_description" gdbarch method.
8703         * i386fbsd-tdep.h: New file.
8704
8705 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8706
8707         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8708         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8709         conditional.
8710         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8711         and lb.
8712         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8713         va.
8714         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8715         conditional.
8716         * defs.h (xdb_commands): Remove declaration.
8717         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8718         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8719         * infcmd.c (run_no_args_command, go_command): Remove.
8720         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8721         * infrun.c (xdb_handle_command): Remove.
8722         (_initialize_infrun): Remove xdb_commands for lz and z.
8723         * main.c (xdb_commands): Remove variable.
8724         (captured_main): Remove "xdb" from long_options.
8725         (print_gdb_help): Remove --xdb from help.
8726         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8727         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8728         * stack.c (backtrace_full_command, args_plus_locals_info)
8729         (current_frame_command): Remove.
8730         (_initialize_stack): Remove xdb_commands for t, T and l.
8731         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8732         * thread.c (_initialize_thread): Remove xdb_commands condition.
8733         * tui/tui-layout.c (tui_toggle_layout_command)
8734         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8735         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8736         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8737         (tui_scroll_regs_backward_command): Remove.
8738         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8739         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8740         (_initialize_tui_win): Remove xdb_commands for U and w.
8741         * utils.c (pagination_on_command, pagination_off_command): Remove.
8742         (initialize_utils): Remove xdb_commands for am and sm.
8743
8744 2015-04-10  Pedro Alves  <palves@redhat.com>
8745
8746         * infrun.c (displaced_step_fixup): Switch to the event ptid
8747         earlier.  If the thread stopped for a watchpoint and the
8748         target/arch has non-continuable watchpoints, cancel the displaced
8749         step.
8750         (resume): Don't start a displaced step if in-line step-over info
8751         is valid.
8752
8753 2015-04-10  Pedro Alves  <palves@redhat.com>
8754
8755         * infrun.c (displaced_step_in_progress): New function.
8756         (do_target_resume): Advise target to report all signals if
8757         displaced stepping.
8758
8759 2015-04-10  Pedro Alves  <palves@redhat.com>
8760
8761         PR gdb/18216
8762         * infrun.c (process_event_stop_test): Don't assume a step-resume
8763         is set if tp->stepped_breakpoint is true.
8764
8765 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8766
8767         * arm-tdep.c (install_alu_reg): Update comment.
8768         (thumb_copy_alu_reg): Remove local variable rn.  Update
8769         debugging message.  Use r2 instead of r1 in the modified
8770         instruction.
8771
8772 2015-04-10  Pedro Alves  <palves@redhat.com>
8773
8774         PR gdb/13858
8775         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8776         linux_displaced_step_location as gdbarch_displaced_step_location
8777         hook.
8778         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8779         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8780         * linux-tdep.c (linux_displaced_step_location): New function,
8781         based on ppc_linux_displaced_step_location.
8782         * linux-tdep.h (linux_displaced_step_location): New declaration.
8783         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8784         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8785         Delete.
8786         (ppc_linux_init_abi): Install linux_displaced_step_location as
8787         gdbarch_displaced_step_location hook, even without Cell/B.E..
8788         (_initialize_ppc_linux_tdep): Don't install
8789         ppc_linux_inferior_created as inferior_created observer.
8790         * s390-linux-tdep.c (s390_gdbarch_init): Install
8791         linux_displaced_step_location as gdbarch_displaced_step_location
8792         hook.
8793
8794 2015-04-09  Gary Benson <gbenson@redhat.com>
8795
8796         * common/common-remote-fileio.h: Rename to...
8797         * common/fileio.h: ...this.  Update all references.
8798         (remote_fileio_to_fio_error): Rename to...
8799         (host_to_fileio_error): ...this.
8800         (remote_fileio_to_be): Rename to...
8801         (host_to_bigendian): ...this.  Update all callers.
8802         (remote_fileio_to_fio_uint): Rename to...
8803         (host_to_fileio_uint): ...this.  Update all callers.
8804         (remote_fileio_to_fio_time): Rename to...
8805         (host_to_fileio_time): ...this.  Update all callers.
8806         (remote_fileio_to_fio_stat): Rename to...
8807         (host_to_fileio_stat): ...this.
8808         Update all references.
8809         * common/common-remote-fileio.c: Rename to...
8810         * common/fileio.c: ...this.  Update all references.
8811         (remote_fileio_to_fio_error): Rename to...
8812         (host_to_fileio_error): ...this.  Update all callers.
8813         (remote_fileio_mode_to_target): Rename to...
8814         (fileio_mode_pack): ...this.  Update all callers.
8815         (remote_fileio_to_fio_mode): Rename to...
8816         (host_to_fileio_mode): ...this.  Update all callers.
8817         (remote_fileio_to_fio_ulong): Rename to...
8818         (host_to_fileio_ulong): ...this.  Update all callers.
8819         (remote_fileio_to_fio_stat): Rename to...
8820         (host_to_fileio_stat): ...this.  Update all callers.
8821
8822 2015-04-09  Andy Wingo  <wingo@igalia.com>
8823
8824         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8825         (frame_functions): Bind gdbscm_frame_read_register to
8826         frame-read-register.
8827         * guile/lib/gdb.scm (frame-read-register): Export.
8828
8829 2015-04-09  Gary Benson <gbenson@redhat.com>
8830
8831         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8832         New declaration.
8833         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8834         New function, factored out the named functions below.
8835         * inf-child.c (gdb/fileio.h): Remove include.
8836         (common-remote-fileio.h): New include.
8837         (inf_child_errno_to_fileio_error): Remove function.  Update
8838         all callers to use remote_fileio_to_fio_error.
8839         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8840
8841 2015-04-09  Andy Wingo  <wingo@igalia.com>
8842
8843         * MAINTAINERS (Write After Approval): Add Andy Wingo.
8844
8845 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8846
8847         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8848         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8849         * configure: Regenerated.
8850
8851 2015-04-09  Pedro Alves  <palves@redhat.com>
8852
8853         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8854         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8855         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8856         * gnulib/import/Makefile.am: Update.
8857         * gnulib/import/Makefile.in: Update.
8858         * gnulib/import/m4/gnulib-cache.m4: Update.
8859         * gnulib/import/m4/gnulib-comp.m4: Update.
8860         * gnulib/import/m4/strtok_r.m4: New file.
8861         * gnulib/import/strtok_r.c: New file.
8862
8863 2015-04-09  Pedro Alves  <palves@redhat.com>
8864
8865         * gnulib/update-gnulib.sh (aclocal version check): Filter out
8866         "called too early to check prototype".
8867
8868 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
8869
8870         PR python/16699
8871         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8872         use a caching mechanism.  Adjust comments and code to reflect
8873         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8874         (cmdpy_completer_handle_brkchars): Adjust call to
8875         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
8876         (cmdpy_completer): Likewise.
8877
8878 2015-04-08  Yao Qi  <yao.qi@linaro.org>
8879
8880         * spu-tdep.c (spu_gdbarch_init): Don't call
8881         set_gdbarch_cannot_step_breakpoint.
8882
8883 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
8884
8885         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8886
8887 2015-04-07  Pedro Alves  <palves@redhat.com>
8888
8889         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8890         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8891         (delete_exited_threads): New declaration.
8892         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8893         * linux-nat.c (linux_nat_update_thread_list): New function.
8894         (linux_nat_add_target): Install it.
8895         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8896         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8897         (delete_exited_threads): New function.
8898
8899 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
8900
8901         * infrun.c (resume) <displaced stepping debug output>: Get the
8902         leader thread's regcache, not resume_ptid's.
8903
8904 2015-04-06  Doug Evans  <xdje42@gmail.com>
8905
8906         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8907         VAR_DOMAIN.
8908         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8909         Include symbol domain in debugging output.
8910
8911 2015-04-06  Pedro Alves  <palves@redhat.com>
8912             Bernd Edlinger  <bernd.edlinger@hotmail.de>
8913
8914         * configure.ac: Remove the mingw32-specific stub-termcap.o
8915         fallback, and instead fallback to the stub termcap on all hosts.
8916         * configure: Regenerate.
8917         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8918         symbols.
8919
8920 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8921
8922         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8923         "top_level" parameter.
8924         (resolve_dynamic_type_internal): Remove the unused "top_level"
8925         parameter.  Update call to is_dynamic_type_internal.
8926         (is_dynamic_type): Update call to is_dynamic_type_internal.
8927         (resolve_dynamic_range): Update call to
8928         resolve_dynamic_type_internal.
8929         (resolve_dynamic_union): Likewise.
8930         (resolve_dynamic_struct): Likewise.
8931         (resolve_dynamic_type): Likewise.
8932
8933 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8934
8935         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8936         TYPE_CODE_REF types so that they are not considered as dynamic
8937         depending on the referenced type.
8938         (resolve_dynamic_type_internal): Likewise.
8939
8940 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8941
8942         * Makefile.in (top_srcdir): New.
8943         * configure: Regenerated.
8944
8945 2015-04-02  Gary Benson <gbenson@redhat.com>
8946
8947         * NEWS: Announce the new default sysroot of "target:".
8948
8949 2015-04-02  Gary Benson <gbenson@redhat.com>
8950
8951         * main.c (captured_main): Set gdb_sysroot to "target:"
8952         if not otherwise set.
8953
8954 2015-04-02  Gary Benson <gbenson@redhat.com>
8955
8956         * exec.c (exec_file_attach): Support "target:" filenames.
8957
8958 2015-04-02  Gary Benson <gbenson@redhat.com>
8959
8960         * solib.c (solib_find): Strip "target:" prefix from sysroot
8961         if accessing local files.
8962
8963 2015-04-02  Gary Benson <gbenson@redhat.com>
8964
8965         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8966         checks and error messages.
8967
8968 2015-04-02  Gary Benson <gbenson@redhat.com>
8969
8970         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8971         (remote_filename_p): Remove declaration.
8972         (remote_bfd_open): Likewise.
8973         * remote.c (remote_bfd_iovec_open): Remove function.
8974         (remote_bfd_iovec_close): Likewise.
8975         (remote_bfd_iovec_pread): Likewise.
8976         (remote_bfd_iovec_stat): Likewise.
8977         (remote_filename_p): Likewise.
8978         (remote_bfd_open): Likewise.
8979         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8980         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8981         (gdb_bfd_open_maybe_remote): Remove function.
8982         (symfile_bfd_open):  Replace remote filename check with
8983         target filename check.
8984         (reread_symbols): Use gdb_bfd_open.
8985         * build-id.c (gdbcore.h): New include.
8986         (build_id_to_debug_bfd): Use gdb_bfd_open.
8987         * infcmd.c (attach_command_post_wait): Remove remote filename
8988         check.
8989         * solib.c (solib_find): Replace remote-specific handling with
8990         target-specific handling.  Update comments where necessary.
8991         (solib_bfd_open): Replace remote-specific handling with
8992         target-specific handling.
8993         (gdb_sysroot_changed): New function.
8994         (_initialize_solib): Call the above when gdb_sysroot changes.
8995         * windows-tdep.c (gdbcore.h): New include.
8996         (windows_xfer_shared_library): Use gdb_bfd_open.
8997
8998 2015-04-02  Gary Benson <gbenson@redhat.com>
8999
9000         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9001         (is_target_filename): New declaration.
9002         (gdb_bfd_has_target_filename): Likewise.
9003         (gdb_bfd_open): Update documentation comment.
9004         * gdb_bfd.c (target.h): New include.
9005         (gdb/fileio.h): Likewise.
9006         (is_target_filename): New function.
9007         (gdb_bfd_has_target_filename): Likewise.
9008         (fileio_errno_to_host): Likewise.
9009         (gdb_bfd_iovec_fileio_open): Likewise.
9010         (gdb_bfd_iovec_fileio_pread): Likewise.
9011         (gdb_bfd_iovec_fileio_close): Likewise.
9012         (gdb_bfd_iovec_fileio_fstat): Likewise.
9013         (gdb_bfd_open): Use target fileio to access paths prefixed
9014         with "target:" where necessary.
9015
9016 2015-04-02  Gary Benson <gbenson@redhat.com>
9017
9018         * target.h (struct target_ops) <to_filesystem_is_local>:
9019         New field.
9020         (target_filesystem_is_local): New macro.
9021         * target-delegates.c: Regenerate.
9022         * remote.c (remote_filesystem_is_local): New function.
9023         (init_remote_ops): Initialize to_filesystem_is_local.
9024
9025 2015-04-02  Gary Benson <gbenson@redhat.com>
9026
9027         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9028         (target_fileio_fstat): New declaration.
9029         * target.c (target_fileio_fstat): New function.
9030         * inf-child.c (inf_child_fileio_fstat): Likewise.
9031         (inf_child_target): Initialize to_fileio_fstat.
9032         * remote.c (init_remote_ops): Likewise.
9033
9034 2015-04-01  Sasha Smundak  <asmundak@google.com>
9035
9036         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9037         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9038         (py-unwind.o): New recipe.
9039         * NEWS: mention Python frame unwinding.
9040         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9041         gdb/unwinder.py and gdb/command/unwinder.py
9042         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9043         list.
9044         (execute_unwinders): New function.
9045         * python/lib/gdb/command/unwinders.py: New file.
9046         * python/lib/gdb/unwinder.py: New file.
9047         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9048         (objfpy_dealloc): Decrement frame_unwinders reference count.
9049         (objfpy_initialize): Create frame_unwinders list.
9050         (objfpy_get_frame_unwinders): New function.
9051         (objfpy_set_frame_unwinders): Ditto.
9052         (objfile_getset): Add frame_unwinders attribute to Objfile.
9053         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9054         (pspy_dealloc): Decrement frame_unwinders reference count.
9055         (pspy_initialize): Create frame_unwinders list.
9056         (pspy_get_frame_unwinders): New function.
9057         (pspy_set_frame_unwinders): Ditto.
9058         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9059         * python/py-unwind.c: New file.
9060         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9061         (objpy_get_frame_unwinders): New prototype.
9062         (gdbpy_initialize_unwind): New prototype.
9063         * python/python.c (gdbpy_apply_type_printers): Call
9064         gdbpy_initialize_unwind.
9065
9066 2015-04-01  Pedro Alves  <palves@redhat.com>
9067
9068         * infrun.c (resume): Check currently_stepping after clearing
9069         stepped_breakpoint, not before.
9070
9071 2015-04-01  Pedro Alves  <palves@redhat.com>
9072
9073         * infrun.c (print_target_wait_results): Print all the ptid
9074         elements.
9075
9076 2015-04-01  Pedro Alves  <palves@redhat.com>
9077
9078         * infrun.c (keep_going): Also discard cleanups if inserting
9079         breakpoints fails.
9080
9081 2015-04-01  Pedro Alves  <palves@redhat.com>
9082
9083         * infrun.c (wait_for_inferior): Install the
9084         finish_thread_state_cleanup cleanup across the whole function, not
9085         just around handle_inferior_event.
9086
9087 2015-04-01  Pedro Alves  <palves@redhat.com>
9088
9089         * infrun.c (resume) <step past permanent breakpoint>: Use
9090         do_target_resume.
9091
9092 2015-04-01  Pedro Alves  <palves@redhat.com>
9093
9094         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9095
9096 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9097
9098         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9099
9100 2015-04-01  Pedro Alves  <palves@redhat.com>
9101
9102         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9103         list if it was marked exited.
9104
9105 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9106
9107         * configure: Regenerated.
9108
9109 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9110             Jan Kratochvil  <jan.kratochvil@redhat.com>
9111             Oleg Nesterov  <oleg@redhat.com>
9112
9113         PR corefiles/16092
9114         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9115         New enum identifying the various options of the coredump_filter
9116         file.
9117         (struct smaps_vmflags): New struct.
9118         (use_coredump_filter): New variable.
9119         (decode_vmflags): New function.
9120         (mapping_is_anonymous_p): Likewise.
9121         (dump_mapping_p): Likewise.
9122         (linux_find_memory_regions_full): New variables
9123         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9124         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9125         parsing of its information.  Implement memory mapping filtering
9126         based on its contents.
9127         (show_use_coredump_filter): New function.
9128         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9129         * NEWS: Mention the possibility of using the
9130         '/proc/PID/coredump_filter' file when generating a corefile.
9131         Mention new command 'set use-coredump-filter'.
9132
9133 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9134
9135         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9136         read_memory_unsigned_integer.
9137
9138 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9139
9140         * Makefile.in (ZLIB): New.
9141         (ZLIBINC): Likewise.
9142         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9143         (CLIBS): Add $(ZLIB).
9144         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9145         Add -lz to LIBS.
9146         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9147         * top.c (print_gdb_configuration): Remove --with-zlib and
9148         --without-zlib.
9149         * config.in: Regenerated.
9150         * configure: Likewise.
9151
9152 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9153
9154         * NEWS: Mention info os cpus support.
9155         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9156         (struct osdata_type): Add cpus entry, reorder the entries in
9157         alphabetical order.
9158
9159 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9160
9161         * compile/compile.c (compile_to_object): Allow triplets with or
9162         without vendor set.
9163
9164 2015-03-30  Doug Evans  <dje@google.com>
9165
9166         PR c++/18141
9167         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9168         klass in VAR_DOMAIN.
9169
9170 2015-03-30  Gary Benson <gbenson@redhat.com>
9171
9172         * remote.c (remote_mourn_1): Remove function.  Update all callers
9173         to use remote_mourn.
9174         (extended_remote_mourn_1): Remove function.  Update all callers
9175         to use extended_remote_mourn.
9176         (extended_remote_attach_1): Remove function.  Update all callers
9177         to use extended_remote_attach.
9178
9179 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9180
9181         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9182         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9183         (ALLDEPFILES): Add ft32-tdep.c.
9184         * configure.tgt: Add FT32 entry.
9185         * ft32-tdep.c: New file, FT32 target-dependent code.
9186         * ft32-tdep.h: New file, FT32 target-dependent code.
9187
9188 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9189
9190         Revert:
9191         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9192         Code cleanup.
9193         * printcmd.c (print_command_1): Move expr variable scope.
9194
9195 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9196
9197         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9198
9199 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9200
9201         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9202         sections.
9203
9204 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9205
9206         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9207         exception raised while parsing the probe arguments.
9208         Force parsing to be done using the C language parser.
9209         * expression.h (parse_expression_with_language): Declare.
9210         * parse.c (parse_expression_with_language): New function.
9211
9212 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9213
9214         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9215
9216 2015-03-26  Andy Wingo  <wingo@igalia.com>
9217
9218         PR symtab/18148
9219         * dwarf2read.c (struct partial_die_info): Add has_const_value
9220         member.
9221         (add_partial_symbol): Don't punt on symbols that have const_value
9222         attributes.
9223         (read_partial_die): Detect DW_AT_const_value.
9224
9225 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9226
9227         Code cleanup.
9228         * printcmd.c (print_command_1): Move expr variable scope.
9229
9230 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9231
9232         Code cleanup.
9233         * printcmd.c (validate_format): Make the parameter cmdname const.
9234
9235 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9236
9237         * remote.c (_initialize_remote): Update comment.
9238
9239 2015-03-26  Pedro Alves  <palves@redhat.com>
9240             Jon TURNEY  <jon.turney@dronecode.org.uk>
9241
9242         * coffread.c (coff_symfile_read): When constructing the name of an
9243         import stub symbol from import symbol for amd64, only skip the
9244         char after _imp_ if the target is underscored (like i386) and the
9245         char is indeed the target's leading char.
9246
9247 2015-03-25  Pedro Alves  <palves@redhat.com>
9248
9249         * target.h <to_async>: Replace 'callback' and 'context' parameters
9250         with boolean 'enable' parameter.
9251         (target_async): Replace CALLBACK and CONTEXT parameters with
9252         boolean ENABLE parameter.
9253         * inf-loop.c (inferior_event_handler): Adjust.
9254         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9255         (linux_nat_resume): Adjust.
9256         (async_client_callback, async_client_context): Delete.
9257         (handle_target_event): Call inferior_event_handler directly.
9258         (linux_nat_async): Replace 'callback' and 'context' parameters
9259         with boolean 'enable' parameter.  Adjust.  Remove references to
9260         async_client_callback and async_client_context.
9261         (linux_nat_close): Adjust.
9262         * record-btrace.c (record_btrace_async): Replace 'callback' and
9263         'context' parameters with boolean 'enable' parameter.  Adjust.
9264         (record_btrace_resume): Adjust.
9265         * record-full.c (record_full_async): Replace 'callback' and
9266         'context' parameters with boolean 'enable' parameter.  Adjust.
9267         (record_full_resume, record_full_core_resume): Adjust.
9268         * remote.c (struct remote_state) <async_client_callback,
9269         async_client_context>: Delete fields.
9270         (remote_start_remote, extended_remote_attach_1, remote_resume)
9271         (extended_remote_create_inferior): Adjust.
9272         (remote_async_serial_handler): Call inferior_event_handler
9273         directly.
9274         (remote_async): Replace 'callback' and 'context' parameters with
9275         boolean 'enable' parameter.  Adjust.
9276         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9277         Adjust.
9278         * target-delegates.c: Regenerate.
9279
9280 2015-03-25  Gary Benson <gbenson@redhat.com>
9281             Pedro Alves  <palves@redhat.com>
9282
9283         * target.c (fileio_ft_t): New typedef, define object vector.
9284         (fileio_fhandles): New static variable.
9285         (is_closed_fileio_fh): New macro.
9286         (lowest_closed_fd): New static variable.
9287         (acquire_fileio_fd): New function.
9288         (release_fileio_fd): Likewise.
9289         (fileio_fd_to_fh): New macro.
9290         (target_fileio_open): Wrap the file descriptor on success.
9291         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9292         (target_fileio_pread): Likewise.
9293         (target_fileio_close): Likewise.
9294
9295 2015-03-24  Pedro Alves  <palves@redhat.com>
9296
9297         * thread.c (thread_apply_all_command): Take exited threads into
9298         account.
9299
9300 2015-03-24  Pedro Alves  <palves@redhat.com>
9301
9302         * infrun.c (resume, proceed): Mention
9303         switch_back_to_stepped_thread, not switch_back_to_stepping.
9304
9305 2015-03-24  Pedro Alves  <palves@redhat.com>
9306
9307         * infrun.c (user_visible_resume_ptid): Rewrite going from
9308         most-locked to unlocked instead of the opposite.  Move comment ...
9309         * infrun.h (user_visible_resume_ptid): ... here.
9310
9311 2015-03-24  Pedro Alves  <palves@redhat.com>
9312
9313         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9314         to resume the event lwp.  Use the lwp's ptid instead of the passed
9315         in (maybe wildcard) ptid.
9316         (stop_wait_callback): Tweak debug log output.
9317         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9318         TRAP_TRACE.
9319         (linux_nat_filter_event): In debug output, distinguish a
9320         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9321         before trying to resume the lwp.
9322
9323 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9324
9325         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9326         pointer indirection.
9327         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9328         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9329
9330 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9331
9332         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9333         Renames DYN_ATTR_DATA_LOCATION.
9334         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9335         DYN_ATTR_DATA_LOCATION.
9336         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9337         instead of DYN_ATTR_DATA_LOCATION.
9338
9339 2015-03-24  Pedro Alves  <palves@redhat.com>
9340
9341         * breakpoint.c (until_break_command): Adjust call to proceed.
9342         * gdbthread.h (struct thread_control_state) <stepping_command>:
9343         New field.
9344         * infcall.c (run_inferior_call): Adjust call to proceed.
9345         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9346         Adjust calls to proceed.
9347         (set_step_frame): Set the current thread's step_start_function
9348         here.
9349         (step_once): Adjust calls to proceed.
9350         (jump_command, signal_command, until_next_command)
9351         (finish_backward, finish_forward, proceed_after_attach_callback)
9352         (attach_command_post_wait): Adjust calls to proceed.
9353         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9354         (do_target_resume): New function, factored out from ...
9355         (resume): ... here.  Remove 'step' parameter.  Instead, check
9356         currently_stepping to determine whether the thread should be
9357         single-stepped.
9358         (proceed): Remove 'step' parameter and don't set the thread's
9359         step_start_function here.  Adjust call to 'resume'.
9360         (handle_inferior_event): Adjust calls to 'resume'.
9361         (switch_back_to_stepped_thread): Use do_target_resume instead of
9362         'resume'.
9363         (keep_going): Adjust calls to 'resume'.
9364         * infrun.h (proceed): Remove 'step' parameter.
9365         (resume): Likewise.
9366         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9367         'resume'.
9368         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9369
9370 2015-03-24  Pedro Alves  <palves@redhat.com>
9371
9372         * gdbthread.h (struct thread_control_state) <stepping_command>:
9373         New field.
9374         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9375         the thread's stepping_command field.
9376         * infrun.c (resume): Check the thread's stepping_command flag to
9377         determine which threads should be resumed.  Rename 'entry_step'
9378         local to user_step.
9379         (clear_proceed_status_thread): Clear 'stepping_command'.
9380         (schedlock_applies): Change parameter type to struct thread_info
9381         pointer.  Adjust.
9382         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9383         (switch_back_to_stepped_thread): Adjust calls to
9384         'schedlock_applies'.
9385         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9386
9387 2015-03-24  Pedro Alves  <palves@redhat.com>
9388
9389         * infrun.c (step_start_function): Delete and ...
9390         * gdbthread.h (struct thread_control_state) <step_start_function>:
9391         ... now a field here.
9392         * infrun.c (clear_proceed_status_thread): Clear the thread's
9393         step_start_function.
9394         (proceed, process_event_stop_test, print_stop_event): Adjust.
9395
9396 2015-03-24  Pedro Alves  <palves@redhat.com>
9397
9398         * infrun.c (proceed): No longer handle negative step.
9399
9400 2015-03-24  Gary Benson  <gbenson@redhat.com>
9401
9402         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9403         (x86_linux_prepare_to_resume): Likewise.
9404         * x86-linux-nat.c (x86_linux_new_thread):
9405         Moved to nat/x86-linux.c.
9406         (x86_linux_prepare_to_resume): Likewise.
9407         * nat/x86-linux.c (x86_linux_new_thread): New function.
9408         (x86_linux_prepare_to_resume): Likewise.
9409
9410 2015-03-24  Gary Benson  <gbenson@redhat.com>
9411
9412         * nat/x86-linux-dregs.h: New file.
9413         * nat/x86-linux-dregs.c: Likewise.
9414         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9415         (x86-linux-dregs.o): New rule.
9416         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9417         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9418         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9419         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9420         (x86_linux_dr_get): Likewise.
9421         (x86_linux_dr_set): Likewise.
9422         (x86_linux_dr_get_addr): Likewise.
9423         (x86_linux_dr_get_control): Likewise.
9424         (x86_linux_dr_get_status): Likewise.
9425         (update_debug_registers_callback): Likewise.
9426         (x86_linux_dr_set_control): Likewise.
9427         (x86_linux_dr_set_addr): Likewise.
9428         (x86_linux_update_debug_registers): Likewise.
9429
9430 2015-03-24  Gary Benson  <gbenson@redhat.com>
9431
9432         * x86-linux-nat.c (x86_linux_update_debug_registers):
9433         New function, factored out from...
9434         (x86_linux_prepare_to_resume): ...this.
9435
9436 2015-03-24  Gary Benson  <gbenson@redhat.com>
9437
9438         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9439         (x86_linux_dr_set): Likewise.
9440         (x86_linux_dr_get_addr): Likewise.
9441         (x86_linux_dr_get_control): Likewise.
9442         (x86_linux_dr_get_status): Likewise.
9443         (update_debug_registers_callback): Likewise.
9444         (x86_linux_dr_set_control): Likewise.
9445         (x86_linux_dr_set_addr): Likewise.
9446         (x86_linux_prepare_to_resume): Likewise.
9447         (x86_linux_new_thread): Likewise.
9448
9449 2015-03-24  Gary Benson  <gbenson@redhat.com>
9450
9451         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9452         (x86_linux_new_thread): Rename argument.
9453
9454 2015-03-24  Gary Benson  <gbenson@redhat.com>
9455
9456         * nat/x86-linux.h: New file.
9457         * nat/x86-linux.c: Likewise.
9458         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9459         (x86-linux.o): New rule.
9460         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9461         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9462         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9463         (lwp_set_arch_private_info): New declaration.
9464         (lwp_arch_private_info): Likewise.
9465         * linux-nat.c (lwp_set_arch_private_info): New function.
9466         (lwp_arch_private_info): Likewise.
9467         * x86-linux-nat.c: Include nat/x86-linux.h.
9468         (arch_lwp_info): Removed structure.
9469         (update_debug_registers_callback):
9470         Use lwp_set_debug_registers_changed.
9471         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9472         and lwp_set_debug_registers_changed.
9473         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9474
9475 2015-03-24  Gary Benson  <gbenson@redhat.com>
9476
9477         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9478         (lwp_is_stopped): Likewise.
9479         (lwp_stop_reason): Likewise.
9480         * linux-nat.c (ptid_of_lwp): New function.
9481         (lwp_is_stopped): Likewise.
9482         (lwp_is_stopped_by_watchpoint): Likewise.
9483         * x86-linux-nat.c (update_debug_registers_callback):
9484         Use lwp_is_stopped.
9485         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9486         lwp_stop_reason.
9487
9488 2015-03-24  Gary Benson  <gbenson@redhat.com>
9489
9490         * linux-nat.h (linux_stop_lwp): Move declaration to...
9491         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9492
9493 2015-03-24  Gary Benson  <gbenson@redhat.com>
9494
9495         * linux-nat.h: Include nat/linux-nat.h.
9496         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9497         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9498         (iterate_over_lwps_ftype): New typedef.
9499         (iterate_over_lwps): New declaration.
9500         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9501         iterate_over_lwps_ftype.  Update callback return value check.
9502
9503 2015-03-24  Gary Benson  <gbenson@redhat.com>
9504
9505         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9506         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9507
9508 2015-03-24  Gary Benson  <gbenson@redhat.com>
9509
9510         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9511         * linux-nat.c (current_lwp_ptid): New function.
9512         * x86-linux-nat.c: Include nat/linux-nat.h.
9513         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9514         (x86_linux_dr_get_control): Likewise.
9515         (x86_linux_dr_get_status): Likewise.
9516         (x86_linux_dr_set_control): Likewise.
9517         (x86_linux_dr_set_addr): Likewise.
9518
9519 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9520
9521         PR breakpoints/16466
9522         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9523
9524 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9525
9526         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9527         * ser-unix.c (hardwire_setparity): Likewise.
9528
9529 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9530
9531         * NEWS: Mention set/show serial parity command.
9532         * monitor.c (monitor_open): Call serial_setparity.
9533         * remote.c (remote_open_1): Likewise.
9534         * ser-base.c (ser_base_serparity): New function.
9535         * ser-base.h (ser_base_setparity): Add  declaration.
9536         * ser-go32.c (dos_ops): Set "setparity" field.
9537         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9538         state.Parity.
9539         (ser_windows_setparity): New function.
9540         (hardwire_ops): Add ser_windows_setparity.
9541         (tty_ops): Add NULL for setparity field.
9542         (pipe_ops): Add ser_base_setparity.
9543         (tcp_ops): Likewise.
9544         * ser-pipe.c (pipe_ops): Likewise.
9545         * ser-tcp.c (tcp_ops): Likewise.
9546         * ser-unix.c (hardwire_setparity): Add declaration.
9547         (hardwire_raw): Don't reset PARENB flag.
9548         (hardwire_setparity): New function.
9549         (hardwire_ops): Add hardwire_setparity.
9550         * serial.c (serial_setparity): New function.
9551         (serial_parity): New global.
9552         (parity_none, parity_odd, parity_even, parity_enums, parity):
9553         New static globals.
9554         (set_parity): New function.
9555         (_initialize_serial): Add set/show serial parity commands.
9556         * serial.h (GDBPARITY_NONE): Define.
9557         (GDBPARITY_ODD): Define.
9558         (GDBPARITY_EVEN): Define.
9559         (serial_setparity) Add declaration.
9560         (struct serial_ops): Add setparity field.
9561         * target.h (serial_parity): Add declaration.
9562
9563 2015-03-23  Keith Seitz  <keiths@redhat.com>
9564
9565         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9566
9567 2015-03-23  Keith Seitz  <keiths@redhat.com>
9568
9569         * breakpoint.c (parse_breakpoint_sals): Use
9570         linespec_lexer_lex_keyword to ascertain if the user specified
9571         a NULL location.
9572         * linespec.c [IF_KEYWORD_INDEX]: Define.
9573         (linespec_lexer_lex_keyword): Export.
9574         (struct ls_parser) <keyword_ok>: Remove.
9575         A keyword is only a keyword if not followed by another keyword.
9576         (linespec_lexer_lex_one): Remove keyword_ok handling.
9577         Add comment explaining why the parsing stream is not advanced
9578         when a keyword is seen.
9579         (parse_linespec): Remove parser->keyword_ok.
9580         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9581
9582 2015-03-23  Keith Seitz  <keiths@redhat.com>
9583
9584         PR gdb/18021
9585         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9586         if we find a static method with DW_AT_vtable_elem_location.
9587
9588 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9589
9590         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9591         before the second loop, to avoid undefined behavior.  Reported by
9592         Anton Blanchard <anton@samba.org>.
9593
9594 2015-03-20  Keven Boell  <keven.boell@intel.com>
9595
9596         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9597         data_location usage to linked list.
9598         (resolve_dynamic_type_internal): Adapt data_location to
9599         linked list.
9600         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9601         (copy_type_recursive, copy_type): Add copy of linked list.
9602         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9603         (struct dynamic_prop_list): New struct.
9604         * dwarf2read.c (set_die_type): Set data_location data.
9605
9606 2015-03-20  Pedro Alves  <palves@redhat.com>
9607
9608         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9609         inner block and make it const.
9610         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9611
9612 2015-03-20  Pedro Alves  <palves@redhat.com>
9613
9614         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9615         * breakpoint.h (set_breakpoint_condition): Update declaration.
9616
9617 2015-03-20  Pedro Alves  <palves@redhat.com>
9618
9619         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9620
9621 2015-03-20  Pedro Alves  <palves@redhat.com>
9622
9623         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9624
9625 2015-03-20  Pedro Alves  <palves@redhat.com>
9626
9627         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9628
9629 2015-03-20  Pedro Alves  <palves@redhat.com>
9630
9631         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9632         (nto_init_solib_absolute_prefix): Likewise.
9633
9634 2015-03-20  Pedro Alves  <palves@redhat.com>
9635
9636         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9637         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9638
9639 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9640
9641         * config/djgpp/README: Remove gdb.hp.
9642
9643 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9644
9645         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9646         set_gdbarch_cannot_step_breakpoint.
9647
9648 2015-03-19  Pedro Alves  <palves@redhat.com>
9649
9650         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9651         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9652         instead call perror_with_name.
9653         (check_ptrace_stopped_lwp_gone): New function.
9654         (linux_resume_one_lwp): Reimplement as wrapper around
9655         linux_resume_one_lwp_throw that swallows errors if the LWP is
9656         gone.
9657         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9658         swallows errors if the LWP is gone.  Use
9659         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9660
9661 2015-03-19  Pedro Alves  <palves@redhat.com>
9662
9663         * linux-nat.c (status_callback): Return early if the LWP has no
9664         status pending.
9665
9666 2015-03-19  Pedro Alves  <palves@redhat.com>
9667
9668         * linux-nat.c (select_event_lwp_callback): Update comment to no
9669         longer mention SIGTRAP.
9670
9671 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9672
9673         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9674         redirection code to ...
9675         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9676         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9677
9678 2015-03-18  Gary Benson <gbenson@redhat.com>
9679
9680         (remote_protocol_features): Remove the "vFile:fstat" feature.
9681         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9682
9683 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9684
9685         PR tdep/18107
9686         * aarch64-linux-tdep.c: Include xml-syscall.h
9687         (aarch64_linux_get_syscall_number): New function.
9688         (aarch64_linux_init_abi): Call
9689         set_gdbarch_get_syscall_number.
9690         * syscalls/aarch64-linux.xml: New file.
9691
9692 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9693
9694         * ser-base.h (ser_base_setstopbits): Change second argument name
9695         from "rate" to "num".
9696
9697 2015-03-17  Gary Benson <gbenson@redhat.com>
9698             Luke Allardyce <lukeallardyce@gmail.com>
9699
9700         PR gdb/18131
9701         * common/common-remote-fileio.h (sys/stat.h): New include.
9702         (stuct stat): Remove forward declaration.
9703
9704 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9705
9706         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9707         before writing core register notes.
9708
9709 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9710             Pedro Alves  <palves@redhat.com>
9711
9712         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9713         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9714         (tgoto): Wrap with extern "C".
9715
9716 2015-03-16  Pedro Alves  <palves@redhat.com>
9717             Yuanhui Zhang  <asmwarrior@gmail.com>
9718
9719         * stub-termcap.c (tputs): Change prototype.
9720
9721 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9722             Pedro Alves  <palves@redhat.com>
9723
9724         * windows-nat.c (struct thread_info_struct): Rename to ...
9725         (struct windows_thread_info_struct): ... this.
9726         (thread_info): Rename to ...
9727         (windows_thread_info): ... this.
9728         All users updated.
9729
9730 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9731             Pedro Alves  <palves@redhat.com>
9732
9733         * NEWS: New Removed targets and native configurations.
9734
9735 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9736
9737         Remove HPUX.
9738         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9739         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9740         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9741         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9742         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9743         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9744         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9745         hppa-hpux-tdep.c.
9746         * config/ia64/hpux.mh: Remove file.
9747         * config/pa/hpux.mh: Remove file.
9748         * configure: Rebuilt.
9749         * configure.ac (dlgetmodinfo, somread.o): Remove.
9750         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9751         (ia64-*-hpux*): Remove its float format exception.
9752         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9753         * hppa-hpux-nat.c: Remove file.
9754         * hppa-hpux-tdep.c: Remove file.
9755         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9756         Move them here from hppa-tdep.h
9757         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9758         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9759         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9760         Move them to hppa-tdep.c.
9761         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9762         declarations.
9763         * ia64-hpux-nat.c: Remove file.
9764         * ia64-hpux-tdep.c: Remove file.
9765         * ia64-hpux-tdep.h: Remove file.
9766         * inf-ttrace.c: Remove file.
9767         * inf-ttrace.h: Remove file.
9768         * solib-ia64-hpux.c: Remove file.
9769         * solib-ia64-hpux.h: Remove file.
9770         * solib-pa64.c: Remove file.
9771         * solib-pa64.h: Remove file.
9772         * solib-som.c: Remove file.
9773         * solib-som.h: Remove file.
9774         * somread.c: Remove file.
9775
9776 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9777
9778         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9779         * config.in: Regenerate.
9780         * configure: Regenerate.
9781         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9782         define.
9783         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9784         enumerate memory regions if present.
9785
9786 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9787
9788         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9789         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9790         expressions.
9791         (i386fbsd_sigtramp_p): Likewise.
9792
9793 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9794
9795         * MAINTAINERS (Write After Approval): Add John Baldwin.
9796
9797 2015-03-12  Gary Benson <gbenson@redhat.com>
9798
9799         * solib.c (_initialize_solib): Make "set/show sysroot" use
9800         add_setshow_optional_filename_cmd so it can be restored to
9801         empty after being set.
9802
9803 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9804
9805         * Makefile.in (SFILES): New source break-catch-syscall.c.
9806         (COMMON_OBS): New object break-catch-syscall.o.
9807         * break-catch-syscall.c: New file.
9808         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9809         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9810         (struct syscall_catchpoint): Likewise.
9811         (dtor_catch_syscall): Likewise.
9812         (catch_syscall_inferior_data): Likewise.
9813         (struct catch_syscall_inferior_data): Likewise.
9814         (get_catch_syscall_inferior_data): Likewise.
9815         (catch_syscall_inferior_data_cleanup): Likewise.
9816         (insert_catch_syscall): Likewise.
9817         (remove_catch_syscall): Likewise.
9818         (breakpoint_hit_catch_syscall): Likewise.
9819         (print_it_catch_syscall): Likewise.
9820         (print_one_catch_syscall): Likewise.
9821         (print_mention_catch_syscall): Likewise.
9822         (print_recreate_catch_syscall): Likewise.
9823         (catch_syscall_breakpoint_ops): Likewise.
9824         (syscall_catchpoint_p): Likewise.
9825         (create_syscall_event_catchpoint): Likewise.
9826         (catch_syscall_split_args): Likewise.
9827         (catch_syscall_command_1): Likewise.
9828         (is_syscall_catchpoint_enabled): Likewise.
9829         (catch_syscall_enabled): Likewise.
9830         (catching_syscall_number): Likewise.
9831         (catch_syscall_completer): Likewise.
9832         (clear_syscall_counts): Likewise.
9833         (initialize_breakpoint_ops): Move initialization of syscall
9834         catchpoints to break-catch-syscall.c.
9835         (_initialize_breakpoint): Move code related to syscall catchpoints
9836         to break-catch-syscall.c.
9837
9838 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9839
9840         * breakpoint.c (breakpoint_find_if): New function.
9841         * breakpoint.h (breakpoint_find_if): New prototype.
9842
9843 2015-03-11  Gary Benson <gbenson@redhat.com>
9844
9845         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9846         * remote-fileio.c (remote_fileio_to_host_uint): New function.
9847         (remote_fileio_to_host_ulong): Likewise.
9848         (remote_fileio_to_host_mode): Likewise.
9849         (remote_fileio_to_host_time): Likewise.
9850         (remote_fileio_to_host_stat): Likewise.
9851         * remote.c (PACKET_vFile_fstat): New enum value.
9852         (remote_protocol_features): Register the "vFile:fstat" feature.
9853         (remote_hostio_fstat): New function.
9854         (remote_bfd_iovec_stat): Use the above.
9855         (_initialize_remote): Register new "set/show remote
9856         hostio-fstat-packet" command.
9857         * symfile.c (separate_debug_file_exists): Update comment.
9858         * NEWS: Announce new vFile:fstat packet.
9859
9860 2015-03-11  Gary Benson <gbenson@redhat.com>
9861
9862         * common/common-remote-fileio.h: New file.
9863         * common/common-remote-fileio.c: Likewise.
9864         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9865         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9866         (COMMON_OBS): Add common-remote-fileio.o.
9867         (common-remote-fileio.o): New rule.
9868         * remote-fileio.h (common-remote-fileio.h): New include.
9869         * remote-fileio.c (gdb/fileio.h): Do not include.
9870         (remote_fileio_to_be): Moved to common-remote-fileio.h.
9871         (remote_fileio_to_fio_uint): Likewise.
9872         (remote_fileio_to_fio_time): Likewise.
9873         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9874         (remote_fileio_to_fio_mode): Likewise.
9875         (remote_fileio_to_fio_ulong): Likewise.
9876         (remote_fileio_to_fio_stat): Likewise.
9877
9878 2015-03-11  Andy Wingo  <wingo@igalia.com>
9879
9880         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9881         we were checking the cached type, not the cached dynamic type.
9882
9883 2015-03-11  Andy Wingo  <wingo@igalia.com>
9884
9885         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9886         other strings, as these are on the GC'd heap, and will be
9887         collected along with the smob.
9888
9889 2015-03-11  Andy Wingo  <wingo@igalia.com>
9890
9891         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9892         (objfile_functions): Bind gdbscm_objfile_progspace to
9893         objfile-progspace.
9894         * guile/lib/gdb.scm: Add objfile-progspace to exports.
9895
9896 2015-03-11  Andy Wingo  <wingo@igalia.com>
9897
9898         * guile/guile.c (_initialize_guile): Disable automatic
9899         finalization, if Guile offers us that possibility.
9900         * guile/guile.c (call_initialize_gdb_module):
9901         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9902         finalizers in appropriate places.
9903         * configure.ac (AC_TRY_LIBGUILE): Add a check for
9904         scm_set_automatic_finalization_enabled.
9905         * configure: Regenerated.
9906
9907 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9908
9909         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9910         SAL, if possible.
9911
9912 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9913
9914         * s390-linux-nat.c (struct arch_lwp_info): New.
9915         (s390_fix_watch_points): Rename to...
9916         (s390_prepare_to_resume): ...this.  Skip the PER info update
9917         unless the watch points have changed.
9918         (s390_refresh_per_info, s390_new_thread): New functions.
9919         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9920         s390_fix_watch_points.
9921         (s390_remove_watchpoint): Likewise.
9922         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9923         Register s390_prepare_to_resume.
9924
9925 2015-03-09  Pedro Alves  <palves@redhat.com>
9926
9927         Revert:
9928         2015-03-07  Pedro Alves  <palves@redhat.com>
9929         * common/gdb_socket.h: New file.
9930         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9931         sys/socket.h.
9932         (net_open): Use union gdb_sockaddr_u.
9933
9934 2015-03-07  Pedro Alves  <palves@redhat.com>
9935
9936         * configure.ac (build_warnings): Move -Wmissing-prototypes
9937         -Wdeclaration-after-statement -Wmissing-parameter-type
9938         -Wold-style-declaration -Wold-style-definition to the C-specific
9939         set.
9940         * configure: Regenerate.
9941
9942 2015-03-07  Pedro Alves  <palves@redhat.com>
9943
9944         * common/gdb_socket.h: New file.
9945         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
9946         sys/socket.h.
9947         (net_open): Use union gdb_sockaddr_u.
9948
9949 2015-03-07  Pedro Alves  <palves@redhat.com>
9950
9951         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9952         (exceptions_state_mc_action_iter)
9953         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9954         Don't define.
9955         [__cplusplus] (try_scope_depth): New global.
9956         [__cplusplus] (exception_try_scope_entry)
9957         (exception_try_scope_exit, gdb_exception_sliced_copy)
9958         (exception_rethrow): New functions.
9959         (throw_exception): In C++ mode, throw
9960         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9961         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9962         (throw_it): In C++ mode, use try_scope_depth.
9963         * common/common-exceptions.h [!__cplusplus]
9964         (exceptions_state_mc_action_iter)
9965         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9966         Don't declare.
9967         [__cplusplus] (exception_try_scope_entry)
9968         (exception_try_scope_exit, exception_rethrow): Declare.
9969         [__cplusplus] (struct exception_try_scope): New struct.
9970         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9971         C++ exceptions.
9972         (struct gdb_exception_RETURN_MASK_ALL)
9973         (struct gdb_exception_RETURN_MASK_ERROR)
9974         (struct gdb_exception_RETURN_MASK_QUIT): New types.
9975
9976 2015-03-07  Pedro Alves  <palves@redhat.com>
9977
9978         * main.c (handle_command_errors): Remove volatile qualifier from
9979         parameter.
9980
9981 2015-03-07  Pedro Alves  <palves@redhat.com>
9982
9983         * breakpoint.c (save_breakpoints): Adjust to avoid code between
9984         TRY and CATCH.
9985         * gdbtypes.c (safe_parse_type): Remove empty line.
9986         (types_deeply_equal):
9987         * guile/scm-frame.c (gdbscm_frame_name):
9988         * linux-thread-db.c (find_new_threads_once):
9989         * python/py-breakpoint.c (bppy_get_commands):
9990         * record-btrace.c (record_btrace_insert_breakpoint)
9991         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9992         (record_btrace_start_replaying): Adjust to avoid code between TRY
9993         and CATCH.
9994
9995 2015-03-07  Pedro Alves  <palves@redhat.com>
9996
9997         * common/common-exceptions.c (struct catcher) <exception>: No
9998         longer a pointer to volatile exception.  Now an exception value.
9999         <mask>: Delete field.
10000         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10001         (exceptions_state_mc): No longer pop the catcher here.
10002         (exceptions_state_mc_catch): New function.
10003         (throw_exception): Adjust.
10004         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10005         all parameters.
10006         (exceptions_state_mc_catch): Declare.
10007         (TRY_CATCH): Rename to ...
10008         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10009         (CATCH, END_CATCH): New.
10010         All callers adjusted.
10011
10012 2015-03-07  Tom Tromey  <tromey@redhat.com>
10013
10014         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10015
10016 2015-03-07  Pedro Alves  <palves@redhat.com>
10017
10018         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10019         (amd64_epilogue_frame_cache): Normal exception handling code.
10020         * break-catch-throw.c (check_status_exception_catchpoint)
10021         (re_set_exception_catchpoint): Ditto.
10022         * cli/cli-interp.c (safe_execute_command):
10023         * cli/cli-script.c (script_from_file): Ditto.
10024         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10025         Ditto.
10026         * compile/compile-object-run.c (compile_object_run): Ditto.
10027         * cp-abi.c (baseclass_offset): Ditto.
10028         * cp-valprint.c (cp_print_value): Ditto.
10029         * exceptions.c (catch_exceptions_with_msg):
10030         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10031         * frame.c (get_frame_address_in_block_if_available): Ditto.
10032         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10033         (i386_sigtramp_frame_cache): Ditto.
10034         * infcmd.c (post_create_inferior): Ditto.
10035         * linespec.c (parse_linespec, find_linespec_symbols):
10036         * p-valprint.c (pascal_object_print_value): Ditto.
10037         * parse.c (parse_expression_for_completion): Ditto.
10038         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10039         * remote.c (remote_get_noisy_reply): Ditto.
10040         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10041         * solib-svr4.c (solib_svr4_r_map): Ditto.
10042
10043 2015-03-06  Gary Benson  <gbenson@redhat.com>
10044
10045         * common/common-utils.h (startswith): New inline function.
10046         All places where this logic was used updated to use the above.
10047
10048 2015-03-05  Pedro Alves  <palves@redhat.com>
10049
10050         PR gdb/18002
10051         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10052         after reading the breakpoint's shadow memory.
10053
10054 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10055
10056         * hppabsd-nat.c: Remove file.
10057         * hppaobsd-nat.c: New file.
10058         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10059         hppaobsd-nat.c.
10060         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10061         hppaobsd-nat.o.
10062
10063 2015-03-04  Pedro Alves  <palves@redhat.com>
10064
10065         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10066         (target_decr_pc_after_break): Delete declaration.
10067         * target.c (default_target_decr_pc_after_break)
10068         (target_decr_pc_after_break): Delete.
10069         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10070         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10071         * linux-thread-db.c (check_event): Likewise.
10072         * infrun.c (adjust_pc_after_break): Likewise.
10073         * darwin-nat.c (cancel_breakpoint): Likewise.
10074         * aix-thread.c (aix_thread_wait): Likewise.
10075         * target-delegates.c: Regenerate.
10076
10077 2015-03-04  Pedro Alves  <palves@redhat.com>
10078
10079         * linux-nat.c (save_sigtrap): Check for breakpoints before
10080         checking watchpoints.
10081         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10082         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10083         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10084         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10085         (linux_nat_stopped_by_sw_breakpoint)
10086         (linux_nat_supports_stopped_by_sw_breakpoint)
10087         (linux_nat_stopped_by_hw_breakpoint)
10088         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10089         (linux_nat_wait_1): Don't re-increment the PC if relying on
10090         SIGTRAP's siginfo->si_code.
10091         (linux_nat_add_target): Install new target methods.
10092         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10093         offset if the target already adjusted the PC.
10094         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10095         (GDB_ARCH_TRAP_BRKPT): New.
10096         (TRAP_HWBKPT): Define if not already defined.
10097
10098 2015-03-04  Pedro Alves  <palves@redhat.com>
10099
10100         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10101         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10102         Delete field.
10103         <stop_reason>: New field.
10104         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10105         (packet_set_cmd_state): New function.
10106         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10107         features.
10108         (remote_query_supported): If not disabled with the corresponding
10109         "set remote foo-packet" command, report support for the swbreak
10110         and hwbreak features.
10111         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10112         field.
10113         <stop_reason>: New field.
10114         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10115         (remote_wait_as): Adjust.
10116         (remote_stopped_by_sw_breakpoint)
10117         (remote_supports_stopped_by_sw_breakpoint)
10118         (remote_stopped_by_hw_breakpoint)
10119         (remote_supports_stopped_by_hw_breakpoint): New functions.
10120         (remote_stopped_by_watchpoint): New function.
10121         (init_remote_ops): Install them.
10122         (_initialize_remote): Register new "set/show remote
10123         swbreak-feature-packet" and "set/show remote
10124         swbreak-feature-packet" commands.
10125
10126 2015-03-04  Pedro Alves  <palves@redhat.com>
10127
10128         * btrace.h: Include target/waitstatus.h.
10129         (struct btrace_thread_info) <stop_reason>: New field.
10130         * record-btrace.c (record_btrace_step_thread): Use
10131         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10132         (record_btrace_decr_pc_after_break): Delete.
10133         (record_btrace_stopped_by_sw_breakpoint)
10134         (record_btrace_supports_stopped_by_sw_breakpoint)
10135         (record_btrace_stopped_by_hw_breakpoint)
10136         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10137         (init_record_btrace_ops): Install them.
10138         * record-full.c (record_full_hw_watchpoint): Delete and replace
10139         with ...
10140         (record_full_stop_reason): ... this throughout.
10141         (record_full_exec_insn): Adjust.
10142         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10143         (record_full_wait_1): Adjust.  Use
10144         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10145         (record_full_stopped_by_watchpoint): Adjust.
10146         (record_full_stopped_by_sw_breakpoint)
10147         (record_full_supports_stopped_by_sw_breakpoint)
10148         (record_full_supports_stopped_by_sw_breakpoint)
10149         (record_full_stopped_by_hw_breakpoint)
10150         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10151         (init_record_full_ops, init_record_full_core_ops): Install them.
10152         * record.c (record_check_stopped_by_breakpoint): New function.
10153         * record.h: Include target/waitstatus.h.
10154         (record_check_stopped_by_breakpoint): New declaration.
10155
10156 2015-03-04  Pedro Alves  <palves@redhat.com>
10157
10158         enum lwp_stop_reason -> enum target_stop_reason
10159         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10160         (linux_nat_stopped_by_watchpoint, status_callback)
10161         (linux_nat_wait_1): Adjust.
10162         * linux-nat.h (enum lwp_stop_reason): Delete.
10163         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10164         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10165         * target/waitstatus.h (enum target_stop_reason): New.
10166
10167 2015-03-04  Pedro Alves  <palves@redhat.com>
10168
10169         * breakpoint.c (need_moribund_for_location_type): New function.
10170         (bpstat_stop_status): Don't skipping checking moribund locations
10171         of breakpoint types which the target tell caused a stop.
10172         (program_breakpoint_here_p): New function, factored out from ...
10173         (bp_loc_is_permanent): ... this.
10174         (update_global_location_list): Don't create a moribund location if
10175         the target supports reporting stops of the type of the removed
10176         breakpoint.
10177         * breakpoint.h (program_breakpoint_here_p): New declaration.
10178         * infrun.c (adjust_pc_after_break): Return early if the target has
10179         already adjusted the PC.  Add comments.
10180         (handle_signal_stop): If nothing explains a signal, and the target
10181         tells us the stop was caused by a software breakpoint, check if
10182         there's a breakpoint instruction in the memory.  If so, adjust the
10183         PC before presenting the stop to the user.  Otherwise, ignore the
10184         trap.  If nothing explains a signal, and the target tells us the
10185         stop was caused by a hardware breakpoint, ignore the trap.
10186         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10187         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10188         to_supports_stopped_by_hw_breakpoint>: New fields.
10189         (target_stopped_by_sw_breakpoint)
10190         (target_supports_stopped_by_sw_breakpoint)
10191         (target_stopped_by_hw_breakpoint)
10192         (target_supports_stopped_by_hw_breakpoint): Define.
10193         * target-delegates.c: Regenerate.
10194
10195 2015-03-04  Pedro Alves  <palves@redhat.com>
10196
10197         * infrun.c (follow_fork_inferior): Use the whole of the
10198         inferior_ptid and pending_follow.related_pid ptids instead of
10199         building ptids from the process components.  Adjust verbose output
10200         to use target_pid_to_str.
10201         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10202         inferior_ptid and pending_follow.related_pid ptids instead of
10203         building ptids from the process components.
10204
10205 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10206
10207         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10208         (inf_ptrace_insert_fork_catchpoint): New function.
10209         (inf_ptrace_remove_fork_catchpoint): New function.
10210         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10211
10212 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10213
10214         * s390-linux-tdep.c (s390_register_name): Return empty string
10215         instead of NULL for registers that shouldn't be visible.
10216
10217 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10218
10219         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10220         XML file for 64-bit targets.
10221
10222 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10223
10224         * target.h (find_default_create_inferior): Remove declaration.
10225         (find_default_attach): Likewise.
10226
10227 2015-03-03  Pedro Alves  <palves@redhat.com>
10228
10229         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10230         Use ptid_get_pid to get the overall process id when resuming all
10231         threads.
10232
10233 2015-03-03  Pedro Alves  <palves@redhat.com>
10234
10235         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10236         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10237         * inf-ptrace.c (get_ptrace_pid): New function.
10238         (inf_ptrace_resume): Use it.
10239         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10240         to the lower layer.
10241
10242 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10243
10244         * nat/linux-btrace.c: Include sys/utsname.h.
10245         (linux_determine_kernel_ptr_bits): New.
10246         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10247         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10248         ptr_bits.
10249
10250 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10251
10252         * btrace.c (ftrace_update_function): Treat return as tailcall for
10253         "_dl_runtime_resolve".
10254
10255 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10256
10257         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10258         * btrace.c (ftrace_debug): Do not print the line range.
10259         (ftrace_skip_file, ftrace_update_lines): Remove.
10260         (ftrace_new_function): Remove lbegin and lend initialization.
10261         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10262         * record-btrace.c (btrace_compute_src_line_range): New.
10263         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10264
10265 2015-03-02  Pedro Alves  <palves@redhat.com>
10266
10267         * infrun.c (follow_exec): Delete all threads of the process except
10268         the event thread.  Extended comments.
10269
10270 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10271
10272         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10273
10274 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10275
10276         * utils.h: Remove <stdbool.h> #include.
10277         (producer_is_gcc): Change return type to "int".
10278         * utils.c (producer_is_gcc): Change return type to int.
10279         Return 1 instead of true, and 0 instead of false.
10280         Adjust function documentation accordingly.
10281
10282 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10283
10284         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10285         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10286         present.
10287         (s390_linux_store_inferior_registers): Likewise.
10288         (s390_get_hwcap): Remove function.  Embed its logic...
10289         (s390_read_description): ...here.  Yield a target description with
10290         vector registers if applicable.
10291         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10292         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10293         "features/s390x-tevx-linux64.c".
10294         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10295         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10296         for "GNU/Linux-specific registers".
10297         (s390_dwarf_reg_r0l): New enum value.
10298         (s390_dwarf_reg_to_regnum): Support vector registers.
10299         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10300         of GPR lower halves.
10301         (regnum_is_vxr_full): New function.
10302         (s390_register_name): New function.
10303         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10304         f0-f15 and v0l-v15l.
10305         (s390_pseudo_register_type): Likewise.
10306         (s390_pseudo_register_read): Likewise.
10307         (s390_pseudo_register_write): Likewise.
10308         (s390_value_from_register): Account for the fact that values are
10309         placed left-justified in vector registers.
10310         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10311         the vector reggroup and omit them from the general reggroup.
10312         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10313         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10314         (s390_iterate_over_regset_sections): Add iterations for the two
10315         new vector regsets.
10316         (s390_core_read_description): Yield a target description with
10317         vector registers if applicable.
10318         (s390_gdbarch_init): Handle target descriptions with vector
10319         registers.  Add "register_name" gdbarch method.
10320         (_initialize_s390_tdep): Call new tdesc initialization functions.
10321         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10322         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10323         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10324         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10325         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10326         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10327         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10328         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10329         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10330         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10331         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10332         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10333         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10334         (S390_NUM_REGS): Adjust value.
10335         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10336         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10337         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10338         * NEWS: Announce S/390 vector register support.
10339
10340 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10341
10342         * features/s390-tevx-linux64.xml: New file.
10343         * features/s390-vx-linux64.xml: New file.
10344         * features/s390-vx.xml: New file.
10345         * features/s390x-tevx-linux64.xml: New file.
10346         * features/s390x-vx-linux64.xml: New file.
10347         * features/Makefile (WHICH): Add s390-vx-linux64,
10348         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10349         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10350         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10351         macros.
10352         * features/s390-tevx-linux64.c: New generated file.
10353         * features/s390-vx-linux64.c: Likewise.
10354         * features/s390x-tevx-linux64.c: Likewise.
10355         * features/s390x-vx-linux64.c: Likewise.
10356         * regformats/s390-tevx-linux64.dat: Likewise.
10357         * regformats/s390-vx-linux64.dat: Likewise.
10358         * regformats/s390x-tevx-linux64.dat: Likewise.
10359         * regformats/s390x-vx-linux64.dat: Likewise.
10360
10361 2015-02-28  Doug Evans  <xdje42@gmail.com>
10362
10363         * symtab.h (struct symtab) <next>: Fix comment.
10364
10365 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10366
10367         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10368         python_GdbMethods.
10369
10370 2015-02-27  Pedro Alves  <palves@redhat.com>
10371
10372         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10373
10374 2015-02-27  Pedro Alves  <palves@redhat.com>
10375
10376         * common/common-exceptions.h (exception_none): Declare.
10377         * common/common-exceptions.c (exception_none): Moved from
10378         exceptions.c.
10379         (exceptions_state_mc_init): Use exception_none.
10380         * exceptions.c (exception_none): Move to
10381         common/common-exceptions.c.
10382         * exceptions.h (exception_none): Move to
10383         common/common-exceptions.h.
10384
10385 2015-02-27  Pedro Alves  <palves@redhat.com>
10386
10387         * main.c (catch_command_errors, catch_command_errors_const):
10388         Remove 'mask' argument.  Adjust.
10389         (captured_main): Adjust callers.
10390
10391 2015-02-27  Pedro Alves  <palves@redhat.com>
10392
10393         * python/python-internal.h: Include "extension-priv.h".
10394
10395 2015-02-27  Pedro Alves  <palves@redhat.com>
10396
10397         * breakpoint.h (enum print_stop_action): Move further up in the
10398         file.
10399
10400 2015-02-27  Pedro Alves  <palves@redhat.com>
10401
10402         * gdbarch.sh: Include regcache.h.
10403         * gdbarch.h: Regenerate.
10404
10405 2015-02-27  Pedro Alves  <palves@redhat.com>
10406
10407         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10408         Remove duplicate const.
10409         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10410         duplicate const.
10411
10412 2015-02-27  Pedro Alves  <palves@redhat.com>
10413
10414         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10415         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10416         * features/feature_to_c.sh: Tag the generated xml_builtin array
10417         with extern const in C++ mode.
10418
10419 2015-02-27  Tom Tromey  <tromey@redhat.com>
10420
10421         * minidebug.c (struct lzma_stream): Rename to ...
10422         (struct gdb_lzma_stream): ... this.
10423         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10424
10425 2015-02-27  Pedro Alves  <palves@redhat.com>
10426
10427         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10428         function.
10429         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10430         (mi_cmd_stack_list_variables): Use it.
10431
10432 2015-02-27  Pedro Alves  <palves@redhat.com>
10433
10434         * x86-linux-nat.c (u_debugreg_offset): New function.
10435         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10436
10437 2015-02-27  Pedro Alves  <palves@redhat.com>
10438
10439         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10440         declaration.
10441         Include break-common.h.
10442
10443 2015-02-27  Tom Tromey  <tromey@redhat.com>
10444             Pedro Alves <palves@redhat.com>
10445
10446         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10447         local used to iterate over enums.
10448         * completer.c (signal_completer): Likewise.
10449         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10450         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10451         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10452         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10453         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10454         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10455         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10456
10457 2015-02-27  Pedro Alves  <palves@redhat.com>
10458
10459         * target.h: Include "infrun.h".
10460
10461 2015-02-27  Pedro Alves  <palves@redhat.com>
10462
10463         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10464
10465 2015-02-27  Pedro Alves  <palves@redhat.com>
10466
10467         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10468         (IPA_SYM): Use it.
10469         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10470
10471 2015-02-27  Pedro Alves  <palves@redhat.com>
10472
10473         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10474         cli_mld_erase_entire_line, and make it extern "C".
10475         * common/common-defs.h (EXTERN_C): New.
10476         * completer.c (_rl_completion_prefix_display_length)
10477         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10478         out of gdb_display_match_list_1.
10479         (_rl_qsort_string_compare): Move declaration out of
10480         gdb_display_match_list_1, and make it extern "C".
10481         * defs.h (re_comp): Use EXTERN_C.
10482         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10483         and make it extern "C".
10484         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10485         and make it extern "C".
10486         (main): Move declaration out of maintenance_set_profile_cmd.
10487         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10488         EXTERN_C.
10489
10490 2015-02-27  Pedro Alves  <palves@redhat.com>
10491
10492         * python/python.c (GdbMethods): Rename to ...
10493         (python_GdbMethods): ... this and make extern.
10494         (GdbModuleDef): Rename to ...
10495         (python_GdbModuleDef): ... this and make extern.
10496
10497 2015-02-27  Pedro Alves  <palves@redhat.com>
10498
10499         * record-btrace.c (set_record_btrace_cmdlist)
10500         (show_record_btrace_cmdlist): Remove redefinitions.
10501
10502 2015-02-27  Tom Tromey  <tromey@redhat.com>
10503             Pedro Alves  <palves@redhat.com>
10504
10505         * dwarf2-frame.c (enum cfa_how_kind, struct
10506         dwarf2_frame_state_reg_info): Move out of struct
10507         dwarf2_frame_state.
10508         * dwarf2read.c (struct tu_stats): Move out of struct
10509         dwarf2_per_objfile.
10510         (struct file_entry): Move out of struct line_header.
10511         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10512         typedef_field_list): Move out of struct field_info.
10513         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10514         Move out of struct dynamic_prop.
10515         (union type_owner, union field_location, struct field, struct
10516         range_bounds, union type_specific): Move out of struct main_type.
10517         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10518         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10519         (struct call_site_target, union call_site_parameter_u, struct
10520         call_site_parameter): Move out of struct call_site.
10521         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10522         m32c_prologue.
10523         (enum srcdest_kind): Move out of struct srcdest.
10524         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10525         * prologue-value.h (enum prologue_value_kind): Move out of struct
10526         prologue_value.
10527         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10528         gdbarch_tdep.
10529         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10530         out of struct field_info.
10531         * symfile.h (struct other_sections): Move out of struct
10532         section_addr_info.
10533         * symtab.c (struct symbol_cache_slot): Move out struct
10534         block_symbol_cache.
10535         * target-descriptions.c (enum tdesc_type_kind): Move out of
10536         typedef struct tdesc_type.
10537         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10538         struct tui_line_or_address.
10539         * value.c (enum internalvar_kind, union internalvar_data): Move
10540         out of struct internalvar.
10541         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10542         gdbarch_tdep.
10543
10544 2015-02-27  Tom Tromey  <tromey@redhat.com>
10545             Pedro Alves  <palves@redhat.com>
10546
10547         Rename symbols whose names are reserved C++ keywords throughout.
10548
10549 2015-02-27  Pedro Alves  <palves@redhat.com>
10550
10551         * Makefile.in (COMPILER): New, get it from autoconf.
10552         (COMPILE.pre, CC_LD): Use COMPILER.
10553         (CXX): Get from autoconf instead.
10554         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10555         * acinclude.m4: Include build-with-cxx.m4.
10556         * build-with-cxx.m4: New file.
10557         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10558         Disable -Werror by default if building in C++ mode.
10559         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10560         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10561         Run supported-warning-flags tests with the C++ compiler.
10562         Save/restore CXXFLAGS too.
10563         * configure: Regenerate.
10564
10565 2015-02-27  Pedro Alves  <palves@redhat.com>
10566
10567         * libiberty.m4: New file.
10568         * acinclude.m4: Include libiberty.m4.
10569         * configure.ac: Call libiberty_INIT.
10570         * config.in, configure: Regenerate.
10571
10572 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10573
10574         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10575         31-bit targets, but 64-bit targets as well.
10576         (s390_gnu_triplet_regexp): New function.
10577         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10578         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10579         method.
10580
10581 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10582
10583         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10584         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10585         from CONTEXT_DEBUGGER.
10586
10587 2015-02-26  Doug Evans  <dje@google.com>
10588
10589         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10590         CHECK_TYPEDEF.
10591         (set_type_vptr_fieldno): Ditto.
10592         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10593         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10594
10595 2015-02-26  Pedro Alves  <palves@redhat.com>
10596
10597         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10598         * complaints.c (vcomplaint): Pass argument FMT directly to
10599         printf-like functions instead of complaint->fmt.
10600         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10601         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10602         * compile/compile-loc2c.c (pushf, unary, binary): Add
10603         ATTRIBUTE_PRINTF.
10604         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10605         to pushf.
10606         (BINARY): Pass string literal as format string to 'binary'.
10607         * compile/compile-object-load.c (link_callbacks_einfo): Add
10608         ATTRIBUTE_PRINTF.
10609         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10610
10611 2015-02-26  Pedro Alves  <palves@redhat.com>
10612
10613         * windows-termcap.c: Rename to ...
10614         * stub-termcap.c: ... this.  Adjust header line.
10615         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10616         windows-termcap.c.
10617         * configure: Regenerate.
10618         * configure.ac: Refer to stub-termcap.o instead of
10619         windows-termcap.o.
10620         * gdb_curses.h: Mention stub-termcap.c instead of
10621         windows-termcap.c.
10622
10623 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10624
10625         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10626         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10627
10628 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10629
10630         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10631
10632 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10633
10634         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10635         bfd_canonicalize_symtab.
10636
10637 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10638
10639         * amd64fbsd-nat.c: Include sys/user.h.
10640         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10641         instead of KERN_PS_STRINGS to locate the signal trampoline.
10642         * i386fbsd-nat.c: Include sys/user.h.
10643         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10644         instead of KERN_PS_STRINGS to locate the signal trampoline.
10645         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10646         (amd64fbsd_sigtramp_p): New.
10647         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10648         longer set default values.
10649         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10650         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10651         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10652         (i386fbsd_freebsd4_sigtramp_start)
10653         (i386fbsd_freebsd4_sigtramp_middle)
10654         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10655         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10656         (i386fbsd_sigtramp_p): New.
10657         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10658         longer set default values.
10659         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10660
10661 2015-02-25  John Baldwin  <jhb@freebsd.org>
10662
10663         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10664         get_frame_register instead of frame_unwind_register_unsigned.
10665
10666 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10667
10668         PR build/18033
10669         * compile/compile-c-support.c (c_compute_program): Change // comment.
10670         * compile/compile-object-load.c (setup_sections): Change // comment.
10671
10672 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10673
10674         PR build/18033:
10675         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10676
10677 2015-02-23  Pedro Alves  <palves@redhat.com>
10678
10679         * remote.c (skip_to_semicolon): New function.
10680         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10681         special case the stop reasons that look like hex numbers
10682         upfront.  Instead handle real register numbers after matching
10683         all the known stop reasons.
10684
10685 2015-02-21  Doug Evans  <dje@google.com>
10686
10687         PR c++/17976, symtab/17821
10688         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10689         is_in_anonymous.  All callers updated.
10690         (find_symbol_in_baseclass): Ditto.
10691         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10692         for symbols in an anonymous namespace.
10693         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10694         DW_AT_name directly.
10695         (dwarf2_name): Convert missing namespace name to
10696         CP_ANONYMOUS_NAMESPACE_STR.
10697
10698 2015-02-20  Pedro Alves  <palves@redhat.com>
10699
10700         * linux-nat.c (linux_handle_extended_wait): Call
10701         thread_db_notice_clone whenever a new clone LWP is detected.
10702         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10703         functions.
10704         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10705         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10706         (linux_unstop_all_lwps): Declare.
10707         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10708         (thread_get_info_callback): Delete.
10709         (thread_from_lwp): Use td_thr_get_info and record_thread.
10710         (thread_db_attach_lwp): Delete.
10711         (thread_db_notice_clone): New function.
10712         (try_thread_db_load_1): If /proc is mounted and shows the
10713         process'es task list, walk over all LWPs and call thread_from_lwp
10714         instead of relying on td_ta_thr_iter.
10715         (attach_thread): Don't call check_thread_signals here.  Split the
10716         tail part of the function (which adds the thread to the core GDB
10717         thread list) to ...
10718         (record_thread): ... this function.  Call check_thread_signals
10719         here.
10720         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10721         call thread_from_lwp.
10722         (thread_db_update_thread_list): Rename to ...
10723         (thread_db_update_thread_list_org): ... this.
10724         (thread_db_update_thread_list): New function.
10725         (thread_db_find_thread_from_tid): Delete.
10726         (thread_db_get_ada_task_ptid): Simplify.
10727         * nat/linux-procfs.c: Include <sys/stat.h>.
10728         (linux_proc_task_list_dir_exists): New function.
10729         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10730
10731 2015-02-20  Pedro Alves  <palves@redhat.com>
10732
10733         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10734         main LWP.  Handle the case of waitpid returning 0 if we're already
10735         attached to the LWP.  Don't set the LWP's last_resume_kind to
10736         resume_stop if we already knew about the LWP.
10737         (linux_nat_filter_event): Add debug logs.
10738
10739 2015-02-20  Pedro Alves  <palves@redhat.com>
10740
10741         * target.h (forward_target_decr_pc_after_break): Delete
10742         declaration.
10743
10744 2015-02-20  Pedro Alves  <palves@redhat.com>
10745
10746         PR threads/18006
10747         * linux-thread-db.c (thread_get_info_callback): Return early if
10748         the thread's lwp id is -1.
10749
10750 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10751
10752         GDB 7.9 released.
10753
10754 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10755
10756         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10757         (dtrace_get_probes) Change type of variable 'dof'.
10758
10759 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10760
10761         PR breakpoints/16812
10762         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10763         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10764         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10765
10766 2015-02-19  David Taylor  <dtaylor@emc.com>
10767
10768         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10769
10770 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10771
10772         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10773         function.
10774         (tui_putc): Don't call tui_handle_resize_during_io.
10775         (tui_getc): Likewise.
10776         (tui_mld_getc): Likewise.
10777         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10778         (tui_sigwinch_token): New static variable.
10779         (tui_initialize_win): Adjust documentation.  Set
10780         tui_sigwinch_token.
10781         (tui_async_resize_screen): New asynchronous callback.
10782         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10783         invoke tui_async_resize_screen.
10784
10785 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10786
10787         * configure: Regenerated.
10788         * configure.ac: Use GDB_AC_TRANSFORM.
10789         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10790         * acinclude.m4: sinclude transform.m4.
10791         * transform.m4: New file.
10792         (GDB_AC_TRANSFORM): New macro.
10793
10794 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10795
10796         * NEWS: Announce the support for DTrace SDT probes.
10797
10798 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10799
10800         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10801         (amd64_dtrace_parse_probe_argument): New function.
10802         (amd64_dtrace_probe_is_enabled): Likewise.
10803         (amd64_dtrace_enable_probe): Likewise.
10804         (amd64_dtrace_disable_probe): Likewise.
10805         (amd64_linux_init_abi): Register the
10806         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10807         `gdbarch_dtrace_disable_probe' and
10808         `gdbarch_dtrace_probe_is_enabled' hooks.
10809         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10810         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10811         (amd64_dtrace_enable_probe_sequence): Likewise.
10812         (amd64_dtrace_disable_probe_sequence): Likewise.
10813
10814 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10815
10816         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10817         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10818         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10819         handle ELF files.
10820         * Makefile.in (SFILES): dtrace-probe.c added.
10821         * configure: Regenerate.
10822         * dtrace-probe.c: New file.
10823         (SHT_SUNW_dof): New constant.
10824         (dtrace_probe_type): New enum.
10825         (dtrace_probe_arg): New struct.
10826         (dtrace_probe_arg_s): New typedef.
10827         (struct dtrace_probe_enabler): New struct.
10828         (dtrace_probe_enabler_s): New typedef.
10829         (dtrace_probe): New struct.
10830         (dtrace_probe_is_linespec): New function.
10831         (dtrace_dof_sect_type): New enum.
10832         (dtrace_dof_dofh_ident): Likewise.
10833         (dtrace_dof_encoding): Likewise.
10834         (DTRACE_DOF_ENCODE_LSB): Likewise.
10835         (DTRACE_DOF_ENCODE_MSB): Likewise.
10836         (dtrace_dof_hdr): New struct.
10837         (dtrace_dof_sect): Likewise.
10838         (dtrace_dof_provider): Likewise.
10839         (dtrace_dof_probe): Likewise.
10840         (DOF_UINT): New macro.
10841         (DTRACE_DOF_PTR): Likewise.
10842         (DTRACE_DOF_SECT): Likewise.
10843         (dtrace_process_dof_probe): New function.
10844         (dtrace_process_dof): Likewise.
10845         (dtrace_build_arg_exprs): Likewise.
10846         (dtrace_get_arg): Likewise.
10847         (dtrace_get_probes): Likewise.
10848         (dtrace_get_probe_argument_count): Likewise.
10849         (dtrace_can_evaluate_probe_arguments): Likewise.
10850         (dtrace_evaluate_probe_argument): Likewise.
10851         (dtrace_compile_to_ax): Likewise.
10852         (dtrace_probe_destroy): Likewise.
10853         (dtrace_gen_info_probes_table_header): Likewise.
10854         (dtrace_gen_info_probes_table_values): Likewise.
10855         (dtrace_probe_is_enabled): Likewise.
10856         (dtrace_probe_ops): New variable.
10857         (info_probes_dtrace_command): New function.
10858         (_initialize_dtrace_probe): Likewise.
10859         (dtrace_type_name): Likewise.
10860
10861 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10862
10863         * gdbarch.sh (dtrace_parse_probe_argument): New.
10864         (dtrace_probe_is_enabled): Likewise.
10865         (dtrace_enable_probe): Likewise.
10866         (dtrace_disable_probe): Likewise.
10867         * gdbarch.c: Regenerate.
10868         * gdbarch.h: Regenerate.
10869
10870 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10871
10872         * stap-probe.c (stap_probe_ops): Add NULLs in the static
10873         stap_probe_ops for `enable_probe' and `disable_probe'.
10874         * probe.c (enable_probes_command): New function.
10875         (disable_probes_command): Likewise.
10876         (_initialize_probe): Define the cli commands `enable probe' and
10877         `disable probe'.
10878         (parse_probe_linespec): New function.
10879         (info_probes_for_ops): Use parse_probe_linespec.
10880         * probe.h (probe_ops): New hooks `enable_probe' and
10881         `disable_probe'.
10882
10883 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10884
10885         * probe.c (compute_probe_arg): Moved from stap-probe.c
10886         (compile_probe_arg): Likewise.
10887         (probe_funcs): Likewise.
10888         * stap-probe.c (compute_probe_arg): Moved to probe.c.
10889         (compile_probe_arg): Likewise.
10890         (probe_funcs): Likewise.
10891
10892 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10893
10894         * probe.c (print_ui_out_not_applicables): New function.
10895         (exists_probe_with_pops): Likewise.
10896         (info_probes_for_ops): Do not include column headers for probe
10897         types for which no probe has been actually found on any object.
10898         Also invoke `print_ui_out_not_applicables' in order to match the
10899         column rows with the header when probes of several types are
10900         listed.
10901         Print the "Type" column.
10902         * probe.h (probe_ops): Added a new probe operation `type_name'.
10903         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10904         (stap_type_name): New function.
10905
10906 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
10907
10908         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10909         (key_is_command_char): Delete.
10910
10911 2015-02-17  Pedro Alves  <palves@redhat.com>
10912
10913         * tui/tui.c (tui_enable): Resize windows before anything
10914         might show a window.
10915
10916 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10917
10918         PR gdb/17984
10919         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10920         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10921         call.
10922         * aarch64-tdep.h (tdesc_aarch64): Declare.
10923
10924 2015-02-12  Mark Wielaard  <mjw@redhat.com>
10925
10926         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10927
10928 2015-02-13  Doug Evans  <dje@google.com>
10929
10930         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10931         anonymous_namespace to is_in_anonymous for consistency with the rest
10932         of the file.
10933         (cp_lookup_bare_symbol): Fix typo in comment.
10934         (cp_search_static_and_baseclasses): Ditto.
10935         (search_symbol_list): Use vertical space in comment better.
10936         (reset_directive_searched): Ditto. Fix typo.
10937         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10938
10939 2015-02-13  Yao Qi  <yao.qi@arm.com>
10940
10941         * MAINTAINERS: Update my email address.
10942
10943 2015-02-12  Doug Evans  <dje@google.com>
10944
10945         * symtab.c (completion_list_add_name): Fix memory leak.
10946
10947 2015-02-12  Doug Evans  <dje@google.com>
10948
10949         * completer.c (complete_line): Remove incorrect comment.
10950
10951 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10952
10953         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10954         (py_print_frame): Use RETURN_MASK_ERROR.
10955
10956 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10957
10958         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10959         function comment.  Wrap all function that can throw in cleanups.
10960         (gdbpy_apply_frame_filter): Wrap all function that can throw in
10961         cleanups.
10962
10963 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10964
10965         * python/py-framefilter.c (py_print_frame): Substitute goto error.
10966         Remove the error label.
10967
10968 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10969
10970         * python/py-framefilter.c (py_print_frame): Put conditional code paths
10971         with goto first, indent the former else codepath left.  Put variable
10972         'elided' to a new inner block.
10973
10974 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10975
10976         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10977
10978 2015-02-11  Pedro Alves  <palves@redhat.com>
10979
10980         * xcoffread.c (within_function): Delete.
10981
10982 2015-02-11  Tom Tromey  <tromey@redhat.com>
10983             Pedro Alves <palves@redhat.com>
10984
10985         * breakpoint.c (base_breakpoint_ops): Delete.
10986         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10987         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10988         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10989         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10990         * python/py-arch.c (arch_object_type): Make extern.
10991         * python/py-block.c (block_syms_iterator_object_type): Make extern.
10992         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10993         * python/py-cmd.c (cmdpy_object_type): Make extern.
10994         * python/py-continueevent.c (continue_event_object_type)
10995         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10996         parameter.  Update all callers.
10997         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10998         * python/py-exitedevent.c (exited_event_object_type): Make extern.
10999         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11000         * python/py-function.c (fnpy_object_type): Make extern.
11001         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11002         * python/py-infevents.c (call_pre_event_object_type)
11003         (inferior_call_post_event_object_type).
11004         (memory_changed_event_object_type): Make extern.
11005         * python/py-infthread.c (thread_object_type): Make extern.
11006         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11007         * python/py-linetable.c (linetable_entry_object_type)
11008         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11009         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11010         (clear_objfiles_event_object_type): Make extern.
11011         * python/py-objfile.c (objfile_object_type): Make extern.
11012         * python/py-param.c (parmpy_object_type): Make extern.
11013         * python/py-progspace.c (pspace_object_type): Make extern.
11014         * python/py-signalevent.c (signal_event_object_type): Make extern.
11015         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11016         * python/py-type.c (type_object_type, field_object_type)
11017         (type_iterator_object_type): Make extern.
11018         * python/python.c (python_extension_script_ops)
11019         (python_extension_ops): Make extern.
11020         * stap-probe.c (stap_probe_ops): Make extern.
11021
11022 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11023
11024         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11025         because the event thread is not the current thread.
11026
11027 2015-02-11  Doug Evans  <xdje42@gmail.com>
11028
11029         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11030         been initialized yet, return NULL.
11031
11032 2015-02-11  Doug Evans  <dje@google.com>
11033
11034         * symfile.h (new_symfile_objfile): Delete.
11035         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11036         All callers updated.
11037
11038 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11039
11040         * tui/tui-io.c (tui_handle_resize_during_io): Call
11041         tui_update_gdb_sizes() after resizing the screen.
11042         * tui/tui.c (tui_enable): Resize the terminal before
11043         calling tui_update_gdb_sizes().
11044
11045 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11046
11047         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11048         line before printing a newline.
11049
11050 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11051
11052         * utils.c (producer_is_gcc): Return true or false.
11053
11054 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11055
11056         * utils.h (producer_is_gcc): Change return type to bool. Add major
11057         argument.
11058         * utils.c (producer_is_gcc): Likewise.
11059         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11060         * dwarf2read.c (check_producer): Likewise.
11061
11062 2015-02-10  Pedro Alves  <palves@redhat.com>
11063
11064         * infrun.c (displaced_step_fixup): Switch to the event thread
11065         before calling gdbarch_displaced_step_fixup.
11066
11067 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11068
11069         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11070
11071 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11072
11073         * ada-varobj.c (ada_name_of_child): Constify parent.
11074         (ada_path_expr_of_child): Same.
11075         (ada_value_of_child): Same.
11076         (ada_type_of_child): Same.
11077         * c-varobj.c (c_is_path_expr_parent): Same.
11078         (c_describe_child): Same.
11079         (c_name_of_child): Same.
11080         (c_value_of_child): Same.
11081         (c_type_of_child): Same.
11082         (cplus_number_of_children): Same.
11083         (cplus_describe_child): Constify var.
11084         (cplus_name_of_child): Constify parent.
11085         (cplus_value_of_child): Same.
11086         (cplus_type_of_child): Same.
11087         * jv-varobj.c (java_name_of_child): Same.
11088         (java_value_of_child): Same.
11089         (java_type_of_child): Same.
11090         * varobj.c (value_of_child): Same.
11091         (varobj_default_is_path_expr_parent): Constify var, parent and return
11092         value.
11093         (varobj_get_path_expr): Constify var, modify path_expr through
11094         mutable_var.
11095         (install_new_value): Constify parent.
11096         (value_of_child): Constify parent.
11097         * varobj.h (struct varobj): Constify parent.
11098         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11099         type_of_child.
11100         (varobj_get_path_expr): Constify var.
11101         (varobj_get_path_expr_parent): Constify var and return value.
11102
11103 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11104
11105         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11106         (arm_prologue_this_id): Move PC and SP limit checks to
11107         arm_prologue_unwind_stop_reason.
11108         (arm_prologue_unwind) <stop_reason> : Set to
11109         arm_prologue_unwind_stop_reason.
11110
11111 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11112
11113         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11114         DW_LANG_Fortran08 as language_fortran.
11115
11116 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11117
11118         PR remote/17946
11119         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11120         of pointer against char.
11121
11122 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11123
11124         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11125         (c_type_print_modifier): Likewise.
11126         * dwarf2read.c (read_tag_atomic_type): New function.
11127         (read_type_die_1): Handle DW_TAG_atomic_type.
11128         * gdbtypes.c (make_atomic_type): New function.
11129         (recursive_dump_type): Handle TYPE_ATOMIC.
11130         * gdbtypes.h (enum type_flag_values): Renumber.
11131         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11132         (TYPE_ATOMIC): New macro.
11133         (make_atomic_type): Declare.
11134
11135 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11136
11137         * btrace.c (ftrace_find_call): Skip gaps.
11138         (ftrace_new_function): Initialize level.
11139         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11140         (ftrace_new_switch): Update
11141         level computation.
11142         (ftrace_new_gap): New.
11143         (ftrace_update_function): Create new function after gap.
11144         (btrace_compute_ftrace_bts): Create gap on error.
11145         (btrace_stitch_bts): Update parameters.  Clear trace if it
11146         becomes empty.
11147         (btrace_stitch_trace): Update parameters.  Update callers.
11148         (btrace_clear): Reset the number of gaps.
11149         (btrace_insn_get): Return NULL if the iterator points to a gap.
11150         (btrace_insn_number): Return zero if the iterator points to a gap.
11151         (btrace_insn_end): Allow gaps at the end.
11152         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11153         (btrace_find_insn_by_number): Assert that the found iterator does
11154         not point to a gap.
11155         (btrace_call_next, btrace_call_prev): Assert that the last function
11156         is not a gap.
11157         * btrace.h (btrace_bts_error): New.
11158         (btrace_function): Update comment.
11159         (btrace_function) <insn, insn_offset, number>: Update comment.
11160         (btrace_function) <errcode>: New.
11161         (btrace_thread_info) <ngaps>: New.
11162         (btrace_thread_info) <replay>: Update comment.
11163         (btrace_insn_get): Update comment.
11164         * record-btrace.c (btrace_ui_out_decode_error): New.
11165         (record_btrace_info): Print number of gaps.
11166         (btrace_insn_history, btrace_call_history): Call
11167         btrace_ui_out_decode_error for gaps.
11168         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11169
11170 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11171
11172         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11173         * nat/linux-btrace.c: (btrace_this_cpu): New.
11174         (cpu_supports_bts): Call btrace_this_cpu.
11175         (intel_supports_bts): Add cpu parameter.
11176
11177 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11178
11179         * btrace.h (btrace_insn_class): New.
11180         (btrace_insn) <size, iclass>: New.
11181         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11182         Use instruction classification.
11183         (ftrace_new_return): Update parameters.  Update users.
11184         (ftrace_update_function): Update parameters.  Update users.  Use
11185         instruction classification.
11186         (ftrace_update_insns): Update parameters.  Update users.
11187         (ftrace_classify_insn): New.
11188         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11189         TRY_CATCH around call to gdb_insn_length.
11190
11191 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11192
11193         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11194         Update parameters.  Update users.
11195
11196 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11197
11198         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11199         (btrace_conf_bts_attributes): New.
11200         (btrace_conf_children): Add attributes.
11201         * common/btrace-common.h (btrace_config_bts): New.
11202         (btrace_config)<bts>: New.
11203         (btrace_config): Update comment.
11204         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11205         Use config.
11206         * features/btrace-conf.dtd: Increment version.  Add size
11207         attribute to bts element.
11208         * record-btrace.c (set_record_btrace_bts_cmdlist,
11209         show_record_btrace_bts_cmdlist): New.
11210         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11211         record_btrace_print_conf, cmd_set_record_btrace_bts,
11212         cmd_show_record_btrace_bts): New.
11213         (record_btrace_info): Call record_btrace_print_conf.
11214         (_initialize_record_btrace): Add commands.
11215         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11216         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11217         (btrace_sync_conf): Synchronize bts size.
11218         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11219         * NEWS: Announce new commands and new packets.
11220
11221 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11222
11223         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11224         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11225         (x86_linux_btrace_conf): New.
11226         (x86_linux_create_target): Initialize to_btrace_conf.
11227         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11228         Check format.  Split into this and ...
11229         (linux_enable_bts): ... this.
11230         (linux_btrace_conf): New.
11231         (perf_event_skip_record): Renamed into ...
11232         (perf_event_skip_bts_record): ... this.  Updated users.
11233         (linux_disable_btrace): Split into this and ...
11234         (linux_disable_bts): ... this.
11235         (linux_read_btrace): Check format.
11236         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11237         (linux_btrace_conf): New.
11238         (btrace_target_info)<ptid>: Moved.
11239         (btrace_target_info)<conf>: New.
11240         (btrace_target_info): Split into this and ...
11241         (btrace_tinfo_bts): ... this.  Updated users.
11242         * btrace.c (btrace_enable): Update parameters.
11243         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11244         (btrace_conf_children, btrace_conf_attributes)
11245         (btrace_conf_elements): New.
11246         * btrace.h (btrace_enable): Update parameters.
11247         (btrace_conf, parse_xml_btrace_conf): New.
11248         * common/btrace-common.h (btrace_config): New.
11249         * feature/btrace-conf.dtd: New.
11250         * record-btrace.c (record_btrace_conf): New.
11251         (record_btrace_cmdlist): New.
11252         (record_btrace_enable_warn, record_btrace_open): Pass
11253         &record_btrace_conf.
11254         (record_btrace_info): Print recording format.
11255         (cmd_record_btrace_bts_start): New.
11256         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11257         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11258         Add "record bts" alias command.
11259         * remote.c (remote_state)<btrace_config>: New.
11260         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11261         (remote_protocol_features): Add qXfer:btrace-conf:read.
11262         (remote_open_1): Call remote_btrace_reset.
11263         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11264         (btrace_target_info)<conf>: New.
11265         (btrace_sync_conf, btrace_read_config): New.
11266         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11267         btrace_read_conf.
11268         (remote_btrace_conf): New.
11269         (init_remote_ops): Initialize to_btrace_conf.
11270         (_initialize_remote): Add qXfer:btrace-conf packet.
11271         * target.c (target_enable_btrace): Update parameters.
11272         (target_btrace_conf): New.
11273         * target.h (target_enable_btrace): Update parameters.
11274         (target_btrace_conf): New.
11275         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11276         (target_ops)<to_enable_btrace>: Update parameters and comment.
11277         (target_ops)<to_btrace_conf>: New.
11278         * target-delegates: Regenerate.
11279         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11280         (target_debug_print_const_struct_btrace_target_info_p): New.
11281         * NEWS: Announce new command and new packet.
11282
11283 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11284
11285         * nat/linux-btrace.h (perf_event_buffer): New.
11286         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11287         <bts>: ... this.
11288         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11289         (perf_event_buffer_size, perf_event_buffer_begin)
11290         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11291         Updated users.
11292         (perf_event_new_data): New.
11293
11294 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11295
11296         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11297         * record-btrace.c (record_btrace_open): Remove call to
11298         target_supports_btrace.
11299         * remote.c (remote_supports_btrace): Update parameters.
11300         * target.c (target_supports_btrace): Update parameters.
11301         * target.h (to_supports_btrace, target_supports_btrace): Update
11302         parameters.
11303         * target-delegates.c: Regenerate.
11304         * target-debug.h (target_debug_print_enum_btrace_format): New.
11305         * nat/linux-btrace.c
11306         (kernel_supports_btrace): Rename into ...
11307         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11308         (intel_supports_btrace): Rename into ...
11309         (intel_supports_bts): ... this.  Update users.
11310         (cpu_supports_btrace): Rename into ...
11311         (cpu_supports_bts): ... this.  Update users.
11312         (linux_supports_btrace): Update parameters.  Split into this and ...
11313         (linux_supports_bts): ... this.
11314         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11315
11316 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11317
11318         * Makefile.in (SFILES): Add common/btrace-common.c.
11319         (COMMON_OBS): Add common/btrace-common.o.
11320         (btrace-common.o): Add build rules.
11321         * btrace.c (parse_xml_btrace): Update parameters.
11322         (parse_xml_btrace_block): Set format field.
11323         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11324         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11325         (btrace_compute_ftrace): Split into this and...
11326         (btrace_compute_ftrace_bts): ...this.
11327         (btrace_stitch_trace): Split into this and...
11328         (btrace_stitch_bts): ...this.
11329         * btrace.h (parse_xml_btrace): Update parameters.
11330         (make_cleanup_btrace_data): New.
11331         * common/btrace-common.c: New.
11332         * common/btrace-common.h: Include common-defs.h.
11333         (btrace_block_s): Update comment.
11334         (btrace_format): New.
11335         (btrace_format_string): New.
11336         (btrace_data_bts): New.
11337         (btrace_data): New.
11338         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11339         * remote.c (remote_read_btrace): Update parameters.
11340         * target.c (target_read_btrace): Update parameters.
11341         * target.h (target_read_btrace): Update parameters.
11342         (target_ops)<to_read_btrace>: Update parameters.
11343         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11344         * target-delegates.c: Regenerate.
11345         * target-debug (target_debug_print_struct_btrace_data_p): New.
11346         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11347         (linux_read_bts): ...this.
11348         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11349
11350 2015-02-06  Doug Evans  <dje@google.com>
11351
11352         * remote-m32r-sdi.c: Include symfile.h.
11353
11354 2015-02-06  Doug Evans  <dje@google.com>
11355
11356         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11357         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11358         to here.
11359
11360 2015-02-06  Pedro Alves  <palves@redhat.com>
11361
11362         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11363
11364 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11365
11366         PR gdb/15678
11367         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11368         (enable_count_command): Check args for NULL value.
11369
11370 2015-02-05  Doug Evans  <xdje42@gmail.com>
11371
11372         * guile/scm-frame.c: Fix spelling errors in a comment.
11373
11374 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11375
11376         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11377         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11378         return type.
11379
11380 2015-02-04  Pedro Alves  <palves@redhat.com>
11381
11382         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11383         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11384         returns true.
11385         (resume_stopped_resumed_lwps): Don't check whether the thread is
11386         marked as executing.
11387         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11388
11389 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11390
11391         * regset.h (struct regset): Add flags field.
11392         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11393         * corelow.c (get_core_register_section): Add warning if the size
11394         exceeds the requested size and the regset does not have the
11395         REGSET_VARIABLE_SIZE flag set.
11396         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11397         flag.
11398         * armbsd-tdep.c (armbsd_gregset): Likewise.
11399         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11400         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11401         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11402         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11403
11404 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11405
11406         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11407         For ".reg-xstate", explicitly specify the requested section size
11408         via X86_XSTATE_SIZE instead of just 0 on input and
11409         X86_XSTATE_MAX_SIZE on output.
11410         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11411         Likewise.
11412
11413 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11414
11415         PR corefiles/17808:
11416         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11417         function type, particularly its SIZE parameter.
11418         * gdbarch.h: Regenerate.
11419         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11420         actual against required size using ">=" instead of "==".
11421         (amd64_collect_fpregset): Likewise.
11422         * i386-tdep.c (i386_supply_gregset): Likewise.
11423         (i386_collect_gregset): Likewise.
11424         (i386_supply_fpregset): Likewise.
11425         (i386_collect_fpregset): Likewise.
11426         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11427         (mips_fill_gregset_wrapper): Likewise.
11428         (mips_supply_fpregset_wrapper): Likewise.
11429         (mips_fill_fpregset_wrapper): Likewise.
11430         (mips64_supply_gregset_wrapper): Likewise.
11431         (mips64_fill_gregset_wrapper): Likewise.
11432         (mips64_supply_fpregset_wrapper): Likewise.
11433         (mips64_fill_fpregset_wrapper): Likewise.
11434         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11435         (am33_supply_fpregset_method): Likewise.
11436         (am33_collect_gregset_method): Likewise.
11437         (am33_collect_fpregset_method): Likewise.
11438
11439 2015-02-04  Doug Evans  <dje@google.com>
11440             Pedro Alves  <palves@redhat.com>
11441             Eli Zaretskii  <eliz@gnu.org>
11442
11443         PR tui/17810
11444         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11445         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11446         * tui/tui-file.c: #include tui/tui-command.h.
11447         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11448         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11449         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11450
11451 2015-02-04  Pedro Alves  <palves@redhat.com>
11452
11453         Fix build breakage.
11454         * event-loop.c (gdb_do_one_event): Add default switch case.
11455
11456 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11457
11458         Filter out inferior gcc option -fpreprocessed.
11459         * compile/compile.c (filter_args): New function.
11460         (get_args): Use it.
11461
11462 2015-02-03  Pedro Alves  <palves@redhat.com>
11463
11464         * event-loop.c: Don't declare nor define a queue type for
11465         gdb_event_p.
11466         (event_queue): Delete.
11467         (create_event, create_file_event, gdb_event_xfree)
11468         (initialize_event_loop, process_event): Delete.
11469         (gdb_do_one_event): Return as soon as one event is handled.
11470         (handle_file_event): Change prototype.  Used the passed in
11471         file_handler pointer and ready_mask instead of looping over all
11472         file handlers.
11473         (gdb_wait_for_event): Update the poll/select timeouts before
11474         blocking.  Run event handlers directly instead of queueing events.
11475         Return as soon as one event is handled.
11476         (struct async_event_handler_data): Delete.
11477         (invoke_async_event_handler): Delete.
11478         (check_async_event_handlers): Change return type to int.  Run
11479         event handlers directly instead of queueing events.  Return as
11480         soon as one event is handled.
11481         (handle_timer_event): Delete.
11482         (update_wait_timeout): New function, factored out from
11483         poll_timers.
11484         (poll_timers): Reimplement.
11485         * event-loop.h (initialize_event_loop): Delete declaration.
11486         * top.c (gdb_init): Don't call initialize_event_loop.
11487
11488 2015-02-03  Pedro Alves  <palves@redhat.com>
11489
11490         * event-loop.c (clear_async_event_handler): New function.
11491         * event-loop.h (clear_async_event_handler): New declaration.
11492         * record-btrace.c (record_btrace_async): New function.
11493         (init_record_btrace_ops): Install record_btrace_async.
11494         * record-full.c (record_full_async): New function.
11495         (record_full_resume): Don't mark the async event source here.
11496         (init_record_full_ops): Install record_full_async.
11497         (record_full_core_resume): Don't mark the async event source here.
11498         (init_record_full_core_ops): Install record_full_async.
11499         * remote.c (remote_async): Mark and clear the async stop reply
11500         queue event-loop token as appropriate.
11501
11502 2015-02-03  Pedro Alves  <palves@redhat.com>
11503
11504         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11505         target_is_async_p instead of target_can_async.
11506         (linux_nat_wait): Use target_is_async_p instead of
11507         target_can_async.  Don't enable async here.
11508         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11509         target_is_async_p instead of target_can_async.
11510
11511 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11512
11513         * varobj.h (lang_varobj_ops): Mention which return values need
11514         to be freed.
11515
11516 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11517
11518         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11519
11520 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11521
11522         PR gdb/17856:
11523         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11524         results found in the cache.
11525
11526 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11527
11528         PR gdb/17854:
11529         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11530         when allocating a new one.
11531
11532 2015-02-01  Tom Tromey  <tom@tromey.com>
11533
11534         * MAINTAINERS: Remove myself.
11535
11536 2015-01-31  Doug Evans  <xdje42@gmail.com>
11537
11538         * dwarf2read.c (process_structure_scope): Update setting of
11539         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11540         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11541         (set_type_vptr_fieldno): New function.
11542         (internal_type_vptr_basetype): New function.
11543         (set_type_vptr_basetype): New function.
11544         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11545         TYPE_VPTR_BASETYPE.
11546         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11547         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11548         (print_cplus_stuff): ... moved here.
11549         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11550         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11551         moved to ...
11552         (struct cplus_struct_type): ... here.  All uses updated.
11553         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11554         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11555         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11556         * stabsread.c (read_tilde_fields): Update setting of
11557         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11558
11559 2015-01-31  Doug Evans  <xdje42@gmail.com>
11560
11561         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11562         to self_p.
11563         (cp_print_class_member): Rename local domain to self_type.
11564         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11565         domain_type to self_type.
11566         (set_die_type) <need_gnat_info>: Handle
11567         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11568         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11569         TYPE_SPECIFIC_SELF_TYPE.
11570         * gdbtypes.c (internal_type_self_type): New function.
11571         (set_type_self_type): New function.
11572         (smash_to_memberptr_type): Rename parameter domain to self_type.
11573         Update setting of TYPE_SELF_TYPE.
11574         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11575         (smash_to_method_type): Rename parameter domain to self_type.
11576         Update setting of TYPE_SELF_TYPE.
11577         (check_stub_method): Call smash_to_method_type.
11578         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11579         (copy_type_recursive): Ditto.
11580         * gdbtypes.h (enum type_specific_kind): New value
11581         TYPE_SPECIFIC_SELF_TYPE.
11582         (struct main_type) <type_specific>: New member self_type.
11583         (struct cplus_struct_type) <fn_field.type>: Update comment.
11584         (TYPE_SELF_TYPE): Rewrite.
11585         (internal_type_self_type, set_type_self_type): Declare.
11586         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11587         self_type.
11588         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11589         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11590         TYPE_TARGET_TYPE.
11591         * stabsread.c (read_member_functions): Mark methods with
11592         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11593         TYPE_SELF_TYPE.
11594
11595 2015-01-31  Doug Evans  <xdje42@gmail.com>
11596
11597         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11598         All uses updated.
11599
11600 2015-01-31  Doug Evans  <xdje42@gmail.com>
11601
11602         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11603         or unions.  Return zero if union.
11604         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11605         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11606         gnuv3_get_vtable.
11607         (compute_vtable_size): Assert only passed structs.
11608         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11609
11610 2015-01-31  Doug Evans  <xdje42@gmail.com>
11611
11612         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11613         kinds.
11614
11615 2015-01-31  Gary Benson <gbenson@redhat.com>
11616             Doug Evans  <dje@google.com>
11617
11618         PR cli/9007
11619         PR cli/11920
11620         PR cli/15548
11621         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11622         reached.
11623         * common/common-exceptions.h (enum errors)
11624         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11625         * completer.h (get_max_completions_reached_message): New declaration.
11626         (max_completions): Likewise.
11627         (completion_tracker_t): New typedef.
11628         (new_completion_tracker): New declaration.
11629         (make_cleanup_free_completion_tracker): Likewise.
11630         (maybe_add_completion_enum): New enum.
11631         (maybe_add_completion): New declaration.
11632         (throw_max_completions_reached_error): Likewise.
11633         * completer.c (max_completions): New global variable.
11634         (new_completion_tracker): New function.
11635         (free_completion_tracker): Likewise.
11636         (make_cleanup_free_completion_tracker): Likewise.
11637         (maybe_add_completions): Likewise.
11638         (throw_max_completions_reached_error): Likewise.
11639         (complete_line): Remove duplicates and limit result to max_completions
11640         entries.
11641         (get_max_completions_reached_message): New function.
11642         (gdb_display_match_list): Handle max_completions.
11643         (_initialize_completer): New declaration and function.
11644         * symtab.c: Include completer.h.
11645         (completion_tracker): New static variable.
11646         (completion_list_add_name): Call maybe_add_completion.
11647         (default_make_symbol_completion_list_break_on_1): Renamed from
11648         default_make_symbol_completion_list_break_on.  Maintain
11649         completion_tracker across calls to completion_list_add_name.
11650         (default_make_symbol_completion_list_break_on): New function.
11651         * top.c (init_main): Set rl_completion_display_matches_hook.
11652         * tui/tui-io.c: Include completer.h.
11653         (tui_old_rl_display_matches_hook): New static global.
11654         (tui_rl_display_match_list): Notify user if max-completions reached.
11655         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11656         * NEWS (New Options): Mention set/show max-completions.
11657
11658 2015-01-31  Gary Benson  <gbenson@redhat.com>
11659
11660         * symtab.c (struct add_name_data) <code>: New field.
11661         Updated comments.
11662         (add_symtab_completions): New function.
11663         (symtab_expansion_callback): Likewise.
11664         (default_make_symbol_completion_list_break_on): Set datum.code.
11665         Move minimal symbol scan before calling expand_symtabs_matching.
11666         Scan known primary symtabs for externs and statics before calling
11667         expand_symtabs_matching.  Pass symtab_expansion_callback as
11668         expansion_notify argument to expand_symtabs_matching.  Do not scan
11669         primary symtabs for externs and statics after calling
11670         expand_symtabs_matching.
11671
11672 2015-01-31  Gary Benson  <gbenson@redhat.com>
11673
11674         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11675         (struct quick_symbol_functions) <expand_symtabs_matching>:
11676         New argument expansion_notify.  All uses updated.
11677         (expand_symtabs_matching): New argument expansion_notify.
11678         All uses updated.
11679         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11680         Also print expansion notify.
11681         * symtab.c (expand_symtabs_matching_via_partial): Call
11682         expansion_notify whenever a partial symbol table is expanded.
11683         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11684         expansion_notify whenever a symbol table is instantiated.
11685
11686 2015-01-31  Doug Evans  <xdje42@gmail.com>
11687
11688         * cli-out.c: #include completer.h, readline/readline.h.
11689         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11690         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11691         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11692         * cli-out.h (cli_display_match_list): Declare.
11693         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11694         (ELLIPSIS_LEN): Ditto.
11695         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11696         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11697         (gdb_fnprint, gdb_print_filename): Ditto.
11698         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11699         (gdb_display_match_list): Ditto.
11700         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11701         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11702         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11703         (match_list_displayer): New struct.
11704         (gdb_display_match_list): Declare.
11705         * top.c (init_main): Set rl_completion_display_matches_hook.
11706         * tui/tui-io.c: #include completer.h.
11707         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11708         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11709         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11710         (tui_mld_getc, tui_mld_read_key): Ditto.
11711         (tui_rl_display_match_list): Rewrite.
11712         (tui_handle_resize_during_io): New arg for_completion.  All callers
11713         updated.
11714
11715 2015-01-31  Doug Evans  <xdje42@gmail.com>
11716
11717         Add symbol lookup cache.
11718         * NEWS: Document new options and commands.
11719         * symtab.c (symbol_cache_key): New static global.
11720         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11721         (SYMBOL_LOOKUP_FAILED): New macro.
11722         (symbol_cache_slot_state): New enum.
11723         (block_symbol_cache): New struct.
11724         (symbol_cache): New struct.
11725         (new_symbol_cache_size, symbol_cache_size): New static globals.
11726         (hash_symbol_entry, eq_symbol_entry): New functions.
11727         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11728         (make_symbol_cache, free_symbol_cache): New functions.
11729         (get_symbol_cache, symbol_cache_cleanup): New function.
11730         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11731         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11732         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11733         (symbol_cache_flush, symbol_cache_dump): New functions.
11734         (maintenance_print_symbol_cache): New function.
11735         (maintenance_flush_symbol_cache): New function.
11736         (symbol_cache_stats): New function.
11737         (maintenance_print_symbol_cache_statistics): New function.
11738         (symtab_new_objfile_observer): New function.
11739         (symtab_free_objfile_observer): New function.
11740         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11741         (_initialize_symtab): Init symbol_cache_key.  New parameter
11742         maint symbol-cache-size.  New maint commands print symbol-cache,
11743         print symbol-cache-statistics, flush-symbol-cache.
11744         Install new_objfile, free_objfile observers.
11745
11746 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11747
11748         PR symtab/17855
11749         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11750         to end.
11751
11752 2015-01-31  Doug Evans  <xdje42@gmail.com>
11753
11754         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11755         * auto-load.c: #include ctype.h.
11756         (struct auto_load_pspace_info): Replace member loaded_scripts with
11757         new members loaded_script_files, loaded_script_texts.
11758         (auto_load_pspace_data_cleanup): Update.
11759         (init_loaded_scripts_info): Update.
11760         (get_auto_load_pspace_data_for_loading): Update.
11761         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11762         updated.
11763         (maybe_add_script_text): New function.
11764         (clear_section_scripts): Update.
11765         (source_script_file, execute_script_contents): New functions.
11766         (source_section_scripts): Add support for
11767         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11768         (print_scripts): New function.
11769         (auto_load_info_scripts): Also print inlined scripts.
11770         (maybe_print_unsupported_script_warning): Renamed from
11771         unsupported_script_warning_print.  All callers updated.
11772         (maybe_print_script_not_found_warning): Renamed from
11773         script_not_found_warning_print.  All callers updated.
11774         * extension-priv.h (struct extension_language_script_ops): New member
11775         objfile_script_executor.
11776         * extension.c (ext_lang_objfile_script_executor): New function.
11777         * extension.h (objfile_script_executor_func): New typedef.
11778         (ext_lang_objfile_script_executor): Declare.
11779         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11780         * guile/guile.c (guile_extension_script_ops): Update.
11781         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11782         * python/python.c (python_extension_script_ops): Update.
11783         (gdbpy_execute_objfile_script): New function.
11784
11785 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11786
11787         * tui/tui-io.c (tui_expand_tabs): New function.
11788         (tui_puts, tui_redisplay_readline): Expand TABs into the
11789         appropriate number of spaces.
11790         * tui/tui-regs.c: Include tui-io.h.
11791         (tui_register_format): Call tui_expand_tabs to expand TABs into
11792         the appropriate number of spaces.
11793         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11794
11795 2015-01-30  Doug Evans  <dje@google.com>
11796
11797         * NEWS: "info source" command now display producer string if present.
11798         * source.c (source_info): Print producer string if present.
11799
11800 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11801
11802         * varobj.c (varobj_delete): Fix comment.
11803
11804 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11805
11806         * varobj.c (create_child): Modify comment.
11807
11808 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11809
11810         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11811         parameter.
11812         (ada_name_of_variable): Same.
11813         (ada_path_expr_of_child): Same.
11814         (ada_value_of_variable): Same.
11815         (ada_value_is_changeable_p): Same.
11816         (ada_value_has_mutated): Same.
11817         * c-varobj.c (varobj_is_anonymous_child): Same.
11818         (c_is_path_expr_parent): Same.
11819         (c_number_of_children): Same.
11820         (c_name_of_variable): Same.
11821         (c_path_expr_of_child): Same.
11822         (get_type): Same.
11823         (c_value_of_variable): Same.
11824         (cplus_number_of_children): Same.
11825         (cplus_name_of_variable): Same.
11826         (cplus_path_expr_of_child): Same.
11827         (cplus_value_of_variable): Same.
11828         * jv-varobj.c (java_number_of_children): Same.
11829         (java_name_of_variable): Same.
11830         (java_path_expr_of_child): Same.
11831         (java_value_of_variable): Same.
11832         * varobj.c (number_of_children): Same.
11833         (name_of_variable): Same.
11834         (is_root_p): Same.
11835         (varobj_ensure_python_env): Same.
11836         (varobj_get_objname): Same.
11837         (varobj_get_expression): Same.
11838         (varobj_get_display_format): Same.
11839         (varobj_get_display_hint): Same.
11840         (varobj_has_more): Same.
11841         (varobj_get_thread_id): Same.
11842         (varobj_get_frozen): Same.
11843         (dynamic_varobj_has_child_method): Same.
11844         (varobj_get_gdb_type): Same.
11845         (is_path_expr_parent): Same.
11846         (varobj_default_is_path_expr_parent): Same.
11847         (varobj_get_language): Same.
11848         (varobj_get_attributes): Same.
11849         (varobj_is_dynamic_p): Same.
11850         (varobj_get_child_range): Same.
11851         (varobj_value_has_mutated): Same.
11852         (varobj_get_value_type): Same.
11853         (number_of_children): Same.
11854         (name_of_variable): Same.
11855         (check_scope): Same.
11856         (varobj_editable_p): Same.
11857         (varobj_value_is_changeable_p): Same.
11858         (varobj_floating_p): Same.
11859         (varobj_default_value_is_changeable_p): Same.
11860
11861 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11862
11863         * varobj.c (varobj_get_path_expr): Set var->path_expr.
11864         * c-varobj.c (c_path_expr_of_child): Set local var instead of
11865         child->path_expr.
11866         (cplus_path_expr_of_child): Same.
11867
11868 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11869
11870         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11871         result.
11872         (mi_cmd_var_info_expression): Same.
11873         * varobj.c (varobj_get_expression): Mention in the comment that
11874         the result must by freed by the caller.
11875
11876 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11877
11878         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11879         varobj_get_type.
11880         (varobj_update_one): Same.
11881         * varobj.c (update_type_if_necessary): Free curr_type_str and
11882         new_type_str.
11883         (varobj_get_type): Specify in comment that the result needs to be
11884         freed by the caller.
11885
11886 2015-01-29  Doug Evans  <dje@google.com>
11887
11888         PR symtab/17890
11889         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11890
11891 2015-01-25  Mark Wielaard  <mjw@redhat.com>
11892
11893         * dwarf2read.c (checkproducer): Call producer_is_gcc.
11894         * utils.c (producer_is_gcc_ge_4): Likewise.
11895         (producer_is_gcc): New function.
11896         * utils.h (producer_is_gcc): New declaration.
11897
11898 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11899
11900         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11901         kind.
11902         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11903         parameter by "addr_stack" parameter.
11904         (resolve_dynamic_range): Replace "addr" parameter by
11905         "stack_addr" parameter.  Update function documentation.
11906         Update code accordingly.
11907         (resolve_dynamic_array, resolve_dynamic_union)
11908         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11909         (resolve_dynamic_type): Update code, following the changes made
11910         to resolve_dynamic_type_internal's interface.
11911         * dwarf2loc.h (struct property_addr_info): New.
11912         (dwarf2_evaluate_property): Replace "address" parameter
11913         by "addr_stack" parameter.  Adjust function documentation.
11914         (struct dwarf2_offset_baton): New.
11915         (struct dwarf2_property_baton): Update documentation of
11916         field "referenced_type" to be more general. New field
11917         "offset_info" in union data field.
11918         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11919         parameter by "addr_stack" parameter.  Adjust code accordingly.
11920         Add support for PROP_ADDR_OFFSET properties.
11921         * dwarf2read.c (attr_to_dynamic_prop): Add support for
11922         DW_AT_data_member_location attributes as well.  Use case
11923         statements instead of if/else condition.
11924
11925 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11926
11927         * ada-varobj.c (ada_varobj_get_array_number_of_children):
11928         Return zero if PARENT_VALUE is NULL and parent_type's
11929         range type is dynamic.
11930
11931 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
11932
11933         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11934         nonzero if the type's subtype is dynamic.
11935         (resolve_dynamic_range): Also resolve the range's subtype.
11936
11937 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
11938
11939         Pushed by Joel Brobecker  <brobecker@adacore.com>.
11940         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11941
11942 2015-01-27  Doug Evans  <dje@google.com>
11943
11944         * NEWS: Mention gdb.Objfile.username.
11945         * python/py-objfile.c (objfpy_get_username): New function.
11946         (objfile_getset): Add "username".
11947
11948 2015-01-24  Mark Wielaard  <mjw@redhat.com>
11949
11950         * stack.c (return_command): Markup warning message with _.
11951
11952 2015-01-24  Doug Evans  <xdje42@gmail.com>
11953
11954         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11955
11956 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11957
11958         Fix 100x slowdown regression on DWZ files.
11959         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11960         (struct line_header): Add offset and offset_in_dwz.
11961         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11962         (free_line_header_voidp): New declaration.
11963         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11964         functions.
11965         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11966         (handle_DW_AT_stmt_list): Use line_header_hash.
11967         (free_line_header_voidp): New function.
11968         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11969         (dwarf_decode_lines): New parameter decode_mapping, use it.
11970         (dwarf2_free_objfile): Free line_header_hash.
11971
11972 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
11973
11974         PR gdb/17416
11975         * valops.c (value_rtti_indirect_type): Catch exception thrown by
11976         value_ind.
11977
11978 2015-01-15  Mark Wielaard  <mjw@redhat.com>
11979
11980         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11981         DW_AT_noreturn.
11982         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11983         calling_convention an 8 bit bit field.
11984         (TYPE_NO_RETURN): New macro.
11985         * infcmd.c (finish_command): Query if function does not return
11986         normally.
11987         * stack.c (return_command): Likewise.
11988
11989 2015-01-23  Pedro Alves  <palves@redhat.com>
11990
11991         * linux-nat.c (linux_is_async_p): New macro.
11992         (linux_nat_is_async_p):
11993         (linux_nat_terminal_inferior): Check whether the target can async
11994         instead of whether it is already async.
11995         (linux_nat_terminal_ours): Don't check whether the target is
11996         async.
11997         (linux_async_pipe): Use linux_is_async_p.
11998
11999 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12000
12001         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12002         '-ascending'.
12003         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12004         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12005         Sort tp_array using tp_array_compar.
12006         (_initialize_thread): Extend thread_apply_all_command help.
12007
12008 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12009
12010         * corelow.c (core_open): Call also thread_command.
12011         * gdbthread.h (thread_command): New prototype moved from ...
12012         * thread.c (thread_command): ... here.
12013         (thread_command): Make it global.
12014
12015 2015-01-22  Pedro Alves  <palves@redhat.com>
12016
12017         * configure.ac [*mingw32*]: Check $curses_found instead of
12018         $prefer_curses.
12019         * configure: Regenerate.
12020         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12021         HAVE_NCURSES_NCURSES_H checks.
12022
12023 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12024
12025         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12026         fails with the 1st arg NULL, try again with "unknown".  Don't test
12027         the "cup" capability: it isn't supported by the Windows port of
12028         ncurses, but the Windows console driver is still capable of
12029         supporting TUI.
12030
12031 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12032
12033         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12034
12035 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12036
12037         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12038         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12039         reason that "make TAGS" is broken.
12040
12041 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12042
12043         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12044         and check additional store instructions.
12045
12046 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12047
12048         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12049
12050 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12051
12052         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12053         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12054         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12055         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12056         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12057         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12058         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12059         ppc_process_record_op19, ppc_process_record_op31,
12060         ppc_process_record_op59, ppc_process_record_op60,
12061         ppc_process_record_op63): Likewise.
12062
12063 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12064
12065         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12066         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12067         strerror.
12068
12069 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12070
12071         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12072         ppc_process_record_op31, ppc_process_record_op59,
12073         ppc_process_record_op60, ppc_process_record_op63,
12074         ppc_process_record): Fix -Wformat warning.
12075         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12076         Remove unused variables.
12077
12078 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12079
12080         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12081
12082 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12083
12084         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12085         CONFIG_OBS if not building with a curses library.
12086         * configure: Regenerate.
12087
12088         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12089         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12090         HAVE_NCURSES_NCURSES_H is defined.
12091
12092 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12093
12094         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12095         from end of line to start of next line.
12096
12097 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12098
12099         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12100         Scan PLT stub backward for reverse debugging.
12101         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12102
12103 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12104             Ulrich Weigand  <uweigand@de.ibm.com>
12105
12106         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12107         gdb_target_obs.
12108         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12109         record.
12110         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12111         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12112         (ppc_linux_init_abi): Set process_record, process_record_signal.
12113         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12114         ppc_linux_record_tdep to gdbarch_tdep.
12115         (ppc_process_record): New declaration.
12116         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12117         ppc_process_record_op19, ppc_process_record_op31,
12118         ppc_process_record_op59, ppc_process_record_op60,
12119         ppc_process_record_op63, ppc_process_record): New functions.
12120
12121 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12122
12123         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12124         rs6000_in_function_epilogue_frame_p and add an argument
12125         for frame_info.
12126         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12127         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12128         New functions.
12129         (rs6000_epilogue_frame_unwind): New.
12130         (rs6000_gdbarch_init): Append epilogue unwinder.
12131
12132 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12133
12134         * nat/linux-personality.c: Replace "#ifndef
12135         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12136         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12137         systems.
12138
12139 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12140
12141         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12142         functions.
12143         (_initialize_tui_win) <border-kind, border-mode>:
12144         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12145         (tui_set_tab_width_command): Fix the commentary.
12146
12147         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12148
12149         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12150         Doc fix.
12151         (tui_set_tab_width_command): Delete and recreate the source and
12152         the disassembly windows, to show the effect of the changed tab
12153         size immediately.
12154
12155         * tui/tui-data.h (LINE_PREFIX): Make shorter
12156         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12157         "Thread NNNNN.XXXX" thread ID notation on Windows.
12158
12159 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12160
12161         Fix gcc-5 compilation.
12162         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12163
12164 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12165
12166         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12167         (linux-personality.o): New rule.
12168         * common/common-defs.h: Include <stdint.h>.
12169         * config/aarch64/linux.mh (NATDEPFILES): Include
12170         linux-personality.o.
12171         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12172         * config/arm/linux.mh (NATDEPFILES): Likewise.
12173         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12174         * config/i386/linux.mh (NATDEPFILES): Likewise.
12175         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12176         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12177         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12178         * config/mips/linux.mh (NATDEPFILES): Likewise.
12179         * config/pa/linux.mh (NATDEPFILES): Likewise.
12180         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12181         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12182         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12183         * config/s390/linux.mh (NATDEPFILES): Likewise.
12184         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12185         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12186         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12187         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12188         * defs.h: Remove #include <stdint.h> (moved to
12189         common/common-defs.h).
12190         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12191         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12192         nat/linux-personality.c).
12193         (linux_nat_create_inferior): Remove code to disable address space
12194         randomization (moved to nat/linux-personality.c).  Create cleanup
12195         to disable address space randomization.
12196         * nat/linux-personality.c: New file.
12197         * nat/linux-personality.h: Likewise.
12198
12199 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12200
12201         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12202         common/posix-strerror.c.
12203         (posix-strerror.o): New rule.
12204         (mingw-strerror.o): Likewise.
12205         * common/common-utils.h (safe_strerror): Move prototype to here,
12206         from utils.h.
12207         * common/common.host: New file.
12208         * common/mingw-strerror.c: Likewise.
12209         * common/posix-strerror.c: Likewise.
12210         * configure: Regenerated.
12211         * configure.ac: Source common/common.host.  Add variable
12212         common_host_obs to gdb_host_obs.
12213         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12214         gdb/common/posix-strerror.c when warning about the use of
12215         strerror.
12216         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12217         common/mingw-strerror.c.
12218         * posix-hdep.c (safe_strerror): Remove definition; move it to
12219         common/posix-hdep.c.
12220         * utils.h (safe_strerror): Remove prototype; move to
12221         common/common-utils.h.
12222
12223 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12224
12225         GDB 7.8.2 released.
12226
12227 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12228
12229         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12230         ___XA type if the array has already been fixed.
12231
12232 2015-01-14  Yao Qi  <yao@codesourcery.com>
12233
12234         * Makefile.in (ppc-linux.o): New rule.
12235         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12236         * configure.ac: AC_CHECK_FUNCS(getauxval).
12237         * config.in: Re-generated.
12238         * configure: Re-generated.
12239         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12240         Declare.
12241         * nat/ppc-linux.c: New file.
12242         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12243         Call ppc64_64bit_inferior_p.
12244
12245 2015-01-14  Yao Qi  <yao@codesourcery.com>
12246
12247         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12248         nat/ppc-linux.h.
12249         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12250         (PPC_FEATURE_HAS_DFP): Likewise.
12251         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12252         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12253         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12254         Include "nat/ppc-linux.h".
12255         * nat/ppc-linux.h: New file.
12256         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12257
12258 2015-01-14  Pedro Alves  <palves@redhat.com>
12259
12260         PR gdb/17525
12261         * breakpoint.c: Include "interps.h".
12262         (bpstat_do_actions_1): Also check whether the interpreter is
12263         async.
12264
12265 2015-01-14  Pedro Alves  <palves@redhat.com>
12266
12267         PR cli/17828
12268         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12269         reinstall if the interpreter is sync.
12270
12271 2015-01-13  Doug Evans  <dje@google.com>
12272
12273         * objfiles.c (objfile_filename): New function.
12274         * objfiles.h (objfile_filename): Declare it.
12275         (objfile_name): Add function comment.
12276         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12277         bfd file name (which may be realpath'd), and the original name.
12278
12279 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12280
12281         * NEWS: Create a new section for the next release branch.
12282         Rename the section of the current branch, now that it has
12283         been cut.
12284
12285 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12286
12287         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12288         * version.in: Bump version to 7.9.50.DATE-cvs.
12289
12290 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12291
12292         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12293         Remove trailing new-line in argument of call to warning.
12294
12295 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12296
12297         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12298         new-line in argument of call to "warning".
12299
12300 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12301
12302         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12303         in static block, then try searching for primitive types.
12304
12305 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12306
12307         * top.h (gdb_add_history): Declare.
12308         * top.c (command_count): New variable.
12309         (gdb_add_history): New function.
12310         (gdb_safe_append_history): New static function.
12311         (quit_force): Call it.
12312         (command_line_input): Use gdb_add_history instead of
12313         add_history.
12314         * event-top.c (command_line_handler): Likewise.
12315
12316 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12317
12318         PR gdb/17046
12319         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12320         <setjmp.h> #include.
12321
12322 2015-01-11  Doug Evans  <xdje42@gmail.com>
12323
12324         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12325
12326 2015-01-11  Doug Evans  <xdje42@gmail.com>
12327
12328         PR gdb/15830
12329         * NEWS: The "maint demangle" command is renamed as "demangle".
12330         * demangle.c: #include cli/cli-utils.h, language.h.
12331         (demangle_command): New function.
12332         (_initialize_demangle): Add new command "demangle".
12333         * maint.c (maintenance_demangle): Stub out.
12334         (_initialize_maint_cmds): Update help text for "maint demangle",
12335         and mark as deprecated.
12336
12337 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12338
12339         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12340         inferior_thread is a function.
12341
12342 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12343
12344         * Makefile.in (.y.c): Don't munge yacc's #line
12345         directives.
12346
12347 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12348
12349         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12350         to prompt for input.
12351         * tui/tui-hooks.c (tui_query_hook): Remove.
12352         (tui_install_hooks): Don't set deprecated_query_hook.
12353         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12354         height calculation.  Always update the command window's cur_line.
12355
12356 2015-01-09  Pedro Alves  <palves@redhat.com>
12357
12358         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12359         function.
12360         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12361         declaration.
12362         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12363         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12364         stop_reason.
12365         (check_stopped_by_watchpoint): New function.
12366         (save_sigtrap): Reimplement.
12367         (linux_nat_stopped_by_watchpoint): Adjust.
12368         (linux_nat_lp_status_is_event): Delete.
12369         (stop_wait_callback): Only call save_sigtrap after storing the
12370         pending status.
12371         (status_callback): If the thread had been stopped for a breakpoint
12372         that has since been removed, discard the event and resume the LWP.
12373         (count_events_callback, select_event_lwp_callback): Use
12374         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12375         (cancel_breakpoint): Rename to ...
12376         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12377         stopped for a software breakpoint or hardware breakpoint.
12378         (select_event_lwp): Only give preference to the stepping LWP in
12379         all-stop mode.  Adjust comments.
12380         (stop_and_resume_callback): Remove references to new_pending_p.
12381         (linux_nat_filter_event): Likewise.  Leave exit events of the
12382         leader thread pending here.  Handle signal short circuiting here.
12383         Only call save_sigtrap after storing the pending waitstatus.
12384         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12385         new_pending.  Don't handle leaving events the caller is not
12386         interested in pending here, nor handle signal short-circuiting
12387         here.  Also give equal priority to all LWPs that have had events
12388         in non-stop mode.  If reporting a software breakpoint event,
12389         unadjust the LWP's PC.
12390         * linux-nat.h (enum lwp_stop_reason): New.
12391         (struct lwp_info) <stop_pc>: New field.
12392         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12393         (struct lwp_info) <stop_reason>: New field.
12394         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12395
12396 2015-01-09  Pedro Alves  <palves@redhat.com>
12397
12398         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12399         Set the LWP's 'resumed' flag.
12400
12401 2015-01-09  Pedro Alves  <palves@redhat.com>
12402
12403         * linux-nat.c (linux_resume_one_lwp): New function.
12404         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12405         (linux_nat_resume): Use lwp_status_pending_p and
12406         linux_resume_one_lwp.
12407         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12408         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12409         (status_callback, running_callback): Use lwp_status_pending_p.
12410         (lwp_status_pending_p): New function.
12411         (stop_and_resume_callback): Use lwp_status_pending_p.
12412         (linux_nat_filter_event): Use linux_resume_one_lwp.
12413         (linux_nat_wait_1): Always use status_callback to look for an LWP
12414         with a pending status.  Use linux_resume_one_lwp.
12415         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12416         linux_resume_one_lwp.
12417
12418 2015-01-09  Pedro Alves  <palves@redhat.com>
12419
12420         * breakpoint.c (bp_location_inserted_here_p): New function,
12421         factored out from ...
12422         (breakpoint_inserted_here_p): ... here.  Use
12423         ALL_BP_LOCATIONS_AT_ADDR.
12424         (software_breakpoint_inserted_here_p): Use
12425         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12426
12427 2014-01-09  Pedro Alves  <palves@redhat.com>
12428
12429         Skip enabling event reporting if the kernel supports
12430         PTRACE_EVENT_CLONE.
12431         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12432         (thread_db_use_events): New function.
12433         (try_thread_db_load_1): Check thread_db_use_events before enabling
12434         event reporting.
12435         (update_thread_state): New function.
12436         (attach_thread): Use it.  Check thread_db_use_events before
12437         enabling event reporting.
12438         (thread_db_detach): Check thread_db_use_events before disabling
12439         event reporting.
12440         (find_new_threads_callback): Check thread_db_use_events before
12441         enabling event reporting.  Update the thread's state if not using
12442         libthread_db events.
12443
12444 2015-01-09  Pedro Alves  <palves@redhat.com>
12445
12446         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12447         about to wait for is > 0.
12448         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12449         the kernel thread ID is -1.
12450
12451 2015-01-09  Pedro Alves  <palves@redhat.com>
12452
12453         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12454         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12455         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12456         ptrace option flags.
12457         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12458         field.
12459         * nat/linux-procfs.c: Include <dirent.h>.
12460         (linux_proc_get_int): New parameter "warn".  Handle it.
12461         (linux_proc_get_tgid): Adjust.
12462         (linux_proc_get_tracerpid): Rename to ...
12463         (linux_proc_get_tracerpid_nowarn): ... this.
12464         (linux_proc_pid_get_state): New function, factored out from
12465         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12466         and handle it.
12467         (linux_proc_pid_is_gone): New function.
12468         (linux_proc_pid_is_stopped): Adjust.
12469         (linux_proc_pid_is_zombie_maybe_warn)
12470         (linux_proc_pid_is_zombie_nowarn): New functions.
12471         (linux_proc_pid_is_zombie): Use
12472         linux_proc_pid_is_zombie_maybe_warn.
12473         (linux_proc_attach_tgid_threads): New function.
12474         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12475         (linux_proc_get_tracerpid): Rename to ...
12476         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12477         (linux_proc_pid_is_gone): New declaration.
12478         (linux_proc_pid_is_zombie): Update comment.
12479         (linux_proc_pid_is_zombie_nowarn): New declaration.
12480         (linux_proc_attach_lwp_func): New typedef.
12481         (linux_proc_attach_tgid_threads): New declaration.
12482         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12483         use nowarn functions.
12484         (linux_ptrace_attach_fail_reason_string): Move here from
12485         gdbserver/linux-low.c and rename.
12486         (ptrace_supports_feature): If the current ptrace options are not
12487         known yet, check them now, instead of asserting.
12488         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12489         Declare.
12490
12491 2015-01-09  Pedro Alves  <palves@redhat.com>
12492
12493         * linux-thread-db.c (thread_db_find_new_threads_silently)
12494         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12495         (find_new_threads_once): Print debug output on gdb_stdlog.
12496
12497 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12498             Pedro Alves  <palves@redhat.com>
12499
12500         * compile/compile.c: Include "gdb_wait.h".
12501         (do_rmdir): Check return value, and free 'zap'.
12502
12503 2015-01-08  Pedro Alves  <palves@redhat.com>
12504             Yao Qi  <yao@codesourcery.com>
12505
12506         * dwarf2loc.c (indirect_pieced_value): Don't call
12507         gdb_sign_extend.  Call extract_signed_integer instead.
12508         * utils.c (gdb_sign_extend): Remove.
12509         * utils.h (gdb_sign_extend): Remove declaration.
12510
12511 2015-01-07  Pierre Muller  <muller@sourceware.org>
12512
12513         PR symtab/17811
12514         * stabsread.c (define_symbol): Set language for C++ special symbols.
12515
12516 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12517
12518         * inflow.c (initial_gdb_ttystate): Tweak comment.
12519
12520 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12521
12522         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12523         comment documenting function.
12524
12525 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12526
12527         * terminal.h (set_initial_gdb_ttystate): Declare.
12528         * inflow.c (initial_gdb_ttystate): New static variable.
12529         (set_initial_gdb_ttystate): New setter.
12530         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12531         instead of our current terminal state.
12532         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12533
12534 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12535
12536         * guile/scm-type.c (tyscm_array_1): Add comment.
12537         * python/py-type.c (typy_array_1): Add comment.
12538
12539 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12540
12541         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12542         error if N2 is equal to N1 - 1.
12543
12544 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12545
12546         * python/py-type.c (typy_array_1): Do not raise negative-length
12547         exception if N2 is equal to N1 - 1.
12548
12549 2015-01-03  Doug Evans  <xdje42@gmail.com>
12550
12551         * c-exp.y: Whitespace cleanup.
12552         (classify_inner_name): Remove extra ;.
12553
12554 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12555
12556         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12557         offset signed.
12558
12559 2015-01-02  Doug Evans  <dje@google.com>
12560
12561         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12562
12563 2015-01-02  Doug Evans  <dje@google.com>
12564
12565         * symtab.h (struct symbol): Fix typo in comment.
12566
12567 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12568
12569         Update year range in copyright notice of all files.
12570
12571 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12572
12573         * top.c (print_gdb_version): Update copyright year to 2015.
12574
12575 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12576
12577         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12578
12579 For older changes see ChangeLog-2014.
12580 \f
12581 Local Variables:
12582 mode: change-log
12583 left-margin: 8
12584 fill-column: 74
12585 version-control: never
12586 coding: utf-8
12587 End: