[nto] Fixes for nto procfs.
[external/binutils.git] / gdb / ChangeLog
1 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
2
3         * nto-procfs.c (nto_procfs_path): Rename to...
4         (nodestr): ... this, and change type.
5         (nto_node): Use new variable and logic accordingly.
6         (procfs_open_1): Use new variable name. Use local buffer to construct
7         procfrs path.
8         (procfs_pidlist): Use NODESTR to construct procfs path.
9         (procfs_files_info): Use NODESTR to output meaningful text.
10         (do_attach): Construct procfs using NODESTR.
11         (procfs_create_inferior): Compare pointer to NULL.
12
13 2015-10-19  Josh Stone  <jistone@redhat.com>
14
15         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
16         return state, even when not actively catching syscalls at all.
17         (linux_handle_extended_wait): Mark syscall_state like an entry.
18         (wait_lwp): Set syscall_state ignored for other traps.
19         (linux_nat_filter_event): Likewise.
20
21 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
22
23         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
24         when handling 'E', 'T', 'S', 'X' and 'W' packets.
25         Do not set rs->waiting_for_stop_reply back to 1.
26
27 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
28
29         * nto-procfs.c (common/filestuff.h): Include.
30         (procfs_can_use_hw_breakpoint): Fix enum name.
31         (procfs_open_1): Fix compiler warning.
32         (procfs_pidlist): Make static.
33         (procfs_meminfo): Make static, fix type name, add missing argument.
34         (procfs_store_registers): Make static.
35         (procfs_thread_info): Remove unused function.
36         (_initialize_procfs): Forward declare.
37
38 2015-10-16  Yao Qi  <yao.qi@arm.com>
39
40         * MAINTAINERS: Update my email address.
41
42 2015-10-15  Yao Qi  <yao.qi@linaro.org>
43
44         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
45         Call gdbarch_breakpoint_from_pc to instruction length.
46         (aarch64_linux_remove_hw_breakpoint): Likewise.
47         * common/common-regcache.h (regcache_register_size): Declare.
48         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
49         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
50         the process is 32bit, otherwise set alignment to 4.
51         (aarch64_handle_breakpoint): Update comments.
52         * regcache.c (regcache_register_size): New function.
53
54 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
55
56         * gdbarch.sh (core_regset_section): Remove.
57         * gdbarch.h: Regenerate.
58
59 2015-10-14  Yao Qi  <yao.qi@linaro.org>
60
61         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
62         out of it.
63         (enum aarch64_memory_operand_type): New.
64
65 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
66
67         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
68
69 2015-10-13  Pedro Alves  <palves@redhat.com>
70
71         * ada-lang.c (ada_enum_name): Constify local.
72         * ada-typeprint.c (print_range_bound): Constify locals.
73         * c-varobj.c (c_describe_child): Likewise.
74         * cli/cli-setshow.c (do_set_command): Likewise.
75         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
76         * dwarf2read.c (find_file_and_directory): Likewise.
77         (anonymous_struct_prefix, dwarf2_name): Likewise.
78         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
79         * go-lang.c (unpack_mangled_go_symbol): Likewise.
80         * jv-typeprint.c (java_type_print_base): Likewise.
81         * ser-tcp.c (net_open): Likewise.
82         * symfile.c (deduce_language_from_filename): Likewise.
83         * symtab.c (gdb_mangle_name): Likewise.
84         * tui/tui-io.c (tui_redisplay_readline): Likewise.
85
86 2015-10-13  Pedro Alves  <palves@redhat.com>
87
88         * infrun.c (restore_execution_direction): New function.
89         (fetch_inferior_event): Use it instead of
90         make_cleanup_restore_integer.
91         (execution_direction): Change type to enum
92         exec_direction_kind.
93         * infrun.h (execution_direction): Likewise.
94
95 2015-10-13  Pedro Alves  <palves@redhat.com>
96
97         * ada-lang.c (ada_value_primitive_packed_val): Constify
98         locals.  Use value_contents_writeable.  Remove casts.
99
100 2015-10-13  Pedro Alves  <palves@redhat.com>
101
102         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
103         and alloca calls.
104
105 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
106
107         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
108         write_memory with write_memory_unsigned_integer.
109
110 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
111
112         * solib-dsbt.c (cmp_name): Constify arguments.
113         * solib-frv.c (cmp_name): Likewise.
114         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
115         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
116         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
117         (gdb_bfd_lookup_symbol): Likewise.
118         * solib.h (gdb_bfd_lookup_symbol): Likewise.
119         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
120
121 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
122
123         * stack.c (parse_frame_specification): Remove message parameter,
124         replace with fixed string in function body, update function
125         comment.
126         (frame_info): Remove message to parse_frame_specification.
127         (select_frame_command): Likewise.
128
129 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
130
131         * stack.c (parse_frame_specification): Delete.
132         (parse_frame_specification_1): Rename to
133         parse_frame_specification.
134         (frame_info): Use parse_frame_specification.
135         (select_frame_command): Likewise.
136         (return_command): Use select_frame and print_stack_frame rather
137         than frame_command and select_frame_command.
138         (func_command): Use get_current_frame rather than
139         parse_frame_specification.
140
141 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
142
143         * stack.c (func_command): Return early when there is no ARG
144         string.
145
146 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
147
148         * stack.c: Include safe-ctype.h not ctype.h.
149         (parse_frame_specification): Use ISSPACE not isspace.
150         (backtrace_command): Use TOLOWER not tolower.
151
152 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
153
154         * mep-tdep.c (current_me_module): Add cast.
155         (mep_gdbarch_init): Likewise.
156
157 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
158
159         * m32c-tdep.c (m32c_move_reg_t): Replace with...
160         (m32c_write_reg_t): ...this and...
161         (m32c_read_reg_t): ...this.
162         (struct m32c_reg): Update types of read and write.
163         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
164         adjust definition.
165         (m32c_banked_read): Likewise.
166         (m32c_sb_read): Likewise.
167         (m32c_part_read): Likewise.
168         (m32c_cat_read): Likewise.
169         (m32c_r3r2r1r0_read): Likewise.
170         (m32c_raw_write): Change declaration type to m32c_write_reg_t
171         and adjust definition.
172         (m32c_banked_write): Likewise.
173         (m32c_sb_write): Likewise.
174         (m32c_part_write): Likewise.
175         (m32c_cat_write): Likewise.
176         (m32c_r3r2r1r0_write): Likewise.
177
178 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
179
180         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
181
182 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
183
184         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
185         gdb_sys_no_syscall instead of -1.
186
187 2015-10-12  Yao Qi  <yao.qi@linaro.org>
188
189         * NEWS: Mention the change.
190
191 2015-10-12  Yao Qi  <yao.qi@linaro.org>
192
193         * arch/aarch64-insn.c (emit_load_store): Rename to ...
194         (aarch64_emit_load_store): ... it.  All callers updated.
195
196 2015-10-12  Yao Qi  <yao.qi@linaro.org>
197
198         * arch/aarch64-insn.c (emit_insn): Rename to ...
199         (aarch64_emit_insn): ... it.  All callers updated.
200
201 2015-10-12  Yao Qi  <yao.qi@linaro.org>
202
203         * aarch64-linux-tdep.c: Include arch-utils.h.
204         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
205         set_gdbarch_displaced_step_copy_insn,
206         set_gdbarch_displaced_step_fixup,
207         set_gdbarch_displaced_step_free_closure,
208         set_gdbarch_displaced_step_location,
209         and set_gdbarch_displaced_step_hw_singlestep.
210         * aarch64-tdep.c (struct displaced_step_closure): New.
211         (struct aarch64_displaced_step_data): New.
212         (aarch64_displaced_step_b): New function.
213         (aarch64_displaced_step_b_cond): Likewise.
214         (aarch64_register): Likewise.
215         (aarch64_displaced_step_cb): Likewise.
216         (aarch64_displaced_step_tb): Likewise.
217         (aarch64_displaced_step_adr): Likewise.
218         (aarch64_displaced_step_ldr_literal): Likewise.
219         (aarch64_displaced_step_others): Likewise.
220         (aarch64_displaced_step_copy_insn): Likewise.
221         (aarch64_displaced_step_fixup): Likewise.
222         (aarch64_displaced_step_hw_singlestep): Likewise.
223         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
224         (aarch64_displaced_step_copy_insn): Declare.
225         (aarch64_displaced_step_fixup): Declare.
226         (aarch64_displaced_step_hw_singlestep): Declare.
227         * arch/aarch64-insn.c (emit_insn): Moved from
228         gdbserver/linux-aarch64-low.c.
229         (emit_load_store): Likewise.
230         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
231         gdbserver/linux-aarch64-low.c.
232         (struct aarch64_register): Likewise.
233         (struct aarch64_memory_operand): Likewise.
234         (ENCODE): Likewise.
235         (can_encode_int32): New macro.
236         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
237         (emit_tb, emit_nop): Likewise.
238         (emit_insn): Declare.
239         (emit_load_store): Declare.
240
241 2015-10-12  Yao Qi  <yao.qi@linaro.org>
242
243         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
244         gdbserver/linux-aarch64-low.c.
245         (aarch64_relocate_instruction): Likewise.
246         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
247         (struct aarch64_insn_data): Moved from
248         gdbserver/linux-aarch64-low.c.
249         (struct aarch64_insn_visitor): Likewise.
250         (aarch64_relocate_instruction): Declare.
251
252 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
253
254         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
255         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
256         to the returned value.
257
258 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
259
260         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
261         is large enough for BIT_SIZE.  Update function comment.
262
263 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
264
265         * ada-lang.c (ada_value_primitive_packed_val): Move
266         src_len variable to local block where used.  Override
267         BIT_SIZE if bigger than size of resolved type.
268
269 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
270
271         * gdbtypes.h (is_scalar_type): Add extern declaration.
272         * gdbtypes.c (is_scalar_type): Make non-static.
273         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
274         to compute IS_SCALAR instead of doing it ourselves.
275
276 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
277
278         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
279         of case where TYPE is dynamic.
280
281 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
282
283         * ada-lang.c (ada_unpack_from_contents): New function,
284         extracted from ada_value_primitive_packed_val.
285         (ada_value_primitive_packed_val): Replace extracted out code
286         by call to ada_unpack_from_contents.
287
288 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
289
290         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
291         variable declarations.
292
293 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
294
295         * ada-lang.c (ada_value_primitive_packed_val): Change the type
296         of local variables src and unpacked to "gdb_type *" instead of
297         "unsigned char *".
298
299 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
300
301         * ada-lang.c (ada_value_primitive_packed_val): Make the name
302         of various local variables more explicit and consistent.
303         No real code change otherwise.
304
305 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
306
307         * i386-tdep.h (struct gdbarch_tdep): Change type of
308         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
309
310 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
311
312         * cris-tdep.c (struct instruction_environment): Change type of
313         byte_order to enum bfd_endian.
314
315 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
316
317         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
318         enum gdb_syscall casts.
319
320 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
321
322         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
323         * arm-tdep.c (struct stack_item): Likewise.
324         (push_stack_item): Add gdb_byte* cast.
325         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
326         (push_stack_item): Add gdb_byte* cast.
327         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
328         and add cast.
329         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
330         (push_stack_item): Add gdb_byte* cast.
331         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
332         add cast.
333         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
334         gdb_byte*.
335         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
336         gdb_byte* and remove unnecessary cast.
337         (h8300h_extract_return_value): Likewise.
338         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
339         (h8300h_store_return_value): Likewise.
340         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
341         gdb_byte* and remove unnecessary cast.
342         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
343         and add cast.
344         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
345         gdb_byte* and remove unnecessary cast.
346         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
347         valbuf.
348         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
349         (mep_pseudo_cr64_read): Likewise.
350         (mep_pseudo_csr_write): Likewise.
351         (mep_pseudo_cr32_write): Likewise.
352         (mep_pseudo_cr64_write): Likewise.
353         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
354         gdb_byte* and add cast.
355         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
356         gdb_byte* and remove unnecessary cast.
357         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
358         valbuf.
359         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
360         gdb_byte*.
361         * printcmd.c (void): Likewise.
362         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
363         gdb_byte* and add cast.
364         (infpy_write_memory): Likewise.
365         (infpy_search_memory): Likewise.
366         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
367         and add cast.
368         (regcache_raw_write_unsigned): Likewise.
369         (regcache_cooked_write_signed): Likewise.
370         (regcache_cooked_write_unsigned): Likewise.
371         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
372         gdb_byte*.
373
374 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
375
376         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
377         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
378
379 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
380
381         * stack.c (print_stack_frame):
382         * utils.c (printchar): Fix typos in commentary.
383
384 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
385
386         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
387         (PostfixExpression): Support `expr.sizeof' expressions.
388         (PrimaryExpression): Support `typeof(expr)' expressions.
389
390 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
391
392         * MAINTAINERS: Update my email address.
393
394 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
395
396         * record-btrace.c (record_btrace_resume): Fix void return.
397
398 2015-10-07  Yao Qi  <yao.qi@linaro.org>
399
400         * aarch64-tdep.c: Include opcode/aarch64.h.
401         (submask): Move it above.
402         (bit): Likewise.
403         (bits): Likewise.
404         (aarch64_software_single_step): Call aarch64_decode_insn.
405         Decode instruction by aarch64_inst instead of using
406         aarch64_decode_bcond and decode_masked_match.
407
408 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
409
410         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
411         only when the file is binary.
412
413 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
414
415         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
416         subroutine handling.
417
418 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
419
420         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
421
422 2015-09-30  Doug Evans  <dje@google.com>
423
424         * dwarf2read.c (setup_type_unit_groups): Add comment.
425
426 2015-09-30  Pedro Alves  <palves@redhat.com>
427
428         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
429         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
430         (x86_linux_create_target): Don't install
431         x86_linux_always_non_stop_p.
432
433 2015-09-30  Don Breazeal  <donb@codesourcery.com>
434
435         * remote.c (remote_parse_stop_reply): Call strprefix instead
436         of strncmp.
437
438 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
439
440         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
441         * gdbarch.h: Regenerate.
442         * i386-tdep.c (i386_gdbarch_init): Remove cast to
443         struct gdbarch_tdep_info *.
444         * mips-tdep.c (mips_gdbarch_init): Likewise.
445         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
446         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
447         * spu-multiarch.c (spu_gdbarch): Likewise.
448
449 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
450
451         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
452         record a NULL value.
453
454 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
455
456         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
457         and union arguments the same as pointer arguments when determining
458         size of argument.
459
460 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
461
462         * ft32-tdep.c: #include "opcode/ft32.h".
463         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
464         (ft32_analyze_prologue): Use FT32_* macros.
465
466 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
467
468         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
469         comment.
470
471 2015-09-28  Doug Evans  <dje@google.com>
472
473         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
474
475 2015-09-28  Doug Evans  <dje@google.com>
476
477         * common/filestuff.c (make_cleanup_close): Update comment.
478
479 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
480
481         * btrace.c (parse_xml_btrace_block): Fix cast of
482         xml_find_attribute's return value.
483         * memory-map.c (memory_map_start_memory): Likewise.
484         * solib-svr4.c (library_list_start_library): Likewise.
485         * solib-target.c (library_list_start_segment): Likewise.
486         (library_list_start_section): Likewise.
487         * tracepoint.c (traceframe_info_start_memory): Likewise.
488
489 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
490
491         * d-namespace.c (d_lookup_symbol): New arg langdef.
492         All callers updated.  Support looking up symbol as a primitive type.
493         (lookup_module_scope): New arg langdef.  All callers updated.
494         Call d_lookup_symbol directly for simple bare symbols.
495
496 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
497
498         * macrocmd.c (print_macro_callback): Add cast(s).
499         * macrotab.c (macro_bcache_str): Likewise.
500         (new_macro_definition): Likewise.
501         * main.c (captured_main): Likewise.
502         * maint.c (print_bfd_section_info): Likewise.
503         * mdebugread.c (mdebug_build_psymtabs): Likewise.
504         (basic_type): Likewise.
505         * memattr.c (mem_region_cmp): Likewise.
506         * memory-map.c (memory_map_start_memory): Likewise.
507         (memory_map_end_memory): Likewise.
508         (memory_map_start_property): Likewise.
509         (memory_map_end_property): Likewise.
510         (clear_result): Likewise.
511         * memrange.c (compare_mem_ranges): Likewise.
512         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
513         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
514         * mi/mi-console.c (mi_console_file_delete): Likewise.
515         (mi_console_file_fputs): Likewise.
516         (mi_console_raw_packet): Likewise.
517         (mi_console_file_flush): Likewise.
518         (mi_console_set_raw): Likewise.
519         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
520         (mi_new_thread): Likewise.
521         (mi_thread_exit): Likewise.
522         (mi_record_changed): Likewise.
523         (mi_inferior_added): Likewise.
524         (mi_inferior_appeared): Likewise.
525         (mi_inferior_exit): Likewise.
526         (mi_inferior_removed): Likewise.
527         (mi_interp_data): Likewise.
528         (mi_on_normal_stop): Likewise.
529         (mi_traceframe_changed): Likewise.
530         (mi_tsv_created): Likewise.
531         (mi_tsv_deleted): Likewise.
532         (mi_tsv_modified): Likewise.
533         (mi_breakpoint_created): Likewise.
534         (mi_breakpoint_deleted): Likewise.
535         (mi_breakpoint_modified): Likewise.
536         (mi_output_running_pid): Likewise.
537         (mi_inferior_count): Likewise.
538         (mi_solib_loaded): Likewise.
539         (mi_solib_unloaded): Likewise.
540         (mi_command_param_changed): Likewise.
541         (mi_memory_changed): Likewise.
542         (report_initial_inferior): Likewise.
543         (mi_ui_out): Likewise.
544         (mi_set_logging): Likewise.
545         * mi/mi-main.c (collect_cores): Likewise.
546         (print_one_inferior): Likewise.
547         (free_vector_of_ints): Likewise.
548         (free_splay_tree): Likewise.
549         (mi_execute_command): Likewise.
550         * mi/mi-out.c (mi_table_body): Likewise.
551         (mi_table_end): Likewise.
552         (mi_table_header): Likewise.
553         (mi_begin): Likewise.
554         (mi_end): Likewise.
555         (mi_field_int): Likewise.
556         (mi_field_string): Likewise.
557         (mi_field_fmt): Likewise.
558         (mi_flush): Likewise.
559         (mi_redirect): Likewise.
560         (field_separator): Likewise.
561         (mi_open): Likewise.
562         (mi_close): Likewise.
563         (mi_out_buffered): Likewise.
564         (mi_out_rewind): Likewise.
565         (mi_out_put): Likewise.
566         (mi_version): Likewise.
567         (mi_out_data_dtor): Likewise.
568         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
569         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
570         * minidebug.c (lzma_open): Likewise.
571         (lzma_pread): Likewise.
572         (lzma_close): Likewise.
573         (lzma_stat): Likewise.
574         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
575         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
576         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
577         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
578         (mips_micro_frame_cache): Likewise.
579         (mips_insn32_frame_cache): Likewise.
580         (mips_stub_frame_cache): Likewise.
581         (gdb_print_insn_mips): Likewise.
582         (value_of_mips_user_reg): Likewise.
583         (mips_gdbarch_init): Likewise.
584         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
585         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
586         (mipsnbsd_supply_gregset): Likewise.
587         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
588         (am33_collect_gregset_method): Likewise.
589         (am33_collect_fpregset_method): Likewise.
590         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
591         * moxie-tdep.c (moxie_frame_cache): Likewise.
592         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
593         (msp430_analyze_frame_prologue): Likewise.
594         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
595         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
596         (nios2_collect_gregset): Likewise.
597         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
598         (nios2_stub_frame_cache): Likewise.
599         * objc-lang.c (find_methods): Likewise.
600         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
601         (get_objfile_pspace_data): Likewise.
602         (get_objfile_bfd_data): Likewise.
603         (objfile_bfd_data_free): Likewise.
604         (add_to_objfile_sections): Likewise.
605         (do_free_objfile_cleanup): Likewise.
606         (resume_section_map_updates_cleanup): Likewise.
607         * opencl-lang.c (builtin_opencl_type): Likewise.
608         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
609         * osdata.c (osdata_start_osdata): Likewise.
610         (osdata_start_item): Likewise.
611         (osdata_start_column): Likewise.
612         (osdata_end_column): Likewise.
613         (clear_parsing_data): Likewise.
614         (osdata_free_cleanup): Likewise.
615         * parse.c (type_stack_cleanup): Likewise.
616         (exp_uses_objfile_iter): Likewise.
617         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
618         (ppc_linux_collect_gregset): Likewise.
619         (ppu2spu_prev_arch): Likewise.
620         (ppu2spu_this_id): Likewise.
621         (ppu2spu_prev_register): Likewise.
622         (ppu2spu_unwind_register): Likewise.
623         (ppu2spu_sniffer): Likewise.
624         (ppu2spu_dealloc_cache): Likewise.
625         (ppc_linux_init_abi): Likewise.
626         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
627         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
628         * progspace.c (restore_program_space): Likewise.
629         * psymtab.c (find_pc_sect_psymtab): Likewise.
630         (compare_psymbols): Likewise.
631         (psymbol_bcache_full): Likewise.
632         (allocate_psymtab): Likewise.
633         (discard_psymtabs_upto): Likewise.
634         * python/py-block.c (set_block): Likewise.
635         (del_objfile_blocks): Likewise.
636         * python/py-breakpoint.c (build_bp_list): Likewise.
637         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
638         (build_inferior_list): Likewise.
639         (py_free_inferior): Likewise.
640         * python/py-objfile.c (py_free_objfile): Likewise.
641         (objfile_to_objfile_object): Likewise.
642         * python/py-prettyprint.c (py_restore_tstate): Likewise.
643         * python/py-progspace.c (py_free_pspace): Likewise.
644         (pspace_to_pspace_object): Likewise.
645         * python/py-symbol.c (set_symbol): Likewise.
646         (del_objfile_symbols): Likewise.
647         * python/py-symtab.c (set_sal): Likewise.
648         (set_symtab): Likewise.
649         (del_objfile_symtab): Likewise.
650         (del_objfile_sal): Likewise.
651         * python/py-type.c (save_objfile_types): Likewise.
652         (set_type): Likewise.
653         * python/py-unwind.c (pyuw_prev_register): Likewise.
654         (pyuw_on_new_gdbarch): Likewise.
655         * python/py-utils.c (py_decref): Likewise.
656         (py_xdecref): Likewise.
657         (gdb_py_generic_dict): Likewise.
658         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
659         (gdbpy_clone_xmethod_worker_data): Likewise.
660         (gdbpy_get_xmethod_arg_types): Likewise.
661         (gdbpy_get_xmethod_result_type): Likewise.
662         (gdbpy_invoke_xmethod): Likewise.
663         * python/python.c (gdbpy_apply_type_printers): Likewise.
664         (gdbpy_free_type_printers): Likewise.
665         * record-btrace.c (record_btrace_disable_callback): Likewise.
666         (bfcache_hash): Likewise.
667         (bfcache_eq): Likewise.
668         (btrace_get_frame_function): Likewise.
669         (record_btrace_frame_unwind_stop_reason): Likewise.
670         (record_btrace_frame_this_id): Likewise.
671         (record_btrace_frame_prev_register): Likewise.
672         (record_btrace_frame_dealloc_cache): Likewise.
673         * record-full.c (record_full_message_wrapper): Likewise.
674         (record_full_save_cleanups): Likewise.
675         * regcache.c (regcache_descr): Likewise.
676         (do_regcache_xfree): Likewise.
677         (do_regcache_invalidate): Likewise.
678         (do_cooked_read): Likewise.
679         (regcache_transfer_regset): Likewise.
680         * reggroups.c (reggroup_add): Likewise.
681         (reggroup_next): Likewise.
682         (reggroup_prev): Likewise.
683         * remote-fileio.c (do_remote_fileio_request): Likewise.
684         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
685         (do_notif_event_xfree): Likewise.
686         * remote.c (get_remote_arch_state): Likewise.
687         (remote_pspace_data_cleanup): Likewise.
688         (get_remote_exec_file): Likewise.
689         (set_pspace_remote_exec_file): Likewise.
690         (compare_pnums): Likewise.
691         (clear_threads_listing_context): Likewise.
692         (remote_newthread_step): Likewise.
693         (start_thread): Likewise.
694         (end_thread): Likewise.
695         (remove_child_of_pending_fork): Likewise.
696         (remove_stop_reply_for_inferior): Likewise.
697         (remove_stop_reply_of_remote_state): Likewise.
698         (remote_notif_remove_once_on_match): Likewise.
699         (stop_reply_match_ptid_and_ws): Likewise.
700         (kill_child_of_pending_fork): Likewise.
701         (register_remote_g_packet_guess): Likewise.
702         (remote_read_description_p): Likewise.
703         (remote_read_description): Likewise.
704         (free_actions_list_cleanup_wrapper): Likewise.
705         (remote_async_serial_handler): Likewise.
706         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
707         (rl78_analyze_frame_prologue): Likewise.
708         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
709         (ppc_supply_fpregset): Likewise.
710         (ppc_supply_vsxregset): Likewise.
711         (ppc_supply_vrregset): Likewise.
712         (ppc_collect_gregset): Likewise.
713         (ppc_collect_fpregset): Likewise.
714         (ppc_collect_vsxregset): Likewise.
715         (ppc_collect_vrregset): Likewise.
716         (e500_move_ev_register): Likewise.
717         (do_regcache_raw_write): Likewise.
718         (rs6000_frame_cache): Likewise.
719         (rs6000_epilogue_frame_cache): Likewise.
720         (rs6000_gdbarch_init): Likewise.
721         * rx-tdep.c (rx_get_opcode_byte): Likewise.
722         (rx_analyze_frame_prologue): Likewise.
723         (rx_frame_type): Likewise.
724         (rx_frame_sniffer_common): Likewise.
725         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
726         (s390_frame_unwind_cache): Likewise.
727         (s390_stub_frame_unwind_cache): Likewise.
728         (s390_sigtramp_frame_unwind_cache): Likewise.
729         * score-tdep.c (score_make_prologue_cache): Likewise.
730         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
731         (sentinel_frame_prev_arch): Likewise.
732         * ser-base.c (fd_event): Likewise.
733         (push_event): Likewise.
734         (ser_base_write): Likewise.
735         * ser-pipe.c (pipe_close): Likewise.
736         * serial.c (serial_write): Likewise.
737         * sh-tdep.c (sh_frame_cache): Likewise.
738         (sh_stub_this_id): Likewise.
739         * sh64-tdep.c (sh64_frame_cache): Likewise.
740         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
741         (library_list_start_library): Likewise.
742         (library_list_start_list): Likewise.
743         (solib_aix_free_library_list): Likewise.
744         * solib-darwin.c (get_darwin_info): Likewise.
745         * solib-dsbt.c (get_dsbt_info): Likewise.
746         * solib-spu.c (append_ocl_sos): Likewise.
747         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
748         (get_svr4_info): Likewise.
749         (library_list_start_library): Likewise.
750         (svr4_library_list_start_list): Likewise.
751         (hash_probe_and_action): Likewise.
752         (equal_probe_and_action): Likewise.
753         (svr4_update_solib_event_breakpoint): Likewise.
754         (set_solib_svr4_fetch_link_map_offsets): Likewise.
755         (svr4_fetch_link_map_offsets): Likewise.
756         (svr4_have_link_map_offsets): Likewise.
757         * solib-target.c (library_list_start_segment): Likewise.
758         (library_list_start_section): Likewise.
759         (library_list_start_library): Likewise.
760         (library_list_end_library): Likewise.
761         (library_list_start_list): Likewise.
762         (solib_target_free_library_list): Likewise.
763         * solib.c (solib_ops): Likewise.
764         (set_solib_ops): Likewise.
765         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
766         * sparc-tdep.c (sparc_frame_cache): Likewise.
767         (sparc32_frame_cache): Likewise.
768         (sparc32_supply_gregset): Likewise.
769         (sparc32_collect_gregset): Likewise.
770         (sparc32_supply_fpregset): Likewise.
771         (sparc32_collect_fpregset): Likewise.
772         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
773         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
774         (sparc64_collect_gregset): Likewise.
775         (sparc64_supply_fpregset): Likewise.
776         (sparc64_collect_fpregset): Likewise.
777         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
778         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
779         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
780         (sparc64obsd_trapframe_cache): Likewise.
781         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
782         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
783         * spu-multiarch.c (spu_gdbarch): Likewise.
784         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
785         (spu2ppu_prev_arch): Likewise.
786         (spu2ppu_this_id): Likewise.
787         (spu2ppu_prev_register): Likewise.
788         (spu2ppu_dealloc_cache): Likewise.
789         (spu_dis_asm_print_address): Likewise.
790         (gdb_print_insn_spu): Likewise.
791         (spu_get_overlay_table): Likewise.
792         * stabsread.c (rs6000_builtin_type): Likewise.
793         * stack.c (do_print_variable_and_value): Likewise.
794         * stap-probe.c (get_stap_base_address_1): Likewise.
795         * symfile-debug.c (debug_qf_has_symbols): Likewise.
796         (debug_qf_find_last_source_symtab): Likewise.
797         (debug_qf_forget_cached_source_info): Likewise.
798         (debug_qf_map_symtabs_matching_filename): Likewise.
799         (debug_qf_lookup_symbol): Likewise.
800         (debug_qf_print_stats): Likewise.
801         (debug_qf_dump): Likewise.
802         (debug_qf_relocate): Likewise.
803         (debug_qf_expand_symtabs_for_function): Likewise.
804         (debug_qf_expand_all_symtabs): Likewise.
805         (debug_qf_expand_symtabs_with_fullname): Likewise.
806         (debug_qf_map_matching_symbols): Likewise.
807         (debug_qf_expand_symtabs_matching): Likewise.
808         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
809         (debug_qf_map_symbol_filenames): Likewise.
810         (debug_sym_get_probes): Likewise.
811         (debug_sym_new_init): Likewise.
812         (debug_sym_init): Likewise.
813         (debug_sym_read): Likewise.
814         (debug_sym_read_psymbols): Likewise.
815         (debug_sym_finish): Likewise.
816         (debug_sym_offsets): Likewise.
817         (debug_sym_read_linetable): Likewise.
818         (debug_sym_relocate): Likewise.
819         (uninstall_symfile_debug_logging): Likewise.
820         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
821         * symfile.c (place_section): Likewise.
822         (add_section_size_callback): Likewise.
823         (load_progress): Likewise.
824         (load_section_callback): Likewise.
825         (clear_memory_write_data): Likewise.
826         (allocate_symtab): Likewise.
827         * symmisc.c (maintenance_expand_file_matcher): Likewise.
828         * symtab.c (lookup_symtab_callback): Likewise.
829         (hash_demangled_name_entry): Likewise.
830         (eq_demangled_name_entry): Likewise.
831         (get_symbol_cache): Likewise.
832         (symbol_cache_cleanup): Likewise.
833         (set_symbol_cache_size): Likewise.
834         (symbol_cache_flush): Likewise.
835         (maintenance_print_symbol_cache): Likewise.
836         (maintenance_print_symbol_cache_statistics): Likewise.
837         (delete_filename_seen_cache): Likewise.
838         (output_partial_symbol_filename): Likewise.
839         (search_symbols_file_matches): Likewise.
840         (search_symbols_name_matches): Likewise.
841         (do_free_completion_list): Likewise.
842         (maybe_add_partial_symtab_filename): Likewise.
843         (get_main_info): Likewise.
844         (main_info_cleanup): Likewise.
845         * target-dcache.c (target_dcache_cleanup): Likewise.
846         (target_dcache_init_p): Likewise.
847         (target_dcache_invalidate): Likewise.
848         (target_dcache_get): Likewise.
849         (target_dcache_get_or_init): Likewise.
850         * target-descriptions.c (target_find_description): Likewise.
851         (tdesc_find_type): Likewise.
852         (tdesc_data_cleanup): Likewise.
853         (tdesc_find_arch_register): Likewise.
854         (tdesc_register_name): Likewise.
855         (tdesc_register_type): Likewise.
856         (tdesc_register_reggroup_p): Likewise.
857         (set_tdesc_pseudo_register_name): Likewise.
858         (set_tdesc_pseudo_register_type): Likewise.
859         (set_tdesc_pseudo_register_reggroup_p): Likewise.
860         (tdesc_use_registers): Likewise.
861         (free_target_description): Likewise.
862         * target-memory.c (compare_block_starting_address): Likewise.
863         (cleanup_request_data): Likewise.
864         (cleanup_write_requests_vector): Likewise.
865         * target.c (open_target): Likewise.
866         (cleanup_restore_target_terminal): Likewise.
867         (free_memory_read_result_vector): Likewise.
868         * thread.c (disable_thread_stack_temporaries): Likewise.
869         (finish_thread_state_cleanup): Likewise.
870         (do_restore_current_thread_cleanup): Likewise.
871         (restore_current_thread_cleanup_dtor): Likewise.
872         (set_thread_refcount): Likewise.
873         (tp_array_compar): Likewise.
874         (do_captured_thread_select): Likewise.
875         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
876         (tic6x_stub_this_id): Likewise.
877         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
878         * top.c (do_restore_instream_cleanup): Likewise.
879         (gdb_readline_wrapper_cleanup): Likewise.
880         (kill_or_detach): Likewise.
881         (print_inferior_quit_action): Likewise.
882         * tracefile-tfile.c (match_blocktype): Likewise.
883         (build_traceframe_info): Likewise.
884         * tracefile.c (trace_file_writer_xfree): Likewise.
885         * tracepoint.c (memrange_cmp): Likewise.
886         (do_collect_symbol): Likewise.
887         (do_clear_collection_list): Likewise.
888         (do_restore_current_traceframe_cleanup): Likewise.
889         (restore_current_traceframe_cleanup_dtor): Likewise.
890         (free_current_marker): Likewise.
891         (traceframe_info_start_memory): Likewise.
892         (traceframe_info_start_tvar): Likewise.
893         (free_result): Likewise.
894         * tramp-frame.c (tramp_frame_cache): Likewise.
895         * tui/tui-file.c (tui_file_delete): Likewise.
896         (tui_fileopen): Likewise.
897         (tui_sfileopen): Likewise.
898         (tui_file_isatty): Likewise.
899         (tui_file_rewind): Likewise.
900         (tui_file_put): Likewise.
901         (tui_file_fputs): Likewise.
902         (tui_file_get_strbuf): Likewise.
903         (tui_file_adjust_strbuf): Likewise.
904         (tui_file_flush): Likewise.
905         * tui/tui-layout.c (make_command_window): Likewise.
906         (make_data_window): Likewise.
907         (show_source_disasm_command): Likewise.
908         (show_data): Likewise.
909         (make_source_or_disasm_window): Likewise.
910         (show_source_or_disasm_and_command): Likewise.
911         * tui/tui-out.c (tui_field_int): Likewise.
912         (tui_field_string): Likewise.
913         (tui_field_fmt): Likewise.
914         (tui_text): Likewise.
915         * typeprint.c (hash_typedef_field): Likewise.
916         (eq_typedef_field): Likewise.
917         (do_free_typedef_hash): Likewise.
918         (copy_typedef_hash_element): Likewise.
919         (do_free_global_table): Likewise.
920         (find_global_typedef): Likewise.
921         (find_typedef_in_hash): Likewise.
922         * ui-file.c (ui_file_write_for_put): Likewise.
923         (do_ui_file_xstrdup): Likewise.
924         (mem_file_delete): Likewise.
925         (mem_file_rewind): Likewise.
926         (mem_file_put): Likewise.
927         (mem_file_write): Likewise.
928         (stdio_file_delete): Likewise.
929         (stdio_file_flush): Likewise.
930         (stdio_file_read): Likewise.
931         (stdio_file_write): Likewise.
932         (stdio_file_write_async_safe): Likewise.
933         (stdio_file_fputs): Likewise.
934         (stdio_file_isatty): Likewise.
935         (stdio_file_fseek): Likewise.
936         (tee_file_delete): Likewise.
937         (tee_file_flush): Likewise.
938         (tee_file_write): Likewise.
939         (tee_file_fputs): Likewise.
940         (tee_file_isatty): Likewise.
941         * ui-out.c (do_cleanup_table_end): Likewise.
942         (do_cleanup_end): Likewise.
943         * user-regs.c (user_reg_add): Likewise.
944         (user_reg_map_name_to_regnum): Likewise.
945         (usernum_to_user_reg): Likewise.
946         (maintenance_print_user_registers): Likewise.
947         * utils.c (do_bfd_close_cleanup): Likewise.
948         (do_fclose_cleanup): Likewise.
949         (do_obstack_free): Likewise.
950         (do_ui_file_delete): Likewise.
951         (do_ui_out_redirect_pop): Likewise.
952         (do_free_section_addr_info): Likewise.
953         (restore_integer): Likewise.
954         (do_unpush_target): Likewise.
955         (do_htab_delete_cleanup): Likewise.
956         (do_restore_ui_file): Likewise.
957         (do_value_free): Likewise.
958         (do_free_so): Likewise.
959         (free_current_contents): Likewise.
960         (do_regfree_cleanup): Likewise.
961         (core_addr_hash): Likewise.
962         (core_addr_eq): Likewise.
963         (do_free_char_ptr_vec): Likewise.
964         * v850-tdep.c (v850_frame_cache): Likewise.
965         * varobj.c (do_free_variable_cleanup): Likewise.
966         * vax-tdep.c (vax_supply_gregset): Likewise.
967         (vax_frame_cache): Likewise.
968         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
969         * xml-support.c (gdb_xml_body_text): Likewise.
970         (gdb_xml_values_cleanup): Likewise.
971         (gdb_xml_start_element): Likewise.
972         (gdb_xml_start_element_wrapper): Likewise.
973         (gdb_xml_end_element): Likewise.
974         (gdb_xml_end_element_wrapper): Likewise.
975         (gdb_xml_cleanup): Likewise.
976         (gdb_xml_fetch_external_entity): Likewise.
977         (gdb_xml_parse_attr_enum): Likewise.
978         (xinclude_start_include): Likewise.
979         (xinclude_end_include): Likewise.
980         (xml_xinclude_default): Likewise.
981         (xml_xinclude_start_doctype): Likewise.
982         (xml_xinclude_end_doctype): Likewise.
983         (xml_xinclude_cleanup): Likewise.
984         (xml_fetch_content_from_file): Likewise.
985         * xml-syscall.c (free_syscalls_info): Likewise.
986         (syscall_start_syscall): Likewise.
987         * xml-tdesc.c (tdesc_end_arch): Likewise.
988         (tdesc_end_osabi): Likewise.
989         (tdesc_end_compatible): Likewise.
990         (tdesc_start_target): Likewise.
991         (tdesc_start_feature): Likewise.
992         (tdesc_start_reg): Likewise.
993         (tdesc_start_union): Likewise.
994         (tdesc_start_struct): Likewise.
995         (tdesc_start_flags): Likewise.
996         (tdesc_start_field): Likewise.
997         (tdesc_start_vector): Likewise.
998         (fetch_available_features_from_target): Likewise.
999         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1000         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1001         (xtensa_frame_cache): Likewise.
1002         (xtensa_frame_prev_register): Likewise.
1003         (xtensa_extract_return_value): Likewise.
1004
1005 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1006
1007         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1008         (aarch64_make_stub_cache): Likewise.
1009         (value_of_aarch64_user_reg): Likewise.
1010         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1011         (get_ada_inferior_data): Likewise.
1012         (get_ada_pspace_data): Likewise.
1013         (ada_pspace_data_cleanup): Likewise.
1014         (ada_complete_symbol_matcher): Likewise.
1015         (ada_exc_search_name_matches): Likewise.
1016         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1017         (get_ada_tasks_inferior_data): Likewise.
1018         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1019         (splay_obstack_alloc): Likewise.
1020         (splay_obstack_free): Likewise.
1021         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1022         (alpha_linux_collect_gregset): Likewise.
1023         (alpha_linux_supply_fpregset): Likewise.
1024         (alpha_linux_collect_fpregset): Likewise.
1025         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1026         * alpha-tdep.c (alpha_lds): Likewise.
1027         (alpha_sts): Likewise.
1028         (alpha_sigtramp_frame_unwind_cache): Likewise.
1029         (alpha_heuristic_frame_unwind_cache): Likewise.
1030         (alpha_supply_int_regs): Likewise.
1031         (alpha_fill_int_regs): Likewise.
1032         (alpha_supply_fp_regs): Likewise.
1033         (alpha_fill_fp_regs): Likewise.
1034         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1035         (alphanbsd_aout_supply_gregset): Likewise.
1036         (alphanbsd_supply_gregset): Likewise.
1037         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1038         (amd64_x32_linux_init_abi): Likewise.
1039         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1040         (amd64_collect_native_gregset): Likewise.
1041         * amd64-tdep.c (amd64_frame_cache): Likewise.
1042         (amd64_sigtramp_frame_cache): Likewise.
1043         (amd64_epilogue_frame_cache): Likewise.
1044         (amd64_supply_fxsave): Likewise.
1045         (amd64_supply_xsave): Likewise.
1046         (amd64_collect_fxsave): Likewise.
1047         (amd64_collect_xsave): Likewise.
1048         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1049         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1050         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1051         (arm_linux_collect_gregset): Likewise.
1052         (arm_linux_supply_nwfpe): Likewise.
1053         (arm_linux_collect_nwfpe): Likewise.
1054         (arm_linux_supply_vfp): Likewise.
1055         (arm_linux_collect_vfp): Likewise.
1056         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1057         (arm_prologue_unwind_stop_reason): Likewise.
1058         (arm_prologue_this_id): Likewise.
1059         (arm_prologue_prev_register): Likewise.
1060         (arm_exidx_data_free): Likewise.
1061         (arm_find_exidx_entry): Likewise.
1062         (arm_stub_this_id): Likewise.
1063         (arm_m_exception_this_id): Likewise.
1064         (arm_m_exception_prev_register): Likewise.
1065         (arm_normal_frame_base): Likewise.
1066         (gdb_print_insn_arm): Likewise.
1067         (arm_objfile_data_free): Likewise.
1068         (arm_record_special_symbol): Likewise.
1069         (value_of_arm_user_reg): Likewise.
1070         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1071         (armbsd_supply_gregset): Likewise.
1072         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1073         (get_auto_load_pspace_data): Likewise.
1074         (hash_loaded_script_entry): Likewise.
1075         (eq_loaded_script_entry): Likewise.
1076         (clear_section_scripts): Likewise.
1077         (collect_matching_scripts): Likewise.
1078         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1079         (get_auxv_inferior_data): Likewise.
1080         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1081         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1082         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1083         (target_bfd_xclose): Likewise.
1084         (target_bfd_get_section_table): Likewise.
1085         * bfin-tdep.c (bfin_frame_cache): Likewise.
1086         * block.c (find_block_in_blockvector): Likewise.
1087         (call_site_for_pc): Likewise.
1088         (block_find_non_opaque_type_preferred): Likewise.
1089         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1090         (signal_catchpoint_remove_location): Likewise.
1091         (signal_catchpoint_breakpoint_hit): Likewise.
1092         (signal_catchpoint_print_one): Likewise.
1093         (signal_catchpoint_print_mention): Likewise.
1094         (signal_catchpoint_print_recreate): Likewise.
1095         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1096         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1097         (bp_location_compare_addrs): Likewise.
1098         (get_first_locp_gte_addr): Likewise.
1099         (check_tracepoint_command): Likewise.
1100         (do_map_commands_command): Likewise.
1101         (get_breakpoint_objfile_data): Likewise.
1102         (free_breakpoint_probes): Likewise.
1103         (do_captured_breakpoint_query): Likewise.
1104         (compare_breakpoints): Likewise.
1105         (bp_location_compare): Likewise.
1106         (bpstat_remove_breakpoint_callback): Likewise.
1107         (do_delete_breakpoint_cleanup): Likewise.
1108         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1109         (bsd_uthread_set_collect_uthread): Likewise.
1110         (bsd_uthread_activate): Likewise.
1111         (bsd_uthread_fetch_registers): Likewise.
1112         (bsd_uthread_store_registers): Likewise.
1113         * btrace.c (check_xml_btrace_version): Likewise.
1114         (parse_xml_btrace_block): Likewise.
1115         (parse_xml_btrace_pt_config_cpu): Likewise.
1116         (parse_xml_btrace_pt_raw): Likewise.
1117         (parse_xml_btrace_pt): Likewise.
1118         (parse_xml_btrace_conf_bts): Likewise.
1119         (parse_xml_btrace_conf_pt): Likewise.
1120         (do_btrace_data_cleanup): Likewise.
1121         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1122         * charset.c (cleanup_iconv): Likewise.
1123         (do_cleanup_iterator): Likewise.
1124         * cli-out.c (cli_uiout_dtor): Likewise.
1125         (cli_table_begin): Likewise.
1126         (cli_table_body): Likewise.
1127         (cli_table_end): Likewise.
1128         (cli_table_header): Likewise.
1129         (cli_begin): Likewise.
1130         (cli_end): Likewise.
1131         (cli_field_int): Likewise.
1132         (cli_field_skip): Likewise.
1133         (cli_field_string): Likewise.
1134         (cli_field_fmt): Likewise.
1135         (cli_spaces): Likewise.
1136         (cli_text): Likewise.
1137         (cli_message): Likewise.
1138         (cli_wrap_hint): Likewise.
1139         (cli_flush): Likewise.
1140         (cli_redirect): Likewise.
1141         (out_field_fmt): Likewise.
1142         (field_separator): Likewise.
1143         (cli_out_set_stream): Likewise.
1144         * cli/cli-cmds.c (compare_symtabs): Likewise.
1145         * cli/cli-dump.c (call_dump_func): Likewise.
1146         (restore_section_callback): Likewise.
1147         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1148         (do_restore_user_call_depth): Likewise.
1149         (do_free_command_lines_cleanup): Likewise.
1150         * coff-pe-read.c (get_section_vmas): Likewise.
1151         (pe_as16): Likewise.
1152         (pe_as32): Likewise.
1153         * coffread.c (coff_symfile_read): Likewise.
1154         * common/agent.c (agent_look_up_symbols): Likewise.
1155         * common/filestuff.c (do_close_cleanup): Likewise.
1156         * common/format.c (free_format_pieces_cleanup): Likewise.
1157         * common/vec.c (vec_o_reserve): Likewise.
1158         * compile/compile-c-support.c (print_one_macro): Likewise.
1159         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1160         (eq_symbol_error): Likewise.
1161         (del_symbol_error): Likewise.
1162         (error_symbol_once): Likewise.
1163         (gcc_convert_symbol): Likewise.
1164         (gcc_symbol_address): Likewise.
1165         (hash_symname): Likewise.
1166         (eq_symname): Likewise.
1167         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1168         (eq_type_map_instance): Likewise.
1169         (insert_type): Likewise.
1170         (convert_type): Likewise.
1171         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1172         (setup_sections): Likewise.
1173         (link_hash_table_free): Likewise.
1174         (copy_sections): Likewise.
1175         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1176         * compile/compile.c (compile_print_value): Likewise.
1177         (do_rmdir): Likewise.
1178         (cleanup_compile_instance): Likewise.
1179         (cleanup_unlink_file): Likewise.
1180         * completer.c (free_completion_tracker): Likewise.
1181         * corelow.c (add_to_spuid_list): Likewise.
1182         * cp-namespace.c (reset_directive_searched): Likewise.
1183         * cp-support.c (reset_directive_searched): Likewise.
1184         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1185         (cris_frame_unwind_cache): Likewise.
1186         * d-lang.c (builtin_d_type): Likewise.
1187         * d-namespace.c (reset_directive_searched): Likewise.
1188         * dbxread.c (dbx_free_symfile_info): Likewise.
1189         (do_free_bincl_list_cleanup): Likewise.
1190         * disasm.c (hash_dis_line_entry): Likewise.
1191         (eq_dis_line_entry): Likewise.
1192         (dis_asm_print_address): Likewise.
1193         (fprintf_disasm): Likewise.
1194         (do_ui_file_delete): Likewise.
1195         * doublest.c (convert_floatformat_to_doublest): Likewise.
1196         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1197         (dummy_frame_prev_register): Likewise.
1198         (dummy_frame_this_id): Likewise.
1199         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1200         (cache_eq): Likewise.
1201         (cache_find): Likewise.
1202         (tailcall_frame_this_id): Likewise.
1203         (dwarf2_tailcall_prev_register_first): Likewise.
1204         (tailcall_frame_prev_register): Likewise.
1205         (tailcall_frame_dealloc_cache): Likewise.
1206         (tailcall_frame_prev_arch): Likewise.
1207         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1208         (dwarf2_frame_set_init_reg): Likewise.
1209         (dwarf2_frame_init_reg): Likewise.
1210         (dwarf2_frame_set_signal_frame_p): Likewise.
1211         (dwarf2_frame_signal_frame_p): Likewise.
1212         (dwarf2_frame_set_adjust_regnum): Likewise.
1213         (dwarf2_frame_adjust_regnum): Likewise.
1214         (clear_pointer_cleanup): Likewise.
1215         (dwarf2_frame_cache): Likewise.
1216         (find_cie): Likewise.
1217         (dwarf2_frame_find_fde): Likewise.
1218         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1219         (free_dwarf_expr_context_cleanup): Likewise.
1220         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1221         (locexpr_get_frame_base): Likewise.
1222         (loclist_find_frame_base_location): Likewise.
1223         (loclist_get_frame_base): Likewise.
1224         (dwarf_expr_dwarf_call): Likewise.
1225         (dwarf_expr_get_base_type): Likewise.
1226         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1227         (dwarf_expr_get_obj_addr): Likewise.
1228         (entry_data_value_coerce_ref): Likewise.
1229         (entry_data_value_copy_closure): Likewise.
1230         (entry_data_value_free_closure): Likewise.
1231         (get_frame_address_in_block_wrapper): Likewise.
1232         (dwarf2_evaluate_property): Likewise.
1233         (dwarf2_compile_property_to_c): Likewise.
1234         (needs_frame_read_addr_from_reg): Likewise.
1235         (needs_frame_get_reg_value): Likewise.
1236         (needs_frame_frame_base): Likewise.
1237         (needs_frame_frame_cfa): Likewise.
1238         (needs_frame_tls_address): Likewise.
1239         (needs_frame_dwarf_call): Likewise.
1240         (needs_dwarf_reg_entry_value): Likewise.
1241         (get_ax_pc): Likewise.
1242         (locexpr_read_variable): Likewise.
1243         (locexpr_read_variable_at_entry): Likewise.
1244         (locexpr_read_needs_frame): Likewise.
1245         (locexpr_describe_location): Likewise.
1246         (locexpr_tracepoint_var_ref): Likewise.
1247         (locexpr_generate_c_location): Likewise.
1248         (loclist_read_variable): Likewise.
1249         (loclist_read_variable_at_entry): Likewise.
1250         (loclist_describe_location): Likewise.
1251         (loclist_tracepoint_var_ref): Likewise.
1252         (loclist_generate_c_location): Likewise.
1253         * dwarf2read.c (line_header_hash_voidp): Likewise.
1254         (line_header_eq_voidp): Likewise.
1255         (dwarf2_has_info): Likewise.
1256         (dwarf2_get_section_info): Likewise.
1257         (locate_dwz_sections): Likewise.
1258         (hash_file_name_entry): Likewise.
1259         (eq_file_name_entry): Likewise.
1260         (delete_file_name_entry): Likewise.
1261         (dw2_setup): Likewise.
1262         (dw2_get_file_names_reader): Likewise.
1263         (dw2_find_pc_sect_compunit_symtab): Likewise.
1264         (hash_signatured_type): Likewise.
1265         (eq_signatured_type): Likewise.
1266         (add_signatured_type_cu_to_table): Likewise.
1267         (create_debug_types_hash_table): Likewise.
1268         (lookup_dwo_signatured_type): Likewise.
1269         (lookup_dwp_signatured_type): Likewise.
1270         (lookup_signatured_type): Likewise.
1271         (hash_type_unit_group): Likewise.
1272         (eq_type_unit_group): Likewise.
1273         (get_type_unit_group): Likewise.
1274         (process_psymtab_comp_unit_reader): Likewise.
1275         (sort_tu_by_abbrev_offset): Likewise.
1276         (process_skeletonless_type_unit): Likewise.
1277         (psymtabs_addrmap_cleanup): Likewise.
1278         (dwarf2_read_symtab): Likewise.
1279         (psymtab_to_symtab_1): Likewise.
1280         (die_hash): Likewise.
1281         (die_eq): Likewise.
1282         (load_full_comp_unit_reader): Likewise.
1283         (reset_die_in_process): Likewise.
1284         (free_cu_line_header): Likewise.
1285         (handle_DW_AT_stmt_list): Likewise.
1286         (hash_dwo_file): Likewise.
1287         (eq_dwo_file): Likewise.
1288         (hash_dwo_unit): Likewise.
1289         (eq_dwo_unit): Likewise.
1290         (create_dwo_cu_reader): Likewise.
1291         (create_dwo_unit_in_dwp_v1): Likewise.
1292         (create_dwo_unit_in_dwp_v2): Likewise.
1293         (lookup_dwo_unit_in_dwp): Likewise.
1294         (dwarf2_locate_dwo_sections): Likewise.
1295         (dwarf2_locate_common_dwp_sections): Likewise.
1296         (dwarf2_locate_v2_dwp_sections): Likewise.
1297         (hash_dwp_loaded_cutus): Likewise.
1298         (eq_dwp_loaded_cutus): Likewise.
1299         (lookup_dwo_cutu): Likewise.
1300         (abbrev_table_free_cleanup): Likewise.
1301         (dwarf2_free_abbrev_table): Likewise.
1302         (find_partial_die_in_comp_unit): Likewise.
1303         (free_line_header_voidp): Likewise.
1304         (follow_die_offset): Likewise.
1305         (follow_die_sig_1): Likewise.
1306         (free_heap_comp_unit): Likewise.
1307         (free_stack_comp_unit): Likewise.
1308         (dwarf2_free_objfile): Likewise.
1309         (per_cu_offset_and_type_hash): Likewise.
1310         (per_cu_offset_and_type_eq): Likewise.
1311         (get_die_type_at_offset): Likewise.
1312         (partial_die_hash): Likewise.
1313         (partial_die_eq): Likewise.
1314         (dwarf2_per_objfile_free): Likewise.
1315         (hash_strtab_entry): Likewise.
1316         (eq_strtab_entry): Likewise.
1317         (add_string): Likewise.
1318         (hash_symtab_entry): Likewise.
1319         (eq_symtab_entry): Likewise.
1320         (delete_symtab_entry): Likewise.
1321         (cleanup_mapped_symtab): Likewise.
1322         (add_indices_to_cpool): Likewise.
1323         (hash_psymtab_cu_index): Likewise.
1324         (eq_psymtab_cu_index): Likewise.
1325         (add_address_entry_worker): Likewise.
1326         (unlink_if_set): Likewise.
1327         (write_one_signatured_type): Likewise.
1328         (save_gdb_index_command): Likewise.
1329         * elfread.c (elf_symtab_read): Likewise.
1330         (elf_gnu_ifunc_cache_hash): Likewise.
1331         (elf_gnu_ifunc_cache_eq): Likewise.
1332         (elf_gnu_ifunc_record_cache): Likewise.
1333         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1334         (elf_get_probes): Likewise.
1335         (probe_key_free): Likewise.
1336         * f-lang.c (builtin_f_type): Likewise.
1337         * frame-base.c (frame_base_append_sniffer): Likewise.
1338         (frame_base_set_default): Likewise.
1339         (frame_base_find_by_frame): Likewise.
1340         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1341         (frame_unwind_append_unwinder): Likewise.
1342         (frame_unwind_find_by_frame): Likewise.
1343         * frame.c (frame_addr_hash): Likewise.
1344         (frame_addr_hash_eq): Likewise.
1345         (frame_stash_find): Likewise.
1346         (do_frame_register_read): Likewise.
1347         (unwind_to_current_frame): Likewise.
1348         (frame_cleanup_after_sniffer): Likewise.
1349         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1350         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1351         * ft32-tdep.c (ft32_frame_cache): Likewise.
1352         * gcore.c (do_bfd_delete_cleanup): Likewise.
1353         (gcore_create_callback): Likewise.
1354         * gdb_bfd.c (hash_bfd): Likewise.
1355         (eq_bfd): Likewise.
1356         (gdb_bfd_open): Likewise.
1357         (free_one_bfd_section): Likewise.
1358         (gdb_bfd_ref): Likewise.
1359         (gdb_bfd_unref): Likewise.
1360         (get_section_descriptor): Likewise.
1361         (gdb_bfd_map_section): Likewise.
1362         (gdb_bfd_crc): Likewise.
1363         (gdb_bfd_mark_parent): Likewise.
1364         (gdb_bfd_record_inclusion): Likewise.
1365         (gdb_bfd_requires_relocations): Likewise.
1366         (print_one_bfd): Likewise.
1367         * gdbtypes.c (type_pair_hash): Likewise.
1368         (type_pair_eq): Likewise.
1369         (builtin_type): Likewise.
1370         (objfile_type): Likewise.
1371         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1372         (vtable_address_point_offset): Likewise.
1373         (gnuv3_get_vtable): Likewise.
1374         (hash_value_and_voffset): Likewise.
1375         (eq_value_and_voffset): Likewise.
1376         (compare_value_and_voffset): Likewise.
1377         (compute_vtable_size): Likewise.
1378         (gnuv3_get_typeid_type): Likewise.
1379         * go-lang.c (builtin_go_type): Likewise.
1380         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1381         (bkscm_eq_block_smob): Likewise.
1382         (bkscm_objfile_block_map): Likewise.
1383         (bkscm_del_objfile_blocks): Likewise.
1384         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1385         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1386         (gdbscm_disasm_print_address): Likewise.
1387         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1388         (frscm_eq_frame_smob): Likewise.
1389         (frscm_inferior_frame_map): Likewise.
1390         (frscm_del_inferior_frames): Likewise.
1391         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1392         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1393         (ofscm_objfile_smob_from_objfile): Likewise.
1394         * guile/scm-ports.c (ioscm_write): Likewise.
1395         (ioscm_file_port_delete): Likewise.
1396         (ioscm_file_port_rewind): Likewise.
1397         (ioscm_file_port_put): Likewise.
1398         (ioscm_file_port_write): Likewise.
1399         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1400         (psscm_pspace_smob_from_pspace): Likewise.
1401         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1402         (scscm_recording_unwind_handler): Likewise.
1403         (gdbscm_with_catch): Likewise.
1404         (scscm_call_0_body): Likewise.
1405         (scscm_call_1_body): Likewise.
1406         (scscm_call_2_body): Likewise.
1407         (scscm_call_3_body): Likewise.
1408         (scscm_call_4_body): Likewise.
1409         (scscm_apply_1_body): Likewise.
1410         (scscm_eval_scheme_string): Likewise.
1411         (gdbscm_safe_eval_string): Likewise.
1412         (scscm_source_scheme_script): Likewise.
1413         (gdbscm_safe_source_script): Likewise.
1414         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1415         (gdbscm_call_scm_from_stringn): Likewise.
1416         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1417         (syscm_eq_symbol_smob): Likewise.
1418         (syscm_get_symbol_map): Likewise.
1419         (syscm_del_objfile_symbols): Likewise.
1420         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1421         (stscm_eq_symtab_smob): Likewise.
1422         (stscm_objfile_symtab_map): Likewise.
1423         (stscm_del_objfile_symtabs): Likewise.
1424         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1425         (tyscm_eq_type_smob): Likewise.
1426         (tyscm_type_map): Likewise.
1427         (tyscm_copy_type_recursive): Likewise.
1428         (save_objfile_types): Likewise.
1429         * guile/scm-utils.c (extract_arg): Likewise.
1430         * h8300-tdep.c (h8300_frame_cache): Likewise.
1431         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1432         * hppa-tdep.c (compare_unwind_entries): Likewise.
1433         (find_unwind_entry): Likewise.
1434         (hppa_frame_cache): Likewise.
1435         (hppa_stub_frame_unwind_cache): Likewise.
1436         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1437         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1438         (hppaobsd_supply_fpregset): Likewise.
1439         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1440         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1441         * i386-tdep.c (i386_frame_cache): Likewise.
1442         (i386_epilogue_frame_cache): Likewise.
1443         (i386_sigtramp_frame_cache): Likewise.
1444         (i386_supply_gregset): Likewise.
1445         (i386_collect_gregset): Likewise.
1446         (i386_gdbarch_init): Likewise.
1447         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1448         (i386obsd_trapframe_cache): Likewise.
1449         * i387-tdep.c (i387_supply_fsave): Likewise.
1450         (i387_collect_fsave): Likewise.
1451         (i387_supply_fxsave): Likewise.
1452         (i387_collect_fxsave): Likewise.
1453         (i387_supply_xsave): Likewise.
1454         (i387_collect_xsave): Likewise.
1455         * ia64-tdep.c (ia64_frame_cache): Likewise.
1456         (ia64_sigtramp_frame_cache): Likewise.
1457         * infcmd.c (attach_command_continuation): Likewise.
1458         (attach_command_continuation_free_args): Likewise.
1459         * inferior.c (restore_inferior): Likewise.
1460         (delete_thread_of_inferior): Likewise.
1461         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1462         (get_inflow_inferior_data): Likewise.
1463         (inflow_inferior_exit): Likewise.
1464         * infrun.c (displaced_step_clear_cleanup): Likewise.
1465         (restore_current_uiout_cleanup): Likewise.
1466         (release_stop_context_cleanup): Likewise.
1467         (do_restore_infcall_suspend_state_cleanup): Likewise.
1468         (do_restore_infcall_control_state_cleanup): Likewise.
1469         (restore_inferior_ptid): Likewise.
1470         * inline-frame.c (block_starting_point_at): Likewise.
1471         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1472         * jit.c (get_jit_objfile_data): Likewise.
1473         (get_jit_program_space_data): Likewise.
1474         (jit_object_close_impl): Likewise.
1475         (jit_find_objf_with_entry_addr): Likewise.
1476         (jit_breakpoint_deleted): Likewise.
1477         (jit_unwind_reg_set_impl): Likewise.
1478         (jit_unwind_reg_get_impl): Likewise.
1479         (jit_dealloc_cache): Likewise.
1480         (jit_frame_sniffer): Likewise.
1481         (jit_frame_prev_register): Likewise.
1482         (jit_prepend_unwinder): Likewise.
1483         (jit_inferior_exit_hook): Likewise.
1484         (free_objfile_data): Likewise.
1485         * jv-lang.c (jv_per_objfile_free): Likewise.
1486         (get_dynamics_objfile): Likewise.
1487         (get_java_class_symtab): Likewise.
1488         (builtin_java_type): Likewise.
1489         * language.c (language_string_char_type): Likewise.
1490         (language_bool_type): Likewise.
1491         (language_lookup_primitive_type): Likewise.
1492         (language_lookup_primitive_type_as_symbol): Likewise.
1493         * linespec.c (hash_address_entry): Likewise.
1494         (eq_address_entry): Likewise.
1495         (iterate_inline_only): Likewise.
1496         (iterate_name_matcher): Likewise.
1497         (decode_line_2_compare_items): Likewise.
1498         (collect_one_symbol): Likewise.
1499         (compare_symbols): Likewise.
1500         (compare_msymbols): Likewise.
1501         (add_symtabs_to_list): Likewise.
1502         (collect_symbols): Likewise.
1503         (compare_msyms): Likewise.
1504         (add_minsym): Likewise.
1505         (cleanup_linespec_result): Likewise.
1506         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1507         * linux-nat.c (delete_lwp_cleanup): Likewise.
1508         (count_events_callback): Likewise.
1509         (select_event_lwp_callback): Likewise.
1510         (resume_stopped_resumed_lwps): Likewise.
1511         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1512         (invalidate_linux_cache_inf): Likewise.
1513         (get_linux_inferior_data): Likewise.
1514         (linux_find_memory_regions_thunk): Likewise.
1515         (linux_make_mappings_callback): Likewise.
1516         (linux_corefile_thread_callback): Likewise.
1517         (find_mapping_size): Likewise.
1518         * linux-thread-db.c (find_new_threads_callback): Likewise.
1519         * lm32-tdep.c (lm32_frame_cache): Likewise.
1520         * m2-lang.c (builtin_m2_type): Likewise.
1521         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1522         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1523         (m32r_linux_supply_gregset): Likewise.
1524         (m32r_linux_collect_gregset): Likewise.
1525         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1526         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1527         * m68k-tdep.c (m68k_frame_cache): Likewise.
1528         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1529         (m68kbsd_supply_gregset): Likewise.
1530         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1531         * m88k-tdep.c (m88k_frame_cache): Likewise.
1532         (m88k_supply_gregset): Likewise.
1533
1534 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1535
1536         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1537         to allocation result assignment.
1538         * ada-exp.y (write_object_renaming): Likewise.
1539         (write_ambiguous_var): Likewise.
1540         (ada_nget_field_index): Likewise.
1541         (write_var_or_type): Likewise.
1542         * ada-lang.c (ada_decode_symbol): Likewise.
1543         (ada_value_assign): Likewise.
1544         (value_pointer): Likewise.
1545         (cache_symbol): Likewise.
1546         (add_nonlocal_symbols): Likewise.
1547         (ada_name_for_lookup): Likewise.
1548         (symbol_completion_add): Likewise.
1549         (ada_to_fixed_type_1): Likewise.
1550         (ada_get_next_arg): Likewise.
1551         (defns_collected): Likewise.
1552         * ada-lex.l (processId): Likewise.
1553         (processString): Likewise.
1554         * ada-tasks.c (read_known_tasks_array): Likewise.
1555         (read_known_tasks_list): Likewise.
1556         * ada-typeprint.c (decoded_type_name): Likewise.
1557         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1558         * amd64-tdep.c (amd64_push_arguments): Likewise.
1559         (amd64_displaced_step_copy_insn): Likewise.
1560         (amd64_classify_insn_at): Likewise.
1561         (amd64_relocate_instruction): Likewise.
1562         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1563         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1564         (initialize_current_architecture): Likewise.
1565         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1566         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1567         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1568         (arm_push_dummy_call): Likewise.
1569         (extend_buffer_earlier): Likewise.
1570         (arm_adjust_breakpoint_address): Likewise.
1571         (arm_skip_stub): Likewise.
1572         * auto-load.c (filename_is_in_pattern): Likewise.
1573         (maybe_add_script_file): Likewise.
1574         (maybe_add_script_text): Likewise.
1575         (auto_load_objfile_script_1): Likewise.
1576         * auxv.c (ld_so_xfer_auxv): Likewise.
1577         * ax-general.c (new_agent_expr): Likewise.
1578         (grow_expr): Likewise.
1579         (ax_reg_mask): Likewise.
1580         * bcache.c (bcache_full): Likewise.
1581         * breakpoint.c (program_breakpoint_here_p): Likewise.
1582         * btrace.c (parse_xml_raw): Likewise.
1583         * build-id.c (build_id_to_debug_bfd): Likewise.
1584         * buildsym.c (end_symtab_with_blockvector): Likewise.
1585         * c-exp.y (string_exp): Likewise.
1586         (qualified_name): Likewise.
1587         (write_destructor_name): Likewise.
1588         (operator_stoken): Likewise.
1589         (parse_number): Likewise.
1590         (scan_macro_expansion): Likewise.
1591         (yylex): Likewise.
1592         (c_print_token): Likewise.
1593         * c-lang.c (c_get_string): Likewise.
1594         (emit_numeric_character): Likewise.
1595         * charset.c (wchar_iterate): Likewise.
1596         * cli/cli-cmds.c (complete_command): Likewise.
1597         (make_command): Likewise.
1598         * cli/cli-dump.c (restore_section_callback): Likewise.
1599         (restore_binary_file): Likewise.
1600         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1601         * cli/cli-script.c (execute_control_command): Likewise.
1602         * cli/cli-setshow.c (do_set_command): Likewise.
1603         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1604         (read_pe_exported_syms): Likewise.
1605         * coffread.c (coff_read_struct_type): Likewise.
1606         (coff_read_enum_type): Likewise.
1607         * common/btrace-common.c (btrace_data_append): Likewise.
1608         * common/buffer.c (buffer_grow): Likewise.
1609         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1610         * common/format.c (parse_format_string): Likewise.
1611         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1612         * common/xml-utils.c (xml_escape_text): Likewise.
1613         * compile/compile-object-load.c (copy_sections): Likewise.
1614         (compile_object_load): Likewise.
1615         * compile/compile-object-run.c (compile_object_run): Likewise.
1616         * completer.c (filename_completer): Likewise.
1617         * corefile.c (read_memory_typed_address): Likewise.
1618         (write_memory_unsigned_integer): Likewise.
1619         (write_memory_signed_integer): Likewise.
1620         (complete_set_gnutarget): Likewise.
1621         * corelow.c (get_core_register_section): Likewise.
1622         * cp-name-parser.y (d_grab): Likewise.
1623         (allocate_info): Likewise.
1624         (cp_new_demangle_parse_info): Likewise.
1625         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1626         (cp_lookup_symbol_in_namespace): Likewise.
1627         (lookup_namespace_scope): Likewise.
1628         (find_symbol_in_baseclass): Likewise.
1629         (cp_lookup_nested_symbol): Likewise.
1630         (cp_lookup_transparent_type_loop): Likewise.
1631         * cp-support.c (copy_string_to_obstack): Likewise.
1632         (make_symbol_overload_list): Likewise.
1633         (make_symbol_overload_list_namespace): Likewise.
1634         (make_symbol_overload_list_adl_namespace): Likewise.
1635         (first_component_command): Likewise.
1636         * cp-valprint.c (cp_print_value): Likewise.
1637         * ctf.c (ctf_xfer_partial): Likewise.
1638         * d-exp.y (StringExp): Likewise.
1639         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1640         (lookup_module_scope): Likewise.
1641         (find_symbol_in_baseclass): Likewise.
1642         (d_lookup_nested_symbol): Likewise.
1643         * dbxread.c (find_stab_function_addr): Likewise.
1644         (read_dbx_symtab): Likewise.
1645         (dbx_end_psymtab): Likewise.
1646         (cp_set_block_scope): Likewise.
1647         * dcache.c (dcache_alloc): Likewise.
1648         * demangle.c (_initialize_demangler): Likewise.
1649         * dicos-tdep.c (dicos_load_module_p): Likewise.
1650         * dictionary.c (dict_create_hashed_expandable): Likewise.
1651         (dict_create_linear_expandable): Likewise.
1652         (expand_hashtable): Likewise.
1653         (add_symbol_linear_expandable): Likewise.
1654         * dwarf2-frame.c (add_cie): Likewise.
1655         (add_fde): Likewise.
1656         (dwarf2_build_frame_info): Likewise.
1657         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1658         (dwarf_expr_fetch_address): Likewise.
1659         (add_piece): Likewise.
1660         (execute_stack_op): Likewise.
1661         * dwarf2loc.c (chain_candidate): Likewise.
1662         (dwarf_entry_parameter_to_value): Likewise.
1663         (read_pieced_value): Likewise.
1664         (write_pieced_value): Likewise.
1665         * dwarf2read.c (dwarf2_read_section): Likewise.
1666         (add_type_unit): Likewise.
1667         (read_comp_units_from_section): Likewise.
1668         (fixup_go_packaging): Likewise.
1669         (dwarf2_compute_name): Likewise.
1670         (dwarf2_physname): Likewise.
1671         (create_dwo_unit_in_dwp_v1): Likewise.
1672         (create_dwo_unit_in_dwp_v2): Likewise.
1673         (read_func_scope): Likewise.
1674         (read_call_site_scope): Likewise.
1675         (dwarf2_attach_fields_to_type): Likewise.
1676         (process_structure_scope): Likewise.
1677         (mark_common_block_symbol_computed): Likewise.
1678         (read_common_block): Likewise.
1679         (abbrev_table_read_table): Likewise.
1680         (guess_partial_die_structure_name): Likewise.
1681         (fixup_partial_die): Likewise.
1682         (add_file_name): Likewise.
1683         (dwarf2_const_value_data): Likewise.
1684         (dwarf2_const_value_attr): Likewise.
1685         (build_error_marker_type): Likewise.
1686         (guess_full_die_structure_name): Likewise.
1687         (anonymous_struct_prefix): Likewise.
1688         (typename_concat): Likewise.
1689         (dwarf2_canonicalize_name): Likewise.
1690         (dwarf2_name): Likewise.
1691         (write_constant_as_bytes): Likewise.
1692         (dwarf2_fetch_constant_bytes): Likewise.
1693         (copy_string): Likewise.
1694         (parse_macro_definition): Likewise.
1695         * elfread.c (elf_symfile_segments): Likewise.
1696         (elf_rel_plt_read): Likewise.
1697         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1698         (elf_gnu_ifunc_resolve_by_got): Likewise.
1699         (elf_read_minimal_symbols): Likewise.
1700         (elf_gnu_ifunc_record_cache): Likewise.
1701         * event-top.c (top_level_prompt): Likewise.
1702         (command_line_handler): Likewise.
1703         * exec.c (resize_section_table): Likewise.
1704         * expprint.c (print_subexp_standard): Likewise.
1705         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1706         * findcmd.c (parse_find_args): Likewise.
1707         * findvar.c (address_from_register): Likewise.
1708         * frame.c (get_prev_frame_always): Likewise.
1709         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1710         (get_section_descriptor): Likewise.
1711         * gdb_obstack.c (obconcat): Likewise.
1712         (obstack_strdup): Likewise.
1713         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1714         (create_set_type): Likewise.
1715         (lookup_unsigned_typename): Likewise.
1716         (lookup_signed_typename): Likewise.
1717         (resolve_dynamic_union): Likewise.
1718         (resolve_dynamic_struct): Likewise.
1719         (add_dyn_prop): Likewise.
1720         (copy_dynamic_prop_list): Likewise.
1721         (arch_flags_type): Likewise.
1722         (append_composite_type_field_raw): Likewise.
1723         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1724         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1725         * go-exp.y (string_exp): Likewise.
1726         * go-lang.c (go_demangle): Likewise.
1727         * guile/guile.c (compute_scheme_string): Likewise.
1728         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1729         (gdbscm_canonicalize_command_name): Likewise.
1730         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1731         (ioscm_init_memory_port): Likewise.
1732         (ioscm_reinit_memory_port): Likewise.
1733         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1734         (gdbscm_gc_dup_argv): Likewise.
1735         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1736         * hppa-tdep.c (internalize_unwinds): Likewise.
1737         (read_unwind_info): Likewise.
1738         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1739         (windows_core_xfer_shared_libraries): Likewise.
1740         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1741         (i386_stap_parse_special_token_triplet): Likewise.
1742         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1743         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1744         * inf-child.c (inf_child_fileio_readlink): Likewise.
1745         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1746         (inf_ptrace_store_register): Likewise.
1747         * infrun.c (follow_exec): Likewise.
1748         (displaced_step_prepare_throw): Likewise.
1749         (save_stop_context): Likewise.
1750         (save_infcall_suspend_state): Likewise.
1751         * jit.c (jit_read_descriptor): Likewise.
1752         (jit_read_code_entry): Likewise.
1753         (jit_symtab_line_mapping_add_impl): Likewise.
1754         (finalize_symtab): Likewise.
1755         (jit_unwind_reg_get_impl): Likewise.
1756         * jv-exp.y (QualifiedName): Likewise.
1757         * jv-lang.c (get_java_utf8_name): Likewise.
1758         (type_from_class): Likewise.
1759         (java_demangle_type_signature): Likewise.
1760         (java_class_name_from_physname): Likewise.
1761         * jv-typeprint.c (java_type_print_base): Likewise.
1762         * jv-valprint.c (java_value_print): Likewise.
1763         * language.c (add_language): Likewise.
1764         * linespec.c (add_sal_to_sals_basic): Likewise.
1765         (add_sal_to_sals): Likewise.
1766         (decode_objc): Likewise.
1767         (find_linespec_symbols): Likewise.
1768         * linux-fork.c (fork_save_infrun_state): Likewise.
1769         * linux-nat.c (linux_nat_detach): Likewise.
1770         (linux_nat_fileio_readlink): Likewise.
1771         * linux-record.c (record_linux_sockaddr): Likewise.
1772         (record_linux_msghdr): Likewise.
1773         (Do): Likewise.
1774         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1775         (linux_collect_regset_section_cb): Likewise.
1776         (linux_get_siginfo_data): Likewise.
1777         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1778         (try_thread_db_load_from_dir): Likewise.
1779         (thread_db_load_search): Likewise.
1780         (info_auto_load_libthread_db): Likewise.
1781         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1782         (m32c_m16c_pointer_to_address): Likewise.
1783         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1784         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1785         * machoread.c (macho_check_dsym): Likewise.
1786         * macroexp.c (resize_buffer): Likewise.
1787         (gather_arguments): Likewise.
1788         (maybe_expand): Likewise.
1789         * macrotab.c (new_macro_key): Likewise.
1790         (new_source_file): Likewise.
1791         (new_macro_definition): Likewise.
1792         * mdebugread.c (parse_symbol): Likewise.
1793         (parse_type): Likewise.
1794         (parse_partial_symbols): Likewise.
1795         (psymtab_to_symtab_1): Likewise.
1796         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1797         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1798         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1799         (mi_cmd_data_read_memory_bytes): Likewise.
1800         (mi_cmd_data_write_memory_bytes): Likewise.
1801         (mi_cmd_trace_frame_collected): Likewise.
1802         * mi/mi-parse.c (mi_parse_argv): Likewise.
1803         (mi_parse): Likewise.
1804         * minidebug.c (lzma_open): Likewise.
1805         (lzma_pread): Likewise.
1806         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1807         (mips_print_fp_register): Likewise.
1808         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1809         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1810         * mt-tdep.c (mt_register_name): Likewise.
1811         (mt_registers_info): Likewise.
1812         (mt_push_dummy_call): Likewise.
1813         * namespace.c (add_using_directive): Likewise.
1814         * nat/linux-btrace.c (perf_event_read): Likewise.
1815         (linux_enable_bts): Likewise.
1816         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1817         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1818         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1819         (nto_parse_redirection): Likewise.
1820         * objc-lang.c (objc_demangle): Likewise.
1821         (find_methods): Likewise.
1822         * objfiles.c (get_objfile_bfd_data): Likewise.
1823         (set_objfile_main_name): Likewise.
1824         (allocate_objfile): Likewise.
1825         (objfile_relocate): Likewise.
1826         (update_section_map): Likewise.
1827         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1828         * p-exp.y (exp): Likewise.
1829         (yylex): Likewise.
1830         * p-valprint.c (pascal_object_print_value): Likewise.
1831         * parse.c (initialize_expout): Likewise.
1832         (mark_completion_tag): Likewise.
1833         (copy_name): Likewise.
1834         (parse_float): Likewise.
1835         (type_stack_reserve): Likewise.
1836         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1837         (ppu2spu_prev_register): Likewise.
1838         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1839         * printcmd.c (printf_wide_c_string): Likewise.
1840         (printf_pointer): Likewise.
1841         * probe.c (parse_probes): Likewise.
1842         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1843         (cmdpy_init): Likewise.
1844         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1845         * python/py-symtab.c (set_sal): Likewise.
1846         * python/py-unwind.c (pyuw_sniffer): Likewise.
1847         * python/python.c (python_interactive_command): Likewise.
1848         (compute_python_string): Likewise.
1849         * ravenscar-thread.c (get_running_thread_id): Likewise.
1850         * record-full.c (record_full_exec_insn): Likewise.
1851         (record_full_core_open_1): Likewise.
1852         * regcache.c (regcache_raw_read_signed): Likewise.
1853         (regcache_raw_read_unsigned): Likewise.
1854         (regcache_cooked_read_signed): Likewise.
1855         (regcache_cooked_read_unsigned): Likewise.
1856         * remote-fileio.c (remote_fileio_func_open): Likewise.
1857         (remote_fileio_func_rename): Likewise.
1858         (remote_fileio_func_unlink): Likewise.
1859         (remote_fileio_func_stat): Likewise.
1860         (remote_fileio_func_system): Likewise.
1861         * remote-mips.c (mips_xfer_memory): Likewise.
1862         (mips_load_srec): Likewise.
1863         (pmon_end_download): Likewise.
1864         * remote.c (new_remote_state): Likewise.
1865         (map_regcache_remote_table): Likewise.
1866         (remote_register_number_and_offset): Likewise.
1867         (init_remote_state): Likewise.
1868         (get_memory_packet_size): Likewise.
1869         (remote_pass_signals): Likewise.
1870         (remote_program_signals): Likewise.
1871         (remote_start_remote): Likewise.
1872         (remote_check_symbols): Likewise.
1873         (remote_query_supported): Likewise.
1874         (extended_remote_attach): Likewise.
1875         (process_g_packet): Likewise.
1876         (store_registers_using_G): Likewise.
1877         (putpkt_binary): Likewise.
1878         (read_frame): Likewise.
1879         (compare_sections_command): Likewise.
1880         (remote_hostio_pread): Likewise.
1881         (remote_hostio_readlink): Likewise.
1882         (remote_file_put): Likewise.
1883         (remote_file_get): Likewise.
1884         (remote_pid_to_exec_file): Likewise.
1885         (_initialize_remote): Likewise.
1886         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1887         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1888         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1889         (bfd_uses_spe_extensions): Likewise.
1890         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1891         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1892         * solib-dsbt.c (decode_loadmap): Likewise.
1893         (fetch_loadmap): Likewise.
1894         (scan_dyntag): Likewise.
1895         (enable_break): Likewise.
1896         (dsbt_relocate_main_executable): Likewise.
1897         * solib-frv.c (fetch_loadmap): Likewise.
1898         (enable_break2): Likewise.
1899         (frv_relocate_main_executable): Likewise.
1900         * solib-spu.c (spu_relocate_main_executable): Likewise.
1901         (spu_bfd_open): Likewise.
1902         * solib-svr4.c (lm_info_read): Likewise.
1903         (read_program_header): Likewise.
1904         (find_program_interpreter): Likewise.
1905         (scan_dyntag): Likewise.
1906         (elf_locate_base): Likewise.
1907         (open_symbol_file_object): Likewise.
1908         (read_program_headers_from_bfd): Likewise.
1909         (svr4_relocate_main_executable): Likewise.
1910         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1911         * solib.c (solib_find_1): Likewise.
1912         (exec_file_find): Likewise.
1913         (solib_find): Likewise.
1914         * source.c (openp): Likewise.
1915         (print_source_lines_base): Likewise.
1916         (forward_search_command): Likewise.
1917         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1918         * spu-tdep.c (spu2ppu_prev_register): Likewise.
1919         (spu_get_overlay_table): Likewise.
1920         * stabsread.c (patch_block_stabs): Likewise.
1921         (define_symbol): Likewise.
1922         (again:): Likewise.
1923         (read_member_functions): Likewise.
1924         (read_one_struct_field): Likewise.
1925         (read_enum_type): Likewise.
1926         (common_block_start): Likewise.
1927         * stack.c (read_frame_arg): Likewise.
1928         (backtrace_command): Likewise.
1929         * stap-probe.c (stap_parse_register_operand): Likewise.
1930         * symfile.c (syms_from_objfile_1): Likewise.
1931         (find_separate_debug_file): Likewise.
1932         (load_command): Likewise.
1933         (load_progress): Likewise.
1934         (load_section_callback): Likewise.
1935         (reread_symbols): Likewise.
1936         (add_filename_language): Likewise.
1937         (allocate_compunit_symtab): Likewise.
1938         (read_target_long_array): Likewise.
1939         (simple_read_overlay_table): Likewise.
1940         * symtab.c (symbol_set_names): Likewise.
1941         (resize_symbol_cache): Likewise.
1942         (rbreak_command): Likewise.
1943         (completion_list_add_name): Likewise.
1944         (completion_list_objc_symbol): Likewise.
1945         (add_filename_to_list): Likewise.
1946         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1947         * target-memory.c (target_write_memory_blocks): Likewise.
1948         * target.c (target_read_string): Likewise.
1949         (read_whatever_is_readable): Likewise.
1950         (target_read_alloc_1): Likewise.
1951         (simple_search_memory): Likewise.
1952         (target_fileio_read_alloc_1): Likewise.
1953         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1954         * top.c (command_line_input): Likewise.
1955         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1956         * tracefile.c (tracefile_fetch_registers): Likewise.
1957         * tracepoint.c (add_memrange): Likewise.
1958         (init_collection_list): Likewise.
1959         (add_aexpr): Likewise.
1960         (trace_dump_actions): Likewise.
1961         (parse_trace_status): Likewise.
1962         (parse_tracepoint_definition): Likewise.
1963         (parse_tsv_definition): Likewise.
1964         (parse_static_tracepoint_marker_definition): Likewise.
1965         * tui/tui-file.c (tui_sfileopen): Likewise.
1966         (tui_file_adjust_strbuf): Likewise.
1967         * tui/tui-io.c (tui_expand_tabs): Likewise.
1968         * tui/tui-source.c (tui_set_source_content): Likewise.
1969         * typeprint.c (find_global_typedef): Likewise.
1970         * ui-file.c (do_ui_file_xstrdup): Likewise.
1971         (ui_file_obsavestring): Likewise.
1972         (mem_file_write): Likewise.
1973         * utils.c (make_hex_string): Likewise.
1974         (get_regcomp_error): Likewise.
1975         (puts_filtered_tabular): Likewise.
1976         (gdb_realpath_keepfile): Likewise.
1977         (ldirname): Likewise.
1978         (gdb_bfd_errmsg): Likewise.
1979         (substitute_path_component): Likewise.
1980         * valops.c (search_struct_method): Likewise.
1981         (find_oload_champ_namespace_loop): Likewise.
1982         * valprint.c (print_decimal_chars): Likewise.
1983         (read_string): Likewise.
1984         (generic_emit_char): Likewise.
1985         * varobj.c (varobj_delete): Likewise.
1986         (varobj_value_get_print_value): Likewise.
1987         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1988         * windows-tdep.c (display_one_tib): Likewise.
1989         * xcoffread.c (read_xcoff_symtab): Likewise.
1990         (process_xcoff_symbol): Likewise.
1991         (swap_sym): Likewise.
1992         (scan_xcoff_symtab): Likewise.
1993         (xcoff_initial_scan): Likewise.
1994         * xml-support.c (gdb_xml_end_element): Likewise.
1995         (xml_process_xincludes): Likewise.
1996         (xml_fetch_content_from_file): Likewise.
1997         * xml-syscall.c (xml_list_of_syscalls): Likewise.
1998         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1999
2000 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2001
2002         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2003         instead of builtin_func_ptr.
2004         (ft32_pointer_to_address): New function.
2005         (ft32_address_class_type_flags): New function.
2006         (ft32_address_class_type_flags_to_name): New function.
2007         (ft32_address_class_name_to_type_flags): New function.
2008         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2009         set_gdbarch_pointer_to_address,
2010         set_gdbarch_address_class_type_flags
2011         set_gdbarch_address_class_name_to_type_flags,
2012         and set_gdbarch_address_class_type_flags_to_name.
2013         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2014
2015 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2016
2017         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2018         value is a reference, actually dereference it in order to get
2019         the underlying value.
2020
2021 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2022
2023         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2024
2025 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2026
2027         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2028         * linespec.c (linespec_lexer_lex_string): Same.
2029
2030 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2031
2032         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2033
2034 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2035
2036         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2037         variable.  Call aarch64_decode_adr instead of
2038         aarch64_decode_adrp.
2039         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2040         (aarch64_decode_adr): New function declaration.
2041         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2042         (aarch64_decode_adr): New function, factored out from
2043         aarch64_decode_adrp to decode both adr and adrp instructions.
2044
2045 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2046
2047         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2048         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2049         (aarch64-insn.o): New rule.
2050         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2051         (aarch64*-*-linux*): Likewise.
2052         * arch/aarch64-insn.c: New file.
2053         * arch/aarch64-insn.h: New file.
2054         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2055         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2056         arch/aarch64-insn.h.
2057         (decode_add_sub_imm): Rename to ...
2058         (aarch64_decode_add_sub_imm): ... this.
2059         (decode_adrp): Rename to ...
2060         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2061         Declare in arch/aarch64-insn.h.
2062         (decode_b): Rename to ...
2063         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2064         Declare in arch/aarch64-insn.h.
2065         (decode_bcond): Rename to ...
2066         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2067         Declare in arch/aarch64-insn.h.
2068         (decode_br): Rename to ...
2069         (aarch64_decode_br): ... this.
2070         (decode_cb): Rename to ...
2071         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2072         Declare in arch/aarch64-insn.h.
2073         (decode_eret): Rename to ...
2074         (aarch64_decode_eret): ... this.
2075         (decode_movz): Rename to ...
2076         (aarch64_decode_movz): ... this.
2077         (decode_orr_shifted_register_x): Rename to ...
2078         (aarch64_decode_orr_shifted_register_x): ... this.
2079         (decode_ret): Rename to ...
2080         (aarch64_decode_ret): ... this.
2081         (decode_stp_offset): Rename to ...
2082         (aarch64_decode_stp_offset): ... this.
2083         (decode_stp_offset_wb): Rename to ...
2084         (aarch64_decode_stp_offset_wb): ... this.
2085         (decode_stur): Rename to ...
2086         (aarch64_decode_stur): ... this.
2087         (decode_tb): Rename to ...
2088         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2089         Declare in arch/aarch64-insn.h.
2090         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2091
2092 2015-09-20  Doug Evans  <xdje42@gmail.com>
2093
2094         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2095
2096 2015-09-20  Doug Evans  <xdje42@gmail.com>
2097
2098         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2099         variable name that collides with a parameter.
2100
2101 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2102
2103         * dwarf2loc.c (locexpr_get_frame_base): Renames
2104         block_op_get_frame_base.
2105         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2106         block_op_get_frame_base by reference to locexpr_get_frame_base.
2107         (loclist_get_frame_base): New function, near identical copy of
2108         locexpr_get_frame_base.
2109         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2110         block_op_get_frame_base by reference to loclist_get_frame_base.
2111
2112 2015-09-19  Doug Evans  <xdje42@gmail.com>
2113
2114         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2115         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2116
2117 2015-09-18  Doug Evans  <xdje42@gmail.com>
2118
2119         * linux-thread-db.c (record_thread): Return the created thread.
2120         (thread_from_lwp): Likewise.
2121         (thread_db_get_thread_local_address): Update.
2122
2123 2015-09-18  Doug Evans  <xdje42@gmail.com>
2124
2125         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2126         move only member demangled_name up.  All uses updated.
2127
2128 2015-09-18  Doug Evans  <xdje42@gmail.com>
2129
2130         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2131         kind of minimal symbol in the error message.
2132         * objfiles.c (objfile_flavour_name): New function.
2133         * objfiles.h (objfile_flavour_name): Declare.
2134
2135 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2136
2137         * nat/aarch64-linux.c: Include elf/common.h,
2138         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2139         (aarch64_ps_get_thread_area): New function.
2140         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2141         (aarch64_ps_get_thread_area): Declare.
2142         * aarch64-linux-nat.c (ps_get_thread_area): Call
2143         aarch64_ps_get_thread_area.
2144
2145 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2146
2147         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2148
2149 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2150
2151         * NEWS: Announce new scheduler-locking mode.
2152         * infrun.c (schedlock_replay): New.
2153         (scheduler_enums): Add schedlock_replay.
2154         (scheduler_mode): Change default to schedlock_replay.
2155         (user_visible_resume_ptid): Handle schedlock_replay.
2156         (clear_proceed_status_thread): Stop replaying if resumed thread is
2157         not replaying.
2158         (schedlock_applies): Handle schedlock_replay.
2159         (_initialize_infrun): Document new scheduler-locking mode.
2160         * record-btrace.c (record_btrace_resume): Remove code to stop other
2161         threads when not replaying the resumed thread.
2162
2163 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2164
2165         * record-btrace.c ((record_btrace_will_replay): New.
2166         (init_record_btrace_ops): Initialize to_record_will_replay.
2167         * record-full.c ((record_full_will_replay): New.
2168         (init_record_full_ops): Initialize to_record_will_replay.
2169         * target-delegates.c: Regenerated.
2170         * target.c (target_record_will_replay): New.
2171         * target.h (struct target_ops) <to_record_will_replay>: New.
2172         (target_record_will_replay): New.
2173
2174 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2175
2176         * record-btrace.c (record_btrace_resume): Call
2177         target_record_stop_replaying.
2178         (record_btrace_stop_replaying_all): New.
2179         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2180         * record-full.c (record_full_stop_replaying): New.
2181         (init_record_full_ops ): Initialize to_record_stop_replaying.
2182         * target-delegates.c: Regenerated.
2183         * target.c (target_record_stop_replaying): New.
2184         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2185         (target_record_stop_replaying): New.
2186
2187 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2188
2189         * record-btrace.c (record_btrace_xfer_partial)
2190         (record_btrace_store_registers, record_btrace_prepare_to_store):
2191         Call record_btrace_is_replaying with inferior_ptid instead of
2192         minus_one_ptid.
2193         (record_btrace_store_registers): Change error message.
2194
2195 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2196
2197         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2198         Update users to pass minus_one_ptid.
2199         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2200         * record.c (cmd_record_delete): Pass inferior_ptid to
2201         target_record_is_replaying.
2202         * target-delegates.c: Regenerated.
2203         * target.c (target_record_is_replaying): Add ptid argument.
2204         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2205         argument.
2206         (target_record_is_replaying): Add ptid argument.
2207
2208 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2209
2210         * record-btrace.c (record_btrace_open): Remove non_stop check.
2211         * NEWS: Announce that record btrace supports non-stop mode.
2212
2213 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2214
2215         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2216         in the TARKET_WAITKIND_NO_HISTORY case.
2217
2218 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2219
2220         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2221         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2222
2223 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2224
2225         * record-btrace.c (get_thread_current_frame): New.
2226         (record_btrace_start_replaying): Call get_thread_current_frame.
2227
2228 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2229
2230         * record-btrace.c (record_btrace_resume_thread): A move request
2231         overwrites a previous move request.
2232         (record_btrace_find_resume_thread): Removed.
2233         (record_btrace_resume): Resume all requested threads.
2234
2235 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2236
2237         * record-btrace.c: Include vec.h.
2238         (record_btrace_find_thread_to_move): Removed.
2239         (btrace_step_no_resumed, btrace_step_again)
2240         (record_btrace_stop_replaying_at_end): New.
2241         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2242         (record_btrace_single_step_forward): Remove calls to
2243         record_btrace_stop_replaying.
2244         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2245         BTHR_RCONT.  Keep threads at the end of their history moving.
2246         (record_btrace_wait): Call record_btrace_step_thread for all threads
2247         until one reports an event.  Call record_btrace_stop_replaying_at_end
2248         for the eventing thread.
2249
2250 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2251
2252         * record-btrace.c (record_btrace_single_step_forward): Return
2253         NO_HISTORY if a step brings us to the end of the execution history.
2254
2255 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2256
2257         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2258         to ...
2259         (record_btrace_single_step_forward): ... here and
2260         (record_btrace_single_step_backward): ... here.
2261
2262 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2263
2264         * record-btrace.c (btrace_step_spurious)
2265         (record_btrace_single_step_forward)
2266         (record_btrace_single_step_backward): New.
2267         (record_btrace_step_thread): Call record_btrace_single_step_forward
2268         and record_btrace_single_step_backward.
2269
2270 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2271
2272         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2273         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2274
2275 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2276
2277         * record-btrace.c (btrace_thread_flag_to_str)
2278         (record_btrace_cancel_resume): New.
2279         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2280         (record_btrace_resume): Print execution direction.
2281         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2282         (record_btrace_wait): Call record_btrace_cancel_resume.
2283
2284 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2285
2286         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2287         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2288         (record_btrace_find_thread_to_move): Also accept threads that have
2289         BTHR_STOP set.
2290         (btrace_step_stopped_on_request, record_btrace_stop): New.
2291         (record_btrace_step_thread): Support BTHR_STOP.
2292         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2293         (init_record_btrace_ops): Initialize to_stop.
2294
2295 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2296
2297         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2298         target_is_non_stop_p ().
2299
2300 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2301
2302         * ada-typeprint.c (print_array_type): Do not describe arrays as
2303         packed when they embed dynamic elements.
2304
2305 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2306
2307         * symtab.h (address_class): Document that TLS variables
2308         are handled by LOC_UNRESOLVED.
2309         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2310         * printcmd.c (address_info): Don't relocate TLS variables.
2311
2312 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2313
2314         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2315         (decode_adrp): Likewise.
2316         (decode_b): Likewise.
2317         (decode_bcond): Likewise.
2318         (decode_br): Likewise.
2319         (decode_cb): Likewise.
2320         (decode_eret): Likewise.
2321         (decode_movz): Likewise.
2322         (decode_orr_shifted_register_x): Likewise.
2323         (decode_ret): Likewise.
2324         (decode_stp_offset): Likewise.
2325         (decode_stp_offset_wb): Likewise.
2326         (decode_stur): Likewise.
2327         (decode_tb): Likewise.
2328         (aarch64_analyze_prologue): Likewise.
2329         (pass_in_x): Likewise.
2330         (pass_in_v): Likewise.
2331         (pass_on_stack): Likewise.
2332         (aarch64_push_dummy_call): Likewise.
2333         (aarch64_extract_return_value): Likewise.
2334         (aarch64_store_return_value): Likewise.
2335         (aarch64_return_value): Likewise.
2336         (aarch64_record_asimd_load_store): Likewise.
2337         (aarch64_record_load_store): Likewise.
2338         (aarch64_record_data_proc_simd_fp): Likewise.
2339
2340 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2341
2342         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2343         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2344         (ppc64_skip_trampoline_code_1): ... here.
2345         (ppc64_skip_trampoline_code): New wrapper function.
2346         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2347
2348 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2349
2350         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2351         function.
2352         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2353         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2354         if target_can_do_single_step returns 1.
2355         * remote.c (struct vCont_action_support) <s, S>: New fields.
2356         (PACKET_vContSupported): New enum.
2357         (remote_protocol_features): New element for vContSupported.
2358         (remote_query_supported): Append "vContSupported+".
2359         (remote_vcont_probe): Remove support_s and support_S, use
2360         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2361         vCont packet if c and C actions are not supported.
2362         (remote_can_do_single_step): New function.
2363         (init_remote_ops): Install it to to_can_do_single_step.
2364         (_initialize_remote): Call add_packet_config_cmd.
2365         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2366         (target_can_do_single_step): New macro.
2367         * target-delegates.c: Re-generated.
2368
2369 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2370
2371         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2372         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2373         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2374         New function.
2375         (aarch64_siginfo_from_compat_siginfo): New function.
2376         * nat/aarch64-linux.h: Include signal.h.
2377         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2378         (compat_timer_t, compat_clock_t): Likewise.
2379         (struct compat_timeval): New.
2380         (union compat_sigval): New.
2381         (struct compat_siginfo): New.
2382         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2383         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2384         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2385         (cpt_si_band, cpt_si_fd): Likewise.
2386
2387 2015-09-14  Pedro Alves  <palves@redhat.com>
2388
2389         * infrun.c (current_stop_id): New global.
2390         (get_stop_id, new_stop_id): New functions.
2391         (fetch_inferior_event): Handle normal_stop proceeding the target.
2392         (struct stop_context): New.
2393         (save_stop_context, release_stop_context_cleanup)
2394         (stop_context_changed): New functions.
2395         (normal_stop): Return true if the hook-stop changes the stop
2396         context.
2397         * infrun.h (get_stop_id): Declare.
2398         (normal_stop): Now returns int.  Add documentation.
2399
2400 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2401
2402         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2403         comment.  Handle packed arrays.
2404
2405 2015-09-14  Pedro Alves  <palves@redhat.com>
2406
2407         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2408         mention of maint set/show target-non-stop.
2409
2410 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2411
2412         * NEWS: Announce new remote packets for the exec-events
2413         feature and the exec-events feature and associated commands.
2414
2415 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2416
2417         * remote.c (remote_exec_event_p): New function.
2418         (remote_insert_exec_catchpoint): New function.
2419         (remote_remove_exec_catchpoint): New function.
2420         (init_extended_remote_ops): Initialize extended_remote_ops
2421         members to_insert_exec_catchpoint and
2422         to_remove_exec_catchpoint.
2423
2424 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2425             Luis Machado  <lgustavo@codesourcery.com>
2426
2427         * infrun.c (follow_exec): Use process-style ptid for
2428         exec message.  Call add_inferior_with_spaces and
2429         target_follow_exec.
2430         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2431         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2432         * remote.c (remote_pspace_data): New static variable.
2433         (remote_pspace_data_cleanup): New function.
2434         (get_remote_exec_file): New function.
2435         (set_remote_exec_file_1): New function.
2436         (set_remote_exec_file): New function.
2437         (show_remote_exec_file): New function.
2438         (remote_exec_file): Delete static variable.
2439         (anonymous enum) <PACKET_exec_event_feature>: New
2440         enumeration constant.
2441         (remote_protocol_features): Add entry for exec-events feature.
2442         (remote_query_supported): Add client side of qSupported query
2443         for exec-events feature.
2444         (remote_follow_exec): New function.
2445         (remote_parse_stop_reply): Handle 'exec' stop reason.
2446         (extended_remote_run, extended_remote_create_inferior): Call
2447         get_remote_exec_file and set_remote_exec_file_1.
2448         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2449         member.
2450         (_initialize_remote): Call
2451         register_program_space_data_with_cleanup.  Call
2452         add_packet_config_cmd for remote exec-events feature.
2453         Modify call to add_setshow_string_noescape_cmd for exec-file
2454         to use new functions set_remote_exec_file and
2455         show_remote_exec_file.
2456         * target-debug.h, target-delegates.c: Regenerated.
2457         * target.c (target_follow_exec): New function.
2458         * target.h (struct target_ops) <to_follow_exec>: New member.
2459         (target_follow_exec): Declare new function.
2460
2461 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2462
2463         * aarch64-tdep.c (decode_cb): Move up comment describing the
2464         encoding.
2465         (decode_tb): Fix a typo in comment above the function.  Move up
2466         comment describing the encoding.
2467
2468 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2469
2470         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2471
2472 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2473
2474         PR gdb/18947
2475         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2476         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2477
2478 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2479
2480         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2481         operations.
2482
2483 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2484
2485         * ada-lang.c (ada_search_struct_field): Constify parameters
2486         and/or variables..
2487         (xget_renaming_scope): Likewise.
2488         (ada_is_redundant_range_encoding): Likewise.
2489         (scan_discrim_bound): Likewise.
2490         (to_fixed_range_type): Likewise.
2491
2492 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2493
2494         * breakpoint.c (download_tracepoint_locations): New local
2495         can_download_tracepoint.  Check the result of
2496         target_can_download_tracepoint and save it in
2497         can_download_tracepoint if there are tracepoints to download.
2498         * linux-nat.h (enum tribool): Move it to ...
2499         * common/common-types.h: ... here.
2500
2501 2015-09-09  Pedro Alves  <palves@redhat.com>
2502
2503         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2504         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2505
2506 2015-09-09  Pedro Alves  <palves@redhat.com>
2507
2508         * continuations.c (add_continuation, restore_thread_cleanup)
2509         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2510         (do_all_continuations_thread, do_all_continuations)
2511         (discard_all_continuations_thread_callback)
2512         (discard_all_continuations_thread, discard_all_continuations)
2513         (add_intermediate_continuation)
2514         (do_all_intermediate_continuations_thread_callback)
2515         (do_all_intermediate_continuations_thread)
2516         (do_all_intermediate_continuations)
2517         (discard_all_intermediate_continuations_thread_callback)
2518         (discard_all_intermediate_continuations_thread)
2519         (discard_all_intermediate_continuations): Delete.
2520         * continuations.h (add_continuation, do_all_continuations)
2521         (do_all_continuations_thread, discard_all_continuations)
2522         (discard_all_continuations_thread, add_intermediate_continuation)
2523         (do_all_intermediate_continuations)
2524         (do_all_intermediate_continuations_thread)
2525         (discard_all_intermediate_continuations)
2526         (discard_all_intermediate_continuations_thread): Delete
2527         declarations.
2528         * event-top.c (stdin_event_handler): Delete references to
2529         continuations.
2530         * gdbthread.h (struct thread_info): Delete continuations and
2531         intermediate_continuations fields.
2532         * inf-loop.c (inferior_event_handler): Remove references to
2533         continuations.
2534         * infrun.c (infrun_thread_stop_requested_callback): Remove
2535         references to continuations.
2536         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2537         * thread.c: Don't include "continuations.h".
2538         (clear_thread_inferior_resources): Remove references to
2539         continuations.
2540
2541 2015-09-09  Pedro Alves  <palves@redhat.com>
2542
2543         * infcall.c (struct dummy_frame_context_saver): Delete.
2544         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2545         (dummy_frame_context_saver_drop)
2546         (dummy_frame_context_saver_cleanup)
2547         (dummy_frame_context_saver_get_regs)
2548         (dummy_frame_context_saver_setup): Delete.
2549         * infcall.h (dummy_frame_context_saver_drop)
2550         (dummy_frame_context_saver_cleanup)
2551         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2552         Delete.
2553         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2554         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2555         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2556
2557 2015-09-09  Pedro Alves  <palves@redhat.com>
2558
2559         * breakpoint.c: Include "thread-fsm.h".
2560         (struct until_break_command_continuation_args): Delete.
2561         (struct until_break_fsm): New.
2562         (until_break_fsm_ops): New global.
2563         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2564         (until_break_command_continuation): Delete.
2565         (until_break_fsm_clean_up): New function.
2566         (until_break_fsm_async_reply_reason): New function.
2567         (until_break_command): Adjust to create an until_break_fsm instead
2568         of a continuation.
2569         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2570         here.
2571         * infcmd.c (struct until_next_fsm): New.
2572         (until_next_fsm_ops): New global.
2573         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2574         (until_next_continuation): Delete.
2575         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2576         functions.
2577         (until_next_command): Adjust to create a new until_next_fsm
2578         instead of a continuation.
2579
2580 2015-09-09  Pedro Alves  <palves@redhat.com>
2581
2582         * infcall.c: Include thread_fsm.h.
2583         (struct call_return_meta_info): New.
2584         (get_call_return_value): New function, factored out from
2585         call_function_by_hand_dummy.
2586         (struct call_thread_fsm): New.
2587         (call_thread_fsm_ops): New global.
2588         (new_call_thread_fsm, call_thread_fsm_should_stop)
2589         (call_thread_fsm_should_notify_stop): New functions.
2590         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2591         the thread.
2592         (call_function_by_hand_dummy): Create a new call_thread_fsm
2593         instance, associate it with the thread, and wait for the FSM to
2594         finish.  If finished successfully, fetch the function's result
2595         value out of the FSM.
2596         * infrun.c (fetch_inferior_event): If the FSM says the stop
2597         shouldn't be notified, don't call normal_stop.
2598         (maybe_remove_breakpoints): New function, factored out from ...
2599         (normal_stop): ... here.  Simplify.
2600         * infrun.h (maybe_remove_breakpoints): Declare.
2601         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2602         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2603         (thread_fsm_should_notify_stop): Declare.
2604
2605 2015-09-09  Pedro Alves  <palves@redhat.com>
2606
2607         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2608         * breakpoint.c (handle_jit_event): Print debug output.
2609         (bpstat_what): Split event callback handling to ...
2610         (bpstat_run_callbacks): ... this new function.
2611         (momentary_bkpt_print_it): No longer handle bp_finish here.
2612         * breakpoint.h (bpstat_run_callbacks): Declare.
2613         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2614         <thread_fsm>: New field.
2615         (thread_cancel_execution_command): Declare.
2616         * infcmd.c: Include thread-fsm.h.
2617         (struct step_command_fsm): New.
2618         (step_command_fsm_ops): New global.
2619         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2620         (step_1): Adjust to use step_command_fsm_prepare and
2621         prepare_one_step.
2622         (struct step_1_continuation_args): Delete.
2623         (step_1_continuation): Delete.
2624         (step_command_fsm_should_stop): New function.
2625         (step_once): Delete.
2626         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2627         (prepare_one_step): New function, based on step_once.
2628         (until_next_command): Remove step_multi reference.
2629         (struct return_value_info): New.
2630         (print_return_value): Rename to ...
2631         (print_return_value_1): ... this.  New struct return_value_info
2632         parameter.  Adjust.
2633         (print_return_value): Reimplement as wrapper around
2634         print_return_value_1.
2635         (struct finish_command_fsm): New.
2636         (finish_command_continuation): Delete.
2637         (finish_command_fsm_ops): New global.
2638         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2639         functions.
2640         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2641         New.
2642         (finish_command_continuation_free_arg): Delete.
2643         (finish_command_fsm_async_reply_reason): New.
2644         (finish_backward, finish_forward): Change symbol parameter to a
2645         finish_command_fsm.  Adjust.
2646         (finish_command): Create a finish_command_fsm.  Adjust.
2647         * infrun.c: Include "thread-fsm.h".
2648         (clear_proceed_status_thread): Delete the thread's FSM.
2649         (infrun_thread_stop_requested_callback): Cancel the thread's
2650         execution command.
2651         (clean_up_just_stopped_threads_fsms): New function.
2652         (fetch_inferior_event): Handle the event_thread's should_stop
2653         method saying the command isn't done yet.
2654         (process_event_stop_test): Run breakpoint callbacks here.
2655         (print_stop_event): Rename to ...
2656         (print_stop_location): ... this.
2657         (restore_current_uiout_cleanup): New function.
2658         (print_stop_event): Reimplement.
2659         (normal_stop): No longer notify the end_stepping_range observers
2660         here handle "step N" nor "finish" here.  No longer call
2661         print_stop_event here.
2662         * infrun.h (struct return_value_info): Forward declare.
2663         (print_return_value): Declare.
2664         (print_stop_event): Change prototype.
2665         * thread-fsm.c: New file.
2666         * thread-fsm.h: New file.
2667         * thread.c: Include "thread-fsm.h".
2668         (thread_cancel_execution_command): New function.
2669         (clear_thread_inferior_resources): Call it.
2670         * cli/cli-interp.c (cli_on_normal_stop): New function.
2671         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2672         observer.
2673         * mi/mi-interp.c: Include "thread-fsm.h".
2674         (restore_current_uiout_cleanup): Delete.
2675         (mi_on_normal_stop): If the thread has an FSM associated, and it
2676         finished, ask it for the async-reply-reason to print.  Always call
2677         print_stop_event here, regardless of the top-level interpreter.
2678         Check bpstat_what to tell whether an asynchronous breakpoint hit
2679         triggered.
2680         * tui/tui-interp.c (tui_on_normal_stop): New function.
2681         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2682
2683 2015-09-09  Pedro Alves  <palves@redhat.com>
2684
2685         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2686         check whether the target can async.
2687         * inf-loop.c (inferior_event_handler): Only call target_async if
2688         the target can async.
2689         * infcall.c: Include top.h and interps.h.
2690         (run_inferior_call): For the interpreter to sync mode while
2691         running the infcall.  Call wait_sync_command_done instead of
2692         wait_for_inferior plus normal_stop.
2693         * infcmd.c (prepare_execution_command): Don't check whether the
2694         target can async when running in the foreground.
2695         (step_1): Delete synchronous case handling.
2696         (step_once): Always install a continuation, even in sync mode.
2697         (until_next_command, finish_forward): Don't check whether the
2698         target can async.
2699         (attach_command_post_wait, notice_new_inferior): Always install a
2700         continuation, even in sync mode.
2701         * infrun.c (mark_infrun_async_event_handler): New function.
2702         (proceed): In sync mode, mark infrun's event source instead of
2703         waiting for events here.
2704         (fetch_inferior_event): If the target can't async, do a blocking
2705         wait.
2706         (prepare_to_wait): In sync mode, mark infrun's event source.
2707         (infrun_async_inferior_event_handler): No longer bail out if the
2708         target can't async.
2709         * infrun.h (mark_infrun_async_event_handler): New declaration.
2710         * linux-nat.c (linux_nat_wait_1): Remove calls to
2711         set_sigint_trap/clear_sigint_trap.
2712         (linux_nat_terminal_inferior): No longer check whether the target
2713         can async.
2714         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2715         comment.
2716         (mi_execute_command_input_handler): No longer check whether the
2717         target is async.  Update and simplify comment.
2718         * target.c (default_target_wait): New function.
2719         * target.h (struct target_ops) <to_wait>: Now defaults to
2720         default_target_wait.
2721         (default_target_wait): Declare.
2722         * top.c (wait_sync_command_done): New function, factored out from
2723         ...
2724         (maybe_wait_sync_command_done): ... this.
2725         * top.h (wait_sync_command_done): Declare.
2726         * target-delegates.c: Regenerate.
2727
2728 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2729
2730         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2731         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2732         Remove include of sys/utsname.h.
2733         (linux_determine_kernel_ptr_bits): Remove.
2734         (linux_determine_kernel_start): New.
2735         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2736         Update check.
2737         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2738         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2739         initialization.
2740         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2741         assignment.
2742
2743 2015-09-07  Pedro Alves  <palves@redhat.com>
2744
2745         * guile/guile-internal.h (as_a_scm_t_subr): New.
2746         * guile/guile.c (misc_guile_functions): Use it.
2747         * guile/scm-arch.c (arch_functions): Use it.
2748         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2749         Use it.
2750         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2751         * guile/scm-cmd.c (command_functions): Use it.
2752         * guile/scm-disasm.c (disasm_functions): Use it.
2753         * guile/scm-exception.c (exception_functions)
2754         (private_exception_functions): Use it.
2755         * guile/scm-frame.c (frame_functions)
2756         * guile/scm-gsmob.c (gsmob_functions): Use it.
2757         * guile/scm-iterator.c (iterator_functions): Use it.
2758         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2759         * guile/scm-math.c (math_functions): Use it.
2760         * guile/scm-objfile.c (objfile_functions): Use it.
2761         * guile/scm-param.c (parameter_functions): Use it.
2762         * guile/scm-ports.c (port_functions, private_port_functions): Use
2763         it.
2764         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2765         * guile/scm-progspace.c (pspace_functions): Use it.
2766         * guile/scm-string.c (string_functions): Use it.
2767         * guile/scm-symbol.c (symbol_functions): Use it.
2768         * guile/scm-symtab.c (symtab_functions): Use it.
2769         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2770         it.
2771         * guile/scm-value.c (value_functions): Use it.
2772
2773 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2774
2775         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2776         (tui_next_win): Likewise.
2777         (tui_prev_win): Likewise.
2778         (tui_partial_win_by_name): Likewise.
2779         (tui_init_generic_part): Likewise.
2780         (init_content_element): Likewise.
2781         (tui_del_window): Likewise.
2782         (tui_free_window): Likewise.
2783         (tui_del_data_windows): Likewise.
2784         (tui_free_data_content): Likewise.
2785         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2786         * tui/tui-regs.c (tui_show_register_group): Likewise.
2787         * tui/tui-win.c (tui_resize_all): Likewise.
2788         (tui_set_focus): Likewise.
2789         (tui_set_win_height): Likewise.
2790         (make_invisible_and_set_new_height): Likewise.
2791         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2792         * tui/tui-wingeneral.c (make_visible): Likewise.
2793
2794 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2795
2796         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2797
2798 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2799
2800         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2801         pointer.
2802         * dbxread.c (dbx_end_psymtab): Likewise.
2803         * gnu-nat.c (gnu_write_inferior): Likewise.
2804         * mdebugread.c (cross_ref): Likewise.
2805         * p-valprint.c (pascal_val_print): Likewise.
2806         * xcoffread.c (xcoff_end_psymtab): Likewise.
2807
2808 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2809
2810         * NEWS: Mention the aarch64 multi-arch debugging support.
2811
2812 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2813
2814         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2815         type instead of a TYPE_CODE_INT one for the string_char_type
2816         and the ada_primitive_type_char types.
2817
2818 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2819
2820         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2821         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2822         aarch64_linux_region_ok_for_watchpoint.
2823         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2824         New function.
2825         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2826         Declare it.
2827
2828 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2829
2830         * gdb_obstack.h (obstack_strdup): Declare.
2831         * gdb_obstack.c (obstack_strdup): Define.
2832         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2833         * gdbarch.c: Regenerate.
2834         * gdbarch.h: Regenerate.
2835         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2836
2837 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2838
2839         * gdbtypes.c (copy_type_recursive): Update documentation.
2840
2841 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2842
2843         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2844         as zero.
2845
2846 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2847
2848         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2849
2850 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2851
2852         * solib-svr4.c (solib_event_probe_action): Call
2853         get_probe_argument_count using TRY...CATCH.
2854         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2855
2856 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2857
2858         * probe.h (struct probe_ops) <get_probe_argument_count,
2859         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2860         the comment that the function can throw an exception.
2861         (get_probe_argument_count): Likewise.
2862         (evaluate_probe_argument): Likewise.
2863         * stap-probe.c (stap_get_opcode): Call error instead of
2864         internal_error.
2865         (stap_get_expected_argument_type): Likewise.  Add argument
2866         'probe'.  Improve error message by mentioning the probe's name.
2867         (stap_parse_probe_arguments): Adjust call to
2868         stap_get_expected_argument_type.
2869         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
2870         not zero.  Call internal_error if GDB requests an argument but the
2871         probe has no arguments.
2872
2873 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2874
2875         * ada-lang.c (ada_resolve_function): Do not ask the user what
2876         match to use when in completion mode.
2877
2878 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
2879
2880         * tui/tui-data.c (tui_win_name): Make local variable const, remove
2881         cast of NULL.
2882
2883 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
2884
2885         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2886         call_abi using XSHAL_ABI macro.
2887
2888 2015-08-29  Doug Evans  <xdje42@gmail.com>
2889
2890         * symtab.h (struct symbol): Tweak comment.
2891
2892 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
2893
2894         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2895         gdbarch obstack instead of on the heap.  Update commentary
2896         accordingly.
2897
2898 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
2899
2900         GDB 7.10 released.
2901
2902 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
2903
2904         * NEWS: Update entry about non-8-bits addressable memory.
2905
2906 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
2907
2908         Revert:
2909         2014-11-06  Doug Evans  <xdje42@gmail.com>
2910         * solib.c (solib_global_lookup): Fetch arch from objfile,
2911         not target_gdbarch.
2912
2913 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2914
2915         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2916         attempt to relocate a TLS variable offset.
2917
2918 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2919
2920         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2921         registered yet.  Set inferior_ptid while calling target_read_memory.
2922
2923 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2924
2925         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2926         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
2927         * linux-nat.c (check_stopped_by_breakpoint): Use
2928         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2929
2930 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2931
2932         * linux-thread-db.c (thread_db_get_thread_local_address): If the
2933         thread was not yet discovered, use thread_from_lwp instead of
2934         calling thread_db_find_new_threads_1.
2935
2936 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2937
2938         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2939         statements.
2940
2941 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
2942
2943         * NEWS: Document support for non-8-bits addressable memory.
2944
2945 2015-08-27  Pedro Alves  <palves@redhat.com>
2946
2947         * configure.ac: Remove AC_TYPE_SIGNAL call.
2948         * configure, config.in: Regenerate.
2949
2950 2015-08-27  Pedro Alves  <palves@redhat.com>
2951
2952         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
2953         * extension-priv.h: Include signal.h.
2954         (struct signal_handler) <handler>: Change type to sighandler_t.
2955         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2956         * inflow.c (sigint_ours, sigquit_ours): Change type to
2957         sighandler_t.
2958         (child_terminal_inferior): Remove casts.
2959         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
2960         (osig): Change type to sighandler_t.
2961         * nto-procfs.c (ofunc): Change type to sighandler_t.
2962         (procfs_wait): Remove casts.
2963         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2964         * remote-sim.c (gdbsim_wait): Use sighandler_t.
2965         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2966
2967 2015-08-27  Pedro Alves  <palves@redhat.com>
2968
2969         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2970         * gnulib/aclocal.m4: Renegerate.
2971         * gnulib/config.in: Renegerate.
2972         * gnulib/configure: Renegerate.
2973         * gnulib/import/Makefile.am: Update.
2974         * gnulib/import/Makefile.in: Regenerate.
2975         * gnulib/import/m4/gnulib-cache.m4: Update.
2976         * gnulib/import/m4/gnulib-comp.m4: Update.
2977         * gnulib/import/m4/signal_h.m4: New file.
2978         * gnulib/import/signal.in.h: New file.
2979
2980 2015-08-27  Pedro Alves  <palves@redhat.com>
2981
2982         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2983         (MIN_MEMORY_PACKET_SIZE): New.
2984         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2985         (get_memory_packet_size): Adjust.  No longer limit the max packet
2986         size.
2987         (set_memory_packet_size): Adjust, and remove dead code.
2988         (remote_check_symbols): Use xmalloc and a cleanup instead of
2989         alloca.
2990         (remote_packet_size): No longer cap the packet size.
2991         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2992
2993 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
2994
2995         * compile/compile.c (compile_to_object): Mention language in
2996         error message.
2997
2998 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
2999
3000         * target.c (target_pre_inferior): Unset attach_flag.
3001
3002 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3003
3004         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3005         * gdbarch.c: Re-generate.
3006
3007 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3008
3009         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3010         function with the XNEW-family equivalent.
3011         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3012         * ada-exp.y (write_ambiguous_var): Likewise.
3013         * ada-lang.c (resolve_subexp): Likewise.
3014         (user_select_syms): Likewise.
3015         (assign_aggregate): Likewise.
3016         (ada_evaluate_subexp): Likewise.
3017         (cache_symbol): Likewise.
3018         * addrmap.c (allocate_key): Likewise.
3019         (addrmap_create_mutable): Likewise.
3020         * aix-thread.c (sync_threadlists): Likewise.
3021         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3022         (alpha_gdbarch_init): Likewise.
3023         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3024         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3025         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3026         * arm-tdep.c (push_stack_item): Likewise.
3027         (arm_displaced_step_copy_insn): Likewise.
3028         (arm_gdbarch_init): Likewise.
3029         (_initialize_arm_tdep): Likewise.
3030         * avr-tdep.c (push_stack_item): Likewise.
3031         * ax-general.c (new_agent_expr): Likewise.
3032         * block.c (block_initialize_namespace): Likewise.
3033         * breakpoint.c (alloc_counted_command_line): Likewise.
3034         (update_dprintf_command_list): Likewise.
3035         (parse_breakpoint_sals): Likewise.
3036         (decode_static_tracepoint_spec): Likewise.
3037         (until_break_command): Likewise.
3038         (clear_command): Likewise.
3039         (update_global_location_list): Likewise.
3040         (get_breakpoint_objfile_data) Likewise.
3041         * btrace.c (ftrace_new_function): Likewise.
3042         (btrace_set_insn_history): Likewise.
3043         (btrace_set_call_history): Likewise.
3044         * buildsym.c (add_symbol_to_list): Likewise.
3045         (record_pending_block): Likewise.
3046         (start_subfile): Likewise.
3047         (start_buildsym_compunit): Likewise.
3048         (push_subfile): Likewise.
3049         (end_symtab_get_static_block): Likewise.
3050         (buildsym_init): Likewise.
3051         * cli/cli-cmds.c (source_command): Likewise.
3052         * cli/cli-decode.c (add_cmd): Likewise.
3053         * cli/cli-script.c (build_command_line): Likewise.
3054         (setup_user_args): Likewise.
3055         (realloc_body_list): Likewise.
3056         (process_next_line): Likewise.
3057         (copy_command_lines): Likewise.
3058         * cli/cli-setshow.c (do_set_command): Likewise.
3059         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3060         * coffread.c (coff_locate_sections): Likewise.
3061         (coff_symtab_read): Likewise.
3062         (coff_read_struct_type): Likewise.
3063         * common/cleanups.c (make_my_cleanup2): Likewise.
3064         * common/common-exceptions.c (throw_it): Likewise.
3065         * common/filestuff.c (make_cleanup_close): Likewise.
3066         * common/format.c (parse_format_string): Likewise.
3067         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3068         * compile/compile-object-load.c (munmap_list_add): Likewise.
3069         (compile_object_load): Likewise.
3070         * compile/compile-object-run.c (compile_object_run): Likewise.
3071         * compile/compile.c (append_args): Likewise.
3072         * corefile.c (specify_exec_file_hook): Likewise.
3073         * cp-support.c (make_symbol_overload_list): Likewise.
3074         * cris-tdep.c (push_stack_item): Likewise.
3075         (cris_gdbarch_init): Likewise.
3076         * ctf.c (ctf_trace_file_writer_new): Likewise.
3077         * dbxread.c (init_header_files): Likewise.
3078         (add_new_header_file): Likewise.
3079         (init_bincl_list): Likewise.
3080         (dbx_end_psymtab): Likewise.
3081         (start_psymtab): Likewise.
3082         (dbx_end_psymtab): Likewise.
3083         * dcache.c (dcache_init): Likewise.
3084         * dictionary.c (dict_create_hashed): Likewise.
3085         (dict_create_hashed_expandable): Likewise.
3086         (dict_create_linear): Likewise.
3087         (dict_create_linear_expandable): Likewise.
3088         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3089         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3090         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3091         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3092         (decode_frame_entry_1): Likewise.
3093         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3094         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3095         * dwarf2read.c (dwarf2_has_info): Likewise.
3096         (create_signatured_type_table_from_index): Likewise.
3097         (dwarf2_read_index): Likewise.
3098         (dw2_get_file_names_reader): Likewise.
3099         (create_all_type_units): Likewise.
3100         (read_cutu_die_from_dwo): Likewise.
3101         (init_tu_and_read_dwo_dies): Likewise.
3102         (init_cutu_and_read_dies): Likewise.
3103         (create_all_comp_units): Likewise.
3104         (queue_comp_unit): Likewise.
3105         (inherit_abstract_dies): Likewise.
3106         (read_call_site_scope): Likewise.
3107         (dwarf2_add_field): Likewise.
3108         (dwarf2_add_typedef): Likewise.
3109         (dwarf2_add_member_fn): Likewise.
3110         (attr_to_dynamic_prop): Likewise.
3111         (abbrev_table_alloc_abbrev): Likewise.
3112         (abbrev_table_read_table): Likewise.
3113         (add_include_dir): Likewise.
3114         (add_file_name): Likewise.
3115         (dwarf_decode_line_header): Likewise.
3116         (dwarf2_const_value_attr): Likewise.
3117         (dwarf_alloc_block): Likewise.
3118         (parse_macro_definition): Likewise.
3119         (set_die_type): Likewise.
3120         (write_psymtabs_to_index): Likewise.
3121         (create_cus_from_index): Likewise.
3122         (dwarf2_create_include_psymtab): Likewise.
3123         (process_psymtab_comp_unit_reader): Likewise.
3124         (build_type_psymtab_dependencies): Likewise.
3125         (read_comp_units_from_section): Likewise.
3126         (compute_compunit_symtab_includes): Likewise.
3127         (create_dwo_unit_in_dwp_v1): Likewise.
3128         (create_dwo_unit_in_dwp_v2): Likewise.
3129         (read_func_scope): Likewise.
3130         (process_structure_scope): Likewise.
3131         (mark_common_block_symbol_computed): Likewise.
3132         (load_partial_dies): Likewise.
3133         (dwarf2_symbol_mark_computed): Likewise.
3134         * elfread.c (elf_symfile_segments): Likewise.
3135         (elf_read_minimal_symbols): Likewise.
3136         * environ.c (make_environ): Likewise.
3137         * eval.c (evaluate_subexp_standard): Likewise.
3138         * event-loop.c (create_file_handler): Likewise.
3139         (create_async_signal_handler): Likewise.
3140         (create_async_event_handler): Likewise.
3141         (create_timer): Likewise.
3142         * exec.c (build_section_table): Likewise.
3143         * fbsd-nat.c (fbsd_remember_child): Likewise.
3144         * fork-child.c (fork_inferior): Likewise.
3145         * frv-tdep.c (new_variant): Likewise.
3146         * gdbarch.sh (gdbarch_alloc): Likewise.
3147         (append_name): Likewise.
3148         * gdbtypes.c (rank_function): Likewise.
3149         (copy_type_recursive): Likewise.
3150         (add_dyn_prop): Likewise.
3151         * gnu-nat.c (make_proc): Likewise.
3152         (make_inf): Likewise.
3153         (gnu_write_inferior): Likewise.
3154         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3155         (build_std_type_info_type): Likewise.
3156         * guile/scm-param.c (compute_enum_list): Likewise.
3157         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3158         * guile/scm-value.c (gdbscm_value_call): Likewise.
3159         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3160         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3161         (read_unwind_info): Likewise.
3162         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3163         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3164         (call_function_by_hand_dummy): Likewise.
3165         * infcmd.c (step_once): Likewise.
3166         (finish_forward): Likewise.
3167         (attach_command): Likewise.
3168         (notice_new_inferior): Likewise.
3169         * inferior.c (add_inferior_silent): Likewise.
3170         * infrun.c (add_displaced_stepping_state): Likewise.
3171         (save_infcall_control_state): Likewise.
3172         (save_inferior_ptid): Likewise.
3173         (_initialize_infrun): Likewise.
3174         * jit.c (bfd_open_from_target_memory): Likewise.
3175         (jit_gdbarch_data_init): Likewise.
3176         * language.c (add_language): Likewise.
3177         * linespec.c (decode_line_2): Likewise.
3178         * linux-nat.c (add_to_pid_list): Likewise.
3179         (add_initial_lwp): Likewise.
3180         * linux-thread-db.c (add_thread_db_info): Likewise.
3181         (record_thread): Likewise.
3182         (info_auto_load_libthread_db): Likewise.
3183         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3184         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3185         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3186         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3187         * macrocmd.c (macro_define_command): Likewise.
3188         * macroexp.c (gather_arguments): Likewise.
3189         * macroscope.c (sal_macro_scope): Likewise.
3190         * macrotab.c (new_macro_table): Likewise.
3191         * mdebugread.c (push_parse_stack): Likewise.
3192         (parse_partial_symbols): Likewise.
3193         (parse_symbol): Likewise.
3194         (psymtab_to_symtab_1): Likewise.
3195         (new_block): Likewise.
3196         (new_psymtab): Likewise.
3197         (mdebug_build_psymtabs): Likewise.
3198         (add_pending): Likewise.
3199         (elfmdebug_build_psymtabs): Likewise.
3200         * mep-tdep.c (mep_gdbarch_init): Likewise.
3201         * mi/mi-main.c (mi_execute_command): Likewise.
3202         * mi/mi-parse.c (mi_parse_argv): Likewise.
3203         * minidebug.c (lzma_open): Likewise.
3204         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3205         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3206         * mips-tdep.c (mips_gdbarch_init): Likewise.
3207         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3208         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3209         * mt-tdep.c (mt_registers_info): Likewise.
3210         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3211         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3212         (linux_enable_pt): Likewise.
3213         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3214         (linux_xfer_osdata_processgroups): Likewise.
3215         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3216         * nto-procfs.c (procfs_meminfo): Likewise.
3217         * objc-lang.c (start_msglist): Likewise.
3218         (selectors_info): Likewise.
3219         (classes_info): Likewise.
3220         (find_methods): Likewise.
3221         * objfiles.c (allocate_objfile): Likewise.
3222         (update_section_map): Likewise.
3223         * osabi.c (gdbarch_register_osabi): Likewise.
3224         (gdbarch_register_osabi_sniffer): Likewise.
3225         * parse.c (start_arglist): Likewise.
3226         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3227         (hwdebug_insert_point): Likewise.
3228         * printcmd.c (display_command): Likewise.
3229         (ui_printf): Likewise.
3230         * procfs.c (create_procinfo): Likewise.
3231         (load_syscalls): Likewise.
3232         (proc_get_LDT_entry): Likewise.
3233         (proc_update_threads): Likewise.
3234         * prologue-value.c (make_pv_area): Likewise.
3235         (pv_area_store): Likewise.
3236         * psymtab.c (extend_psymbol_list): Likewise.
3237         (init_psymbol_list): Likewise.
3238         (allocate_psymtab): Likewise.
3239         * python/py-inferior.c (add_thread_object): Likewise.
3240         * python/py-param.c (compute_enum_values): Likewise.
3241         * python/py-value.c (valpy_call): Likewise.
3242         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3243         * python/python.c (ensure_python_env): Likewise.
3244         * record-btrace.c (record_btrace_start_replaying): Likewise.
3245         * record-full.c (record_full_reg_alloc): Likewise.
3246         (record_full_mem_alloc): Likewise.
3247         (record_full_end_alloc): Likewise.
3248         (record_full_core_xfer_partial): Likewise.
3249         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3250         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3251         * remote-notif.c (remote_notif_state_allocate): Likewise.
3252         * remote.c (demand_private_info): Likewise.
3253         (remote_notif_stop_alloc_reply): Likewise.
3254         (remote_enable_btrace): Likewise.
3255         * reverse.c (save_bookmark_command): Likewise.
3256         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3257         * rx-tdep.c (rx_gdbarch_init): Likewise.
3258         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3259         * ser-go32.c (dos_get_tty_state): Likewise.
3260         (dos_copy_tty_state): Likewise.
3261         * ser-mingw.c (ser_windows_open): Likewise.
3262         (ser_console_wait_handle): Likewise.
3263         (ser_console_get_tty_state): Likewise.
3264         (make_pipe_state): Likewise.
3265         (net_windows_open): Likewise.
3266         * ser-unix.c (hardwire_get_tty_state): Likewise.
3267         (hardwire_copy_tty_state): Likewise.
3268         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3269         * solib-dsbt.c (dsbt_current_sos): Likewise.
3270         (dsbt_relocate_main_executable): Likewise.
3271         * solib-frv.c (frv_current_sos): Likewise.
3272         (frv_relocate_main_executable): Likewise.
3273         * solib-spu.c (spu_bfd_fopen): Likewise.
3274         * solib-svr4.c (lm_info_read): Likewise.
3275         (svr4_copy_library_list): Likewise.
3276         (svr4_default_sos): Likewise.
3277         * source.c (find_source_lines): Likewise.
3278         (line_info): Likewise.
3279         (add_substitute_path_rule): Likewise.
3280         * spu-linux-nat.c (spu_bfd_open): Likewise.
3281         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3282         * stabsread.c (dbx_lookup_type): Likewise.
3283         (read_type): Likewise.
3284         (read_member_functions): Likewise.
3285         (read_struct_fields): Likewise.
3286         (read_baseclasses): Likewise.
3287         (read_args): Likewise.
3288         (_initialize_stabsread): Likewise.
3289         * stack.c (func_command): Likewise.
3290         * stap-probe.c (handle_stap_probe): Likewise.
3291         * symfile.c (addrs_section_sort): Likewise.
3292         (addr_info_make_relative): Likewise.
3293         (load_section_callback): Likewise.
3294         (add_symbol_file_command): Likewise.
3295         (init_filename_language_table): Likewise.
3296         * symtab.c (create_filename_seen_cache): Likewise.
3297         (sort_search_symbols_remove_dups): Likewise.
3298         (search_symbols): Likewise.
3299         * target.c (make_cleanup_restore_target_terminal): Likewise.
3300         * thread.c (new_thread): Likewise.
3301         (enable_thread_stack_temporaries): Likewise.
3302         (make_cleanup_restore_current_thread): Likewise.
3303         (thread_apply_all_command): Likewise.
3304         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3305         * top.c (gdb_readline_wrapper): Likewise.
3306         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3307         * tracepoint.c (trace_find_line_command): Likewise.
3308         (all_tracepoint_actions_and_cleanup): Likewise.
3309         (make_cleanup_restore_current_traceframe): Likewise.
3310         (get_uploaded_tp): Likewise.
3311         (get_uploaded_tsv): Likewise.
3312         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3313         (tui_alloc_win_info): Likewise.
3314         (tui_alloc_content): Likewise.
3315         (tui_add_content_elements): Likewise.
3316         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3317         (tui_set_disassem_content): Likewise.
3318         * ui-file.c (ui_file_new): Likewise.
3319         (stdio_file_new): Likewise.
3320         (tee_file_new): Likewise.
3321         * utils.c (make_cleanup_restore_integer): Likewise.
3322         (add_internal_problem_command): Likewise.
3323         * v850-tdep.c (v850_gdbarch_init): Likewise.
3324         * valops.c (find_oload_champ): Likewise.
3325         * value.c (allocate_value_lazy): Likewise.
3326         (record_latest_value): Likewise.
3327         (create_internalvar): Likewise.
3328         * varobj.c (install_variable): Likewise.
3329         (new_variable): Likewise.
3330         (new_root_variable): Likewise.
3331         (cppush): Likewise.
3332         (_initialize_varobj): Likewise.
3333         * windows-nat.c (windows_make_so): Likewise.
3334         * x86-nat.c (x86_add_process): Likewise.
3335         * xcoffread.c (arrange_linetable): Likewise.
3336         (allocate_include_entry): Likewise.
3337         (process_linenos): Likewise.
3338         (SYMBOL_DUP): Likewise.
3339         (xcoff_start_psymtab): Likewise.
3340         (xcoff_end_psymtab): Likewise.
3341         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3342         * xtensa-tdep.c (xtensa_register_type): Likewise.
3343         * gdbarch.c: Regenerate.
3344         * gdbarch.h: Regenerate.
3345
3346 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3347
3348         * infrun.c (follow_exec): Re-order operations for
3349         handling follow-exec-mode "new".
3350         (handle_inferior_event_1): Assign ecs->event_thread
3351         to the current thread.
3352         * remote.c (get_remote_arch_state): Add an assertion.
3353
3354 2015-08-26  Pedro Alves  <palves@redhat.com>
3355
3356         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3357
3358 2015-08-25  Pedro Alves  <palves@redhat.com>
3359
3360         PR gdb/18804
3361         * defs.h (maybe_quit): Declare.
3362         (QUIT): Now calls maybe_quit.
3363         * event-loop.c (clear_async_signal_handler)
3364         (async_signal_handler_is_marked): New functions.
3365         * event-loop.h (async_signal_handler_is_marked)
3366         (clear_async_signal_handler): New declarations.
3367         * remote.c (remote_check_pending_interrupt): New function.
3368         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3369         longer check whether the target is async.  If waiting for a stop
3370         reply, and a Ctrl-C as been sent to the target, offer to
3371         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3372         Otherwise do not disconnect and throw a quit.
3373         (_initialize_remote): Install remote_check_pending_interrupt as
3374         to_check_pending_interrupt.
3375         * target.c (target_check_pending_interrupt): New function.
3376         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3377         field.
3378         (target_check_pending_interrupt): New declaration.
3379         * utils.c (maybe_quit): New function.
3380         * target-delegates.c: Regenerate.
3381
3382 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3383
3384         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3385         Rename local variable pid to tid, and get lwpid of lwp.  Update
3386         debug output.
3387
3388 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3389
3390         * ada-lang.c (ada_read_var_value): Add a var_block argument
3391         and pass it to default_read_var_value.
3392         * block.c (block_static_link): New accessor.
3393         * block.h (block_static_link): Declare it.
3394         * buildsym.c (finish_block_internal): Add a static_link
3395         argument.  If there is a static link, associate it to the new
3396         block.
3397         (finish_block): Add a static link argument and pass it to
3398         finish_block_internal.
3399         (end_symtab_get_static_block): Update calls to finish_block and
3400         to finish_block_internal.
3401         (end_symtab_with_blockvector): Update call to
3402         finish_block_internal.
3403         * buildsym.h: Forward-declare struct dynamic_prop.
3404         (struct context_stack): Add a static_link field.
3405         (finish_block): Add a static link argument.
3406         * c-exp.y: Remove an obsolete comment (evaluation of variables
3407         already start from the selected frame, and now they climb *up*
3408         the call stack) and propagate the block information to the
3409         produced expression.
3410         * d-exp.y: Likewise.
3411         * f-exp.y: Likewise.
3412         * go-exp.y: Likewise.
3413         * jv-exp.y: Likewise.
3414         * m2-exp.y: Likewise.
3415         * p-exp.y: Likewise.
3416         * coffread.c (coff_symtab_read): Update calls to finish_block.
3417         * dbxread.c (process_one_symbol): Likewise.
3418         * xcoffread.c (read_xcoff_symtab): Likewise.
3419         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3420         "sym" parameter to struct block_symbol, update its uses and pass
3421         its block to calls to read_var_value.
3422         (convert_symbol_sym): Update the calls to convert_one_symbol.
3423         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3424         call to read_var_value.
3425         * dwarf2loc.c (block_op_get_frame_base): New.
3426         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3427         get_frame_base method.
3428         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3429         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3430         instead of the selected frame in order to evaluate the
3431         expression.
3432         (dwarf2_evaluate_property): Add a frame argument.  Update call
3433         to dwarf2_locexpr_baton_eval to provide a frame in available and
3434         to handle the absence of address stack.
3435         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3436         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3437         declaration.
3438         (read_func_scope): Record any available static link description.
3439         Update call to finish_block.
3440         (read_lexical_block_scope): Update call to finish_block.
3441         * findvar.c (follow_static_link): New.
3442         (get_hosting_frame): New.
3443         (default_read_var_value): Add a var_block argument.  Use
3444         get_hosting_frame to handle non-local references.
3445         (read_var_value): Add a var_block argument and pass it to the
3446         LA_READ_VAR_VALUE method.
3447         * gdbtypes.c (resolve_dynamic_range): Update calls to
3448         dwarf2_evaluate_property.
3449         (resolve_dynamic_type_internal): Likewise.
3450         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3451         read_var_value, passing it the block coming from symbol lookup.
3452         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3453         read_var_value (TODO).
3454         * infcmd.c (finish_command_continuation): Update call to
3455         read_var_value, passing it the block coming from symbol lookup.
3456         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3457         * language.h (struct language_defn): Add a var_block argument to
3458         the LA_READ_VAR_VALUE method.
3459         * objfiles.c (struct static_link_htab_entry): New.
3460         (static_link_htab_entry_hash): New.
3461         (static_link_htab_entry_eq): New.
3462         (objfile_register_static_link): New.
3463         (objfile_lookup_static_link): New.
3464         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3465         * objfiles.h: Include hashtab.h.
3466         (struct objfile): Add a static_links field.
3467         (objfile_register_static_link): New.
3468         (objfile_lookup_static_link): New.
3469         * printcmd.c (print_variable_and_value): Update call to
3470         read_var_value.
3471         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3472         * python/py-frame.c (frapy_read_var): Update call to
3473         read_var_value, passing it the block coming from symbol lookup.
3474         * python/py-framefilter.c (extract_sym): Add a sym_block
3475         parameter and set the pointed value to NULL (TODO).
3476         (enumerate_args): Update call to extract_sym.
3477         (enumerate_locals): Update calls to extract_sym and to
3478         read_var_value.
3479         * python/py-symbol.c (sympy_value): Update call to
3480         read_var_value (TODO).
3481         * stack.c (read_frame_local): Update call to read_var_value.
3482         (read_frame_arg): Likewise.
3483         (return_command): Likewise.
3484         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3485         method.
3486         (struct symbol): Add a block field.
3487         (SYMBOL_BLOCK): New accessor.
3488         * valops.c (value_of_variable): Remove frame/block handling and
3489         pass the block argument to read_var_value, which does this job
3490         now.
3491         (value_struct_elt_for_reference): Update calls to
3492         read_var_value.
3493         (value_of_this): Pass the block found to read_var_value.
3494         * value.h (read_var_value): Add a var_block argument.
3495         (default_read_var_value): Likewise.
3496
3497 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3498
3499         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3500         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3501         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3502
3503 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3504
3505         * Makefile.in (aarch64-liunx.o): New rule.
3506         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3507         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3508         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3509         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3510         extern.
3511         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3512         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3513         * nat/aarch64-linux.c: New file.
3514         * nat/aarch64-linux.h: New file.
3515
3516 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3517
3518         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3519         lwp_arch_private_info and ptid_of_lwp.
3520
3521 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3522
3523         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3524         Move it to nat/aarch64-linux-hw-point.c.
3525         (debug_reg_change_callback): Likewise.
3526         (aarch64_notify_debug_reg_change): :Likewise.
3527         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3528         (aarch64_dr_update_callback_param): New.
3529         (debug_reg_change_callback): New function.
3530         (aarch64_notify_debug_reg_change): Likewise.
3531         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3532         Remove the declaration.
3533
3534 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3535
3536         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3537         Call current_lwp_ptid.
3538
3539 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3540
3541         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3542         debug_printf.
3543
3544 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3545
3546         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3547         ptid_get_pid rather than ptid_get_lwp.
3548
3549 2015-08-24  Pedro Alves  <palves@redhat.com>
3550
3551         * NEWS (New commands): Mention set/show remote
3552         multiprocess-extensions-packet.
3553         * remote.c (remote_query_supported): Only tell the server to use
3554         the multiprocess extensions if the user hasn't force-disabled them
3555         with "set remote multiprocess-extensions-packet off".
3556
3557 2015-08-24  Pedro Alves  <palves@redhat.com>
3558
3559         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3560         1029a8112290f6eee9d7878a391c49db42c999bd.
3561         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3562         Regenerate.
3563         * gnulib/import/Makefile.am: Update.
3564         * gnulib/import/Makefile.in: Update.
3565         * gnulib/import/alloca.in.h: Update.
3566         * gnulib/import/basename-lgpl.c: Update.
3567         * gnulib/import/canonicalize-lgpl.c: Update.
3568         * gnulib/import/config.charset: Update.
3569         * gnulib/import/dirent.in.h: Update.
3570         * gnulib/import/dirfd.c: Update.
3571         * gnulib/import/dirname-lgpl.c: Update.
3572         * gnulib/import/dirname.h: Update.
3573         * gnulib/import/dosname.h: Update.
3574         * gnulib/import/errno.in.h: Update.
3575         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3576         * gnulib/import/extra/snippet/c++defs.h: Update.
3577         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3578         * gnulib/import/extra/update-copyright: Update.
3579         * gnulib/import/float+.h: Update.
3580         * gnulib/import/float.c: Update.
3581         * gnulib/import/float.in.h: Update.
3582         * gnulib/import/fnmatch.c: Update.
3583         * gnulib/import/fnmatch.in.h: Update.
3584         * gnulib/import/fnmatch_loop.c: Update.
3585         * gnulib/import/fpucw.h: Update.
3586         * gnulib/import/frexp.c: Update.
3587         * gnulib/import/frexpl.c: Update.
3588         * gnulib/import/gettimeofday.c: Update.
3589         * gnulib/import/inttypes.in.h: Update.
3590         * gnulib/import/isnan.c: Update.
3591         * gnulib/import/isnand-nolibm.h: Update.
3592         * gnulib/import/isnand.c: Update.
3593         * gnulib/import/isnanl-nolibm.h: Update.
3594         * gnulib/import/isnanl.c: Update.
3595         * gnulib/import/itold.c: Update.
3596         * gnulib/import/localcharset.c: Update.
3597         * gnulib/import/localcharset.h: Update.
3598         * gnulib/import/lstat.c: Update.
3599         * gnulib/import/m4/00gnulib.m4: Update.
3600         * gnulib/import/m4/absolute-header.m4: Update.
3601         * gnulib/import/m4/alloca.m4: Update.
3602         * gnulib/import/m4/canonicalize.m4: Update.
3603         * gnulib/import/m4/codeset.m4: Update.
3604         * gnulib/import/m4/configmake.m4: Update.
3605         * gnulib/import/m4/dirent_h.m4: Update.
3606         * gnulib/import/m4/dirfd.m4: Update.
3607         * gnulib/import/m4/dirname.m4: Update.
3608         * gnulib/import/m4/double-slash-root.m4: Update.
3609         * gnulib/import/m4/eealloc.m4: Update.
3610         * gnulib/import/m4/errno_h.m4: Update.
3611         * gnulib/import/m4/exponentd.m4: Update.
3612         * gnulib/import/m4/exponentl.m4: Update.
3613         * gnulib/import/m4/extensions.m4: Update.
3614         * gnulib/import/m4/extern-inline.m4: Update.
3615         * gnulib/import/m4/fcntl-o.m4: Update.
3616         * gnulib/import/m4/float_h.m4: Update.
3617         * gnulib/import/m4/fnmatch.m4: Update.
3618         * gnulib/import/m4/fpieee.m4: Update.
3619         * gnulib/import/m4/frexp.m4: Update.
3620         * gnulib/import/m4/frexpl.m4: Update.
3621         * gnulib/import/m4/gettimeofday.m4: Update.
3622         * gnulib/import/m4/glibc21.m4: Update.
3623         * gnulib/import/m4/gnulib-cache.m4: Update.
3624         * gnulib/import/m4/gnulib-common.m4: Update.
3625         * gnulib/import/m4/gnulib-comp.m4: Update.
3626         * gnulib/import/m4/gnulib-tool.m4: Update.
3627         * gnulib/import/m4/include_next.m4: Update.
3628         * gnulib/import/m4/inttypes-pri.m4: Update.
3629         * gnulib/import/m4/inttypes.m4: Update.
3630         * gnulib/import/m4/isnand.m4: Update.
3631         * gnulib/import/m4/isnanl.m4: Update.
3632         * gnulib/import/m4/largefile.m4: Update.
3633         * gnulib/import/m4/localcharset.m4: Update.
3634         * gnulib/import/m4/locale-fr.m4: Update.
3635         * gnulib/import/m4/locale-ja.m4: Update.
3636         * gnulib/import/m4/locale-zh.m4: Update.
3637         * gnulib/import/m4/longlong.m4: Update.
3638         * gnulib/import/m4/lstat.m4: Update.
3639         * gnulib/import/m4/malloc.m4: Update.
3640         * gnulib/import/m4/malloca.m4: Update.
3641         * gnulib/import/m4/math_h.m4: Update.
3642         * gnulib/import/m4/mbrtowc.m4: Update.
3643         * gnulib/import/m4/mbsinit.m4: Update.
3644         * gnulib/import/m4/mbsrtowcs.m4: Update.
3645         * gnulib/import/m4/mbstate_t.m4: Update.
3646         * gnulib/import/m4/memchr.m4: Update.
3647         * gnulib/import/m4/memmem.m4: Update.
3648         * gnulib/import/m4/mmap-anon.m4: Update.
3649         * gnulib/import/m4/multiarch.m4: Update.
3650         * gnulib/import/m4/nocrash.m4: Update.
3651         * gnulib/import/m4/off_t.m4: Update.
3652         * gnulib/import/m4/pathmax.m4: Update.
3653         * gnulib/import/m4/readlink.m4: Update.
3654         * gnulib/import/m4/rename.m4: Update.
3655         * gnulib/import/m4/rmdir.m4: Update.
3656         * gnulib/import/m4/ssize_t.m4: Update.
3657         * gnulib/import/m4/stat.m4: Update.
3658         * gnulib/import/m4/stdbool.m4: Update.
3659         * gnulib/import/m4/stddef_h.m4: Update.
3660         * gnulib/import/m4/stdint.m4: Update.
3661         * gnulib/import/m4/stdio_h.m4: Update.
3662         * gnulib/import/m4/stdlib_h.m4: Update.
3663         * gnulib/import/m4/string_h.m4: Update.
3664         * gnulib/import/m4/strstr.m4: Update.
3665         * gnulib/import/m4/strtok_r.m4: Update.
3666         * gnulib/import/m4/sys_socket_h.m4: Update.
3667         * gnulib/import/m4/sys_stat_h.m4: Update.
3668         * gnulib/import/m4/sys_time_h.m4: Update.
3669         * gnulib/import/m4/sys_types_h.m4: Update.
3670         * gnulib/import/m4/time_h.m4: Update.
3671         * gnulib/import/m4/unistd_h.m4: Update.
3672         * gnulib/import/m4/warn-on-use.m4: Update.
3673         * gnulib/import/m4/wchar_h.m4: Update.
3674         * gnulib/import/m4/wchar_t.m4: Update.
3675         * gnulib/import/m4/wctype_h.m4: Update.
3676         * gnulib/import/m4/wint_t.m4: Update.
3677         * gnulib/import/malloc.c: Update.
3678         * gnulib/import/malloca.c: Update.
3679         * gnulib/import/malloca.h: Update.
3680         * gnulib/import/math.in.h: Update.
3681         * gnulib/import/mbrtowc.c: Update.
3682         * gnulib/import/mbsinit.c: Update.
3683         * gnulib/import/mbsrtowcs-impl.h: Update.
3684         * gnulib/import/mbsrtowcs-state.c: Update.
3685         * gnulib/import/mbsrtowcs.c: Update.
3686         * gnulib/import/memchr.c: Update.
3687         * gnulib/import/memmem.c: Update.
3688         * gnulib/import/pathmax.h: Update.
3689         * gnulib/import/readlink.c: Update.
3690         * gnulib/import/ref-add.sin: Update.
3691         * gnulib/import/ref-del.sin: Update.
3692         * gnulib/import/rename.c: Update.
3693         * gnulib/import/rmdir.c: Update.
3694         * gnulib/import/same-inode.h: Update.
3695         * gnulib/import/stat.c: Update.
3696         * gnulib/import/stdbool.in.h: Update.
3697         * gnulib/import/stddef.in.h: Update.
3698         * gnulib/import/stdint.in.h: Update.
3699         * gnulib/import/stdio.c: Update.
3700         * gnulib/import/stdio.in.h: Update.
3701         * gnulib/import/stdlib.in.h: Update.
3702         * gnulib/import/str-two-way.h: Update.
3703         * gnulib/import/streq.h: Update.
3704         * gnulib/import/string.in.h: Update.
3705         * gnulib/import/stripslash.c: Update.
3706         * gnulib/import/strnlen1.c: Update.
3707         * gnulib/import/strnlen1.h: Update.
3708         * gnulib/import/strstr.c: Update.
3709         * gnulib/import/strtok_r.c: Update.
3710         * gnulib/import/sys_stat.in.h: Update.
3711         * gnulib/import/sys_time.in.h: Update.
3712         * gnulib/import/sys_types.in.h: Update.
3713         * gnulib/import/time.in.h: Update.
3714         * gnulib/import/unistd.in.h: Update.
3715         * gnulib/import/verify.h: Update.
3716         * gnulib/import/wchar.in.h: Update.
3717         * gnulib/import/wctype.in.h: Update.
3718         * gnulib/import/gettimeofday.c: New file.
3719         * gnulib/import/m4/absolute-header.m4: New file.
3720         * gnulib/import/m4/gettimeofday.m4: New file.
3721         * gnulib/import/m4/sys_socket_h.m4: New file.
3722         * gnulib/import/m4/sys_time_h.m4: New file.
3723         * gnulib/import/stdio.c: Delete file.
3724         * gnulib/import/sys_time.in.h: New file.
3725
3726 2015-08-24  Pedro Alves  <palves@redhat.com>
3727
3728         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3729         * common/gdb_sys_time.h: New file.
3730         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3731         * gdb_select.h: Likewise.
3732         * gdb_usleep.c: Likewise.
3733         * maint.c: Likewise.
3734         * mi/mi-main.c: Likewise.
3735         * mi/mi-parse.h: Likewise.
3736         * remote-fileio.c: Likewise.
3737         * remote-m32r-sdi.c: Likewise.
3738         * remote.c: Likewise.
3739         * ser-base.c: Likewise.
3740         * ser-pipe.c: Likewise.
3741         * ser-tcp.c: Likewise.
3742         * ser-unix.c: Likewise.
3743         * symfile.c: Likewise.
3744         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3745         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3746         * utils.c: Likewise.
3747
3748 2015-08-24  Pedro Alves  <palves@redhat.com>
3749
3750         * NEWS: Mention removed support for the various ROM monitors.
3751         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3752         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3753         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3754         gdb_target_obs.
3755         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3756         gdb_target_obs.
3757         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3758         dsrec.o from gdb_target_obs.
3759         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3760         from gdb_target_obs.
3761         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3762         gdb_target_obs.
3763         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3764         dink32-rom.o from gdb_target_obs.
3765         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3766         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3767         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3768         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3769
3770 2015-08-21  Pedro Alves  <palves@redhat.com>
3771
3772         * frame.c (null_frame_id): Explicitly zero-initialize.
3773
3774 2015-08-21  Tom Tromey  <tromey@redhat.com>
3775
3776         * dwarf2read.c (struct dwarf2_section_info): Rename field
3777         'asection' to 'section'.
3778         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3779         (dwarf2_locate_sections, dwarf2_locate_sections)
3780         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3781         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3782         (dwarf2_locate_v2_dwp_sections): Adjust.
3783
3784 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3785
3786         * top.h (gdb_in_secondary_prompt_p): Declare.
3787         * top.c (gdb_secondary_prompt_depth): Define.
3788         (gdb_in_secondary_prompt_p): Define.
3789         (gdb_readline_wrapper_cleanup): Decrement
3790         gdb_secondary_prompt_depth.
3791         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3792         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3793         are in a secondary prompt.
3794
3795 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3796
3797         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3798         emit the newline.
3799
3800 2015-08-21  Gary Benson  <gbenson@redhat.com>
3801
3802         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3803
3804 2015-08-21  Gary Benson  <gbenson@redhat.com>
3805
3806         * target.h (struct target_ops) <to_fileio_open>: New argument
3807         warn_if_slow.  Update comment.  All implementations updated.
3808         (target_fileio_open_warn_if_slow): New declaration.
3809         * target.c (target_fileio_open): Renamed as...
3810         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3811         Pass warn_if_slow to implementation.  Update debug printing.
3812         (target_fileio_open): New function.
3813         (target_fileio_open_warn_if_slow): Likewise.
3814         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3815         target_fileio_open_warn_if_slow.
3816
3817 2015-08-21  Gary Benson  <gbenson@redhat.com>
3818
3819         * nat/linux-namespaces.c (linux_mntns_access_fs):
3820         Do not overwrite old_chain.
3821
3822 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3823
3824         * arch/xtensa.h: New file.
3825         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3826         (ps_get_thread_area): New function.
3827         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3828         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3829         * xtensa-tdep.c (osabi.h): New #include.
3830         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3831         xtensa-specific hooks.
3832         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3833         member and move the structure to arch/xtensa.h.
3834
3835 2015-08-21  Pedro Alves  <palves@redhat.com>
3836
3837         * remote.c (struct readahead_cache): New.
3838         (struct remote_state) <readahead_cache>: New field.
3839         (remote_open_1): Invalidate the cache.
3840         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3841         functions.
3842         (remote_hostio_pwrite): Invalidate the readahead cache.
3843         (remote_hostio_pread): Rename to ...
3844         (remote_hostio_pread_vFile): ... this.
3845         (remote_hostio_pread_from_cache): New function.
3846         (remote_hostio_pread): Reimplement.
3847         (remote_hostio_close): Invalidate the readahead cache.
3848
3849 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3850
3851         PR build/18843
3852         * procfs.c: Include "filestuff.h".
3853
3854 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3855
3856         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3857         curch.
3858         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3859         cur_line or curch, instead call wmove().
3860         (init_win_info) [CMD_WIN]: Likewise.
3861         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3862         instead call getcury().
3863         (tui_redisplay_readline): Don't set cur_line or curch.
3864         (tui_mld_erase_entire_line): Don't read cur_line, instead call
3865         getcury().
3866         (tui_cont_sig): Remove call to wmove.
3867         (tui_getc): Don't read cur_line or curch, instead call getcury()
3868         or getyx().  Don't set curch.
3869         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3870         set cur_line or curch.  Always move cursor to (0,0).
3871
3872 2015-08-20  Pedro Alves  <palves@redhat.com>
3873
3874         * infrun.c (print_target_wait_results): Make extern.
3875         * infrun.h (print_target_wait_results): Declare.
3876         * remote.c (set_stop_requested_callback): Delete.
3877         (process_initial_stop_replies): New function.
3878         (remote_start_remote): Use it.
3879         (stop_reply_queue_length): New function.
3880
3881 2015-08-20  Pedro Alves  <palves@redhat.com>
3882
3883         * dwarf2read.c (process_full_comp_unit): To tell whether
3884         start_subfile managed to deduce a language, test for
3885         language_unknown instead of language_c.
3886
3887 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3888
3889         * ada-lex.l: Reset the start condition to INITIAL in the rule that
3890         matches attributes.
3891
3892 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
3893
3894         * dwarf2read.c (dwarf2_string_attr): New function.
3895         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3896         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3897         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3898         (anonymous_struct_prefix, prepare_one_comp_unit): Use
3899         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3900
3901 2015-08-18  Doug Evans  <dje@google.com>
3902             Adrian Sendroiu <adrian.sendroiu@freescale.com>
3903
3904         PR mi/18833
3905         * cli/cli-logging.c (pop_output_files): Don't restore redirection
3906         if MI-like.
3907         * mi/mi-out.c: #include "vec.h".
3908         (ui_filep): New type.
3909         (DEV_VEC_P (ui_filep)): New type.
3910         (struct ui_out_data) <buffer, original_buffer>: Delete.
3911         (struct ui_out_data) <streams>: New member.
3912         (mi_ui_out_impl): Add data_destroy field.
3913         (mi_field_string, mi_field_fmt): Update.
3914         (mi_flush, mi_redirect, field_separator): Update.
3915         (mi_open, mi_close): Update.
3916         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3917         (mi_out_data_ctor, mi_out_data_dtor): New functions.
3918         (mi_out_new): Call mi_out_data_ctor.
3919
3920 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
3921
3922         * remote.c (strprefix): New.
3923         (remote_parse_stop_reply): Use strprefix instead of strncmp
3924         to ensure exact match of keyword.
3925
3926 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3927
3928         * gdb_bfd.c (debug_bfd_cache): New variable.
3929         (show_bfd_cache_debug): New function.
3930         (gdb_bfd_open): Add debug logging.
3931         (gdb_bfd_ref): Likewise.
3932         (gdb_bfd_unref): Likewise.
3933         (_initialize_gdb_bfd): Add new set/show command.
3934         * NEWS: Mention new command.
3935
3936 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3937
3938         * gdb_bfd.c (bfd_sharing): New variable.
3939         (show_bfd_sharing): New function.
3940         (gdb_bfd_open): Check bfd_sharing variable.
3941         (_initialize_gdb_bfd): Add new set/show command.
3942         * NEWS: Mention new command.
3943
3944 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3945
3946         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3947         field.
3948         (struct gdb_bfd_cache_search): Likewise.
3949         (eq_bfd): Compare the size, inode, and device id fields.
3950         (gdb_bfd_open): Initialise the size, inode, and device id fields.
3951         (gdb_bfd_ref): Likewise.
3952         (gdb_bfd_unref): Likewise.
3953
3954 2015-08-18  Pedro Alves  <palves@redhat.com>
3955
3956         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3957         target implements to_always_non_stop_p, call it.
3958         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3959         (x86_linux_create_target): Install it as to_always_non_stop_p
3960         method.
3961
3962 2015-08-17  Doug Evans  <dje@google.com>
3963
3964         * ui-out.c (default_ui_out_impl): Add comment.
3965
3966 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
3967
3968         * d-exp.y (type_aggregate_p): New function.
3969         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3970         (classify_inner_name): Likewise.
3971         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3972
3973 2015-08-15  Doug Evans  <xdje42@gmail.com>
3974
3975         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
3976         updated.
3977         (add_psymbol_to_list): Ditto.
3978
3979 2015-08-15  Doug Evans  <xdje42@gmail.com>
3980
3981         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
3982         updated.  Call end_psymtab_common.
3983         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3984         end_psymtab_common.
3985         (build_type_psymtabs_reader): Ditto.
3986         * psympriv.h (sort_pst_symbols): Delete.
3987         (end_psymtab_common): Declare.
3988         * psymtab.c (sort_pst_symbols): Make static.
3989         (end_psymtab_common): New function.
3990         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3991
3992 2015-08-15  Doug Evans  <xdje42@gmail.com>
3993
3994         * defs.h (LANGUAGE_BITS): Define.
3995         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3996         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3997         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3998         (minimal_symbol_type): Add nr_minsym_types.
3999         (MINSYM_TYPE_BITS): Define.
4000         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4001         (domain_enum_tag): Add NR_DOMAINS.
4002         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4003         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4004
4005 2015-08-15  Doug Evans  <xdje42@gmail.com>
4006
4007         * objfiles.h: Whitespace cleanup.
4008         * psympriv.h: Whitespace cleanup.
4009         * psymtab.c: Whitespace/coding convention cleanup.
4010
4011 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4012
4013         * inferior.c (detach_inferior_command): Don't call
4014         any_thread_of_process when pid is 0.
4015         (kill_inferior_command): Likewise.
4016
4017 2015-08-14  Doug Evans  <xdje42@gmail.com>
4018
4019         PR gdb/11833
4020         * NEWS: Document new /s modifier for the disassemble command.
4021         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4022         (_initialize_cli_cmds): Update online docs of disassemble command.
4023         * disasm.c: #include "source.h".
4024         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4025         All uses updated.
4026         (dis_line_entry): New struct.
4027         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4028         (allocate_dis_line_table): New functions.
4029         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4030         (dump_insns): New arg end_pc.  All callers updated.
4031         (do_mixed_source_and_assembly_deprecated): Renamed from
4032         do_mixed_source_and_assembly.  All callers updated.
4033         (do_mixed_source_and_assembly): New function.
4034         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4035         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4036         DISASSEMBLY_SOURCE.  All uses updated.
4037         (DISASSEMBLY_SOURCE): New macro.
4038         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4039
4040 2015-08-14  Keith Seitz  <keiths@redhat.com>
4041
4042         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4043         `typename' to `type_name' to avoid C++ reserved word.
4044
4045 2015-08-14  Keith Seitz  <keiths@redhat.com>
4046
4047         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4048         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4049         silence ARI errors.
4050
4051 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4052
4053         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4054         xstrprintf instead of malloc and sprintf.
4055         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4056         (lex_one_token): Likewise.
4057
4058 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4059
4060         * solib-svr4.c (read_program_header): Add base_addr argument to
4061         report the runtime address of the segment.
4062         (find_program_interpreter): Update read_program_header call to pass
4063         a NULL pointer for the new argument.
4064         (scan_dyntag): Add ptr_addr argument to report the runtime address
4065         of the tag payload.
4066         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4067         read_program_header to get the base address of the dynamic segment.
4068         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4069         read_program_header.
4070         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4071
4072 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4073
4074         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4075
4076 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4077
4078         * d-exp.y (%union): Add voidval.
4079         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4080         name in the lexing stage.
4081         (PostfixExpression): Move symbol completion handling in grammar here
4082         from PrimaryExpression.
4083         (PrimaryExpression): Move routines to handle resolving identifier
4084         tokens in the grammar here from push_expression_name.
4085         (IdentifierExp): Remove the handling of alternating '.' and identifier
4086         tokens.
4087         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4088         (BasicType): Remove C-style typename rules.
4089         (d_type_from_name, d_module_from_name, push_variable)
4090         (push_fieldnames, push_type_name, push_module_name)
4091         (push_expression_name): Remove.
4092         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4093         (token_and_value): New type.
4094         (token_fifo, popping, name_obstack): New globals.
4095         (classify_name): New function.
4096         (classify_inner_name): Likewise.
4097         (yylex): Likewise.
4098         (d_parse): Initialize token_fifo, popping and name_obstack.
4099
4100 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4101
4102         * Makefile.in (SFILES): Add d-namespace.c.
4103         (COMMON_OBS): Add d-namespace.o.
4104         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4105         la_lookup_symbol_nonlocal callback function pointer.
4106         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4107         (d_lookup_nested_symbol): New declaration.
4108         * d-namespace.c: New file.
4109
4110 2015-08-13  Pedro Alves  <palves@redhat.com>
4111
4112         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4113         cleanup after the decref cleanup, not before.
4114
4115 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4116
4117         * ada-lang.c: Include namespace.h
4118         (aux_add_nonlocal_symbols): Fix a function name in comment.
4119         (ada_add_block_renamings): New.
4120         (add_nonlocal_symbols): Add global renamings handling.
4121         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4122         to...
4123         (ada_add_all_symbols): ... this new function.
4124         (ada_add_block_symbols): Try to match the input name against the
4125         "using directives list", perform a recursive symbol lookup on
4126         the matched declarations.
4127         * block.h (struct block): Move the_namespace to top-level as
4128         namespace_info. Remove the language_specific field.
4129         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4130         * buildsym.h (using_directives): Rename into...
4131         (local_using_directives): ... this.
4132         (global_using_directives): New.
4133         (struct context_stack): Rename the using_directives field into
4134         local_using_directives.
4135         * buildsym.c (finish_block_internal): Deal with the proper
4136         using directives repository (local or global).
4137         (prepare_for_building): Reset local_using_directives. Assert
4138         that there is no pending global using directive.
4139         (reset_symtab_globals): Reset global_using_directives and
4140         local_using_directives.
4141         (end_symtab_get_static_block): Don't ignore symtabs that have
4142         only using directives.
4143         (push_context): Update references to local_using_directives.
4144         (buildsym_init): Do not reset using_directives.
4145         * cp-support.c: Include namespace.h.
4146         * cp-support.h (struct using_direct): Move to namespace.h.
4147         (cp_add_using_directives): Move to namespace.h.
4148         * cp-namespace.c: Include namespace.h
4149         (cp_add_using_directive): Move to namespace.c, rename it to
4150         add_using_directive, add a "using_directives" argument and use
4151         it as the pending using directives repository.  All callers
4152         updated.
4153         * dwarf2read.c (using_directives): New.
4154         (read_import_statement): Call using_directives.
4155         (read_func_scope): Update references to local_using_directives.
4156         (read_lexical_block_scope): Likewise.
4157         (read_namespace): Update the heading comment, call
4158         using_directives.
4159         * namespace.h: New file.
4160         * namespace.c: New file.
4161         * Makefile.in (SFILES): Add namespace.c.
4162         (COMMON_OBS): Add namespace.o
4163
4164 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4165
4166         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4167         compute RETADDR.
4168
4169 2015-08-12  Keith Seitz  <keiths@redhat.com>
4170
4171         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4172         reserved C++ keyword "explicit" to "explicit_loc".
4173         * breakpoint.c (create_overlay_event_breakpoint)
4174         (create_longjmp_master_breakpoint)
4175         (create_std_terminate_master_breakpoint)
4176         (create_exception_master_breakpoint, update_static_tracepoint):
4177         Rename reserved C++ keyword "explicit" to "explicit_loc".
4178         * completer.c (collect_explicit_location_matches)
4179         (explicit_location_completer): Rename reserved C++ keyword
4180         "explicit" to "explicit_loc".
4181         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4182         (canonicalize_linespec, create_sals_line_offset)
4183         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4184         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4185         "explicit" to "explicit_loc".
4186         * location.c (struct event_location) <explicit>: Rename to
4187         "explicit_loc".
4188         (initialize_explicit_location, new_explicit_location)
4189         (explicit_location_to_string_internal, explicit_location_to_linespec):
4190         Rename reserved C++ keyword "explicit" to "explicit_loc".
4191         * location.h (explicit_location_to_string)
4192         (explicit_location_to_linespec, initialize_explicit_location)
4193         (new_explicit_location): Rename reserved C++ keyword "explicit"
4194         to "explicit_loc".
4195         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4196         keyword "explicit" to "explicit_loc".
4197
4198 2015-08-12  Keith Seitz  <keiths@redhat.com>
4199
4200         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4201         and only call decode_line_1 when it is non-NULL.
4202
4203 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4204
4205         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4206         location address is not meaningful.
4207         (breakpoint_address_is_meaningful): Update comment.
4208
4209 2015-08-11  Keith Seitz  <keiths@redhat.com>
4210
4211         * NEWS: Mention explicit locations.
4212         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4213         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4214         (_initialize_breakpoint): Update documentation for
4215         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4216
4217 2015-08-11  Keith Seitz  <keiths@redhat.com>
4218
4219         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4220         explicit locations, options "--source", "--function",
4221         "--label", and "--line".
4222
4223 2015-08-11  Keith Seitz  <keiths@redhat.com>
4224
4225         * completer.c: Include location.h.
4226         (enum match_type): New enum.
4227         (location_completer): Rename to ...
4228         (linespec_completer): ... this.
4229         (collect_explicit_location_matches, backup_text_ptr)
4230         (explicit_location_completer): New functions.
4231         (location_completer): "New" function; handle linespec
4232         and explicit location completions.
4233         (complete_line_internal): Remove all location completer-specific
4234         handling.
4235         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4236         (find_toplevel_char): Export.
4237         (linespec_parse_line_offset): Export.
4238         Issue error if STRING is not numerical.
4239         (gdb_get_linespec_parser_quote_characters): New function.
4240         * linespec.h (linespec_parse_line_offset): Declare.
4241         (get_gdb_linespec_parser_quote_characters): Declare.
4242         (is_ada_operator): Declare.
4243         (find_toplevel_char): Declare.
4244         (linespec_lexer_lex_keyword): Declare.
4245         * location.c (explicit_to_event_location): New function.
4246         (explicit_location_lex_one): New function.
4247         (string_to_explicit_location): New function.
4248         (string_to_event_location): Handle explicit locations.
4249         * location.h (explicit_to_event_location): Declare.
4250         (string_to_explicit_location): Declare.
4251
4252 2015-08-11  Keith Seitz  <keiths@redhat.com>
4253
4254         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4255         linespec into explicit location.
4256         * breakpoint.c (create_overlay_breakpoint)
4257         (create_longjmp_master_breakpoint)
4258         (create_std_terminate_master_breakpoint)
4259         (create_exception_master_breakpoint): Convert linespec into explicit
4260         location.
4261         (update_static_tracepoint): Convert linespec into explicit location.
4262         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4263         location.h.
4264         (struct linespec) <expression, expr_pc, source_filename>
4265         <function_name, label_name, line_offset>: Replace with ...
4266         <explicit>: ... this.
4267         <is_linespec>: New member.
4268         (PARSER_EXPLICIT): New accessor macro.
4269         (undefined_label_error): New function.
4270         (source_file_not_found_error): New function.
4271         (linespec_parse_basic): The parser result is now an explicit location.
4272         Use PARSER_EXPLICIT to access it.
4273         Use undefined_label_error.
4274         (canonicalize_linespec): Convert canonical linespec into explicit
4275         location.
4276         Move string representation of location to explicit_location_to_linespec
4277         and use it and explicit_location_to_string to save string
4278         representations of the canonical location.
4279         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4280         explicit location.  Update all references.
4281         (convert_explicit_location_to_sals): New function.
4282         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4283         result's explicit location.
4284         (linespec_state_constructor): Initialize is_linespec.
4285         Use PARSER_EXPLICIT.
4286         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4287         result.
4288         (event_location_to_sals): For linespec locations, set is_linespec.
4289         Handle explicit locations.
4290         (decode_objc): 'ls' contains an explicit location now. Update all
4291         references.
4292         (symtabs_from_filename): Use source_file_not_found_error.
4293         * location.c (struct event_location.u) <explicit>: New member.
4294         (initialize_explicit_location): New function.
4295         (initialize_event_location): Initialize explicit locations.
4296         (new_explicit_location, get_explicit_location)
4297         (get_explicit_location_const): New functions.
4298         (explicit_to_string_internal): New function; most of contents moved
4299         from canonicalize_linespec.
4300         (explicit_location_to_string): New function.
4301         (explicit_location_to_linespec): New function.
4302         (copy_event_location, delete_event_location)
4303         (event_location_to_string_const, event_location_empty_p): Handle
4304         explicit locations.
4305         * location.h (enum offset_relative_sign, struct line_offset): Move
4306         here from linespec.h.
4307         (enum event_location_type): Add EXPLICIT_LOCATION.
4308         (struct explicit_location): New structure.
4309         (explicit_location_to_string): Declare.
4310         (explicit_location_to_linespec): Declare.
4311         (new_explicit_location, get_explicit_locationp
4312         (get_explicit_location_const, initialize_explicit_location): Declare.
4313
4314 2015-08-11  Keith Seitz  <keiths@redhat.com>
4315
4316         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4317         linespec for stap probe to probe location.
4318         * breakpoint.c (create_longjmp_master_breakpoint)
4319         (create_exception_master_breakpoint): Likewise.
4320         (break_command_1): Remove local variable `arg_cp'.
4321         Check location type to set appropriate breakpoint ops methods.
4322         (trace_command): Likewise.
4323         * linespec.c (event_location_to_sals): Assert on probe locations.
4324         * location.c (EL_PROBE): Add macro definition.
4325         (new_probe_location, get_probe_location): New functions.
4326         (copy_event_location, delete_event_location, event_location_to_string)
4327         (string_to_event_location, event_location_empty_p): Handle probe
4328         locations.
4329         * location.h (enum event_location_type): Add PROBE_LOCATION.
4330         (new_probe_location, get_probe_location): Declare.
4331         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4332         Convert linespec into probe location.
4333
4334 2015-08-11  Keith Seitz  <keiths@redhat.com>
4335
4336         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4337         Convert linespec to address location.
4338         * linespec.c (canonicalize_linespec): Do not handle address
4339         locations here.
4340         (convert_address_location_to_sals): New function; contents moved
4341         from ...
4342         (convert_linespc_to_sals): ... here.
4343         (parse_linespec): Remove address locations from linespec grammar.
4344         Remove handling of address locations.
4345         (linespec_lex_to_end): Remove handling of address linespecs.
4346         (event_location_to_sals): Handle ADDRESS_LOCATION.
4347         (linespec_expression_to_pc): Export.
4348         * linespec.h (linespec_expression_to_pc): Add declaration.
4349         * location.c (struct event_location.u) <address>: New member.
4350         (new_address_location, get_address_location): New functions.
4351         (copy_event_location, delete_event_location, event_location_to_string)
4352         (string_to_event_location, event_location_empty_p): Handle address
4353         locations.
4354         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4355         (new_address_location, get_address_location): Declare.
4356         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4357         to address location.
4358         * spu-tdep.c (spu_catch_start): Likewise.
4359
4360 2015-08-11  Keith Seitz  <keiths@redhat.com>
4361
4362         * ax-gdb.c: Include location.h.
4363         (agent_command_1) Use linespec location instead of address
4364         string.
4365         * break-catch-throw.c: Include location.h.
4366         (re_set_exception_catchpoint): Use linespec locations instead
4367         of address strings.
4368         * breakpoint.c: Include location.h.
4369         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4370         (create_std_terminate_master_breakpoint)
4371         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4372         Use linespec location instead of address string.
4373         (print_breakpoint_location):  Use locations and
4374         event_location_to_string.
4375         Print extra_string for pending locations for non-MI streams.
4376         (print_one_breakpoint_location): Use locations and
4377         event_location_to_string.
4378         (init_raw_breakpoint_without_location): Initialize b->location.
4379         (create_thread_event_breakpoint): Use linespec location instead of
4380         address string.
4381         (init_breakpoint_sal): Likewise.
4382         Only save extra_string if it is non-NULL and not the empty string.
4383         Use event_location_to_string instead of `addr_string'.
4384         Constify `p' and `endp'.
4385         Use skip_spaces_const/skip_space_const instead of non-const versions.
4386         Copy the location into the breakpoint.
4387         If LOCATION is NULL, save the breakpoint address as a linespec location
4388         instead of an address string.
4389         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4390         event_location. All uses updated.
4391         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4392         (parse_breakpoint_sals): Use locations instead of address strings.
4393         Remove check for empty linespec with conditional.
4394         Refactor.
4395         (decode_static_tracepoint_spec): Make argument const and update
4396         function.
4397         (create_breakpoint): Change `arg' to a struct event_location and
4398         rename.
4399         Remove `copy_arg' and `addr_start'.
4400         If EXTRA_STRING is empty, set it to NULL.
4401         Don't populate `canonical' for pending breakpoints.
4402         Pass `extra_string' to find_condition_and_thread.
4403         Clear `extra_string' if `rest' was NULL.
4404         Do not error with "garbage after location" if setting a dprintf
4405         breakpoint.
4406         Copy the location into the breakpoint instead of an address string.
4407         (break_command_1): Use string_to_event_location and pass this to
4408         create_breakpoint instead of an address string.
4409         Check against `arg_cp' for a probe linespec.
4410         (dprintf_command): Use string_to_event_location and pass this to
4411         create_breakpoint instead of an address string.
4412         Throw an exception if no format string was specified.
4413         (print_recreate_ranged_breakpoint): Use event_location_to_string
4414         instead of address strings.
4415         (break_range_command, until_break_command)
4416         (init_ada_exception_breakpoint): Use locations instead
4417         of address strings.
4418         (say_where): Print out extra_string for pending locations.
4419         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4420         the breakpoint.
4421         (base_breakpoint_create_sals_from_location): Use struct event_location
4422         instead of address string.
4423         Remove `addr_start' and `copy_arg' parameters.
4424         (base_breakpoint_decode_location): Use struct event_location instead of
4425         address string.
4426         (bkpt_re_set): Use locations instead of address strings.
4427         Use event_location_empty_p to check for unset location.
4428         (bkpt_print_recreate): Use event_location_to_string instead of
4429         an address string.
4430         Print out extra_string for pending locations.
4431         (bkpt_create_sals_from_location, bkpt_decode_location)
4432         (bkpt_probe_create_sals_from_location): Use struct event_location
4433         instead of address string.
4434         (bkpt_probe_decode_location): Use struct event_location instead of
4435         address string.
4436         (tracepoint_print_recreate): Use event_location_to_string to
4437         recreate the tracepoint.
4438         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4439         (tracepoint_probe_create_sals_from_location)
4440         (tracepoint_probe_decode_location): Use struct event_location
4441         instead of address string.
4442         (dprintf_print_recreate): Use event_location_to_string to recreate
4443         the dprintf.
4444         (dprintf_re_set): Remove check for valid/missing format string.
4445         (strace_marker_create_sals_from_location)
4446         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4447         (update_static_tracepoint): Use struct event_location instead of
4448         address string.
4449         (location_to_sals): Likewise.
4450         Pass `extra_string' to find_condition_and_thread.
4451         For newly resolved pending breakpoint locations, clear the location's
4452         string representation.
4453         Assert that the breakpoint's condition string is NULL when
4454         condition_not_parsed.
4455         (breakpoint_re_set_default, create_sals_from_location_default)
4456         (decode_location_default, trace_command, ftrace_command)
4457         (strace_command, create_tracepoint_from_upload): Use locations
4458         instead of address strings.
4459         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4460         Use struct event_location instead of address string.
4461         Update all uses.
4462         <decode_location>: Likewise.
4463         (struct breakpoint) <addr_string>: Change to struct event_location
4464         and rename `location'.
4465         <addr_string_range_end>: Change to struct event_location and rename
4466         `location_range_end'.
4467         (create_breakpoint): Use struct event_location instead of address
4468         string.
4469         * cli/cli-cmds.c: Include location.h.
4470         (edit_command, list_command): Use locations instead of address strings.
4471         * elfread.c: Include location.h.
4472         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4473         * guile/scm-breakpoint.c: Include location.h.
4474         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4475         (gdbscm_register_breakpoint): Use locations instead of address
4476         strings.
4477         * linespec.c: Include location.h.
4478         (struct ls_parser) <stream>: Change to const char *.
4479         (PARSER_STREAM): Update.
4480         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4481         keywords must be followed by whitespace.
4482         (canonicalize_linespec): Save a linespec location into `canonical'.
4483         Save a canonical linespec into `canonical'.
4484         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4485         All uses updated.
4486         Update function description.
4487         (linespec_parser_new): Initialize `parser'.
4488         Update initialization of  parsing stream.
4489         (event_location_to_sals): New function.
4490         (decode_line_full): Change `argptr' to a struct event_location and
4491         rename it `location'.
4492         Use locations instead of address strings.
4493         Call event_location_to_sals instead of parse_linespec.
4494         (decode_line_1): Likewise.
4495         (decode_line_with_current_source, decode_line_with_last_displayed)
4496         Use locations instead of address strings.
4497         (decode_objc): Likewise.
4498         Change `argptr' to const char * and rename `arg'.
4499         (destroy_linespec_result): Delete the linespec result's location
4500         instead of freeing the address string.
4501         * linespec.h (struct linespec_result) <addr_string>: Change to
4502         struct event_location and rename to ...
4503         <location>: ... this.
4504         (decode_line_1, decode_line_full): Change `argptr' to struct
4505         event_location.  All callers updated.
4506         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4507         (mi_cmd_break_insert_1): Use locations instead of address strings.
4508         Throw an error if there was "garbage" at the end of the specified
4509         linespec.
4510         * probe.c: Include location.h.
4511         (parse_probes): Change `argptr' to struct event_location.
4512         Use event locations instead of address strings.
4513         * probe.h (parse_probes): Change `argptr' to struct event_location.
4514         * python/py-breakpoint.c: Include location.h.
4515         (bppy_get_location): Constify local variable `str'.
4516         Use event_location_to_string.
4517         (bppy_init): Use locations instead of address strings.
4518         * python/py-finishbreakpoint.c: Include location.h.
4519         (bpfinishpy_init): Remove local variable `addr_str'.
4520         Use locations instead of address strings.
4521         * python/python.c: Include location.h.
4522         (gdbpy_decode_line): Use locations instead of address strings.
4523         * remote.c: Include location.h.
4524         (remote_download_tracepoint): Use locations instead of address
4525         strings.
4526         * spu-tdep.c: Include location.h.
4527         (spu_catch_start): Remove local variable `buf'.
4528         Use locations instead of address strings.
4529         * tracepoint.c: Include location.h.
4530         (scope_info): Use locations instead of address strings.
4531         (encode_source_string): Constify parameter `src'.
4532         * tracepoint.h (encode_source_string): Likewise.
4533
4534 2015-08-11  Keith Seitz  <keiths@redhat.com>
4535
4536         * Makefile.in (SFILES): Add location.c.
4537         (HFILES_NO_SRCDIR): Add location.h.
4538         (COMMON_OBS): Add location.o.
4539         * linespec.c (linespec_lex_to_end): New function.
4540         * linespec.h (linespec_lex_to_end): Declare.
4541         * location.c: New file.
4542         * location.h: New file.
4543
4544 2015-08-11  Keith Seitz  <keiths@redhat.com>
4545
4546         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4547         Renamed to create_sals_from_location.
4548         <decode_linespec>: Renamed to decode_location.
4549         Update all callers.
4550         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4551         (create_sals_from_location_default): ... this.
4552         (addr_string_to_sals): Renamed to ...
4553         (location_to_sals): ... this.
4554         (decode_linespec_default): Renamed to ...
4555         (decode_location_default): ... this.
4556         (base_breakpoint_create_sals_from_address): Renamed to ...
4557         (base_breakpoint_create_sals_from_location): ... this.
4558         (bkpt_create_sals_from_address): Renamed to ...
4559         (bkpt_create_sals_from_location): ... this.
4560         (bkpt_decode_linespec): Renamed to ...
4561         (bkpt_decode_location): ... this.
4562         (bkpt_probe_create_sals_from_address): Renamed to ...
4563         (bkpt_probe_create_sals_from_location): ... this.
4564         (tracepoint_create_sals_from_address): Renamed to ...
4565         (tracepoint_create_sals_from_location): ... this.
4566         (tracepoint_decode_linespec): Renamed to ...
4567         (tracepoint_decode_location): ... this.
4568         (tracepoint_probe_create_sals_from_address): Renamed to ...
4569         (tracepoint_probe_create_sals_from_location): ... this.
4570         (tracepoint_probe_decode_linespec): Renamed to ...
4571         (tracepoint_probe_decode_location): ... this.
4572         (strace_marker_create_sals_from_address): Renamed to ...
4573         (strace_marker_create_sals_from_location): ... this.
4574         (decode_linespec_default): Renamed to ...
4575         (decode_location_default): ... this.
4576
4577 2015-08-10  Doug Evans  <dje@google.com>
4578             Keith Seitz  <keiths@redhat.com>
4579
4580         PR gdb/17960
4581         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4582         make_file_symbol_completion_list and made static.
4583         (make_file_symbol_completion_list): New function.
4584
4585 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4586
4587         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4588         trailing new-line at end of warning message.
4589         (proceed): Add i18n marker to error messages.
4590
4591 2015-08-07  Pedro Alves  <palves@redhat.com>
4592
4593         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4594
4595 2015-08-07  Pedro Alves  <palves@redhat.com>
4596
4597         * s390-linux-tdep.c (is_non_branch_ril)
4598         (s390_displaced_step_copy_insn): New functions.
4599         (s390_displaced_step_fixup): Update comment.
4600         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4601         gdbarch_displaced_step_copy_insn hook.
4602
4603 2015-08-07  Pedro Alves  <palves@redhat.com>
4604
4605         * infrun.c (displaced_step_prepare_throw): Return -1 if
4606         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4607         comment.
4608         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4609         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4610         in file.
4611         (ppc_displaced_step_copy_insn): New function.
4612         (ppc_displaced_step_fixup): Update comment.
4613         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4614         gdbarch_displaced_step_copy_insn hook.
4615         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4616         NULL return.
4617         * gdbarch.h: Regenerate.
4618
4619 2015-08-07  Pedro Alves  <palves@redhat.com>
4620
4621         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4622         field.
4623         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4624         Return false if dispaced stepping failed before.
4625         (resume): Pass the current inferior to
4626         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4627         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4628         displaced_stepping_failed flag, and fall back to an in-line
4629         step-over.
4630
4631 2015-08-07  Pedro Alves  <palves@redhat.com>
4632
4633         * darwin-nat.c (darwin_stop): Rename to ...
4634         (darwin_interrupt): ... this.
4635         (_initialize_darwin_inferior): Adjust.
4636         * gnu-nat.c (gnu_stop): Delete.
4637         (gnu_target): Don't install gnu_stop.
4638         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4639         (inf_ptrace_interrupt): ... this.
4640         (inf_ptrace_target): Adjust.
4641         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4642         target_stop.
4643         * linux-nat (linux_nat_stop): Rename to ...
4644         (linux_nat_interrupt): ... this.
4645         (linux_nat_stop): Reimplement.
4646         (linux_nat_add_target): Install linux_nat_interrupt.
4647         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4648         (nto_handle_sigint_twice): ... this.
4649         (nto_interrupt): Rename to ...
4650         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4651         target_stop.
4652         (procfs_wait): Adjust.
4653         (procfs_stop): Rename to ...
4654         (procfs_interrupt): ... this.
4655         (init_procfs_targets): Adjust.
4656         * procfs.c (procfs_stop): Rename to ...
4657         (procfs_interrupt): ... this.
4658         (procfs_target): Adjust.
4659         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4660         (m32r_interrupt): ... this.
4661         (init_m32r_ops): Adjust.
4662         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4663         (gdbsim_interrupt_inferior): ... this.
4664         (gdbsim_stop): Rename to ...
4665         (gdbsim_interrupt): ... this.
4666         (gdbsim_cntrl_c): Adjust.
4667         (init_gdbsim_ops): Adjust.
4668         * remote.c (sync_remote_interrupt): Adjust comments.
4669         (remote_stop_as): Rename to ...
4670         (remote_interrupt_as): ... this.
4671         (remote_stop): Adjust comment.
4672         (remote_interrupt): New function.
4673         (init_remote_ops): Install remote_interrupt.
4674         * target.c (target_interrupt): New function.
4675         * target.h (struct target_ops) <to_interrupt>: New field.
4676         (target_interrupt): New declaration.
4677         * windows-nat.c (windows_stop): Rename to ...
4678         (windows_interrupt): ... this.
4679         * target-delegates.c: Regenerate.
4680
4681 2015-08-07  Pedro Alves  <palves@redhat.com>
4682
4683         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4684         threads" as alternative to "switching back to stepped thread".
4685
4686 2015-08-07  Pedro Alves  <palves@redhat.com>
4687
4688         * NEWS: Mention "maint set/show target-non-stop".
4689         * breakpoint.c (update_global_location_list): Check
4690         target_is_non_stop_p instead of non_stop.
4691         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4692         * infrun.c (show_can_use_displaced_stepping)
4693         (can_use_displaced_stepping_p, start_step_over_inferior):
4694         Likewise.
4695         (internal_resume_ptid): New function.
4696         (resume): Use it.
4697         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4698         all-stop mode but the target is always in non-stop mode, start all
4699         the other threads that are implicitly resumed too.
4700         (for_each_just_stopped_thread, fetch_inferior_event)
4701         (adjust_pc_after_break, stop_all_threads): Check
4702         target_is_non_stop_p instead of non_stop.
4703         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4704         with the target always in non-stop mode.
4705         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4706         instead of non_stop.
4707         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4708         instead of non_stop.
4709         (keep_going_stepped_thread): Use internal_resume_ptid.
4710         (stop_waiting): If in all-stop mode, and the target is in non-stop
4711         mode, stop all threads.
4712         (keep_going_pass): Likewise, when starting a new in-line step-over
4713         sequence.
4714         * linux-nat.c (get_pending_status, select_event_lwp)
4715         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4716         target_is_non_stop_p instead of non_stop.
4717         (linux_nat_always_non_stop_p): New function.
4718         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4719         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4720         * target-delegates.c: Regenerate.
4721         * target.c (target_is_non_stop_p): New function.
4722         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4723         (maint_set_target_non_stop_command)
4724         (maint_show_target_non_stop_command): New functions.
4725         (_initilize_target): Install "maint set/show target-non-stop"
4726         commands.
4727         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4728         (target_non_stop_enabled): New declaration.
4729         (target_is_non_stop_p): New declaration.
4730
4731 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4732
4733         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4734         has a pending status, return true.
4735         * gdbthread.h: Include target/waitstatus.h.
4736         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4737         stop_pc>: New fields.
4738         (struct thread_info) <resumed>: New field.
4739         (set_resumed): Declare.
4740         * infrun.c: Include "event-loop.h".
4741         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4742         (infrun_async): New function.
4743         (clear_step_over_info): Add debug output.
4744         (displaced_step_in_progress_any_inferior): New function.
4745         (displaced_step_fixup): New returns int.
4746         (start_step_over): Handle in-line step-overs too.  Assert the
4747         thread is marked resumed.
4748         (resume_cleanups): Clear the thread's resumed flag.
4749         (resume): Set the thread's resumed flag.  Return early if the
4750         thread has a pending status.  Allow stepping a breakpoint with no
4751         signal.
4752         (proceed): Adjust to check 'resumed' instead of 'executing'.
4753         (clear_proceed_status_thread): If the thread has a pending status,
4754         and that status is a finished step, discard the pending status.
4755         (clear_proceed_status): Don't clear step_over_info here.
4756         (random_pending_event_thread, do_target_wait): New functions.
4757         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4758         do_target_wait.
4759         (wait_one): New function.
4760         (THREAD_STOPPED_BY): New macro.
4761         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4762         (thread_stopped_by_hw_breakpoint): New functions.
4763         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4764         functions.
4765         (handle_inferior_event): Also call set_resumed(false) on all
4766         threads implicitly stopped by the event.
4767         (restart_threads, resumed_thread_with_pending_status): New
4768         functions.
4769         (finish_step_over): If we were doing an in-line step-over before,
4770         and no longer are after trying to start a new step-over, restart
4771         all threads.  If we have multiple threads with pending events,
4772         save the current event and go through the event loop again.
4773         (handle_signal_stop): Return early if finish_step_over returns
4774         false.
4775         <random signal>: If we get a signal while stepping over a
4776         breakpoint in-line in non-stop mode, restart all threads.  Clear
4777         step_over_info before delivering the signal.
4778         (keep_going_stepped_thread): Use internal_error instead of
4779         gdb_assert.  Mark the thread as resumed.
4780         (keep_going_pass_signal): Assert the thread isn't already resumed.
4781         If some other thread is doing an in-line step-over, defer the
4782         resume.  If we just started a new in-line step-over, stop all
4783         threads.  Don't clear step_over_info.
4784         (infrun_async_inferior_event_handler): New function.
4785         (_initialize_infrun): Create async event handler with
4786         infrun_async_inferior_event_handler as callback.
4787         (infrun_async): New declaration.
4788         * target.c (target_async): New function.
4789         * target.h (target_async): Declare macro and readd as function
4790         declaration.
4791         * target/waitstatus.h (enum target_stop_reason)
4792         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4793         * thread.c (new_thread): Clear the new waitstatus field.
4794         (set_resumed): New function.
4795
4796 2015-08-07  Pedro Alves  <palves@redhat.com>
4797
4798         * infrun.c (keep_going_stepped_thread): New function, factored out
4799         from ...
4800         (switch_back_to_stepped_thread): ... here.
4801
4802 2015-08-07  Pedro Alves  <palves@redhat.com>
4803
4804         * infrun.c (currently_stepping): Extend intro comment.
4805         * target.h (target_resume): Extend intro comment.
4806
4807 2015-08-07  Pedro Alves  <palves@redhat.com>
4808
4809         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4810         of inferior_ptid.  If the stepped thread vanished, return 0
4811         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4812         the current stop_pc in log message.  Clear trap_expected if the
4813         thread advanced.  Don't pass currently_stepping to
4814         do_target_resume.
4815
4816 2015-08-07  Pedro Alves  <palves@redhat.com>
4817
4818         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4819         * infrun.c (struct execution_control_state): Move higher up in the
4820         file.
4821         (reset_ecs): New function.
4822         (start_step_over): Now returns int.  Rewrite to use
4823         keep_going_pass_signal instead of manually starting a displaced step.
4824         (resume): Don't call set_running here.  If displaced stepping
4825         can't start now, clear trap_expected.
4826         (find_thread_needs_step_over): Delete function.
4827         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4828         If the current thread needs a step over, push it in the step-over
4829         chain.  Don't set insert breakpoints nor call resume directly
4830         here.  Instead rewrite to use start_step_over and
4831         keep_going_pass_signal.
4832         (finish_step_over): New function.
4833         (handle_signal_stop): Call finish_step_over instead of
4834         start_step_over.
4835         (switch_back_to_stepped_thread): If the event thread needs another
4836         step-over do that first.  Use start_step_over.
4837         (keep_going_pass_signal): New function, factored out from ...
4838         (keep_going): ... here.
4839         (_initialize_infrun): Comment moved here.
4840         * thread.c (set_running_thread): New function.
4841         (set_running, finish_thread_state): Use set_running_thread.
4842
4843 2015-08-07  Pedro Alves  <palves@redhat.com>
4844
4845         * gdbthread.h (struct thread_info) <step_over_prev,
4846         step_over_next>: New fields.
4847         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4848         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4849         declarations.
4850         * infrun.c (struct displaced_step_request): Delete.
4851         (struct displaced_step_inferior_state) <step_request_queue>:
4852         Delete field.
4853         (displaced_step_prepare): Assert that trap_expected is set.  Use
4854         thread_step_over_chain_enqueue.  Split starting a new displaced
4855         step to ...
4856         (start_step_over): ... this new function.
4857         (resume): Assert the thread isn't waiting for a step over already.
4858         (proceed): Assert the thread isn't waiting for a step over
4859         already.
4860         (infrun_thread_stop_requested): Adjust to remove threads from the
4861         embedded step-over chain.
4862         (handle_inferior_event) <fork/vfork>: Call start_step_over after
4863         displaced_step_fixup.
4864         (handle_signal_stop): Call start_step_over after
4865         displaced_step_fixup.
4866         * infrun.h (step_over_queue_head): New declaration.
4867         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4868         (thread_step_over_chain_next, thread_is_in_step_over_chain)
4869         (thread_step_over_chain_enqueue)
4870         (thread_step_over_chain_remove): New functions.
4871         (delete_thread_1): Remove thread from the step-over chain.
4872
4873 2015-08-07  Pedro Alves  <palves@redhat.com>
4874
4875         * infrun.c (thread_still_needs_step_over): Rename to ...
4876         (thread_still_needs_step_over_bp): ... this.
4877         (enum step_over_what): New.
4878         (thread_still_needs_step_over): Reimplement.
4879
4880 2015-08-07  Pedro Alves  <palves@redhat.com>
4881
4882         * remote.c (remote_wait_as): If not waiting for a stop reply,
4883         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
4884         requested, don't block waiting forever.
4885
4886 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4887
4888         * infrun.c (adjust_pc_after_break): Now takes thread_info and
4889         waitstatus pointers instead of an ecs.  Adjust.
4890         (handle_inferior_event): Adjust caller.
4891
4892 2015-08-07  Pedro Alves  <palves@redhat.com>
4893
4894         * infrun.c (handle_inferior_event): If we get
4895         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4896         mode, mark all threads of the exiting process as not-executing.
4897         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4898         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4899         exiting process, if inferior_ptid still points at a process.
4900         * thread.c (struct current_thread_cleanup) <next>: New field.
4901         (current_thread_cleanup_chain): New global.
4902         (restore_current_thread_ptid_changed): New function.
4903         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4904         current_thread_cleanup_chain list.
4905         (make_cleanup_restore_current_thread): Add the cleanup data to the
4906         current_thread_cleanup_chain list.
4907         (_initialize_thread): Install restore_current_thread_ptid_changed
4908         as thread_ptid_changed observer.
4909
4910 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
4911
4912         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4913         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4914         smaller than expected.
4915
4916 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4917
4918         * stack.c (get_frame_language): Moved ...
4919         * frame.c (get_frame_language): ... to here.
4920         * language.h (get_frame_language): Declaration moved to frame.h.
4921         * frame.h: Add language.h include, for language enum.
4922         (get_frame_language): Declaration moved from language.h.
4923         * language.c: Add frame.h include.
4924         * top.c: Add frame.h include.
4925         * symtab.h (struct obj_section): Declare.
4926         (struct cmd_list_element): Declare.
4927
4928 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4929
4930         * language.c (show_language_command): Find selected frame before
4931         asking for the language of that frame.
4932         (set_language_command): Likewise.
4933         * language.h (get_frame_language): Add frame parameter.
4934         * stack.c (get_frame_language): Add frame parameter, assert
4935         parameter is not NULL, update comment and reindent.
4936         * top.c (check_frame_language_change): Pass the selected frame
4937         into get_frame_language.
4938
4939 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4940
4941         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4942         (pt_btrace_insn_flags): New.
4943         (ftrace_add_pt): Call pt_btrace_insn_flags.
4944         * btrace.h (btrace_insn_flag): New.
4945         (btrace_insn) <flags>: New.
4946         * record-btrace.c (btrace_insn_history): Print insn prefix.
4947         * NEWS: Announce it.
4948
4949 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
4950
4951         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4952         * configure: Regenerate.
4953
4954 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4955
4956         * Makefile.in (LIBICONV): Define.
4957         (CLIBS): Add LIBICONV.
4958         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4959         * configure: Regenerate.
4960
4961 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4962             Pedro Alves  <palves@redhat.com>
4963
4964         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4965         (arm_set_abi): Likewise.
4966         * ax-general.c (ax_print): Likewise.
4967         * c-exp.y (exp : string_exp): Likewise.
4968         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4969         (do_compile_dwarf_expr_to_c): Likewise.
4970         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4971         Likewise.
4972         * dwarf2expr.c (execute_stack_op): Likewise.
4973         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4974         (disassemble_dwarf_expression): Likewise.
4975         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4976         (read_array_order): Likewise.
4977         (abbrev_table_read_table): Likewise.
4978         (read_attribute_value): Likewise.
4979         (skip_unknown_opcode): Likewise.
4980         (dwarf_decode_macro_bytes): Likewise.
4981         (dwarf_decode_macros): Likewise.
4982         * eval.c (value_f90_subarray): Likewise.
4983         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4984         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4985         * infrun.c (handle_command): Likewise.
4986         * memory-map.c (memory_map_start_memory): Likewise.
4987         * osabi.c (set_osabi): Likewise.
4988         * parse.c (operator_length_standard): Likewise.
4989         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4990         single return point.
4991         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4992         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4993         (gdbpy_lookup_global_symbol): Likewise.
4994         * record-full.c (record_full_restore): Likewise.
4995         * regcache.c (regcache_register_status): Likewise.
4996         (regcache_raw_read): Likewise.
4997         (regcache_cooked_read): Likewise.
4998         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4999         * symtab.c (initialize_ordinary_address_classes): Likewise.
5000         * target-debug.h (target_debug_print_signals): Likewise.
5001         * utils.c (do_restore_current_language): Likewise.
5002
5003 2015-08-06  Clem Dickey  <clemd@acm.org>
5004
5005         PR python/17136
5006         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5007
5008 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5009
5010         * complaints.c (enum complaint_series): Add newlines and remove
5011         out of date comment.
5012         (struct complaints) <series>: Change type to enum
5013         complaint_series and remove out of date comment.
5014         (symfile_complaint_hook): Use equivalent enum value
5015         ISOLATED_MESSAGE instead of 0.
5016
5017 2015-08-06  Pedro Alves  <palves@redhat.com>
5018
5019         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5020         returned > 0.
5021
5022 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5023
5024         * common/agent.c (symbol_list) <required>: Remove.
5025
5026 2015-08-06  Pedro Alves  <palves@redhat.com>
5027
5028         * target/waitstatus.h (enum target_stop_reason)
5029         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5030
5031 2015-08-05  Pedro Alves  <palves@redhat.com>
5032             Joel Brobecker  <brobecker@adacore.com>
5033
5034         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5035         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5036         case where BS->STOP is not set.
5037
5038 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5039
5040         * nat/gdb_thread_db.h: Add copyright header.
5041         Protect against multiple inclusion.
5042
5043 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5044
5045         * aarch64-linux-nat.c (get_thread_id): Remove.
5046         (debug_reg_change_callback): Call ptid_get_lwp instead of
5047         get_thread_id.
5048         (fetch_gregs_from_thread): Likewise.
5049         (store_gregs_to_thread): Likewise.
5050         (fetch_fpregs_from_thread): Likewise.
5051         (store_fpregs_to_thread): Likewise.
5052         (aarch64_linux_get_debug_reg_capacity): Likewise.
5053         * arm-linux-nat.c (get_thread_id): Remove.
5054         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5055         * xtensa-linux-nat.c (get_thread_id): Remove.
5056         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5057         * arm-linux-nat.c (get_thread_id): Remove.
5058         (GET_THREAD_ID): Remove.
5059         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5060         (store_fpregs, fetch_regs, store_regs): Likewise.
5061         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5062         (fetch_vfp_regs, store_vfp_regs): Likewise.
5063         (arm_linux_read_description): Likewise.
5064         (arm_linux_get_hwbp_cap): Likewise.
5065         * xtensa-linux-nat.c (get_thread_id): Remove.
5066         (GET_THREAD_ID): Remove.
5067         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5068         GET_THREAD_ID.
5069
5070 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5071
5072         * python/py-linetable.c: Fix case of Linetable to LineTable
5073         in docstrings and code comments.
5074         * python/py-symtab.c: Same.
5075
5076 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5077
5078         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5079
5080 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5081
5082         PR gdb/18767
5083         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5084         use.
5085
5086 2015-08-04  Pedro Alves  <palves@redhat.com>
5087
5088         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5089         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5090         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5091         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5092         (td_thr_validate_ftype, td_thr_get_info_ftype)
5093         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5094         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5095         New typedefs.
5096         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5097         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5098         local macros and use them instead of verbose_dlsym and dlsym
5099         calls.
5100
5101 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5102
5103         * nios2-tdep.h: Include opcode/nios2.h here.
5104         (NIOS2_CDX_OPCODE_SIZE): New.
5105         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5106         * nios2-tdep.c: Don't include opcode/nios2.h here.
5107         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5108         4-byte read fails.
5109         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5110         (nios2_match_addi, nios2_match_orhi): Likewise.
5111         (nios2_match_stw, nios2_match_ldw): Likewise.
5112         (nios2_match_rdctl): Likewise.
5113         (nios2_match_stwm, nios2_match_ldwm): New.
5114         (nios2_match_branch): Add cases for R2 encodings.
5115         (nios2_match_jmpi, nios2_match_calli): Likewise.
5116         (nios2_match_jmpr, nios2_match_callr): Likewise.
5117         (nios2_match_break, nios2_match_trap): Likewise.
5118         (nios2_in_epilogue_p): Add R2 support.
5119         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5120         prologues.
5121         (nios2_breakpoint_from_pc): Handle R2 instructions.
5122         (nios2_get_next_pc): Likewise.  Adjust call to
5123         tdep->syscall_next_pc.
5124         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5125         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5126         instruction field macros instead of literal hex values.
5127         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5128         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5129         Use size field from OP instead of assuming all instructions
5130         are the same size.
5131         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5132
5133 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5134
5135         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5136         variable warning with some compilers.
5137
5138 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5139
5140         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5141         in comment.  Replace "rw" with "type".
5142         (arm_linux_remove_watchpoint): Change type of "rw" to
5143         "enum target_hw_bp_type".
5144
5145 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5146
5147         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5148         lookup_symbol.
5149         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5150         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5151         * mt-tdep.c (mt_skip_prologue): Likewise.
5152         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5153
5154 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5155
5156         * ada-exp.y (write_object_renaming): Replace struct
5157         ada_symbol_info with struct block_symbol.  Update field
5158         references accordingly.
5159         (block_lookup, select_possible_type_sym): Likewise.
5160         (find_primitive_type): Likewise.  Also update call to
5161         ada_lookup_symbol to extract the symbol itself.
5162         (write_var_or_type, write_name_assoc): Likewise.
5163         * ada-lang.h (struct ada_symbol_info): Remove.
5164         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5165         struct block_symbol.
5166         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5167         (ada_lookup_symbol): Return struct block_symbol instead of a
5168         mere symbol.
5169         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5170         with struct block_symbol.
5171         (resolve_subexp, ada_resolve_function, sort_choices,
5172         user_select_syms, is_nonfunction, add_defn_to_vec,
5173         num_defns_collected, defns_collected,
5174         symbols_are_identical_enums, remove_extra_symbols,
5175         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5176         ada_lookup_symbol_list, ada_iterate_over_symbols,
5177         ada_lookup_encoded_symbol, get_var_value): Likewise.
5178         (ada_lookup_symbol): Return a block_symbol instead of a mere
5179         symbol.  Replace struct ada_symbol_info with struct
5180         block_symbol.
5181         (ada_lookup_symbol_nonlocal): Likewise.
5182         (standard_lookup): Make block passing explicit through
5183         lookup_symbol_in_language.
5184         * ada-tasks.c (get_tcb_types_info): Update the calls to
5185         lookup_symbol_in_language to extract the mere symbol out of the
5186         returned value.
5187         (ada_tasks_inferior_data_sniffer): Likewise.
5188         * ax-gdb.c (gen_static_field): Likewise for the call to
5189         lookup_symbol.
5190         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5191         lookup functions.
5192         (gen_expr): Likewise.
5193         * c-exp.y: Likewise.  Remove uses of block_found.
5194         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5195         (classify_name): Likewise.  Rename the "sym" local variable to
5196         "bsym".
5197         * c-valprint.c (print_unpacked_pointer): Likewise.
5198         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5199         "sym" parameter from struct symbol * to struct block_symbol.
5200         Use it to remove uses of block_found.  Deal with struct
5201         block_symbol from lookup functions.
5202         (gcc_convert_symbol): Likewise.  Update the call to
5203         convert_symbol_sym.
5204         * compile/compile-object-load.c (compile_object_load): Deal with
5205         struct block_symbol from lookup functions.
5206         * cp-namespace.c (cp_lookup_nested_symbol_1,
5207         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5208         cp_search_static_and_baseclasses,
5209         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5210         cp_lookup_symbol_imports_or_template,
5211         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5212         lookup_namespace_scope, cp_lookup_nonlocal,
5213         find_symbol_in_baseclass): Return struct block_symbol instead of
5214         mere symbols and deal with struct block_symbol from lookup
5215         functions.
5216         * cp-support.c (inspect_type, replace_typedefs,
5217         cp_lookup_rtti_type): Deal with struct block_symbol from
5218         lookup functions.
5219         * cp-support.h (cp_lookup_symbol_nonlocal,
5220         cp_lookup_symbol_from_namespace,
5221         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5222         Return struct block_symbol instead of mere symbols.
5223         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5224         push_module_name):
5225         Deal with struct block_symbol from lookup functions.  Remove
5226         uses of block_found.
5227         * eval.c (evaluate_subexp_standard): Update call to
5228         cp_lookup_symbol_namespace.
5229         * f-exp.y: Deal with struct block_symbol from lookup functions.
5230         Remove uses of block_found.
5231         (yylex): Likewise.
5232         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5233         lookup_enum, lookup_template_type, check_typedef): Deal with
5234         struct block_symbol from lookup functions.
5235         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5236         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5237         (gdbscm_lookup_global_symbol): Likewise.
5238         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5239         * go-exp.y: Likewise.  Remove uses of block_found.
5240         (package_name_p, classify_packaged_name, classify_name):
5241         Likewise.
5242         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5243         * jv-exp.y (push_variable): Likewise.
5244         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5245         * language.c (language_bool_type): Likewise.
5246         * language.h (struct language_defn): Update
5247         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5248         than a mere symbol.
5249         * linespec.c (find_label_symbols): Deal with struct block_symbol
5250         from lookup functions.
5251         * m2-exp.y: Likewise.  Remove uses of block_found.
5252         (yylex): Likewise.
5253         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5254         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5255         * p-exp.y: Likewise.  Remove uses of block_found.
5256         (yylex): Likewise.
5257         * p-valprint.c (pascal_val_print): Likewise.
5258         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5259         block_found.
5260         * parser-defs.h (struct symtoken): Turn the SYM field into a
5261         struct block_symbol.
5262         * printcmd.c (address_info): Deal with struct block_symbol from
5263         lookup functions.
5264         * python/py-frame.c (frapy_read_var): Likewise.
5265         * python/py-symbol.c (gdbpy_lookup_symbol,
5266         gdbpy_lookup_global_symbol): Likewise.
5267         * skip.c (skip_function_command): Likewise.
5268         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5269         block_symbol instead of a mere symbol.
5270         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5271         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5272         * solib.c (solib_global_lookup): Likewise.
5273         * solist.h (solib_global_lookup): Likewise.
5274         (struct target_so_ops): Update lookup_lib_global_symbol to
5275         return a struct block_symbol rather than a mere symbol.
5276         * source.c (select_source_symtab): Deal with struct block_symbol
5277         from lookup functions.
5278         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5279         Likewise.
5280         * symfile.c (set_initial_language): Likewise.
5281         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5282         block_symbol.
5283         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5284         (struct symbol_cache_slot): Turn the FOUND field into a struct
5285         block_symbol.
5286         (block_found): Remove.
5287         (eq_symbol_entry): Update to deal with struct block_symbol in
5288         cache slots.
5289         (symbol_cache_lookup): Return a struct block_symbol rather than
5290         a mere symbol.
5291         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5292         appropriately the cache slots.  Update callers.
5293         (symbol_cache_dump): Update cache slots handling to the type
5294         change.
5295         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5296         lookup_symbol_aux, lookup_local_symbol,
5297         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5298         lookup_symbol_in_objfile_symtabs,
5299         lookup_symbol_in_objfile_from_linkage_name,
5300         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5301         lookup_symbol_in_static_block, lookup_static_symbol,
5302         lookup_global_symbol):
5303         Return a struct block_symbol rather than a mere symbol.  Deal
5304         with struct block_symbol from other lookup functions.  Remove
5305         uses of block_found.
5306         (lookup_symbol_in_block): Remove uses of block_found.
5307         (struct global_sym_lookup_data): Turn the RESULT field into a
5308         struct block_symbol.
5309         (lookup_symbol_global_iterator_cb): Update references to the
5310         RESULT field.
5311         (search_symbols): Deal with struct block_symbol from lookup
5312         functions.
5313         * symtab.h (struct block_symbol): New structure.
5314         (block_found): Remove.
5315         (lookup_symbol_in_language, lookup_symbol,
5316         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5317         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5318         lookup_global_symbol_from_objfile): Return a struct block_symbol
5319         rather than just a mere symbol.  Update comments to remove
5320         mentions of block_found.
5321         * valops.c (find_function_in_inferior,
5322         value_struct_elt_for_reference, value_maybe_namespace_elt,
5323         value_of_this):  Deal with struct block_symbol from lookup
5324         functions.
5325         * value.c (value_static_field, value_fn_field): Likewise.
5326
5327 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5328
5329         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5330         instead of integer.
5331
5332 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5333             Pedro Alves  <palves@redhat.com>
5334
5335         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5336         type or value instead of integer.
5337         (aarch64_linux_insert_watchpoint): Likewise.
5338         (aarch64_linux_remove_watchpoint): Likewise.
5339         * ada-lang.c (ada_op_print_tab): Likewise.
5340         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5341         (amd64_linux_syscall_record_common): Likewise.
5342         * arch-utils.c (target_byte_order_user): Likewise.
5343         (default_byte_order): Likewise.
5344         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5345         (arm_linux_get_hwbp_type): Likewise.
5346         (arm_linux_hw_watchpoint_initialize): Likewise.
5347         (arm_linux_insert_watchpoint): Likewise.
5348         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5349         (arm_linux_syscall_record): Likewise.
5350         * breakpoint.c (update_watchpoint): Likewise.
5351         (breakpoint_here_p): Likewise.
5352         (bpstat_print): Likewise.
5353         (enable_breakpoint_disp): Likewise.
5354         * c-lang.c (c_op_print_tab): Likewise.
5355         * cli/cli-decode.c (add_info_alias): Likewise.
5356         * d-lang.c (d_op_print_tab): Likewise.
5357         * eval.c (evaluate_subexp_standard): Likewise.
5358         * f-exp.y (dot_ops): Likewise.
5359         (f77_keywords): Likewise.
5360         * f-lang.c (f_op_print_tab): Likewise.
5361         * go-lang.c (go_op_print_tab): Likewise.
5362         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5363         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5364         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5365         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5366         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5367         (struct scm_from_stringn_data): Likewise.
5368         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5369         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5370         (ia64_linux_remove_watchpoint): Likewise.
5371         (ia64_linux_can_use_hw_breakpoint): Likewise.
5372         * infrun.c (print_stop_event): Likewise.
5373         * jv-lang.c (java_op_print_tab): Likewise.
5374         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5375         * linux-nat.h (struct lwp_info): Likewise.
5376         * linux-thread-db.c (enable_thread_event): Likewise.
5377         * m2-lang.c (m2_op_print_tab): Likewise.
5378         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5379         (mi_cmd_stack_list_variables): Likewise.
5380         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5381         * mi/mi-out.c (mi_table_begin): Likewise.
5382         (mi_table_header): Likewise.
5383         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5384         (mips_linux_insert_watchpoint): Likewise.
5385         (mips_linux_remove_watchpoint): Likewise.
5386         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5387         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5388         (mips_linux_watch_type_to_irw): Likewise.
5389         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5390         (procfs_insert_hw_watchpoint): Likewise.
5391         (procfs_remove_hw_watchpoint): Likewise.
5392         (procfs_hw_watchpoint): Likewise.
5393         (procfs_can_use_hw_breakpoint): Likewise.
5394         (procfs_remove_hw_watchpoint): Likewise.
5395         (procfs_insert_hw_watchpoint): Likewise.
5396         * p-lang.c (pascal_op_print_tab): Likewise.
5397         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5398         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5399         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5400         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5401         (procfs_insert_watchpoint): Likewise.
5402         (procfs_remove_watchpoint): Likewise.
5403         * psymtab.c (recursively_search_psymtabs): Likewise.
5404         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5405         (m32r_insert_watchpoint): Likewise.
5406         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5407         (mips_insert_watchpoint): Likewise.
5408         (mips_remove_watchpoint): Likewise.
5409         * remote.c (watchpoint_to_Z_packet): Likewise.
5410         (remote_insert_watchpoint): Likewise.
5411         (remote_remove_watchpoint): Likewise.
5412         (remote_check_watch_resources): Likewise.
5413         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5414         (s390_remove_watchpoint): Likewise.
5415         (s390_can_use_hw_breakpoint): Likewise.
5416         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5417         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5418         * target.h (struct target_ops): Likewise.
5419         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5420         * ui-out.c (struct ui_out_hdr): Likewise.
5421         (append_header_to_list): Likewise.
5422         (get_next_header): Likewise.
5423         (verify_field): Likewise.
5424         (ui_out_begin): Likewise.
5425         (ui_out_field_int): Likewise.
5426         (ui_out_field_fmt_int): Likewise.
5427         (ui_out_field_skip): Likewise.
5428         (ui_out_field_string): Likewise.
5429         (ui_out_field_fmt): Likewise.
5430         * varobj.c (new_variable): Likewise.
5431         * x86-nat.c (x86_insert_watchpoint): Likewise.
5432         (x86_remove_watchpoint): Likewise.
5433         (x86_can_use_hw_breakpoint): Likewise.
5434         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5435         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5436         previously anonymous enumeration type..
5437         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5438         value.
5439         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5440         (target_debug_print_enum_bptype): New.
5441         * target-delegates.c: Regenerate.
5442
5443 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5444
5445         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5446         already says and disallow non-stack memory writes in the prologue.
5447
5448 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5449
5450         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5451         reflect how current GCC emits stack overflow checks.  Match
5452         both trap and break instructions for backward compatbility.
5453         Disallow other trap and break instructions in the prologue.
5454
5455 2015-07-30  Pedro Alves  <palves@redhat.com>
5456
5457         PR threads/18600
5458         * linux-nat.c (wait_lwp): Report to the core when thread group
5459         leader exits.
5460
5461 2015-07-30  Pedro Alves  <palves@redhat.com>
5462             Simon Marchi  <simon.marchi@ericsson.com>
5463
5464         PR threads/18600
5465         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5466         mark the new thread as resumed.  Remove STOPPING parameter.
5467         (wait_lwp): Adjust call to linux_handle_extended_wait.
5468         (linux_nat_filter_event): Adjust call to
5469         linux_handle_extended_wait.
5470         (resume_stopped_resumed_lwps): Add debug output.
5471
5472 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5473
5474         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5475         isize argument.
5476         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5477         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5478         gdbarch_fast_tracepoint_valid_at.
5479         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5480         * gdbarch.h: Regenerate.
5481         * gdbarch.c: Regenerate.
5482         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5483         argument.  Do not set it.
5484         * remote.c (remote_download_tracepoint): Adjust call to
5485         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5486         the instruction length.
5487
5488 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5489
5490         * arm-tdep.h (enum gdb_regnum): Move it to ...
5491         * arch/arm.h: ... here.  New file.
5492         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5493
5494 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5495
5496         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5497         Change its type to int *.
5498         (decode_br): Rename link argument to is_blr.  Change its type to
5499         int *.
5500         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5501         int *.
5502         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5503         int *.  Set is_tbnz to either 1 or 0.
5504         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5505         new variables is_cbnz and is_tbnz.  Adjust call to
5506         aarch64_decode_cb and aarch64_decode_tb.
5507
5508 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5509
5510         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5511         parameter.
5512         (mips_linux_new_thread): Likewise.
5513         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5514
5515 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5516
5517         * top.c: Include "tui/tui.h".
5518         (undo_terminal_modifications_before_exit): New static function.
5519         (quit_force): Use it.
5520
5521 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5522
5523         * target.c (terminal_state): Initialize to terminal_is_ours.
5524
5525 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5526
5527         PR record/18691
5528         * dcache.c (dcache_read_memory_partial): Call
5529         raw_memory_xfer_partial.
5530         * target.c (raw_memory_xfer_partial): Make it non-static.
5531         * target.h (raw_memory_xfer_partial): Declare.
5532
5533 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5534
5535         * c-valprint.c (c_val_print_array): Consider addressable memory
5536         unit size.
5537         (c_val_print_ptr): Likewise.
5538         (c_val_print_int): Likewise.
5539         * findvar.c (read_frame_register_value): Likewise.
5540         * valarith.c (find_size_for_pointer_math): Likewise.
5541         (value_ptrdiff): Likewise.
5542         (value_subscripted_rvalue): Likewise.
5543         * valops.c (read_value_memory): Likewise (and rename variables).
5544         (value_assign): Likewise.
5545         (value_repeat): Likewise.
5546         (value_array): Likewise.
5547         (value_slice): Likewise.
5548         * valprint.c (generic_val_print_ptr): Likewise.
5549         (generic_val_print_enum): Likewise.
5550         (generic_val_print_bool): Likewise.
5551         (generic_val_print_int): Likewise.
5552         (generic_val_print_char): Likewise.
5553         (generic_val_print_float): Likewise.
5554         (generic_val_print_decfloat): Likewise.
5555         (generic_val_print_complex): Likewise.
5556         (val_print_scalar_formatted): Likewise.
5557         (val_print_array_elements): Likewise.
5558         * value.c (set_value_parent): Likewise.
5559         (value_contents_copy_raw): Likewise.
5560         (set_internalvar_component): Likewise.
5561         (value_primitive_field): Likewise.
5562         (value_fetch_lazy): Likewise.
5563         * value.h (read_value_memory): Update comment.
5564
5565 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5566
5567         * value.c (get_value_arch): New function.
5568         * value.h (get_value_arch): New declaration.
5569
5570 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5571
5572         * value.c (struct value): Update comments.
5573
5574 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5575
5576         * gdbtypes.c (type_length_units): New function.
5577         * gdbtypes.h (type_length_units): New declaration.
5578         (struct type) <length>: Update comment.
5579
5580 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5581
5582         * valprint.c (generic_val_print): Factor out complex
5583         printing code to ...
5584         (generic_val_print_complex): ... this new function.
5585
5586 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5587
5588         * valprint.c (generic_val_print): Factor out decfloat
5589         printing code to ...
5590         (generic_val_print_decfloat): ... this new function.
5591
5592 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5593
5594         * valprint.c (generic_val_print): Factor out float
5595         printing code to ...
5596         (generic_val_print_float): ... this new function.
5597
5598 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5599
5600         * valprint.c (generic_val_print): Factor out char
5601         printing code to ...
5602         (generic_val_print_char): ... this new function.
5603
5604 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5605
5606         * valprint.c (generic_val_print): Factor out integer
5607         printing code to ...
5608         (generic_val_print_int): ... this new function.
5609
5610 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5611
5612         * valprint.c (generic_val_print): Factor out bool
5613         printing code to ...
5614         (generic_val_print_bool): ... this new function.
5615
5616 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5617
5618         * valprint.c (generic_val_print): Factor out function/method
5619         printing code to ...
5620         (generic_val_print_func): ... this new function.
5621
5622 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5623
5624         * valprint.c (generic_val_print): Factor out flags
5625         printing code to ...
5626         (generic_val_print_flags): ... this new function.
5627
5628 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5629
5630         * valprint.c (generic_val_print): Factor out enum
5631         printing code to ...
5632         (generic_val_print_enum): ... this new function.
5633
5634 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5635
5636         * valprint.c (generic_val_print): Factor out reference
5637         printing code to ...
5638         (generic_val_print_ref): ... this new function.
5639
5640 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5641
5642         * valprint.c (generic_val_print): Factor out memberptr
5643         printing code to ...
5644         (generic_val_print_memberptr): ... this new function.
5645
5646 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5647
5648         * valprint.c (generic_val_print): Factor out pointer
5649         printing code to ...
5650         (generic_val_print_ptr): ... this new function.
5651
5652 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5653
5654         * valprint.c (generic_val_print): Factor out array
5655         printing code to ...
5656         (generic_val_print_array): ... this new function.
5657
5658 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5659
5660         * valprint.c (generic_val_print): Factor out
5661         print_unpacked_pointer code to ...
5662         (print_unpacked_pointer): ... this new function.
5663
5664 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5665
5666         * event-top.c (handle_sigterm): Don't inspect
5667         target_can_async_p.  Always set the quit flag and always mark
5668         the async signal handler.
5669
5670 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5671
5672         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5673
5674 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5675
5676         * remote.c (read_ptid): Return null_ptid when no thread id
5677         is found.
5678         (remote_current_thread): Add log warning for malformed
5679         qC reply.
5680         (remote_start_remote): Add log warning when current thread
5681         not found.
5682
5683 2015-07-24  Pedro Alves  <palves@redhat.com>
5684
5685         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5686         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5687         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5688
5689 2015-07-24  Pedro Alves  <palves@redhat.com>
5690
5691         PR gdb/18717
5692         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5693         is resumed, and extend the debug log.
5694
5695 2015-07-24  Pedro Alves  <palves@redhat.com>
5696
5697         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5698
5699 2015-07-24  Pedro Alves  <palves@redhat.com>
5700
5701         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5702         sys/ptrace.h.
5703         * alpha-linux-nat.c: Likewise.
5704         * amd64-linux-nat.c: Likewise.
5705         * arm-linux-nat.c: Likewise.
5706         * hppa-linux-nat.c: Likewise.
5707         * i386-linux-nat.c: Likewise.
5708         * ia64-linux-nat.c: Likewise.
5709         * linux-fork.c: Likewise.
5710         * linux-nat.c: Likewise.
5711         * m32r-linux-nat.c: Likewise.
5712         * m68klinux-nat.c: Likewise.
5713         * mips-linux-nat.c: Likewise.
5714         * nat/linux-btrace.c: Likewise.
5715         * nat/linux-ptrace.c: Likewise.
5716         * nat/linux-ptrace.h
5717         * nat/mips-linux-watch.c: Likewise.
5718         * nat/x86-linux-dregs.c: Likewise.
5719         * ppc-linux-nat.c: Likewise.
5720         * s390-linux-nat.c: Likewise.
5721         * spu-linux-nat.c: Likewise.
5722         * tilegx-linux-nat.c: Likewise.
5723         * x86-linux-nat.c: Likewise.
5724         * xtensa-linux-nat.c: Likewise.
5725
5726 2015-07-24  Pedro Alves  <palves@redhat.com>
5727
5728         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5729         __ptrace_request as first parameter type instead of int.
5730         (PTRACE_TYPE_ARG1): Define.
5731         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5732         that casts first argument to PTRACE_TYPE_ARG1.
5733         * config.in: Regenerate.
5734         * configure: Regenerate.
5735
5736 2015-07-24  Pedro Alves  <palves@redhat.com>
5737
5738         * gdb_ptrace.h: Move ...
5739         * nat/gdb_ptrace.h: ... here.
5740         * inf-ptrace.c: Adjust.
5741
5742 2015-07-24  Pedro Alves  <palves@redhat.com>
5743
5744         * acinclude.m4: Include ptrace.m4.
5745         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5746         * ptrace.m4: ... to this new file.
5747
5748 2015-07-23  Doug Evans  <dje@google.com>
5749
5750         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5751         (load_cu): Handle dummy CUs.
5752         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5753         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5754
5755 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5756
5757         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5758         documentation to say that it returns a list rather than
5759         a FrozenSet.
5760         (linetable_object_methods): Update the docstring of the
5761         "source_line" entry.
5762
5763 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5764
5765         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5766         type to the recursive call instead of the original (maybe
5767         TYPE_CODE_TYPEDEF) type.
5768
5769 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5770
5771         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5772         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5773         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5774
5775 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5776
5777         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5778         Move it to nat/aarch64-linux-hw-point.c.
5779         (aarch64_linux_child_post_startup_inferior): Update.
5780         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5781         New function.
5782         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5783         Declare it.
5784
5785 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5786
5787         * common/btrace-common.c (btrace_data_append): Change case label.
5788
5789 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5790
5791         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5792         Re-indent the code.
5793         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5794         "unsigned long long".
5795
5796 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5797
5798         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5799         to be set for SEC_ALLOC sections too.
5800
5801 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5802
5803         * Makefile.in (HFILES_NO_SRCDIR): Add
5804         nat/aarch64-linux-hw-point.h.
5805         (aarch64-linux-hw-point.o): New rule.
5806         * nat/aarch64-linux-hw-point.h: New file.
5807         * nat/aarch64-linux-hw-point.c: New file.
5808         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5809         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5810         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5811         (AARCH64_HWP_ALIGNMENT): Likewise.
5812         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5813         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5814         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5815         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5816         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5817         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5818         (struct aarch64_debug_reg_state): Likewise.
5819         (struct arch_lwp_info): Likewise.
5820         (aarch64_linux_set_debug_regs): Likewise.
5821         (aarch64_notify_debug_reg_change): Remove static.
5822         (aarch64_align_watchpoint): Likewise.
5823         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5824         (aarch64_watchpoint_length): Likewise.
5825         (aarch64_point_encode_ctrl_reg): Likewise
5826         (aarch64_point_is_aligned): Likewise.
5827         (aarch64_dr_state_insert_one_point): Likewise.
5828         (aarch64_dr_state_remove_one_point): Likewise.
5829         (aarch64_handle_breakpoint): Likewise.
5830         (aarch64_handle_aligned_watchpoint): Likewise.
5831         (aarch64_handle_unaligned_watchpoint): Likewise.
5832         (aarch64_handle_watchpoint): Likewise.
5833         * config/aarch64/linux.mh (NAT_FILE): Add
5834         aarch64-linux-hw-point.o.
5835
5836 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5837
5838         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5839         state and don't call aarch64_get_debug_reg_state.  All callers
5840         update.
5841         (aarch64_linux_insert_hw_breakpoint): Call
5842         aarch64_get_debug_reg_state earlier.
5843         (aarch64_linux_remove_hw_breakpoint): Likewise.
5844         (aarch64_handle_aligned_watchpoint): Add argument state and
5845         don't call aarch64_get_debug_reg_state.  All callers update.
5846         (aarch64_handle_unaligned_watchpoint): Likewise.
5847         (aarch64_handle_watchpoint): Add argument state.
5848         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5849         earlier.
5850         (aarch64_linux_remove_watchpoint): Likewise.
5851
5852 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5853
5854         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5855         debug_printf.
5856         (aarch64_handle_unaligned_watchpoint): Likewise.
5857
5858 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5859
5860         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5861         argument type's type to 'enum target_hw_bp_type'.
5862         (aarch64_dr_state_remove_one_point): Likewise.
5863         (aarch64_handle_breakpoint): Likewise.
5864         (aarch64_linux_insert_hw_breakpoint): Likewise.
5865         (aarch64_linux_remove_hw_breakpoint): Likewise.
5866         (aarch64_handle_aligned_watchpoint): Likewise.
5867
5868 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5869
5870         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5871         ptid_get_pid instead of get_thread_id.
5872
5873 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5874
5875         * remote.c (get_current_thread): Initialise ptid to null_ptid.
5876         (add_current_inferior_and_thread): Don't initialise ptid.
5877
5878 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
5879
5880         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5881         unavailable if invalid.
5882
5883 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5884
5885         Revert the previous 6 commits:
5886         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5887         Move gdb_regex* to common/
5888         Prepare linux_find_memory_regions_full & co. for move
5889         Move linux_find_memory_regions_full & co.
5890         gdbserver build-id attribute generator
5891         Validate symbol file using build-id
5892
5893 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5894             Jan Kratochvil  <jan.kratochvil@redhat.com>
5895
5896         Validate symbol file using build-id.
5897         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5898         and 'show validate-build-id'.  Add build-id attribute.
5899         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5900         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5901         * solib-frv.c (_initialize_frv_solib): Ditto.
5902         * solib-spu.c (set_spu_solib_ops): Ditto.
5903         * solib-svr4.c: Include rsp-low.h.
5904         (NOTE_GNU_BUILD_ID_NAME): New define.
5905         (svr4_validate): New function.
5906         (svr4_copy_library_list): Duplicate field build_id.
5907         (library_list_start_library): Parse 'build-id' attribute.
5908         (svr4_library_attributes): Add 'build-id' attribute.
5909         (_initialize_svr4_solib): Assign validate value.
5910         * solib-target.c (solib.h): Include.
5911         (_initialize_solib_target): Assign validate value.
5912         * solib.c (validate_build_id, show_validate_build_id): New.
5913         (solib_map_sections): Use ops->validate.
5914         (clear_so): Free build_id.
5915         (default_solib_validate): New function.
5916         (_initialize_solib): Add "validate-build-id".
5917         * solib.h (default_solib_validate): New declaration.
5918         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5919         (target_so_ops): New field 'validate'.
5920
5921 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5922             Jan Kratochvil  <jan.kratochvil@redhat.com>
5923
5924         gdbserver build-id attribute generator.
5925         * features/library-list-svr4.dtd (library-list-svr4): New
5926         'build-id' attribute.
5927
5928 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5929             Jan Kratochvil  <jan.kratochvil@redhat.com>
5930
5931         Move linux_find_memory_regions_full & co.
5932         * linux-tdep.c (nat/linux-maps.h): Include.
5933         (gdb_regex.h): Remove the include.
5934         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5935         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5936         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5937         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5938         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5939         and target/target.h.
5940         (struct smaps_vmflags, read_mapping, decode_vmflags)
5941         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5942         (linux_find_memory_regions_full): Move from linux-tdep.c.
5943         * nat/linux-maps.h (read_mapping): New declaration.
5944         (linux_find_memory_region_ftype, enum filterflags): Moved from
5945         linux-tdep.c.
5946         (linux_find_memory_regions_full): New declaration.
5947         * target.c (target/target-utils.h): Include.
5948         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5949         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5950         definitions to target/target-utils.c.
5951         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5952         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5953         from target.c.
5954         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5955         (read_alloc): New declaration.
5956         (read_stralloc_func_ftype): New typedef.
5957         (read_stralloc): New declaration.
5958         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5959
5960 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
5961             Jan Kratochvil  <jan.kratochvil@redhat.com>
5962
5963         Prepare linux_find_memory_regions_full & co. for move.
5964         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5965         (linux_find_memory_regions_full): Change signature and prepare
5966         for moving to linux-maps.
5967         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5968         (linux_find_memory_regions_thunk): New.
5969         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5970         (linux_find_memory_regions_gdb): New.
5971         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5972         (linux_make_mappings_corefile_notes): Use
5973         linux_find_memory_regions_gdb.
5974         * target.c (read_alloc_pread_ftype): New typedef.
5975         (target_fileio_read_alloc_1_pread): New function.
5976         (read_alloc): Refactor from target_fileio_read_alloc_1.
5977         (read_stralloc_func_ftype): New typedef.
5978         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5979         (read_stralloc): Refactored from target_fileio_read_stralloc.
5980         (target_fileio_read_stralloc): New implementation, use read_stralloc.
5981
5982 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5983
5984         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5985         common/gdb_regex.h.
5986         (COMMON_OBS): Add gdb_regex.o.
5987         (gdb_regex.o): New.
5988         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5989         --without-included-regex and USE_INCLUDED_REGEX.
5990         * common/gdb_regex.c: New file from utils.c functions.
5991         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5992         file wrapping define name.
5993         * configure: Rebuilt.
5994         * configure.ac (gdb_use_included_regex, --without-included-regex)
5995         (USE_INCLUDED_REGEX): Move them to common/common.m4.
5996         * gdb_regex.h: Move it to common/gdb_regex.h.
5997         * utils.c: Remove include gdb_regex.h.
5998         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5999         (compile_rx_or_error): Move them to common/gdb_regex.c.
6000
6001 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6002             Jan Kratochvil  <jan.kratochvil@redhat.com>
6003
6004         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6005         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6006         common/target-utils.h.
6007         (COMMON_OBS): Add target-utils.o.
6008         (linux-maps.o, target-utils.o): New.
6009         * target/target-utils.c: New file.
6010         * target/target-utils.h: New file.
6011         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6012         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6013         * nat/linux-maps.c: New file.
6014         * nat/linux-maps.h: New file.
6015
6016 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6017             Pedro Alves <palves@redhat.com>
6018
6019         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6020         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6021         (perf_event_read_bts): Change the type of SIZE and READ.
6022         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6023         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6024         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6025         mmap page.
6026         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6027         buffer size to UINT_MAX.
6028         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6029         DATA_TAIL.
6030         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6031         <last_head>: Change type.
6032         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6033         * common/btrace-common.c (btrace_data_append): Change the type of
6034         SIZE.
6035         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6036         check.
6037
6038 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6039
6040         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6041         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6042         with check_typedef.
6043         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6044         (ada_array_length): Likewise.
6045         (find_parallel_type_by_descriptive_type): Likewise.
6046         (ada_check_typedef): Likewise.
6047         * arm-tdep.c (arm_return_in_memory): Likewise.
6048         * ax-gdb.c (gen_trace_static_fields): Likewise.
6049         (gen_struct_ref_recursive): Likewise.
6050         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6051         (variable: block COLONCOLON name): Likewise.
6052         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6053         * c-lang.c (classify_type): Likewise.
6054         * c-typeprint.c (c_print_type): Likewise.
6055         (c_print_typedef): Likewise.
6056         (c_type_print_base): Likewise.
6057         * c-valprint.c (c_val_print): Likewise.
6058         * compile/compile-c-types.c (convert_type): Likewise.
6059         * compile/compile-object-load.c (get_out_value_type): Likewise.
6060         * completer.c (add_struct_fields): Likewise.
6061         (expression_completer): Likewise.
6062         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6063         (cp_lookup_nested_symbol_1): Likewise.
6064         (cp_lookup_nested_symbol): Likewise.
6065         * cp-valprint.c (cp_print_value_fields): Likewise.
6066         (cp_print_static_field): Likewise.
6067         * d-valprint.c (d_val_print): Likewise.
6068         * eval.c (evaluate_subexp_standard): Likewise.
6069         (evaluate_subexp_for_sizeof): Likewise.
6070         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6071         * f-typeprint.c (f_type_print_base): Likewise.
6072         * f-valprint.c (f_val_print): Likewise.
6073         * gdbtypes.c (get_discrete_bounds): Likewise.
6074         (create_array_type_with_stride): Likewise.
6075         (type_name_no_tag_or_error): Likewise.
6076         (lookup_struct_elt_type): Likewise.
6077         (get_unsigned_type_max): Likewise.
6078         (internal_type_vptr_fieldno): Likewise.
6079         (set_type_vptr_fieldno): Likewise.
6080         (internal_type_vptr_basetype): Likewise.
6081         (set_type_vptr_basetype): Likewise.
6082         (get_vptr_fieldno): Likewise.
6083         (is_integral_type): Likewise.
6084         (is_scalar_type): Likewise.
6085         (is_scalar_type_recursive): Likewise.
6086         (distance_to_ancestor): Likewise.
6087         (is_unique_ancestor_worker): Likewise.
6088         (check_types_equal): Likewise.
6089         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6090
6091 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6092
6093         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6094         also test for language_d.
6095         (dwarf2_compute_name): Likewise.
6096         (read_func_scope): Likewise.
6097         (read_structure_type): Likewise.
6098         (new_symbol_full): Likewise.
6099         (determine_prefix): Likewise.
6100         (read_import_statement): Use dot as the separator for language_d.
6101         (typename_concat): Likewise, but don't prefix the D main function.
6102
6103 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6104
6105         * nat/linux-namespaces.c (setns): Rename from this ...
6106         (do_setns): ... to this.  Support calling setns if it exists.
6107         (mnsh_handle_setns): Call do_setns.
6108
6109 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6110
6111         * exec.c (exec_file_attach): Add period at the end of error
6112         message.
6113
6114 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6115
6116         * tui/tui-win.c (window_name_completer): New function.
6117         (focus_completer): Call window_name_completer.  All old content
6118         moved into window_name_completer.
6119         (winheight_completer): New function.
6120         (_initialize_tui_win): Rename variable.  Add completer to
6121         winheight command.  Update doc string on winheight.
6122
6123 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6124
6125         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6126         all nios2 mach variants.
6127
6128 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6129
6130         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6131         of target_read_memory.
6132
6133 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6134
6135         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6136         string copy.
6137         (parse_scrolling_args): Likewise.
6138
6139 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6140
6141         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6142         names in this function.
6143
6144 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6145
6146         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6147         (CMD_NAME): Likewise.
6148         (DATA_NAME): Likewise.
6149         (DISASSEM_NAME): Likewise.
6150         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6151         (tui_set_win_height): Likewise.
6152         (parse_scrolling_args): Likewise.
6153
6154 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6155
6156         * record-btrace.c (record_btrace_goto_begin)
6157         (record_btrace_goto_end, record_btrace_goto): Move call to
6158         print_stack_frame ...
6159         (record_btrace_set_replay): ... here.  Set stop_pc.
6160         * record-full.c (record_full_goto_entry): Set stop_pc.
6161
6162 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6163
6164         * NEWS: Mention support for tracepoints on aarch64-linux.
6165
6166 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6167
6168         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6169         function.  Return 1.
6170         (the_low_target): Install it.
6171
6172 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6173
6174         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6175         * gdb.trace/collection.exp: Likewise.
6176         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6177         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6178         * gdb.trace/report.exp: Likewise.
6179         * gdb.trace/trace-break.exp: Likewise.
6180         * gdb.trace/unavailable.exp: Likewise.
6181         * gdb.trace/while-dyn.exp: Likewise.
6182
6183 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6184
6185         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6186         (aarch64_gen_return_address): New function.
6187         (aarch64_gdbarch_init): Hook it.
6188
6189 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6190
6191         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6192         swallow NOT_AVAILABLE_ERROR.
6193         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6194         available_p is not set.
6195         (aarch64_stub_frame_unwind_stop_reason): New function.
6196         (aarch64_stub_unwind): Install it.
6197
6198 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6199
6200         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6201         field.
6202         (aarch64_make_prologue_cache_1): New function, factored out from
6203         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6204         available_p.
6205         (aarch64_make_prologue_cache): Reimplement wrapping
6206         aarch64_make_prologue_cache_1, and swallowing
6207         NOT_AVAILABLE_ERROR.
6208         (aarch64_prologue_frame_unwind_stop_reason): New function.
6209         Return UNWIND_UNAVAILABLE if available_p is not set.
6210         (aarch64_prologue_unwind): Install it.
6211         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6212         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6213         frame_id_build_unavailable_stack if available_p is not set.
6214
6215 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6216
6217         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6218         fields.
6219         (aarch64_scan_prologue): Set prev_pc.
6220         (aarch64_make_prologue_cache): Set func.
6221         (aarch64_make_stub_cache): Set prev_pc.
6222         (aarch64_prologue_this_id): Remove local variables id, pc and
6223         func.  Read prev_pc and func from cache.
6224         (aarch64_stub_this_id): Read prev_pc from cache.
6225
6226 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6227
6228         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6229         argument this_cache.  Remove unused local variables reg and
6230         unwound_fp.  Return early if this_cache is already set.  Set
6231         this_cache.
6232         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6233
6234 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6235
6236         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6237         New argument this_cache.  Return early if this_cache is already
6238         set.  Set this_cache.
6239         (aarch64_prologue_this_id): Update call to
6240         aarch64_make_prologue_cache.
6241         (aarch64_prologue_prev_register): Likewise.
6242         (aarch64_normal_frame_base): Likewise.
6243
6244 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6245
6246         * c-valprint.c (c_val_print): Factor out memberptr printing code
6247         from c_val_print to ...
6248         (c_val_print_memberptr): ... this new function.
6249
6250 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6251
6252         * c-valprint.c (c_val_print): Factor out int printing code to ...
6253         (c_val_print_int): ... this new function.
6254
6255 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6256
6257         * c-valprint.c (c_val_print): Factor out struct and union
6258         printing code to ...
6259         (c_val_print_struct): ... this new function ...
6260         (c_val_print_union): ... and this new function.
6261
6262 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6263
6264         * c-valprint.c (c_val_print): Factor out pointer printing code
6265         to ...
6266         (c_val_print_ptr): ... this new function.
6267
6268 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6269
6270         * c-valprint.c (c_valprint): Factor our array printing code from
6271         c_val_print to ...
6272         (c_val_print_array): ... this new function.
6273
6274 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6275
6276         * c-valprint.c (c_val_print): Factor out pointer printing code
6277         to ...
6278         (print_unpacked_pointer): ... this new function.
6279
6280 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6281
6282         * c-valprint.c (c_val_print): Remove an assignment to i and move
6283         its declaration.
6284
6285 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6286
6287         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6288         argument ptid.  Update comments.  Caller update.
6289
6290 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6291
6292         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6293         mnt packets.
6294
6295 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6296
6297         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6298
6299 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6300
6301         * progspace.c (delete_program_space): Add missing spaces.
6302
6303 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6304
6305         * inferior.c (delete_inferior_1): Rename to ...
6306         (delete_inferior): ..., remove 'silent' parameter, delete
6307         program space when unused and remove call to prune_program_spaces.
6308         Remove the old, unused, delete_inferior.
6309         (delete_inferior_silent): Remove.
6310         (prune_inferiors): Change call from delete_inferior_1 to
6311         delete_inferior and remove 'silent' parameter. Remove call to
6312         prune_program_spaces.
6313         (remove_inferior_command): Idem.
6314         * inferior.h (delete_inferior_1): Rename to...
6315         (delete_inferior): ..., remove 'silent' parameter and remove the
6316         original delete_inferior.
6317         (delete_inferior_silent): Remove.
6318         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6319         delete_inferior_1 to delete_inferior and remove 'silent'
6320         parameter.
6321         * progspace.c (prune_program_spaces): Remove.
6322         (pspace_empty_p): Rename to...
6323         (program_space_empty_p): ... and make non-static.
6324         (delete_program_space): New.
6325         * progspace.h (prune_program_spaces): Remove declaration.
6326         (program_space_empty_p): New declaration.
6327         (delete_program_space): New declaration.
6328         * monitor.c (monitor_close): Replace call to
6329         delete_thread_silent and delete_inferior_silent with
6330         discard_all_inferiors.
6331
6332 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6333
6334         * defs.h (deprecated_register_changed_hook): Remove prototype.
6335         * interps.c (clear_iterpreter_hooks): Remove reference to
6336         deprecated_register_changed_hook.
6337         * top.c (deprecated_register_changed_hook): Remove prototype.
6338         * valops.c (value_assign): Remove reference to
6339         deprecated_register_changed_hook.
6340         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6341         Add comment documenting the function.
6342         (tui_register_changed_observer): Define.
6343         (tui_install_hooks): Remove reference to
6344         deprecated_register_changed_hook.  Set
6345         tui_register_changed_observer.
6346         (tui_remove_hooks): Remove reference to
6347         deprecated_register_changed_hook.  Unset
6348         tui_register_changed_observer.
6349
6350 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6351
6352         PR compile/18484
6353         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6354
6355 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6356
6357         PR exp/18617
6358         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6359
6360 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6361
6362         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6363
6364 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6365
6366         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6367         Use safe_strerror() instead of strerror().
6368
6369 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6370
6371         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6372         * features/arm-with-m-fpa-layout.c: Regenerated.
6373         * features/arm-with-m-vfp-d16.xml: Likewise.
6374         * features/arm-with-m-vfp-d16.c: Regenerated.
6375         * features/arm-with-m.xml: Likewise.
6376         * features/arm-with-m.c: Regenerated.
6377         * features/arm-with-neon.xml: Likewise.
6378         * features/arm-with-neon.c: Regenerated.
6379         * features/arm-with-vfpv2.xml: Likewise.
6380         * features/arm-with-vfpv2.c: Regenerated.
6381         * features/arm-with-vfpv3.xml: Likewise.
6382         * features/arm-with-vfpv3.c: Regenerated.
6383
6384 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6385
6386         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6387         arm-linux-nat.c.
6388         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6389         elf/external.h.
6390         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6391         if target is 32-bit.
6392         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6393         if target is 32-bit.
6394         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6395         if target is 32-bit.
6396         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6397         if target is 32-bit.
6398         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6399         (aarch64_linux_read_description): Return the right target
6400         description.
6401         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6402         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6403         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6404         arm-linux-tdep.o.
6405
6406 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6407
6408         * aarch32-linux-nat.c: New file.
6409         * aarch32-linux-nat.h: New file.
6410         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6411         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6412         aarch32_gp_regcache_supply.
6413         (store_regs): Move code to aarch32-linux-nat.c.  Call
6414         aarch32_gp_regcache_collect.
6415         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6416         aarch32_vfp_regcache_supply.
6417         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6418         aarch32_vfp_regcache_collect.
6419         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6420
6421 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6422
6423         * arm-linux-nat.c (store_fpregister): Remove.
6424         (store_register): Likewise.
6425         (fetch_fpregister): Likewise.
6426         (fetch_register): Likewise.
6427         (arm_linux_store_inferior_registers): Call store_regs and
6428         store_fpregs instead.
6429         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6430         fetch_regs instead.
6431
6432 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6433
6434         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6435         and focus commands.
6436
6437 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6438
6439         * NEWS: Create a new section for the next release branch.
6440         Rename the section of the current branch, now that it has
6441         been cut.
6442
6443 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6444
6445         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6446         * version.in: Bump version to 7.10.50.DATE-cvs.
6447
6448 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6449
6450         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6451         breakpoints in a special way.
6452         (remove_breakpoint): Likewise.
6453         (mark_breakpoints_out): Likewise.
6454
6455 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6456
6457         * doc/gdb.texinfo (TUI): Add comma after @xref.
6458
6459 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6460
6461         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6462         instead of casting the structure type.
6463
6464 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6465
6466         * valops.c (search_struct_field): Remove OFFSET parameter.
6467         (value_cast_structs): Adjust calls to search_struct_field.
6468         (value_struct_elt): Same.
6469         (find_overload_match): Same.
6470
6471 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6472
6473         * value.c (value_fetch_lazy): Update comment, change return
6474         value to void.
6475         * value.h (value_fetch_lazy): Change return value to void.
6476
6477 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6478
6479         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6480         (tui_win_name): Make parameter and result const.
6481         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6482
6483 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6484
6485         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6486         use printf_unfiltered.
6487         (set_mpx_cmd): Add missing trailing space to command string
6488         literal.
6489         (_initialize_i386_tdep): Give the "mpx" prefix command its
6490         correct name.
6491
6492 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6493
6494         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6495         (enum rx_frame_type): New.
6496         (struct rx_prologue): Add new field `frame_type'.
6497         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6498         parameter in the prologue struct.  Add code for recording
6499         locations of PC and PSW for fast interrupt and exception frames.
6500         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6501         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6502         (rx_frame_type): New function.
6503         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6504         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6505         `this_cache'.
6506         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6507         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6508         RX_FRAME_TYPE_FAST_INTERRUPT.
6509         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6510         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6511         (rx_frame_unwind): Use rx_frame_sniffer instead of
6512         default_frame_sniffer.
6513         (rx_frame_unwind): New unwinder.
6514         (rx_gdbarch_init): Register new unwinder.
6515
6516 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6517
6518         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6519         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6520         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6521         and RX_FPSW_REGNUM.
6522         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6523
6524 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6525
6526         Fix GCC false warning.
6527         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6528
6529 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6530
6531         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6532         typo in the debugging message.
6533
6534 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6535
6536         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6537         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6538         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6539         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6540         (btrace_maint_clear): New.
6541         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6542         (pt_print_packet, btrace_maint_decode_pt)
6543         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6544         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6545         (maint_btrace_packet_history_cmd)
6546         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6547         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6548         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6549         (maint_info_btrace_cmd, _initialize_btrace): New.
6550         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6551         (btrace_maint_packet_history, btrace_maint_info): New.
6552         (btrace_thread_info) <maint>: New.
6553         * NEWS: Announce it.
6554
6555 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6556
6557         * btrace.c (btrace_fetch): Append the new trace data.
6558         (btrace_clear): Clear the stored trace data.
6559         * btrace.h (btrace_thread_info) <data>: New.
6560         * common/btrace-common.h (btrace_data_clear)
6561         (btrace_data_append): New.
6562         * common/btrace-common.c (btrace_data_clear)
6563         (btrace_data_append): New.
6564
6565 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6566
6567         * nat/linux-btrace.c (linux_enable_bts): Check for
6568         PERF_ATTR_SIZE_VER5.
6569         Check for data_offset and data_size fields.  Use them.
6570
6571 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6572
6573         * NEWS: Announce new commands "record btrace pt" and "record pt".
6574         Announce new options "set|show record btrace pt buffer-size".
6575         * btrace.c: Include "rsp-low.h".
6576         Include "inttypes.h".
6577         (btrace_add_pc): Add forward declaration.
6578         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6579         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6580         (btrace_compute_ftrace_pt): New.
6581         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6582         (check_xml_btrace_version): Update version check.
6583         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6584         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6585         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6586         (btrace_pt_children): New.
6587         (btrace_children): Add support for "pt".
6588         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6589         (btrace_conf_children): Add support for "pt".
6590         * btrace.h: Include "intel-pt.h".
6591         (btrace_pt_error): New.
6592         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6593         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6594         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6595         (struct btrace_config_pt): New.
6596         (struct btrace_config)<pt>: New.
6597         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6598         (struct btrace_data)<pt>: New.
6599         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6600         (pt): New.
6601         * features/btrace.dtd (btrace)<pt>: New.
6602         (pt, pt-config, cpu): New.
6603         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6604         (perf_event_pt_event_type, kernel_supports_pt)
6605         (linux_supports_pt): New.
6606         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6607         (linux_enable_bts): Free tinfo on error.
6608         (linux_enable_pt): New.
6609         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6610         (linux_disable_pt): New.
6611         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6612         (linux_fill_btrace_pt_config, linux_read_pt): New.
6613         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6614         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6615         (struct btrace_target_info)<pt>: New.
6616         * record-btrace.c (set_record_btrace_pt_cmdlist)
6617         (show_record_btrace_pt_cmdlist): New.
6618         (record_btrace_print_pt_conf): New.
6619         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6620         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6621         (cmd_record_btrace_pt_start): New.
6622         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6623         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6624         (_initialize_record_btrace): Add new commands.
6625         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6626         (remote_protocol_features): Add "Qbtrace:pt".
6627         Add "Qbtrace-conf:pt:size".
6628         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6629         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6630         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6631         (_initialize_remote): Add new commands.
6632
6633 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6634
6635         * configure.ac: check for libipt
6636         * configure: Regenerate.
6637         * config.in: Regenerate.
6638         * Makefile.in (LIBIPT): New.
6639         (CLIBS): Add $LIBIPT.
6640         * NEWS: document new configure options
6641
6642 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6643
6644         * compile/compile-object-load.c (compile_object_load): Replace debug
6645         message "lookup undefined ELF symbol" by 3 more specific messages.
6646
6647 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6648
6649         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6650         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6651         (rl78_gdbarch_init): Initialize rl78_psw_type.
6652
6653 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6654
6655         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6656         Update commentary.  Always refresh the registers when frame
6657         information has changed.
6658         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6659         Change return type to int.  Return 1 if frame information has
6660         changed, 0 otherwise.
6661         (tui_before_prompt): Update commentary.
6662         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6663         int.
6664
6665 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6666
6667         PR tui/13378
6668         * frame.c (select_frame): Remove reference to
6669         deprecated_selected_frame_level_changed_hook.
6670         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6671         declaration.
6672         * stack.c (deprecated_selected_frame_level_changed_hook):
6673         Likewise.
6674         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6675         Rename to ...
6676         (tui_refresh_frame_and_register_information): ... this.  Bail
6677         out if there is no stack.  Don't update register information
6678         unless registers_too_p is true.
6679         (tui_print_frame_info_listing_hook): Rename to ...
6680         (tui_dummy_print_frame_info_listing_hook): ... this.
6681         (tui_before_prompt): New function.
6682         (tui_normal_stop): New function.
6683         (tui_before_prompt_observer): New observer.
6684         (tui_normal_stop_observer): New observer.
6685         (tui_install_hooks): Set
6686         deprecated_print_frame_info_listing_hook to
6687         tui_dummy_print_frame_info_listing_hook.  Register
6688         tui_before_prompt_observer to call tui_before_prompt and
6689         tui_normal_stop_observer to call tui_normal_stop.  Remove
6690         reference to deprecated_selected_frame_level_changed_hook.
6691         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6692         and tui_normal_stop_observer.  Remove reference to
6693         deprecated_selected_frame_level_changed_hook.
6694
6695 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6696
6697         PR tui/13378
6698         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6699         return an int instead of void.  Return whether the locator
6700         window has changed.
6701         (tui_show_frame_info): If the locator info has not changed, then
6702         bail out early to avoid refreshing the windows.
6703
6704 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6705
6706         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6707         LOCATOR_WIN to tui_alloc_content.
6708
6709 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6710
6711         PR tdep/18605
6712         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6713         instructions.
6714
6715 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6716
6717         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6718         (rx_dwarf_reg_to_regnum): New function.
6719         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6720         unwinding.
6721
6722 2015-06-29  Pedro Alves  <palves@redhat.com>
6723
6724         PR threads/18127
6725         * infcall.c (run_inferior_call): On infcall success, if the thread
6726         was marked stopped before, reset it back to stopped.
6727         * infrun.c (resume): Don't suppress the set_running calls when
6728         doing an infcall.
6729         (normal_stop): Only discard the finish_thread_state cleanup if the
6730         infcall succeeded.
6731
6732 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6733
6734         * MAINTAINERS (Write After Approval): Update my email address.
6735
6736 2015-06-26  Keith Seitz  <keiths@redhat.com>
6737             Doug Evans  <dje@google.com>
6738
6739         PR 16253
6740         * block.c (block_lookup_symbol): For non-function blocks,
6741         continue to search for a symbol with an exact domain match
6742         Otherwise, return any previously found "best domain" symbol.
6743         (block_lookup_symbol_primary): Likewise.
6744
6745 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6746
6747         * NEWS: Mention the new option "history remove-duplicates".
6748         * top.c (history_remove_duplicates): New static variable.
6749         (show_history_remove_duplicates): New static function.
6750         (gdb_add_history): Conditionally remove duplicate history
6751         entries.
6752         (init_main): Add "history remove-duplicates" option.
6753
6754 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6755
6756         * tui/tui-win.c (focus_completer): New static function.
6757         (_initialize_tui_win): Set the completion function of the
6758         "focus" command to focus_completer.
6759
6760 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6761
6762         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6763         and language_asm..
6764         * symtab.c (find_function_start_sal): Likewise.
6765
6766 2015-06-25  Gary Benson  <gbenson@redhat.com>
6767
6768         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6769         it is the empty string after trailing slashes have been stripped.
6770
6771 2015-06-25  Gary Benson  <gbenson@redhat.com>
6772
6773         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6774         * infrun.c (follow_exec): Likewise.
6775         * remote.c (remote_filesystem_is_local): Likewise.
6776         * solib.c (solib_find_1): Likewise.
6777
6778 2015-06-24  Keith Seitz  <keiths@redhat.com>
6779
6780         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6781         return value from lrealpath.
6782
6783 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6784
6785         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6786
6787 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6788
6789         * remote-sim.c: Include gdb_bfd.h.
6790         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6791         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6792
6793 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6794
6795         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6796         set_gdbarch_get_siginfo_type.
6797         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6798         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6799         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6800         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6801         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6802         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6803         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6804         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6805         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6806         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6807
6808 2015-06-24  Gary Benson  <gbenson@redhat.com>
6809
6810         * common/buffer.c (stdint.h): Do not include.
6811         * common/print-utils.c (stdint.h): Likewise.
6812         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6813         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6814         * ft32-tdep.c (gdb_assert.h): Likewise.
6815         * guile/scm-utils.c (stdint.h): Likewise.
6816         * i386-linux-tdep.c (stdint.h): Likewise.
6817         * i386-tdep.c (stdint.h): Likewise.
6818         * nat/linux-btrace.c (stdint.h): Likewise.
6819         * nat/linux-btrace.h (stdint.h): Likewise.
6820         * nat/linux-ptrace.c (stdint.h): Likewise.
6821         * nat/mips-linux-watch.h (stdint.h): Likewise.
6822         * ppc-linux-nat.c (stdint.h): Likewise.
6823         * python/python-internal.h (stdint.h): Likewise.
6824         * stub-termcap.c (stdlib.h): Likewise.
6825         * target/target.h (stdint.h): Likewise.
6826         * xtensa-linux-nat.c (stdint.h): Likewise.
6827
6828 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6829
6830         * top.c (init_history): Look at errno after calling strtol to
6831         properly map large GDBHISTSIZE values to infinity.
6832
6833 2015-06-23  Doug Evans  <dje@google.com>
6834
6835         * inferior.h (struct inferior_suspend_state): Delete, unused.
6836         All references deleted.
6837
6838 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6839
6840         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6841         (microblaze_push_dummy_call): Likewise.
6842         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6843         and set_gdbarch_push_dummy_call.
6844
6845 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6846
6847         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6848         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6849         (amd64_linux_store_inferior_registers): Likewise.
6850         * arm-linux-nat.c (fetch_fpregister): Likewise.
6851         (fetch_fpregs, store_fpregister): Likewise.
6852         (store_fpregister, store_fpregs): Likewise.
6853         (fetch_register, fetch_regs): Likewise.
6854         (store_register, store_regs): Likewise.
6855         (fetch_vfp_regs, store_vfp_regs): Likewise.
6856         (arm_linux_read_description): Check have_ptrace_getregset is
6857         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
6858         or TRIBOOL_FALSE.
6859         * i386-linux-nat.c (fetch_xstateregs): Check
6860         have_ptrace_getregset is not TRIBOOL_TRUE.
6861         (store_xstateregs): Likewise.
6862         * linux-nat.c (have_ptrace_getregset): Change its type to
6863         enum tribool.
6864         * linux-nat.h (tribool): New enum.
6865         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6866         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6867
6868 2015-06-19  Doug Evans  <dje@google.com>
6869
6870         * NEWS: Mention Sun's version of stabs is no longer supported.
6871         * elfread.c (free_elfinfo): Delete.  All uses updated.
6872         (elfstab_offset_sections): Delete.  All uses updated.
6873         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
6874         * psympriv.h (partial_symtab) <section_offsets>: Delete.
6875         All uses updated.
6876         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6877         All callers updated.
6878
6879 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
6880
6881         * common/rsp-low.c (needs_escaping): New.
6882         (remote_escape_output): Add unit_size parameter. Refactor to
6883         support multi-byte addressable units.  Rename parameters.
6884         * common/rsp-low.h (remote_escape_output): Add unit_size
6885         parameter and rename others. Update doc.
6886         * remote.c (align_for_efficient_write): New.
6887         (remote_write_bytes_aux): Add unit_size parameter and use it.
6888         Rename some variables.  Update doc.
6889         (remote_xfer_partial): Get unit size and use it.
6890         (remote_read_bytes_1): Add unit_size parameter and use it.
6891         Rename some variables. Update doc.
6892         (remote_write_bytes): Same.
6893         (remote_xfer_live_readonly_partial): Same.
6894         (remote_read_bytes): Same.
6895         (remote_flash_write): Update call to remote_write_bytes_aux.
6896         (remote_write_qxfer): Update call to remote_escape_output.
6897         (remote_search_memory): Same.
6898         (remote_hostio_pwrite): Same.
6899
6900 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6901
6902         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6903         locations as inserted.
6904         Update and expand comment about permanent locations.
6905         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6906         Move comment to add_location_to_breakpoint.
6907         (update_global_location_list): Don't error out if a permanent
6908         breakpoint is not marked inserted.
6909         Don't error out if a non-permanent breakpoint location is inserted on
6910         top of a permanent breakpoint.
6911
6912 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
6913
6914         * breakpoint.c (make_breakpoint_permanent): Remove unused
6915         function.
6916         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6917
6918 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6919
6920         PR gdb/16999
6921         * NEWS: Mention new GDBHISTSIZE behavior.
6922         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6923         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
6924
6925 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6926
6927         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6928         * top.c (init_history): Read from GDBHISTSIZE instead of
6929         HISTSIZE.
6930         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6931
6932 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
6933
6934         * top.c (gdb_safe_append_history): Do not call
6935         history_truncate_file if the history is not stifled.
6936
6937 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6938
6939         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6940         * syscalls/s390x-linux.xml: Likewise.
6941
6942 2015-06-16  Michael Eager  <eager@eagercon.com>
6943
6944         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6945
6946 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
6947
6948         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6949         target_terminal_ours_for_output() before calling
6950         tui_show_frame_info(), and restore the original terminal
6951         settings afterwards.
6952
6953 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
6954
6955         * arm-linux-nat.c: Include nat/linux-ptrace.h.
6956
6957 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6958
6959         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6960         memory unit size.
6961         (mi_cmd_data_write_memory_bytes): Same.
6962
6963 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
6964
6965         * corefile.c (write_memory): Update doc.
6966         * gdbcore.h (write_memory): Same.
6967
6968 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6969
6970         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6971         (dump_mapping_p): Use it for parameter filterflags.
6972         (linux_find_memory_regions_full): Use it for variable filterflags.
6973
6974 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6975             Jan Kratochvil  <jan.kratochvil@redhat.com>
6976
6977         Merge multiple hex conversions.
6978         * monitor.c: Include rsp-low.h.
6979         (fromhex): Remove definition.
6980
6981 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
6982             Jan Kratochvil  <jan.kratochvil@redhat.com>
6983
6984         Move utility functions to common/.
6985         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6986         Move defs to common/common-utils.c.
6987         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6988         (skip_to_space_const): Move decls to common/common-utils.h.
6989         * common/common-defs.h: Move include of common-types.h before
6990         common-utils.h.
6991         * common/common-utils.c: Include host-defs.h and ctype.h.
6992         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6993         from utils.c.
6994         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6995         cli/cli-utils.c.
6996         * common/common-utils.h (strtoulst): Move decl from utils.h.
6997         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6998         Move from cli/cli-utils.h.
6999         * common/host-defs.h: Include limits.h.
7000         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7001         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7002         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7003         common/common-utils.h.
7004         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7005         (strtoulst): Move to common/common-utils.c.
7006         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7007
7008 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7009
7010         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7011
7012 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7013
7014         * build-id.c: Don't include elf-bfd.h.
7015         (build_id_bfd_get): Use bfd_build_id.
7016         (build_id_verify): Ditto.
7017         * build-id.h: Ditto.
7018         (find_separate_debug_file_by_buildid): Ditto.
7019         * python/py-objfile.c: Don't include elf-bfd.h.
7020         (objfpy_get_build_id) Use bfd_build_id.
7021         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7022         * coffread.c: Include build-id.h.
7023         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7024
7025 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7026
7027         * windows-nat.c (do_windows_fetch_inferior_registers)
7028         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7029         conditional with __CYGWIN__.
7030
7031 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7032
7033         * completer.c: Add arch-utils.h include.
7034         (enum reg_completer_targets): New enum.
7035         (reg_or_group_completer_1): New function containing old
7036         reg_or_group_completer, add and use new parameter to control what
7037         is completed on.  Use get_current_arch rather than architecture of
7038         currently selected frame.
7039         (reg_or_group_completer): Call new reg_or_group_completer_1.
7040         (reggroup_completer): Call new reg_or_group_completer_1.
7041         * completer.h (reggroup_completer): Add declaration.
7042         * tui/tui-regs.c: Add 'completer.h' include.
7043         (tui_reg_next_command): Renamed to...
7044         (tui_reg_next): ...this.  Adjust parameters and return rather than
7045         display new group.
7046         (tui_reg_prev_command): Renamed to...
7047         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7048         display new group.
7049         (tui_reg_float_command): Delete.
7050         (tui_reg_general_command): Delete.
7051         (tui_reg_system_command): Delete.
7052         (tui_reg_command): Rewrite to perform switching of register group.
7053         Add header comment.
7054         (tuireglist): Remove.
7055         (tui_reggroup_completer): New function.
7056         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7057         creation of 'tui reg' command.
7058         * NEWS: Add comment about 'tui reg' changes.
7059
7060 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7061
7062         * target.c (target_read): Consider addressable unit size when
7063         reading from a memory object.
7064         (read_memory_robust): Same.
7065         (read_whatever_is_readable): Same.
7066         (target_write_with_progress): Consider addressable unit size
7067         when writing to a memory object.
7068         * target.h (target_read): Update documentation.
7069         (target_write): Add documentation.
7070
7071 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7072
7073         * arch-utils.h (default_addressable_memory_unit_size): New.
7074         * arch-utils.c (default_addressable_memory_unit_size): New.
7075         * gdbarch.sh (addressable_memory_unit_size): New.
7076         * gdbarch.h: Re-generate.
7077         * gdbarch.c: Re-generate.
7078
7079 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7080
7081         * target.c (target_read): Rename variables and use
7082         TARGET_XFER_E_IO.
7083         (target_read_with_progress): Same.
7084         (read_memory_robust): Constify parameters and rename
7085         variables.
7086         (read_whatever_is_readable): Constify parameters,
7087         rename variables, adjust formatting.
7088         * target.h (read_memory_robust): Constify parameters.
7089
7090 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7091
7092         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7093         synthetic (non-AltiVec) vector types.
7094         (ppc64_sysv_abi_return_value): Likewise.
7095
7096 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7097
7098         PR breakpoints/16465
7099         * breakpoint.c (create_breakpoint): Save extra_string for
7100         pending breakpoints.
7101
7102 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7103
7104         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7105         and bt_mask to CORE_ADDR.
7106
7107 2015-06-11  Gary Benson <gbenson@redhat.com>
7108
7109         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7110         (mnsh_recv_message): Likewise.
7111
7112 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7113
7114         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7115         long long int and plongest instead of %ll.
7116
7117 2015-06-11  Gary Benson <gbenson@redhat.com>
7118
7119         * nat/linux-namespaces.c (gdb_wait.h): New include.
7120         (sys/wait.h): Do not include.
7121
7122 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7123
7124         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7125         end_sequence is true.
7126
7127 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7128
7129         Code cleanup.
7130         * solib-target.c (library_list_start_list): Use explicit NULL
7131         comparison.
7132
7133 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7134
7135         * solib-target.c (library_list_start_list): Do not dereference
7136         variable version in its initialization.  Make the VERSION check handle
7137         NULL.
7138         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7139
7140 2015-06-10  Gary Benson <gbenson@redhat.com>
7141
7142         * NEWS: Announce support for direct access of executable and
7143         shared library files when attaching to inferiors in containers
7144         on GNU/Linux systems.
7145
7146 2015-06-10  Gary Benson <gbenson@redhat.com>
7147
7148         * remote.c (struct remote_state) <fs_pid>: New field.
7149         (new_remote_state): Initialize the above.
7150         (PACKET_vFile_setfs): New enum value.
7151         (remote_hostio_set_filesystem): New function.
7152         (remote_hostio_open): Call the above.
7153         (remote_hostio_unlink): Likewise.
7154         (remote_hostio_readlink): Likewise.
7155         (_initialize_remote): Register new "set/show remote
7156         hostio-setfs-packet" command.
7157         * NEWS: Announce new vFile:setfs packet.
7158
7159 2015-06-10  Gary Benson <gbenson@redhat.com>
7160
7161         * linux-nat.c (nat/linux-namespaces.h): New include.
7162         (fileio.h): Likewise.
7163         (linux_nat_filesystem_is_local): New function.
7164         (linux_nat_fileio_pid_of): Likewise.
7165         (linux_nat_fileio_open): Likewise.
7166         (linux_nat_fileio_readlink): Likewise.
7167         (linux_nat_fileio_unlink): Likewise.
7168         (linux_nat_add_target): Initialize to_filesystem_is_local,
7169         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7170         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7171         commands.
7172         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7173
7174 2015-06-10  Gary Benson <gbenson@redhat.com>
7175
7176         * target.h (struct inferior): New forward declaration.
7177         (struct target_ops) <to_filesystem_is_local>: Update comment.
7178         (struct target_ops) <to_fileio_open>: New argument inf.
7179         Update comment.  All implementations updated.
7180         (struct target_ops) <to_fileio_unlink>: Likewise.
7181         (struct target_ops) <to_fileio_readlink>: Likewise.
7182         (target_filesystem_is_local): Update comment.
7183         (target_fileio_open): New argument inf.  Update comment.
7184         (target_fileio_unlink): Likewise.
7185         (target_fileio_readlink): Likewise.
7186         (target_fileio_read_alloc): Likewise.
7187         (target_fileio_read_stralloc): Likewise.
7188         * target.c (target_fileio_open): New argument inf.
7189         Pass inf to implementation.  Update debug printing.
7190         (target_fileio_unlink): Likewise.
7191         (target_fileio_readlink): Likewise.
7192         (target_fileio_read_alloc_1): New argument inf. Pass inf
7193         to target_fileio_open.
7194         (target_fileio_read_alloc): New argument inf. Pass inf to
7195         target_fileio_read_alloc_1.
7196         (target_fileio_read_stralloc): Likewise.
7197         * gdb_bfd.c (inferior.h): New include.
7198         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7199         argument with new argument "inferior".  Pass inferior to
7200         target_fileio_open.
7201         (gdb_bfd_open): Supply inferior argument to
7202         gdb_bfd_iovec_fileio_open.
7203         * linux-tdep.c (linux_info_proc): Supply inf argument to
7204         relevant target_fileio calls.
7205         (linux_find_memory_regions_full): Likewise.
7206         (linux_fill_prpsinfo): Likewise.
7207         * remote.c (remote_filesystem_is_local): Supply inf
7208         argument to remote_hostio_open.
7209         (remote_file_put): Likewise.
7210         (remote_file_get): Likewise.
7211         (remote_file_delete): Supply inf argument to
7212         remote_hostio_unlink.
7213
7214 2015-06-10  Gary Benson <gbenson@redhat.com>
7215
7216         * inf-child.c (inf_child_fileio_open): Replace comment.
7217         (inf_child_fileio_pwrite): Likewise.
7218         (inf_child_fileio_pread): Likewise.
7219         (inf_child_fileio_fstat): Insert blank line before comment.
7220         (inf_child_fileio_close): Replace comment.
7221         (inf_child_fileio_unlink): Likewise.
7222         (inf_child_fileio_readlink): Likewise.
7223         * remote.c (remote_hostio_open): Likewise.
7224         (remote_hostio_pread): Likewise.
7225         (remote_hostio_pwrite): Likewise.
7226         (remote_hostio_close): Likewise.
7227         (remote_hostio_unlink): Likewise.
7228         (remote_hostio_readlink): Likewise.
7229         (remote_hostio_fstat): Likewise.
7230         (remote_filesystem_is_local): Likewise.
7231         * target.c (target_fileio_open): Likewise.
7232         (target_fileio_pwrite): Likewise.
7233         (target_fileio_pread): Likewise.
7234         (target_fileio_fstat): Insert blank line before comment.
7235         (target_fileio_close): Replace comment.
7236         (target_fileio_unlink): Likewise.
7237         (target_fileio_readlink): Likewise.
7238         (target_fileio_read_alloc): Likewise.
7239         (target_fileio_read_stralloc): Likewise.
7240
7241 2015-06-10  Gary Benson <gbenson@redhat.com>
7242
7243         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7244         (check_pid_namespace_match): Use linux_ns_same rather than
7245         linux_proc_pid_get_ns to spot PID namespace mismatches.
7246         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7247         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7248
7249 2015-06-10  Gary Benson <gbenson@redhat.com>
7250
7251         * configure.ac (AC_CHECK_FUNCS): Add setns.
7252         * config.in: Regenerate.
7253         * configure: Likewise.
7254         * nat/linux-namespaces.h: New file.
7255         * nat/linux-namespaces.c: Likewise.
7256         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7257         (linux-namespaces.o): New rule.
7258         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7259         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7260         * config/arm/linux.mh (NATDEPFILES): Likewise.
7261         * config/i386/linux.mh (NATDEPFILES): Likewise.
7262         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7263         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7264         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7265         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7266         * config/mips/linux.mh (NATDEPFILES): Likewise.
7267         * config/pa/linux.mh (NATDEPFILES): Likewise.
7268         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7269         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7270         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7271         * config/s390/linux.mh (NATDEPFILES): Likewise.
7272         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7273         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7274         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7275         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7276
7277 2015-06-10  Gary Benson <gbenson@redhat.com>
7278
7279         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7280         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7281         (make_cleanup_close): Likewise.
7282         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7283         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7284         (make_cleanup_close): Likewise.
7285
7286 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7287
7288         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7289         from SuspendThread().
7290
7291 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7292
7293         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7294         from OutputDebugString.
7295
7296 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7297                         Mircea Gherzan  <mircea.gherzan@intel.com>
7298
7299         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7300         MPX_BT_MASK_32): New macros.
7301         (i386_mpx_set_bounds): New function that implements
7302         the command "set-mpx-bound".
7303         (i386_mpx_enabled): Helper function to test MPX availability.
7304         (i386_mpx_bd_base): Helper function to calculate the base directory
7305         address.
7306         (i386_mpx_get_bt_entry): Helper function to access a bound
7307         table entry.
7308         (i386_mpx_print_bounds): Effectively display bound information.
7309         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7310         "show mpx".
7311         (_initialize_i386_tdep):
7312         Add "bound" to the commands "show mpx" and "set mpx" commands.
7313         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7314         and "show mpx" commands.
7315         * NEWS: List new commands for MPX support.
7316
7317 2015-06-09  Gary Benson <gbenson@redhat.com>
7318
7319         * common/fileio.h (fileio_to_host_mode): New declaration.
7320         * common/fileio.c (fileio_to_host_mode): New Function.
7321         * inf-child.c (inf_child_fileio_open): Process mode argument
7322         with fileio_to_host_mode.
7323
7324 2015-06-09  Gary Benson <gbenson@redhat.com>
7325
7326         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7327         conditional.
7328
7329 2015-06-05  Gary Benson <gbenson@redhat.com>
7330
7331         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7332         * remote.c (remote_filesystem_is_local): ...here.
7333
7334 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7335
7336         * gdbarch.c: Regenerate it.
7337
7338 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7339
7340         * arch-utils.c (default_infcall_munmap): New.
7341         * arch-utils.h (default_infcall_munmap): New declaration.
7342         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7343         (munmap_list_free, munmap_listp_free_cleanup): New.
7344         (struct setup_sections_data): Add field munmap_list_headp.
7345         (setup_sections): Call munmap_list_add.
7346         (compile_object_load): New variable munmap_list_head, initialize
7347         setup_sections_data.munmap_list_headp, return munmap_list_head.
7348         * compile/compile-object-load.h (struct munmap_list): New declaration.
7349         (struct compile_module): Add field munmap_list_head.
7350         (munmap_list_free): New declaration.
7351         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7352         munmap_list_head.
7353         (do_module_cleanup): Call munmap_list_free.
7354         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7355         * gdbarch.c: Regenerate.
7356         * gdbarch.h: Regenerate.
7357         * gdbarch.sh (infcall_munmap): New.
7358         * linux-tdep.c (linux_infcall_munmap): New.
7359         (linux_init_abi): Install it.
7360
7361 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7362
7363         PR gdb/15564
7364         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7365
7366 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7367
7368         * i386-linux-nat.c: Include linux-nat.h.
7369
7370 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7371             Jan Kratochvil  <jan.kratochvil@redhat.com>
7372
7373         PR symtab/18392
7374         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7375         assertion.
7376         * dwarf2loc.c (chain_candidate): Likewise.
7377
7378 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7379
7380         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7381         (store_vfp_regs): Use PTRACE_SETREGSET.
7382
7383 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7384
7385         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7386         (fetch_fpregs): Likewise.
7387         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7388         (store_fpregs): Likewise.
7389
7390 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7391
7392         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7393         (fetch_regs): Likewise.
7394         (store_regs): Use PTRACE_SETREGSET.
7395         (store_register): Likewise.
7396
7397 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7398
7399         * arm-linux-nat.c (arm_linux_read_description): Check whether
7400         kernel supports PTRACE_GETREGSET.
7401
7402 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7403
7404         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7405         * linux-nat.c: ... here.
7406         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7407         to ...
7408         * linux-nat.h: ... here.
7409
7410 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7411
7412         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7413         * i386-linux-nat.c: Likewise.
7414         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7415         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7416         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7417         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7418         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7419
7420 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7421
7422         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7423         compatible to what read_child and write_child return.  This
7424         unbreaks that DJGPP build of GDB which was broken since v7.7.
7425
7426 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7427
7428         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7429
7430 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7431
7432         PR gdb/18464
7433         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7434         rather than internal_error for an unrecognized value.
7435
7436 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7437
7438         * xtensa-tdep.c (xtensa_pseudo_register_read)
7439         (xtensa_pseudo_register_write): Don't alias last pseudo register
7440         to a1.
7441
7442 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7443
7444         * infrun.c (follow_fork_inferior): Ensure the use of
7445         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7446         messages.
7447
7448 2015-05-28  Doug Evans  <dje@google.com>
7449
7450         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7451
7452 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7453
7454         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7455         (arm_linux_fetch_inferior_registers): Use
7456         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7457         (arm_linux_store_inferior_registers): Likewise.
7458         (arm_linux_read_description): Don't set
7459         arm_linux_has_wmmx_registers.
7460         * arm-tdep.c (arm_gdbarch_init): Set
7461         tdep->have_wmmx_registers according target descriptions.
7462         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7463         field.
7464
7465 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7466
7467         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7468         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7469         instead of arm_linux_vfp_register_count.
7470         (store_vfp_regs): Likewise.
7471         (arm_linux_fetch_inferior_registers): Likewise.
7472         (arm_linux_store_inferior_registers): Likewise.
7473         (arm_linux_read_description): Don't set
7474         arm_linux_vfp_register_count.
7475         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7476         Adjust.
7477         * arm-tdep.c (arm_gdbarch_init): Add assert on
7478         vfp_register_count.
7479         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7480         field to vfp_register_count.  All users updated.
7481
7482 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7483
7484         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7485         ELFOSABI_GNU binaries.
7486
7487 2015-05-27  Doug Evans  <dje@google.com>
7488
7489         * dwarf2read.c (lnp_state_machine): New typedef.
7490         (lnp_reader_state): New typedef.
7491         (dwarf_record_line_1): Renamed from dwarf_record_line.
7492         All callers updated.
7493         (dwarf_record_line): New function.
7494         (init_lnp_state_machine): New function.
7495         (check_line_address): Replace p_record_line parameter with state.
7496         All callers updated.
7497         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7498         Update to record state in lnp_state_machine.
7499
7500 2015-05-27  Doug Evans  <dje@google.com>
7501
7502         * dwarf2read.c (record_line_ftype): New typedef.
7503         (check_line_address): New function.
7504         (dwarf_decode_lines_1): Call it.
7505
7506 2015-05-27  Doug Evans  <dje@google.com>
7507
7508         * NEWS: Mention "set debug dwarf-line".
7509         * dwarf2read.c (dwarf_line_debug): New static global.
7510         (add_include_dir): Add debug dwarf-line support.
7511         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7512         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7513
7514 2015-05-27  Doug Evans  <dje@google.com>
7515
7516         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7517         All callers updated.
7518         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7519         * cp-support.h (cp_lookup_nested_symbol): Update.
7520
7521 2015-05-27  Doug Evans  <dje@google.com>
7522
7523         PR symtab/18258
7524         * block.c (block_find_symbol): New function.
7525         (block_find_non_opaque_type): Ditto.
7526         (block_find_non_opaque_type_preferred): Ditto.
7527         * block.h (block_symbol_matcher_ftype): New typedef.
7528         (block_find_symbol): Declare.
7529         (block_find_non_opaque_type): Ditto.
7530         (block_find_non_opaque_type_preferred): Ditto.
7531         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7532         * psymtab.c (psym_lookup_symbol): Ditto.
7533         * symtab.c (basic_lookup_transparent_type_1): New function.
7534         (basic_lookup_transparent_type): Call it.
7535
7536 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7537
7538         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7539         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7540
7541 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7542
7543         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7544         before operator &&.
7545         (aarch64_record_load_store): Likewise.
7546
7547 2015-05-26  Doug Evans  <dje@google.com>
7548
7549         PR c++/18141, c++/18417.
7550         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7551         a typedef.
7552
7553 2015-05-26  Doug Evans  <dje@google.com>
7554
7555         * NEWS: Add entries for command renamings.
7556         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7557         All uses updated.
7558         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7559         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7560         All uses updated.
7561         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7562         All callers updated.  Fix spelling of DWARF in help text.
7563         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7564         All uses updated.
7565         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7566         All uses updated.
7567         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7568         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7569         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7570         All uses updated.
7571         (show_dwarf_always_disassemble): Renamed from
7572         show_dwarf2_always_disassemble.  All callers updated.
7573         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7574         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7575         "set/show dwarf max-cache-age".  Rename
7576         "set/show dwarf2 always-disassemble" to
7577         "set/show dwarf always-disassemble".  Rename
7578         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7579         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7580
7581 2015-05-26  Doug Evans  <dje@google.com>
7582
7583         PR python/18438
7584         * python/py-lazy-string.c (stpy_convert_to_value): Use
7585         gdbpy_gdb_memory_error not PyExc_MemoryError.
7586         (gdbpy_create_lazy_string_object): Ditto.
7587
7588 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7589
7590         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7591
7592 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7593
7594         * tui/tui-regs.c (tui_reg_prev_command): New function.
7595         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7596         * reggroups.c (reggroup_prev): New function.
7597         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7598
7599 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7600             Yao Qi  <yao.qi@linaro.org>
7601
7602         * aarch64-linux-tdep.c: Include linux-record.h and
7603         record-full.h.
7604         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7605         (aarch64_syscall): New enum.
7606         (aarch64_canonicalize_syscall): New function.
7607         (aarch64_all_but_pc_registers_record): New function.
7608         (aarch64_linux_syscall_record): New function.
7609         (aarch64_linux_init_abi): Install AArch64 process record
7610         handler.  Update to handle syscall recording.
7611         * aarch64-tdep.c: Include record.h and record-full.h.
7612         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7613         (struct aarch64_mem_r): Define.
7614         (aarch64_record_result): New enum.
7615         (struct insn_decode_record): Define.
7616         (insn_decode_record): New typedef.
7617         (aarch64_record_data_proc_reg): New function.
7618         (aarch64_record_data_proc_imm): New function.
7619         (aarch64_record_branch_except_sys): New function.
7620         (aarch64_record_load_store): New function.
7621         (aarch64_record_data_proc_simd_fp): New function.
7622         (aarch64_record_asimd_load_store): New function.
7623         (aarch64_record_decode_insn_handler): New function.
7624         (deallocate_reg_mem): New function.
7625         (aarch64_process_record): New function.
7626         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7627         New field.
7628         (aarch64_process_record): New extern declaration.
7629         * configure.tgt: Add linux-record.o to gdb_target_obs.
7630         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7631
7632 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7633
7634         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7635         targets.
7636
7637 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7638
7639         * amd64-tdep.c: Replace in_function_epilogue_p with
7640         stack_frame_destroyed_p throughout.
7641         * arch-utils.c: Ditto.
7642         * arch-utils.h: Ditto.
7643         * arm-tdep.c: Ditto.
7644         * breakpoint.c: Ditto.
7645         * gdbarch.sh: Ditto.
7646         * hppa-tdep.c: Ditto.
7647         * i386-tdep.c: Ditto.
7648         * mips-tdep.c: Ditto.
7649         * nios2-tdep.c: Ditto.
7650         * rs6000-tdep.c: Ditto.
7651         * s390-linux-tdep.c: Ditto.
7652         * score-tdep.c: Ditto.
7653         * sh-tdep.c: Ditto.
7654         * sparc-tdep.c: Ditto.
7655         * sparc-tdep.h: Ditto.
7656         * sparc64-tdep.c: Ditto.
7657         * spu-tdep.c: Ditto.
7658         * tic6x-tdep.c: Ditto.
7659         * tilegx-tdep.c: Ditto.
7660         * xstormy16-tdep.c: Ditto.
7661         * gdbarch.c, gdbarch.h: Re-generated.
7662
7663 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7664
7665         * NEWS: Mention 'tui enable' and 'tui disable'.
7666         * tui/tui.c (tui_enable_command): New function.
7667         (tui_disable_command): New function.
7668         (_initialize_tui): New function.
7669
7670 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7671
7672         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7673
7674 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7675
7676         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7677         buf_ptr is freed.
7678
7679 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7680
7681         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7682         into ...
7683         (tui_set_layout_for_display_command): ...here, before calling
7684         tui_set_layout.  Only set the layout if gdb has not already
7685         entered the TUI_FAILURE state.
7686
7687 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7688
7689         * tui/tui-layout.c (layout_completer): New function.
7690         (_initialize_tui_layout): Set completer on layout command.
7691
7692 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7693
7694         * tui/tui-layout.c (tui_set_layout): Remove
7695         tui_register_display_type parameter.  Remove all checking of this
7696         parameter, and reindent function.  Update header comment.
7697         (tui_set_layout_for_display_command): Rename to...
7698         (tui_set_layout_by_name): ...this, and don't check for different
7699         register class types, don't pass a tui_register_display_type to
7700         tui_set_layout.  Update header comment.
7701         (layout_names): Remove register set specific names.
7702         * tui/tui-layout.h (tui_set_layout): Remove
7703         tui_register_display_type parameter.
7704         * tui/tui.c (tui_rl_change_windows): Don't pass a
7705         tui_register_display_type to tui_set_layout.
7706         (tui_rl_delete_other_windows): Likewise.
7707         (tui_enable): Likewise.
7708         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7709         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7710         (TUI_GENERAL_REGS_NAME): Remove.
7711         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7712         (TUI_SPECIAL_REGS_NAME): Remove.
7713         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7714         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7715         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7716         (enum tui_register_display_type): Remove.
7717         (struct tui_layout_def): Remove regs_display_type and
7718         float_regs_display_type fields.
7719         (struct tui_data_info): Remove regs_display_type field.
7720         (tui_layout_command): Use new name for
7721         tui_set_layout_for_display_command.
7722         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7723         (tui_clear_win_detail): Don't initialise removed fields of
7724         win_info.
7725         * tui/tui-regs.c (tui_show_registers): Use new name for
7726         tui_set_layout_for_display_command.
7727         * tui/tui.h (tui_set_layout_for_display_command): Rename
7728         declaration to...
7729         (tui_set_layout_by_name): ...this.
7730         * printcmd.c (display_command): Remove tui related layout call,
7731         and reindent.
7732
7733 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7734
7735         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7736         (handle_inferior_event): New function.
7737
7738 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7739
7740         * ada-lang.c (to_fixed_array_type): Rename local variable
7741         typename into type_name.
7742
7743 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7744
7745         Fix ASAN crash for gdb.compile/compile.exp.
7746         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7747
7748 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7749
7750         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7751         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7752         * compile/compile-object-load.c (setup_sections, compile_object_load):
7753         Likewise.
7754         * compile/compile.c (compile_to_object): Likewise.
7755
7756 2015-05-16  Doug Evans  <xdje42@gmail.com>
7757
7758         * NEWS: Mention support for unbuffered Guile memory ports.
7759         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7760         (ioscm_lseek_address): Improve overflow calculation.
7761         (gdbscm_memory_port_fill_input): Add assert.
7762         (gdbscm_memory_port_write): Handle unbuffered ports.
7763         Handle large writes identical to Guile's fport_write.
7764         (gdbscm_memory_port_seek): Fix seeking past end check.
7765         (gdbscm_memory_port_close): Handle closing unbuffered port.
7766         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7767         (ioscm_init_memory_port): Handle unbuffered ports.
7768         (ioscm_reinit_memory_port): Ditto.
7769         (ioscm_init_memory_port): Update size calculation.
7770         (gdbscm_open_memory): Support zero sized ports.
7771
7772 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7773
7774         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7775         variable compiler warnings.
7776
7777 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7778
7779         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7780
7781 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7782             Phil Muldoon  <pmuldoon@redhat.com>
7783
7784         * NEWS (Changes since GDB 7.9): Add compile print.
7785         * compile/compile-c-support.c (add_code_header, add_code_footer)
7786         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7787         COMPILE_I_PRINT_VALUE_SCOPE.
7788         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7789         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7790         New.
7791         * compile/compile-object-load.c: Include block.h.
7792         (get_out_value_type): New function.
7793         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7794         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7795         OUT_VALUE_TYPE.
7796         * compile/compile-object-load.h (struct compile_module): Add fields
7797         out_value_addr and out_value_type.
7798         * compile/compile-object-run.c: Include valprint.h and compile.h.
7799         (struct do_module_cleanup): Add fields out_value_addr and
7800         out_value_type.
7801         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7802         COMPILE_I_PRINT_VALUE_SCOPE.
7803         (compile_object_run): Propagate out_value_addr and out_value_type.
7804         Pass OUT_VALUE_ADDR.
7805         * compile/compile.c: Include valprint.h.
7806         (compile_print_value, compile_print_command): New functions.
7807         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7808         (_initialize_compile): Update compile code help text.  Install
7809         compile_print_command.
7810         * compile/compile.h (compile_print_value): New prototype.
7811         * defs.h (enum compile_i_scope_types): Add
7812         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7813
7814 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7815
7816         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7817         Rely on its parameter count.
7818         (compile_object_load): Replace lookup_minimal_symbol_text by
7819         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7820         return value.
7821         * compile/compile-object-load.h (struct compile_module): Replace
7822         func_addr by func_sym.
7823         * compile/compile-object-run.c: Include block.h.
7824         (compile_object_run): Reset module variable after it is freed.  Use
7825         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7826
7827 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7828
7829         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7830         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7831         (c_compute_program): Call generate_register_struct after typedefs.
7832         * compile/compile-loc2c.c (push, pushf_register_address)
7833         (pushf_register): Cast to GCC_UINTPTR.
7834         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7835         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7836         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7837         * compile/compile.c (_initialize_compile): Enable warnings for
7838         COMPILE_ARGS.
7839
7840 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7841
7842         * cli/cli-script.c (execute_control_command): Update
7843         eval_compile_command caller.
7844         * compile/compile-object-load.c (compile_object_load): Add parameters
7845         scope and scope_data.  Set them.
7846         * compile/compile-object-load.h (struct compile_module): Add fields
7847         scope and scope_data.
7848         (compile_object_load): Add parameters scope and scope_data.
7849         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7850         scope and scope_data.
7851         (compile_object_run): Propagate the fields scope and scope_data.
7852         * compile/compile.c (compile_file_command, compile_code_command):
7853         Update eval_compile_command callers.
7854         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
7855         * compile/compile.h (eval_compile_command): Add parameter scope_data.
7856         * defs.h (struct command_line): Add field scope_data.
7857
7858 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7859
7860         * printcmd.c (struct format_data): Move it to valprint.h.
7861         (print_command_parse_format, print_value): New functions from ...
7862         (print_command_1): ... here.  Call them.
7863         * valprint.h (struct format_data): Move it here from printcmd.c.
7864         (print_command_parse_format, print_value): New declarations.
7865
7866 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7867
7868         * compile/compile-object-load.c (compile_object_load): Add
7869         COMPILE_DEBUG message.
7870
7871 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7872
7873         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7874         index to get element instead of enum value.
7875         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7876         of index to compute length, but enum values to compute bounds.
7877         (ada_array_length): Use enum position of index instead of enum value.
7878         (pos_atr): Move position computation to...
7879         (ada_evaluate_subexp): Use enum values to compute bounds.
7880         * gdbtypes.c (discrete_position): ...this new function.
7881         * gdbtypes.h (discrete_position): New function declaration.
7882         * valprint.c (val_print_array_elements): Call discrete_position
7883         to handle array indexed by non-contiguous enumeration types.
7884
7885 2015-05-15  Jerome Guitton  <guitton@adacore.com>
7886
7887         * ada-lang.c (find_parallel_type_by_descriptive_type):
7888         Go through typedefs during lookup.
7889         (to_fixed_array_type): Add support for non-bit packed arrays
7890         as variable-length fields.
7891
7892 2015-05-15  Pedro Alves  <palves@redhat.com>
7893             Simon Marchi  <simon.marchi@ericsson.com>
7894
7895         * event-loop.c (gdb_notifier) <next_file_handler,
7896         next_poll_fds_index>: New fields.
7897         (get_next_file_handler_to_handle_and_advance): New function.
7898         (delete_file_handler): If deleting the next file handler to
7899         handle, advance to the next file handler.
7900         (gdb_wait_for_event): Bail early if no event fired.  Poll file
7901         handlers in round-robin fashion.
7902
7903 2015-05-15  Pedro Alves  <palves@redhat.com>
7904
7905         * linux-tdep.c (linux_find_memory_regions_full): Rename local
7906         'private' to 'priv'.
7907
7908 2015-05-15  Pedro Alves  <palves@redhat.com>
7909
7910         * nat/linux-nat.h: Include "target/waitstatus.h".
7911
7912 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
7913
7914         * python/py-unwind.c (struct reg_info): Move out of ...
7915         (struct cached_frame_info): ... this scope.
7916         (pending_frame_object_type, unwind_info_object_type): Make extern.
7917
7918 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
7919
7920         * ada-lang.c (ada_value_primitive_packed_val): Make sure
7921         accumSize is never negative.
7922
7923 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
7924
7925         * tui/tui-command.c: Remove include of <ctype.h>.
7926         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7927
7928 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
7929
7930         * dwarf2read.c (die_needs_namespace): Return 1 for
7931         DW_TAG_inlined_subroutine.
7932
7933 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7934
7935         * regcache.c (regcache_cpy_no_passthrough): New declaration.
7936         (regcache_cpy_no_passthrough): Make it static, add function comment.
7937         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7938         (regcache_cpy_no_passthrough): Remove declaration.
7939
7940 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7941
7942         * gdbthread.h (struct thread_control_state): Update comment for
7943         proceed_to_finish.
7944         * infcall.c (run_inferior_call): Update comment about
7945         proceed_to_finish.
7946         * infcmd.c (get_return_value): Update comment about stop_registers.
7947         (finish_forward): Update comment about proceed_to_finish.
7948         * infrun.c (stop_registers): Remove.
7949         (clear_proceed_status, normal_stop): Remove stop_registers handling.
7950         * infrun.h (stop_registers): Remove.
7951
7952 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7953
7954         * infcall.c (struct dummy_frame_context_saver)
7955         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7956         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7957         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7958         New.
7959         (call_function_by_hand_dummy): Move discard_cleanups of
7960         inf_status_cleanup before dummy_frame_push.  Call
7961         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7962         Use dummy_frame_context_saver_get_regs instead of stop_registers.
7963         * infcall.h (struct dummy_frame_context_saver)
7964         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7965         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7966         New declarations.
7967         * infcmd.c: Include infcall.h.
7968         (get_return_value): Add parameter ctx_saver, use it instead of
7969         stop_registers.
7970         (print_return_value): Add parameter ctx_saver, pass it.
7971         (struct finish_command_continuation_args): Add field ctx_saver.
7972         (finish_command_continuation): Update print_return_value caller.
7973         (finish_command_continuation_free_arg): Free also ctx_saver.
7974         (finish_forward): Call dummy_frame_context_saver_setup.
7975         * inferior.h (struct dummy_frame_context_saver): New declaration.
7976         (get_return_value): Add parameter ctx_saver.
7977         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7978         get_return_value caller.
7979
7980 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7981
7982         * dummy-frame.c (struct dummy_frame_dtor_list): New.
7983         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7984         (remove_dummy_frame): Process dtor_list.
7985         (pop_dummy_frame): Process dtor_list.
7986         (register_dummy_frame_dtor): Maintain dtor_list.
7987         (find_dummy_frame_dtor): Handle dtor_list.
7988         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7989         Update comments.
7990
7991 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7992
7993         * compile/compile-object-run.c (do_module_cleanup): Add parameter
7994         registers_valid.
7995         (compile_object_run): Update do_module_cleanup caller.
7996         * dummy-frame.c: Include infcall.h.
7997         (struct dummy_frame): Update dtor comment.
7998         (remove_dummy_frame): Call dtor.
7999         (pop_dummy_frame): Update dtor caller.
8000         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8001         registers_valid.
8002
8003 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8004
8005         GDB 7.9.1 released.
8006
8007 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8008
8009         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8010         Xmethods now being able to specify a result type to that new
8011         sectioin.
8012
8013 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8014
8015         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8016         first before resizing the window.
8017         * tui/tui.c (tui_enable): Likewise.
8018
8019 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8020
8021         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8022         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8023         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8024         dummy_dtor parameter.
8025         * infcall.h: Include dummy-frame.h.
8026         (call_function_by_hand_dummy_dtor_ftype): Remove.
8027         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8028         parameter.
8029
8030 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8031
8032         PR gdb/17820
8033         * top.c (history_size_setshow_var): Change type to signed.
8034         Initialize to -2.  Update documentation.
8035         (set_readline_history_size): Define.
8036         (set_history_size_command): Use it.  Remove logic for handling
8037         out-of-range sizes.
8038         (init_history): Use set_readline_history_size().  Test for a
8039         value of -2 instead of 0 when determining whether to set a
8040         default history size.
8041         (init_main): Decode the argument of the "size" command as a
8042         zuinteger_unlimited.
8043
8044 2015-05-12  Doug Evans  <dje@google.com>
8045
8046         * dwarf2read.c (struct file_entry): Tweak comments.
8047         (get_debug_line_section): Tweak comments.
8048
8049 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8050
8051         * NEWS: Announce fork support in the RSP and support
8052         for fork debugging in extended mode.
8053
8054 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8055
8056         * remote.c (remote_insert_fork_catchpoint): New function.
8057         (remote_remove_fork_catchpoint): New function.
8058         (remote_insert_vfork_catchpoint): New function.
8059         (remote_remove_vfork_catchpoint): New function.
8060         (pending_fork_parent_callback): New function.
8061         (remove_new_fork_child): New function.
8062         (remote_update_thread_list): Call remote_notif_get_pending_events
8063         and remove_new_fork_child.
8064         (extended_remote_kill): Kill fork child when killing the
8065         parent before follow_fork completes.
8066         (init_extended_remote_ops): Initialize target vector with
8067         new fork catchpoint functions.
8068
8069 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8070
8071         * remote.c (remove_vfork_event_p): New function.
8072         (remote_follow_fork): Add vfork event type to event checking.
8073         (remote_parse_stop_reply): New stop reasons "vfork" and
8074         "vforkdone" for RSP 'T' Stop Reply Packet.
8075
8076 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8077
8078         * linux-nat.c (linux_nat_ptrace_options): New function.
8079         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8080         Call linux_nat_ptrace_options and use different argument to
8081         linux_enable_event_reporting.
8082         (_initialize_linux_nat): Delete call to
8083         linux_ptrace_set_additional_flags.
8084         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8085         supported_ptrace_options.
8086         (additional_flags): Delete variable.
8087         (linux_check_ptrace_features): Use supported_ptrace_options.
8088         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8089         Likewise, and remove additional_flags check.
8090         (linux_enable_event_reporting): Change 'attached' argument to
8091         'options'.  Use supported_ptrace_options.
8092         (ptrace_supports_feature): Change comment.  Use
8093         supported_ptrace_options.
8094         (linux_ptrace_set_additional_flags): Delete function.
8095         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8096         Delete function prototype.
8097         * remote.c (remote_fork_event_p): New function.
8098         (remote_detach_pid): New function.
8099         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8100         if doing detach-on-fork.
8101         (remote_follow_fork): New function.
8102         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8103         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8104         (init_extended_remote_ops): Initialize to_follow_fork.
8105
8106 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8107
8108         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8109         from static to extern.
8110         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8111         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8112         * PACKET_vfork_event_feature>: New enumeration constants.
8113         (remote_protocol_features): Add table entries for new packets.
8114         (remote_query_supported): Add new feature queries to qSupported
8115         packet.
8116
8117 2015-05-12  Gary Benson <gbenson@redhat.com>
8118
8119         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8120         for fake PIDs as well as real ones.
8121         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8122
8123 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8124
8125         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8126         * python/py-value.c (valpy_reference_value): New function.
8127         (valpy_const_value): Likewise.
8128         (value_object_methods): Add new methods.
8129         * value.c (make_cv_value): New function.
8130         * value.h (make_cv_value): Declare.
8131
8132 2015-05-08  Yao Qi  <yao@codesourcery.com>
8133             Sandra Loosemore  <sandra@codesourcery.com>
8134
8135         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8136         to 'lh->include_dirs' before accessing to it.
8137         (psymtab_include_file_name): Likewise.
8138         (dwarf_decode_lines_1): Likewise.
8139         (dwarf_decode_lines): Likewise.
8140         (file_file_name): Likewise.
8141
8142 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8143
8144         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8145         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8146         (nios2_linux_rt_sigreturn_init): Adjust base address of
8147         register save area.
8148
8149 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8150
8151         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8152         "trap 31" as the breakpoint instruction on all targets.
8153
8154 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8155
8156         * infcmd.c (print_return_value): Remove unused declaration.
8157
8158 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8159
8160         * dwarf2read.c (attr_to_dynamic_prop)
8161         <DW_AT_data_member_location>: Use read_type_die isntead of
8162         get_die_type.
8163
8164 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8165
8166         * ada-lang.c (ada_convert_actual): Add handling of formals
8167         passed inside an aligner type.
8168
8169 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8170
8171         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8172
8173 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8174
8175         PR python/18291
8176         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8177         Print xmethod matcher status.
8178
8179 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8180
8181         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8182         register in the regcache when treating the PSWM register, and vice
8183         versa.
8184
8185 2015-05-07  Gary Benson <gbenson@redhat.com>
8186
8187         * linux-thread-db.c (struct thread_db_info)
8188         <td_ta_map_id2thr_p>: Remove field.
8189         (try_thread_db_load_1): Remove initialization for the above.
8190
8191 2015-05-07  Gary Benson <gbenson@redhat.com>
8192
8193         * linux-thread-db.c (struct thread_db_info)
8194         <td_thr_validate_p>: Remove field.
8195         (try_thread_db_load_1): Remove initialization for the above.
8196
8197 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8198
8199         * compile/compile-object-load.c (compile_object_load): Support
8200         mst_text_gnu_ifunc.
8201
8202 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8203
8204         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8205         const.  Use new variables for the const compatibility.
8206         (eval_compile_command): Make the cmd_string parameter const.
8207         * compile/compile.h (eval_compile_command): Make the cmd_string
8208         parameter const.
8209
8210 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8211
8212         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8213         comment.
8214         * top.c (deprecated_init_ui_hook): Delete.
8215         (gdb_init): Remove handling of deprecated_init_ui_hook.
8216         * interps.c (clear_interpreter_hooks): Remove handling of
8217         deprecated_init_ui_hook.
8218         * main.c (captured_main): Update comment.
8219
8220 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8221
8222         * solib.c (_initialize_solib): Add "info dll" alias creation.
8223         * windows-nat.c (set_windows_aliases): Delete.
8224         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8225         assignment.
8226         * NEWS: Add news entry about "info dll" now being available
8227         on all platforms.
8228
8229 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8230
8231         * ada-lang.c (value_assign_to_component): Reformat and improve
8232         documentation. Remove all trailing spaces.
8233
8234 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8235
8236         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8237         Stop counting inlined frames as soon as an out-of-line function
8238         is found.
8239
8240 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8241
8242         * dwarf2read.c (inherit_abstract_dies): Skip
8243         DW_TAG_GNU_call_site dies while inheriting children of an
8244         abstract DIE into a scope.
8245         (read_lexical_block_scope): Inherit abstract DIE's for
8246         lexical scopes.
8247
8248 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8249
8250         * ada-valprint.c (val_print_packed_array_elements): Delete
8251         variable "len".  Add a type-length check when comparing two
8252         consecutive elements of the array.  Use the element's actual
8253         length in call to value_contents_eq.
8254         * ada-lang.c (ada_value_primitive_packed_val): Always return
8255         a value whose type has been resolved.
8256
8257 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8258
8259         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8260         BIT_SIZE and LEN if the size of the resolved type is smaller
8261         than BIT_SIZE * HOST_CHAR_BIT.
8262
8263 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8264
8265         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8266         correct address in call to value_at.  Adjust call to
8267         value_address accordingly.
8268
8269 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8270
8271         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8272         to print it.
8273
8274 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8275
8276         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8277         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8278         pinfo->valaddr.
8279         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8280         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8281         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8282         Add handling of addr_stack->valaddr.
8283         (resolve_dynamic_type): Add "valaddr" parameter.
8284         Set pinfo.valaddr field.
8285         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8286         resolve_dynamic_type.
8287         (ada_discrete_type_low_bound): Likewise.
8288         * findvar.c (default_read_var_value): Likewise.
8289         * value.c (value_from_contents_and_address): Likewise.
8290
8291 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8292
8293         * gdbtypes.c (resolve_dynamic_array): Use
8294         create_array_type_with_stride instead of create_array_type.
8295
8296 2015-04-30  DJ Delorie  <dj@redhat.com>
8297
8298         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8299         rl78_decode_opcode
8300
8301 2015-04-29  Doug Evans  <dje@google.com>
8302
8303         PR python/18285
8304         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8305         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8306         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8307         * extension-priv.h (struct extension_language_ops)
8308         <get_xmethod_result_type>: New member.
8309         * extension.c (get_xmethod_result_type): New function.
8310         * extension.h (get_xmethod_result_type): Declare.
8311         * python/py-xmethods.c (get_result_type_method_name): New static
8312         global.
8313         (py_get_result_type_method_name): Ditto.
8314         (gdbpy_get_xmethod_result_type): New function.
8315         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8316         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8317         * python/python.c (python_extension_ops): Add
8318         gdbpy_get_xmethod_result_type.
8319         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8320         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8321         xmethods.
8322         (value_x_unop): Ditto.
8323         * value.c (result_type_of_xmethod): New function.
8324         * value.h (result_type_of_xmethod): Declare.
8325
8326 2015-04-29  Gary Benson <gbenson@redhat.com>
8327
8328         * solib.c (solib_find_1): Allow fd argument to be NULL.
8329         (exec_file_find): Update comment.
8330         (solib_find): Likewise.
8331         * exec.c (exec_file_locate_attach): Use NULL as fd
8332         argument to exec_file_find to avoid having to close
8333         the opened file.
8334         * infrun.c (follow_exec): Likewise.
8335
8336 2015-04-28  Doug Evans  <dje@google.com>
8337
8338         PR python/18299
8339         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8340         name or __name__ attributes.  Handle gdb module as first argument.
8341
8342 2015-04-28  Doug Evans  <dje@google.com>
8343
8344         PR python/18089
8345         * python/py-prettyprint.c (print_children): Verify result of children
8346         iterator.  Provide better error message.
8347         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8348         * python/python.c (gdbpy_print_python_errors_p): New function.
8349
8350 2015-04-28  Doug Evans  <dje@google.com>
8351
8352         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8353
8354 2015-04-28  Sasha Smundak  <asmundak@google.com>
8355
8356         * NEWS: Mention gdb.Type.optimized_out method.
8357         * python/py-type.c (typy_optimized_out):  New function.
8358
8359 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8360
8361         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8362
8363 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8364
8365         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8366         (initialize_utils): Move call of init_page_info() to ...
8367         * top.c (gdb_init): ... here.
8368
8369 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8370
8371         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8372         (tui_sigwinch_handler): Still update our idea of
8373         the terminal's width and height even when TUI is not active.
8374
8375 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8376
8377         * utils.h (set_screen_width_and_height): Declare.
8378         * utils.c (set_screen_width_and_height): Define.
8379         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8380
8381 2015-04-28  Gary Benson <gbenson@redhat.com>
8382
8383         * infrun.c (solist.h): New include.
8384         (follow_exec): Use exec_file_find to prefix execd_pathname
8385         with gdb_sysroot.
8386
8387 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8388
8389         * tui/tui-source.c (tui_set_source_content): Avoid calling
8390         strcpy() when offset is 0.
8391
8392 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8393
8394         PR gdb/18155
8395         * tui/tui-data.c (tui_free_window): Don't free the locator
8396         window when passed an SRC_WIN or a DISASSEM_WIN.
8397
8398 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8399
8400         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8401         (tui_win_content): Move declaration.
8402         (struct tui_gen_win_info): Give 'content' field the
8403         type tui_win_content.
8404         * tui/tui-data.c (init_content_element): Remove redundant and
8405         erroneous casts.
8406         (tui_add_content_elements): Remove erroneous cast.
8407         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8408         casts.
8409         (tui_get_begin_asm_address): Likewise.
8410         * tui/tui-regs.c (tui_show_registers): Likewise.
8411         (tui_show_register_group): Likewise.
8412         (tui_display_registers_from): Likewise.
8413         (tui_check_register_values): Likewise.
8414         * tui/tui-source.c (tui_set_source_content): Likewise.
8415         (tui_set_source_content_nil): Likewise.
8416         (tui_source_is_displayed): Likewise.
8417         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8418         (tui_set_locator_fullname): Likewise.
8419         (tui_set_locator_info): Likewise.
8420         (tui_show_frame_info): Likewise.
8421         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8422         (tui_show_source_line): Likewise.
8423         (tui_horizontal_source_scroll): Likewise.
8424         (tui_update_breakpoint_info): Likewise.
8425         (tui_set_exec_info_content): Likewise.
8426         (tui_show_exec_info_content): Likewise.
8427         (tui_alloc_source_buffer): Likewise.
8428         (tui_line_is_displayed): Likewise.
8429         (tui_addr_is_displayed): Likewise.
8430
8431 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8432
8433         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8434         event if PL_FLAG_EXEC is set.
8435         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8436         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8437         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8438         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8439         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8440
8441 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8442
8443         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8444         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8445         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8446         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8447         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8448         [PT_LWPINFO] (fbsd_wait): New function.
8449         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8450         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8451         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8452         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8453         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8454         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8455         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8456         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8457         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8458         "fbsd_wait".
8459         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8460         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8461         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8462         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8463         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8464         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8465         Set "to_post_attach" to "fbsd_post_attach".
8466
8467 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8468
8469         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8470         (fbsd_find_memory_regions): Mark static.
8471         (fbsd_nat_add_target): New function.
8472         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8473         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8474         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8475         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8476         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8477         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8478
8479 2015-04-27  Gary Benson <gbenson@redhat.com>
8480
8481         * objfiles.c (allocate_objfile): Do not attempt to expand name
8482         if name is a "target:" filename.
8483         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8484         to load auto-load scripts for objfiles with "target:" filenames.
8485
8486 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8487
8488         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8489         (enum s390_vector_abi_kind): New enum.
8490         (struct gdbarch_tdep)<vector_abi>: New field.
8491         (s390_effective_inner_type): Add parameter min_size.  Stop
8492         unwrapping if the inner type is smaller than min_size.
8493         (s390_function_arg_float): Adjust call to
8494         s390_effective_inner_type.
8495         (s390_function_arg_vector): New function.
8496         (s390_function_arg_integer): Adjust comment.
8497         (struct s390_arg_state)<vr>: New field.
8498         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8499         arguments according to vector ABI when appropriate.
8500         (s390_push_dummy_call): Initialize the argument state's field
8501         'vr'.  Adjust calls to s390_handle_arg.
8502         (s390_register_return_value): Handle vector return values.
8503         (s390_return_value): Apply the "register" return value convention
8504         to a vector when appropriate.
8505         (s390_gdbarch_init): Initialize tdep->vector_abi.
8506         * NEWS: Announce S390 vector ABI support.
8507
8508 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8509
8510         * s390-linux-tdep.c (s390_return_value_convention): Remove
8511         function.  Inline its logic...
8512         (s390_return_value): ...here.  Instead, move the handling of the
8513         "register" return value convention...
8514         (s390_register_return_value): ...here.  New function.
8515
8516 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8517
8518         * s390-linux-tdep.c
8519         (is_float_singleton): Remove function.  Move the "singleton" part
8520         of the logic...
8521         (s390_effective_inner_type): ...here.  New function.
8522         (is_float_like): Remove function.  Inline its logic...
8523         (s390_function_arg_float): ...here.
8524         (is_pointer_like, is_integer_like, is_struct_like): Remove
8525         functions.  Inline their logic...
8526         (s390_function_arg_integer): ...here.
8527         (s390_function_arg_pass_by_reference): Remove function.
8528         (extend_simple_arg): Remove function.
8529         (alignment_of): Remove function.
8530         (struct s390_arg_state): New structure.
8531         (s390_handle_arg): New function.
8532         (s390_push_dummy_call): Move parameter placement logic to the new
8533         function s390_handle_arg.  Call it for calculating the stack area
8534         sizes first, and again for actually writing the parameters.
8535
8536 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8537
8538         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8539           false if the argument is zero.
8540
8541 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8542
8543         * ada-lang.c (template_to_static_fixed_type): Return input type
8544         when it is already fixed.  Cache the input type itself when not
8545         creating a static fixed copy.  Make it explicit that we never
8546         molestate the input type.
8547         * gdbtypes.c (resolve_dynamic_struct): Reset the
8548         TYPE_TARGET_TYPE field for resolved copies.
8549
8550 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8551
8552         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8553         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8554         (template_to_static_fixed_type): Call ada_check_typedef only
8555         when necessary.
8556
8557 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8558
8559         * cli/cli-dump.c (srec_dump_command): Add internationalization
8560         mark ups.
8561         (ihex_dump_command): Likewise.
8562         (tekhex_dump_command): Likewise.
8563         (binary_dump_command): Likewise.
8564         (binary_append_command): Likewise.
8565
8566 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8567
8568         * cli/cli-dump.c (verilog_cmdlist): New variable.
8569         (dump_verilog_memory): New function.
8570         (dump_verilog_value): New function.
8571         (verilog_dump_command): New function.
8572         (_initialize_cli_dump): Add new commands to support verilog dump
8573         format.
8574         * NEWS: Add entry for "dump verilog".
8575
8576 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8577
8578         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8579         descriptive type when there is none.
8580
8581 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8582
8583         * tui/tui-win.c (tui_async_resize_screen): Call
8584         rl_resize_terminal().
8585
8586 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8587
8588         * windows-nat.c (handle_output_debug_string): Don't change
8589         current_event.dwThreadId.
8590         (get_windows_debug_event): Use thread_id, rather than relying on
8591         current_event.dwThreadId being changed.
8592
8593 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8594
8595         * windows-nat.c (windows_continue): Report an error if
8596         ContinueDebugEvent() fails.
8597
8598 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8599
8600         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8601
8602 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8603
8604         * windows-nat.c (get_windows_debug_event): Replace retval with
8605         thread_id throughout.  Update stale comment.
8606
8607 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8608
8609         * windows-nat.c (get_windows_debug_event): Don't use ternary
8610         conditional operator.
8611
8612 2015-04-21  Pierre Muller  <muller@sourceware.org>
8613
8614         PR pascal/17815
8615         p-exp.y (yylex): Reorganize code to return the matched pattern
8616         for a field of this.
8617
8618 2015-04-21  Gary Benson <gbenson@redhat.com>
8619
8620         * common/fileio.h (fileio_to_host_openflags): New declaration.
8621         * common/fileio.c (fcntl.h): New include.
8622         (fileio_to_host_openflags): New function, factored out from...
8623         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8624         Single use updated.
8625
8626 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8627
8628         * rl78-tdep.c (RL78_SP_ADDR): Define.
8629         (opc_reg_to_gdb_regnum): New static function.
8630         (rl78_analyze_prologue): Recognize instructions forming slightly
8631         more interesting prologues.
8632
8633 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8634
8635         Revert:
8636         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8637         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8638         TYPE_CODE_REF types so that they are not considered as dynamic
8639         depending on the referenced type.
8640         (resolve_dynamic_type_internal): Likewise.
8641
8642 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8643
8644         Revert:
8645         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8646         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8647         "top_level" parameter.
8648         (resolve_dynamic_type_internal): Remove the unused "top_level"
8649         parameter.  Update call to is_dynamic_type_internal.
8650         (is_dynamic_type): Update call to is_dynamic_type_internal.
8651         (resolve_dynamic_range): Update call to
8652         resolve_dynamic_type_internal.
8653         (resolve_dynamic_union): Likewise.
8654         (resolve_dynamic_struct): Likewise.
8655         (resolve_dynamic_type): Likewise.
8656
8657 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8658
8659         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8660         xmalloc.
8661
8662 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8663
8664         * reply_mig_hack.awk: Robustify parsing.
8665
8666         * reply_mig_hack.awk: Don't bother to declare an intermediate
8667         function pointer variable.
8668
8669 2015-04-17  Doug Evans  <dje@google.com>
8670
8671         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8672         to "exec_displacement" to avoid confusion with inner use of the name.
8673
8674 2015-04-17  Pedro Alves  <palves@redhat.com>
8675
8676         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8677         if HW point of TYPE isn't supported.
8678
8679 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8680             Pedro Alves  <palves@redhat.com>
8681
8682         * target.h (target_can_use_hardware_watchpoint): Update comments.
8683         Remove trailing ";".
8684
8685 2015-04-17  Gary Benson <gbenson@redhat.com>
8686
8687         * remote.c (remote_add_inferior): New argument try_open_exec.
8688         If nonzero, attempt to open the inferior's executable file as
8689         the main executable if no main executable is open already.
8690         All callers updated.
8691         * NEWS: Mention that GDB now supports automatic location and
8692         retrieval of executable + files from remote targets.
8693
8694 2015-04-17  Gary Benson <gbenson@redhat.com>
8695
8696         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8697         * remote.c (PACKET_qXfer_exec_file): Likewise.
8698         (remote_protocol_features): Register the
8699         "qXfer:exec-file:read" feature.
8700         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8701         (remote_pid_to_exec_file): New function.
8702         (init_remote_ops): Initialize to_pid_to_exec_file.
8703         (_initialize_remote): Register new "set/show remote
8704         pid-to-exec-file-packet" command.
8705         * NEWS: Announce new qXfer:exec-file:read packet.
8706
8707 2015-04-17  Gary Benson <gbenson@redhat.com>
8708
8709         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8710         New declaration.
8711         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8712         New function, factored out from...
8713         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8714
8715 2015-04-17  Gary Benson <gbenson@redhat.com>
8716
8717         * exec.c (solist.h): New include.
8718         (exec_file_locate_attach): Prefix absolute executable
8719         paths with gdb_sysroot if set.
8720         * NEWS: Mention that executable paths may be prepended
8721         with sysroot.
8722
8723 2015-04-17  Gary Benson <gbenson@redhat.com>
8724
8725         * solist.h (exec_file_find): New declaration.
8726         * solib.c (solib_find_1): New function, factored out from...
8727         (solib_find): ...here.
8728         (exec_file_find): New function.
8729
8730 2015-04-17  Gary Benson <gbenson@redhat.com>
8731
8732         * gdbcore.h (exec_file_locate_attach): New declaration.
8733         * exec.c (exec_file_locate_attach): New function, factored
8734         out from...
8735         * infcmd.c (attach_command_post_wait): ...here.
8736
8737 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8738
8739         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8740
8741 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8742
8743         * infrun.c (maybe_software_singlestep): Declare.
8744         (displaced_step_fixup): Call maybe_software_singlestep.
8745
8746 2015-04-15  Doug Evans  <dje@google.com>
8747
8748         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8749
8750 2015-04-15  Doug Evans  <dje@google.com>
8751
8752         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8753
8754 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8755
8756         * python/lib/gdb/command/unwinders.py: Add parentheses.
8757
8758 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8759
8760         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8761
8762 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8763
8764         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8765
8766 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8767
8768         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8769         dsc->insn_size instead of 4.
8770
8771 2015-04-14  Gary Benson <gbenson@redhat.com>
8772
8773         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8774         * minidebug.c (lzma_stat): Likewise.
8775         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8776         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8777
8778 2015-04-13  Stan Shebs  <stanshebs@google.com>
8779
8780         * MAINTAINERS: Update my email address.
8781
8782 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8783
8784         * amd64-tdep.c (amd64_target_description): New function.
8785         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8786         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8787         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8788         x86 extended save area.
8789         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8790         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8791         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8792         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8793         "amd64fbsd_read_description".
8794         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8795         (amd64fbsd_supply_xstateregset): New function.
8796         (amd64fbsd_collect_xstateregset): New function.
8797         Add "amd64fbsd_xstateregset".
8798         (amd64fbsd_iterate_over_regset_sections): New function.
8799         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8800         "I386_FBSD_XSAVE_XCR0_OFFSET".
8801         Add "iterate_over_regset_sections" gdbarch method.
8802         Add "core_read_description" gdbarch method.
8803         * i386-tdep.c (i386_target_description): New function.
8804         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8805         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8806         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8807         x86 extended save area.
8808         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8809         * i386bsd-nat.h: Export i386bsd_xsave_len.
8810         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8811         (_initialize_i386fbsd_nat): Set "to_read_description" to
8812         "i386fbsd_read_description".
8813         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8814         (i386fbsd_core_read_description): New function.
8815         (i386fbsd_supply_xstateregset): New function.
8816         (i386fbsd_collect_xstateregset): New function.
8817         Add "i386fbsd_xstateregset".
8818         (i386fbsd_iterate_over_regset_sections): New function.
8819         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8820         "I386_FBSD_XSAVE_XCR0_OFFSET".
8821         Add "iterate_over_regset_sections" gdbarch method.
8822         Add "core_read_description" gdbarch method.
8823         * i386fbsd-tdep.h: New file.
8824
8825 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8826
8827         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8828         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8829         conditional.
8830         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8831         and lb.
8832         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8833         va.
8834         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8835         conditional.
8836         * defs.h (xdb_commands): Remove declaration.
8837         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8838         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8839         * infcmd.c (run_no_args_command, go_command): Remove.
8840         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8841         * infrun.c (xdb_handle_command): Remove.
8842         (_initialize_infrun): Remove xdb_commands for lz and z.
8843         * main.c (xdb_commands): Remove variable.
8844         (captured_main): Remove "xdb" from long_options.
8845         (print_gdb_help): Remove --xdb from help.
8846         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8847         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8848         * stack.c (backtrace_full_command, args_plus_locals_info)
8849         (current_frame_command): Remove.
8850         (_initialize_stack): Remove xdb_commands for t, T and l.
8851         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8852         * thread.c (_initialize_thread): Remove xdb_commands condition.
8853         * tui/tui-layout.c (tui_toggle_layout_command)
8854         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8855         (_initialize_tui_layout): Remove xdb_commands for td and ts.
8856         * tui/tui-regs.c (tui_scroll_regs_forward_command)
8857         (tui_scroll_regs_backward_command): Remove.
8858         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8859         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8860         (_initialize_tui_win): Remove xdb_commands for U and w.
8861         * utils.c (pagination_on_command, pagination_off_command): Remove.
8862         (initialize_utils): Remove xdb_commands for am and sm.
8863
8864 2015-04-10  Pedro Alves  <palves@redhat.com>
8865
8866         * infrun.c (displaced_step_fixup): Switch to the event ptid
8867         earlier.  If the thread stopped for a watchpoint and the
8868         target/arch has non-continuable watchpoints, cancel the displaced
8869         step.
8870         (resume): Don't start a displaced step if in-line step-over info
8871         is valid.
8872
8873 2015-04-10  Pedro Alves  <palves@redhat.com>
8874
8875         * infrun.c (displaced_step_in_progress): New function.
8876         (do_target_resume): Advise target to report all signals if
8877         displaced stepping.
8878
8879 2015-04-10  Pedro Alves  <palves@redhat.com>
8880
8881         PR gdb/18216
8882         * infrun.c (process_event_stop_test): Don't assume a step-resume
8883         is set if tp->stepped_breakpoint is true.
8884
8885 2015-04-10  Yao Qi  <yao.qi@linaro.org>
8886
8887         * arm-tdep.c (install_alu_reg): Update comment.
8888         (thumb_copy_alu_reg): Remove local variable rn.  Update
8889         debugging message.  Use r2 instead of r1 in the modified
8890         instruction.
8891
8892 2015-04-10  Pedro Alves  <palves@redhat.com>
8893
8894         PR gdb/13858
8895         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8896         linux_displaced_step_location as gdbarch_displaced_step_location
8897         hook.
8898         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8899         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8900         * linux-tdep.c (linux_displaced_step_location): New function,
8901         based on ppc_linux_displaced_step_location.
8902         * linux-tdep.h (linux_displaced_step_location): New declaration.
8903         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8904         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8905         Delete.
8906         (ppc_linux_init_abi): Install linux_displaced_step_location as
8907         gdbarch_displaced_step_location hook, even without Cell/B.E..
8908         (_initialize_ppc_linux_tdep): Don't install
8909         ppc_linux_inferior_created as inferior_created observer.
8910         * s390-linux-tdep.c (s390_gdbarch_init): Install
8911         linux_displaced_step_location as gdbarch_displaced_step_location
8912         hook.
8913
8914 2015-04-09  Gary Benson <gbenson@redhat.com>
8915
8916         * common/common-remote-fileio.h: Rename to...
8917         * common/fileio.h: ...this.  Update all references.
8918         (remote_fileio_to_fio_error): Rename to...
8919         (host_to_fileio_error): ...this.
8920         (remote_fileio_to_be): Rename to...
8921         (host_to_bigendian): ...this.  Update all callers.
8922         (remote_fileio_to_fio_uint): Rename to...
8923         (host_to_fileio_uint): ...this.  Update all callers.
8924         (remote_fileio_to_fio_time): Rename to...
8925         (host_to_fileio_time): ...this.  Update all callers.
8926         (remote_fileio_to_fio_stat): Rename to...
8927         (host_to_fileio_stat): ...this.
8928         Update all references.
8929         * common/common-remote-fileio.c: Rename to...
8930         * common/fileio.c: ...this.  Update all references.
8931         (remote_fileio_to_fio_error): Rename to...
8932         (host_to_fileio_error): ...this.  Update all callers.
8933         (remote_fileio_mode_to_target): Rename to...
8934         (fileio_mode_pack): ...this.  Update all callers.
8935         (remote_fileio_to_fio_mode): Rename to...
8936         (host_to_fileio_mode): ...this.  Update all callers.
8937         (remote_fileio_to_fio_ulong): Rename to...
8938         (host_to_fileio_ulong): ...this.  Update all callers.
8939         (remote_fileio_to_fio_stat): Rename to...
8940         (host_to_fileio_stat): ...this.  Update all callers.
8941
8942 2015-04-09  Andy Wingo  <wingo@igalia.com>
8943
8944         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8945         (frame_functions): Bind gdbscm_frame_read_register to
8946         frame-read-register.
8947         * guile/lib/gdb.scm (frame-read-register): Export.
8948
8949 2015-04-09  Gary Benson <gbenson@redhat.com>
8950
8951         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8952         New declaration.
8953         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8954         New function, factored out the named functions below.
8955         * inf-child.c (gdb/fileio.h): Remove include.
8956         (common-remote-fileio.h): New include.
8957         (inf_child_errno_to_fileio_error): Remove function.  Update
8958         all callers to use remote_fileio_to_fio_error.
8959         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8960
8961 2015-04-09  Andy Wingo  <wingo@igalia.com>
8962
8963         * MAINTAINERS (Write After Approval): Add Andy Wingo.
8964
8965 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8966
8967         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8968         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8969         * configure: Regenerated.
8970
8971 2015-04-09  Pedro Alves  <palves@redhat.com>
8972
8973         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8974         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8975         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8976         * gnulib/import/Makefile.am: Update.
8977         * gnulib/import/Makefile.in: Update.
8978         * gnulib/import/m4/gnulib-cache.m4: Update.
8979         * gnulib/import/m4/gnulib-comp.m4: Update.
8980         * gnulib/import/m4/strtok_r.m4: New file.
8981         * gnulib/import/strtok_r.c: New file.
8982
8983 2015-04-09  Pedro Alves  <palves@redhat.com>
8984
8985         * gnulib/update-gnulib.sh (aclocal version check): Filter out
8986         "called too early to check prototype".
8987
8988 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
8989
8990         PR python/16699
8991         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8992         use a caching mechanism.  Adjust comments and code to reflect
8993         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8994         (cmdpy_completer_handle_brkchars): Adjust call to
8995         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
8996         (cmdpy_completer): Likewise.
8997
8998 2015-04-08  Yao Qi  <yao.qi@linaro.org>
8999
9000         * spu-tdep.c (spu_gdbarch_init): Don't call
9001         set_gdbarch_cannot_step_breakpoint.
9002
9003 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9004
9005         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9006
9007 2015-04-07  Pedro Alves  <palves@redhat.com>
9008
9009         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9010         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9011         (delete_exited_threads): New declaration.
9012         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9013         * linux-nat.c (linux_nat_update_thread_list): New function.
9014         (linux_nat_add_target): Install it.
9015         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9016         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9017         (delete_exited_threads): New function.
9018
9019 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9020
9021         * infrun.c (resume) <displaced stepping debug output>: Get the
9022         leader thread's regcache, not resume_ptid's.
9023
9024 2015-04-06  Doug Evans  <xdje42@gmail.com>
9025
9026         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9027         VAR_DOMAIN.
9028         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9029         Include symbol domain in debugging output.
9030
9031 2015-04-06  Pedro Alves  <palves@redhat.com>
9032             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9033
9034         * configure.ac: Remove the mingw32-specific stub-termcap.o
9035         fallback, and instead fallback to the stub termcap on all hosts.
9036         * configure: Regenerate.
9037         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9038         symbols.
9039
9040 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9041
9042         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9043         "top_level" parameter.
9044         (resolve_dynamic_type_internal): Remove the unused "top_level"
9045         parameter.  Update call to is_dynamic_type_internal.
9046         (is_dynamic_type): Update call to is_dynamic_type_internal.
9047         (resolve_dynamic_range): Update call to
9048         resolve_dynamic_type_internal.
9049         (resolve_dynamic_union): Likewise.
9050         (resolve_dynamic_struct): Likewise.
9051         (resolve_dynamic_type): Likewise.
9052
9053 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9054
9055         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9056         TYPE_CODE_REF types so that they are not considered as dynamic
9057         depending on the referenced type.
9058         (resolve_dynamic_type_internal): Likewise.
9059
9060 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9061
9062         * Makefile.in (top_srcdir): New.
9063         * configure: Regenerated.
9064
9065 2015-04-02  Gary Benson <gbenson@redhat.com>
9066
9067         * NEWS: Announce the new default sysroot of "target:".
9068
9069 2015-04-02  Gary Benson <gbenson@redhat.com>
9070
9071         * main.c (captured_main): Set gdb_sysroot to "target:"
9072         if not otherwise set.
9073
9074 2015-04-02  Gary Benson <gbenson@redhat.com>
9075
9076         * exec.c (exec_file_attach): Support "target:" filenames.
9077
9078 2015-04-02  Gary Benson <gbenson@redhat.com>
9079
9080         * solib.c (solib_find): Strip "target:" prefix from sysroot
9081         if accessing local files.
9082
9083 2015-04-02  Gary Benson <gbenson@redhat.com>
9084
9085         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9086         checks and error messages.
9087
9088 2015-04-02  Gary Benson <gbenson@redhat.com>
9089
9090         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9091         (remote_filename_p): Remove declaration.
9092         (remote_bfd_open): Likewise.
9093         * remote.c (remote_bfd_iovec_open): Remove function.
9094         (remote_bfd_iovec_close): Likewise.
9095         (remote_bfd_iovec_pread): Likewise.
9096         (remote_bfd_iovec_stat): Likewise.
9097         (remote_filename_p): Likewise.
9098         (remote_bfd_open): Likewise.
9099         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9100         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9101         (gdb_bfd_open_maybe_remote): Remove function.
9102         (symfile_bfd_open):  Replace remote filename check with
9103         target filename check.
9104         (reread_symbols): Use gdb_bfd_open.
9105         * build-id.c (gdbcore.h): New include.
9106         (build_id_to_debug_bfd): Use gdb_bfd_open.
9107         * infcmd.c (attach_command_post_wait): Remove remote filename
9108         check.
9109         * solib.c (solib_find): Replace remote-specific handling with
9110         target-specific handling.  Update comments where necessary.
9111         (solib_bfd_open): Replace remote-specific handling with
9112         target-specific handling.
9113         (gdb_sysroot_changed): New function.
9114         (_initialize_solib): Call the above when gdb_sysroot changes.
9115         * windows-tdep.c (gdbcore.h): New include.
9116         (windows_xfer_shared_library): Use gdb_bfd_open.
9117
9118 2015-04-02  Gary Benson <gbenson@redhat.com>
9119
9120         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9121         (is_target_filename): New declaration.
9122         (gdb_bfd_has_target_filename): Likewise.
9123         (gdb_bfd_open): Update documentation comment.
9124         * gdb_bfd.c (target.h): New include.
9125         (gdb/fileio.h): Likewise.
9126         (is_target_filename): New function.
9127         (gdb_bfd_has_target_filename): Likewise.
9128         (fileio_errno_to_host): Likewise.
9129         (gdb_bfd_iovec_fileio_open): Likewise.
9130         (gdb_bfd_iovec_fileio_pread): Likewise.
9131         (gdb_bfd_iovec_fileio_close): Likewise.
9132         (gdb_bfd_iovec_fileio_fstat): Likewise.
9133         (gdb_bfd_open): Use target fileio to access paths prefixed
9134         with "target:" where necessary.
9135
9136 2015-04-02  Gary Benson <gbenson@redhat.com>
9137
9138         * target.h (struct target_ops) <to_filesystem_is_local>:
9139         New field.
9140         (target_filesystem_is_local): New macro.
9141         * target-delegates.c: Regenerate.
9142         * remote.c (remote_filesystem_is_local): New function.
9143         (init_remote_ops): Initialize to_filesystem_is_local.
9144
9145 2015-04-02  Gary Benson <gbenson@redhat.com>
9146
9147         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9148         (target_fileio_fstat): New declaration.
9149         * target.c (target_fileio_fstat): New function.
9150         * inf-child.c (inf_child_fileio_fstat): Likewise.
9151         (inf_child_target): Initialize to_fileio_fstat.
9152         * remote.c (init_remote_ops): Likewise.
9153
9154 2015-04-01  Sasha Smundak  <asmundak@google.com>
9155
9156         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9157         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9158         (py-unwind.o): New recipe.
9159         * NEWS: mention Python frame unwinding.
9160         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9161         gdb/unwinder.py and gdb/command/unwinder.py
9162         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9163         list.
9164         (execute_unwinders): New function.
9165         * python/lib/gdb/command/unwinders.py: New file.
9166         * python/lib/gdb/unwinder.py: New file.
9167         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9168         (objfpy_dealloc): Decrement frame_unwinders reference count.
9169         (objfpy_initialize): Create frame_unwinders list.
9170         (objfpy_get_frame_unwinders): New function.
9171         (objfpy_set_frame_unwinders): Ditto.
9172         (objfile_getset): Add frame_unwinders attribute to Objfile.
9173         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9174         (pspy_dealloc): Decrement frame_unwinders reference count.
9175         (pspy_initialize): Create frame_unwinders list.
9176         (pspy_get_frame_unwinders): New function.
9177         (pspy_set_frame_unwinders): Ditto.
9178         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9179         * python/py-unwind.c: New file.
9180         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9181         (objpy_get_frame_unwinders): New prototype.
9182         (gdbpy_initialize_unwind): New prototype.
9183         * python/python.c (gdbpy_apply_type_printers): Call
9184         gdbpy_initialize_unwind.
9185
9186 2015-04-01  Pedro Alves  <palves@redhat.com>
9187
9188         * infrun.c (resume): Check currently_stepping after clearing
9189         stepped_breakpoint, not before.
9190
9191 2015-04-01  Pedro Alves  <palves@redhat.com>
9192
9193         * infrun.c (print_target_wait_results): Print all the ptid
9194         elements.
9195
9196 2015-04-01  Pedro Alves  <palves@redhat.com>
9197
9198         * infrun.c (keep_going): Also discard cleanups if inserting
9199         breakpoints fails.
9200
9201 2015-04-01  Pedro Alves  <palves@redhat.com>
9202
9203         * infrun.c (wait_for_inferior): Install the
9204         finish_thread_state_cleanup cleanup across the whole function, not
9205         just around handle_inferior_event.
9206
9207 2015-04-01  Pedro Alves  <palves@redhat.com>
9208
9209         * infrun.c (resume) <step past permanent breakpoint>: Use
9210         do_target_resume.
9211
9212 2015-04-01  Pedro Alves  <palves@redhat.com>
9213
9214         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9215
9216 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9217
9218         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9219
9220 2015-04-01  Pedro Alves  <palves@redhat.com>
9221
9222         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9223         list if it was marked exited.
9224
9225 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9226
9227         * configure: Regenerated.
9228
9229 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9230             Jan Kratochvil  <jan.kratochvil@redhat.com>
9231             Oleg Nesterov  <oleg@redhat.com>
9232
9233         PR corefiles/16092
9234         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9235         New enum identifying the various options of the coredump_filter
9236         file.
9237         (struct smaps_vmflags): New struct.
9238         (use_coredump_filter): New variable.
9239         (decode_vmflags): New function.
9240         (mapping_is_anonymous_p): Likewise.
9241         (dump_mapping_p): Likewise.
9242         (linux_find_memory_regions_full): New variables
9243         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9244         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9245         parsing of its information.  Implement memory mapping filtering
9246         based on its contents.
9247         (show_use_coredump_filter): New function.
9248         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9249         * NEWS: Mention the possibility of using the
9250         '/proc/PID/coredump_filter' file when generating a corefile.
9251         Mention new command 'set use-coredump-filter'.
9252
9253 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9254
9255         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9256         read_memory_unsigned_integer.
9257
9258 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9259
9260         * Makefile.in (ZLIB): New.
9261         (ZLIBINC): Likewise.
9262         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9263         (CLIBS): Add $(ZLIB).
9264         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9265         Add -lz to LIBS.
9266         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9267         * top.c (print_gdb_configuration): Remove --with-zlib and
9268         --without-zlib.
9269         * config.in: Regenerated.
9270         * configure: Likewise.
9271
9272 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9273
9274         * NEWS: Mention info os cpus support.
9275         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9276         (struct osdata_type): Add cpus entry, reorder the entries in
9277         alphabetical order.
9278
9279 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9280
9281         * compile/compile.c (compile_to_object): Allow triplets with or
9282         without vendor set.
9283
9284 2015-03-30  Doug Evans  <dje@google.com>
9285
9286         PR c++/18141
9287         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9288         klass in VAR_DOMAIN.
9289
9290 2015-03-30  Gary Benson <gbenson@redhat.com>
9291
9292         * remote.c (remote_mourn_1): Remove function.  Update all callers
9293         to use remote_mourn.
9294         (extended_remote_mourn_1): Remove function.  Update all callers
9295         to use extended_remote_mourn.
9296         (extended_remote_attach_1): Remove function.  Update all callers
9297         to use extended_remote_attach.
9298
9299 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9300
9301         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9302         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9303         (ALLDEPFILES): Add ft32-tdep.c.
9304         * configure.tgt: Add FT32 entry.
9305         * ft32-tdep.c: New file, FT32 target-dependent code.
9306         * ft32-tdep.h: New file, FT32 target-dependent code.
9307
9308 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9309
9310         Revert:
9311         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9312         Code cleanup.
9313         * printcmd.c (print_command_1): Move expr variable scope.
9314
9315 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9316
9317         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9318
9319 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9320
9321         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9322         sections.
9323
9324 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9325
9326         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9327         exception raised while parsing the probe arguments.
9328         Force parsing to be done using the C language parser.
9329         * expression.h (parse_expression_with_language): Declare.
9330         * parse.c (parse_expression_with_language): New function.
9331
9332 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9333
9334         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9335
9336 2015-03-26  Andy Wingo  <wingo@igalia.com>
9337
9338         PR symtab/18148
9339         * dwarf2read.c (struct partial_die_info): Add has_const_value
9340         member.
9341         (add_partial_symbol): Don't punt on symbols that have const_value
9342         attributes.
9343         (read_partial_die): Detect DW_AT_const_value.
9344
9345 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9346
9347         Code cleanup.
9348         * printcmd.c (print_command_1): Move expr variable scope.
9349
9350 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9351
9352         Code cleanup.
9353         * printcmd.c (validate_format): Make the parameter cmdname const.
9354
9355 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9356
9357         * remote.c (_initialize_remote): Update comment.
9358
9359 2015-03-26  Pedro Alves  <palves@redhat.com>
9360             Jon TURNEY  <jon.turney@dronecode.org.uk>
9361
9362         * coffread.c (coff_symfile_read): When constructing the name of an
9363         import stub symbol from import symbol for amd64, only skip the
9364         char after _imp_ if the target is underscored (like i386) and the
9365         char is indeed the target's leading char.
9366
9367 2015-03-25  Pedro Alves  <palves@redhat.com>
9368
9369         * target.h <to_async>: Replace 'callback' and 'context' parameters
9370         with boolean 'enable' parameter.
9371         (target_async): Replace CALLBACK and CONTEXT parameters with
9372         boolean ENABLE parameter.
9373         * inf-loop.c (inferior_event_handler): Adjust.
9374         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9375         (linux_nat_resume): Adjust.
9376         (async_client_callback, async_client_context): Delete.
9377         (handle_target_event): Call inferior_event_handler directly.
9378         (linux_nat_async): Replace 'callback' and 'context' parameters
9379         with boolean 'enable' parameter.  Adjust.  Remove references to
9380         async_client_callback and async_client_context.
9381         (linux_nat_close): Adjust.
9382         * record-btrace.c (record_btrace_async): Replace 'callback' and
9383         'context' parameters with boolean 'enable' parameter.  Adjust.
9384         (record_btrace_resume): Adjust.
9385         * record-full.c (record_full_async): Replace 'callback' and
9386         'context' parameters with boolean 'enable' parameter.  Adjust.
9387         (record_full_resume, record_full_core_resume): Adjust.
9388         * remote.c (struct remote_state) <async_client_callback,
9389         async_client_context>: Delete fields.
9390         (remote_start_remote, extended_remote_attach_1, remote_resume)
9391         (extended_remote_create_inferior): Adjust.
9392         (remote_async_serial_handler): Call inferior_event_handler
9393         directly.
9394         (remote_async): Replace 'callback' and 'context' parameters with
9395         boolean 'enable' parameter.  Adjust.
9396         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9397         Adjust.
9398         * target-delegates.c: Regenerate.
9399
9400 2015-03-25  Gary Benson <gbenson@redhat.com>
9401             Pedro Alves  <palves@redhat.com>
9402
9403         * target.c (fileio_ft_t): New typedef, define object vector.
9404         (fileio_fhandles): New static variable.
9405         (is_closed_fileio_fh): New macro.
9406         (lowest_closed_fd): New static variable.
9407         (acquire_fileio_fd): New function.
9408         (release_fileio_fd): Likewise.
9409         (fileio_fd_to_fh): New macro.
9410         (target_fileio_open): Wrap the file descriptor on success.
9411         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9412         (target_fileio_pread): Likewise.
9413         (target_fileio_close): Likewise.
9414
9415 2015-03-24  Pedro Alves  <palves@redhat.com>
9416
9417         * thread.c (thread_apply_all_command): Take exited threads into
9418         account.
9419
9420 2015-03-24  Pedro Alves  <palves@redhat.com>
9421
9422         * infrun.c (resume, proceed): Mention
9423         switch_back_to_stepped_thread, not switch_back_to_stepping.
9424
9425 2015-03-24  Pedro Alves  <palves@redhat.com>
9426
9427         * infrun.c (user_visible_resume_ptid): Rewrite going from
9428         most-locked to unlocked instead of the opposite.  Move comment ...
9429         * infrun.h (user_visible_resume_ptid): ... here.
9430
9431 2015-03-24  Pedro Alves  <palves@redhat.com>
9432
9433         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9434         to resume the event lwp.  Use the lwp's ptid instead of the passed
9435         in (maybe wildcard) ptid.
9436         (stop_wait_callback): Tweak debug log output.
9437         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9438         TRAP_TRACE.
9439         (linux_nat_filter_event): In debug output, distinguish a
9440         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9441         before trying to resume the lwp.
9442
9443 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9444
9445         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9446         pointer indirection.
9447         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9448         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9449
9450 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9451
9452         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9453         Renames DYN_ATTR_DATA_LOCATION.
9454         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9455         DYN_ATTR_DATA_LOCATION.
9456         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9457         instead of DYN_ATTR_DATA_LOCATION.
9458
9459 2015-03-24  Pedro Alves  <palves@redhat.com>
9460
9461         * breakpoint.c (until_break_command): Adjust call to proceed.
9462         * gdbthread.h (struct thread_control_state) <stepping_command>:
9463         New field.
9464         * infcall.c (run_inferior_call): Adjust call to proceed.
9465         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9466         Adjust calls to proceed.
9467         (set_step_frame): Set the current thread's step_start_function
9468         here.
9469         (step_once): Adjust calls to proceed.
9470         (jump_command, signal_command, until_next_command)
9471         (finish_backward, finish_forward, proceed_after_attach_callback)
9472         (attach_command_post_wait): Adjust calls to proceed.
9473         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9474         (do_target_resume): New function, factored out from ...
9475         (resume): ... here.  Remove 'step' parameter.  Instead, check
9476         currently_stepping to determine whether the thread should be
9477         single-stepped.
9478         (proceed): Remove 'step' parameter and don't set the thread's
9479         step_start_function here.  Adjust call to 'resume'.
9480         (handle_inferior_event): Adjust calls to 'resume'.
9481         (switch_back_to_stepped_thread): Use do_target_resume instead of
9482         'resume'.
9483         (keep_going): Adjust calls to 'resume'.
9484         * infrun.h (proceed): Remove 'step' parameter.
9485         (resume): Likewise.
9486         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9487         'resume'.
9488         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9489
9490 2015-03-24  Pedro Alves  <palves@redhat.com>
9491
9492         * gdbthread.h (struct thread_control_state) <stepping_command>:
9493         New field.
9494         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9495         the thread's stepping_command field.
9496         * infrun.c (resume): Check the thread's stepping_command flag to
9497         determine which threads should be resumed.  Rename 'entry_step'
9498         local to user_step.
9499         (clear_proceed_status_thread): Clear 'stepping_command'.
9500         (schedlock_applies): Change parameter type to struct thread_info
9501         pointer.  Adjust.
9502         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9503         (switch_back_to_stepped_thread): Adjust calls to
9504         'schedlock_applies'.
9505         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9506
9507 2015-03-24  Pedro Alves  <palves@redhat.com>
9508
9509         * infrun.c (step_start_function): Delete and ...
9510         * gdbthread.h (struct thread_control_state) <step_start_function>:
9511         ... now a field here.
9512         * infrun.c (clear_proceed_status_thread): Clear the thread's
9513         step_start_function.
9514         (proceed, process_event_stop_test, print_stop_event): Adjust.
9515
9516 2015-03-24  Pedro Alves  <palves@redhat.com>
9517
9518         * infrun.c (proceed): No longer handle negative step.
9519
9520 2015-03-24  Gary Benson  <gbenson@redhat.com>
9521
9522         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9523         (x86_linux_prepare_to_resume): Likewise.
9524         * x86-linux-nat.c (x86_linux_new_thread):
9525         Moved to nat/x86-linux.c.
9526         (x86_linux_prepare_to_resume): Likewise.
9527         * nat/x86-linux.c (x86_linux_new_thread): New function.
9528         (x86_linux_prepare_to_resume): Likewise.
9529
9530 2015-03-24  Gary Benson  <gbenson@redhat.com>
9531
9532         * nat/x86-linux-dregs.h: New file.
9533         * nat/x86-linux-dregs.c: Likewise.
9534         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9535         (x86-linux-dregs.o): New rule.
9536         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9537         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9538         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9539         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9540         (x86_linux_dr_get): Likewise.
9541         (x86_linux_dr_set): Likewise.
9542         (x86_linux_dr_get_addr): Likewise.
9543         (x86_linux_dr_get_control): Likewise.
9544         (x86_linux_dr_get_status): Likewise.
9545         (update_debug_registers_callback): Likewise.
9546         (x86_linux_dr_set_control): Likewise.
9547         (x86_linux_dr_set_addr): Likewise.
9548         (x86_linux_update_debug_registers): Likewise.
9549
9550 2015-03-24  Gary Benson  <gbenson@redhat.com>
9551
9552         * x86-linux-nat.c (x86_linux_update_debug_registers):
9553         New function, factored out from...
9554         (x86_linux_prepare_to_resume): ...this.
9555
9556 2015-03-24  Gary Benson  <gbenson@redhat.com>
9557
9558         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9559         (x86_linux_dr_set): Likewise.
9560         (x86_linux_dr_get_addr): Likewise.
9561         (x86_linux_dr_get_control): Likewise.
9562         (x86_linux_dr_get_status): Likewise.
9563         (update_debug_registers_callback): Likewise.
9564         (x86_linux_dr_set_control): Likewise.
9565         (x86_linux_dr_set_addr): Likewise.
9566         (x86_linux_prepare_to_resume): Likewise.
9567         (x86_linux_new_thread): Likewise.
9568
9569 2015-03-24  Gary Benson  <gbenson@redhat.com>
9570
9571         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9572         (x86_linux_new_thread): Rename argument.
9573
9574 2015-03-24  Gary Benson  <gbenson@redhat.com>
9575
9576         * nat/x86-linux.h: New file.
9577         * nat/x86-linux.c: Likewise.
9578         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9579         (x86-linux.o): New rule.
9580         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9581         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9582         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9583         (lwp_set_arch_private_info): New declaration.
9584         (lwp_arch_private_info): Likewise.
9585         * linux-nat.c (lwp_set_arch_private_info): New function.
9586         (lwp_arch_private_info): Likewise.
9587         * x86-linux-nat.c: Include nat/x86-linux.h.
9588         (arch_lwp_info): Removed structure.
9589         (update_debug_registers_callback):
9590         Use lwp_set_debug_registers_changed.
9591         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9592         and lwp_set_debug_registers_changed.
9593         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9594
9595 2015-03-24  Gary Benson  <gbenson@redhat.com>
9596
9597         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9598         (lwp_is_stopped): Likewise.
9599         (lwp_stop_reason): Likewise.
9600         * linux-nat.c (ptid_of_lwp): New function.
9601         (lwp_is_stopped): Likewise.
9602         (lwp_is_stopped_by_watchpoint): Likewise.
9603         * x86-linux-nat.c (update_debug_registers_callback):
9604         Use lwp_is_stopped.
9605         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9606         lwp_stop_reason.
9607
9608 2015-03-24  Gary Benson  <gbenson@redhat.com>
9609
9610         * linux-nat.h (linux_stop_lwp): Move declaration to...
9611         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9612
9613 2015-03-24  Gary Benson  <gbenson@redhat.com>
9614
9615         * linux-nat.h: Include nat/linux-nat.h.
9616         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9617         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9618         (iterate_over_lwps_ftype): New typedef.
9619         (iterate_over_lwps): New declaration.
9620         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9621         iterate_over_lwps_ftype.  Update callback return value check.
9622
9623 2015-03-24  Gary Benson  <gbenson@redhat.com>
9624
9625         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9626         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9627
9628 2015-03-24  Gary Benson  <gbenson@redhat.com>
9629
9630         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9631         * linux-nat.c (current_lwp_ptid): New function.
9632         * x86-linux-nat.c: Include nat/linux-nat.h.
9633         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9634         (x86_linux_dr_get_control): Likewise.
9635         (x86_linux_dr_get_status): Likewise.
9636         (x86_linux_dr_set_control): Likewise.
9637         (x86_linux_dr_set_addr): Likewise.
9638
9639 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9640
9641         PR breakpoints/16466
9642         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9643
9644 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9645
9646         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9647         * ser-unix.c (hardwire_setparity): Likewise.
9648
9649 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9650
9651         * NEWS: Mention set/show serial parity command.
9652         * monitor.c (monitor_open): Call serial_setparity.
9653         * remote.c (remote_open_1): Likewise.
9654         * ser-base.c (ser_base_serparity): New function.
9655         * ser-base.h (ser_base_setparity): Add  declaration.
9656         * ser-go32.c (dos_ops): Set "setparity" field.
9657         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9658         state.Parity.
9659         (ser_windows_setparity): New function.
9660         (hardwire_ops): Add ser_windows_setparity.
9661         (tty_ops): Add NULL for setparity field.
9662         (pipe_ops): Add ser_base_setparity.
9663         (tcp_ops): Likewise.
9664         * ser-pipe.c (pipe_ops): Likewise.
9665         * ser-tcp.c (tcp_ops): Likewise.
9666         * ser-unix.c (hardwire_setparity): Add declaration.
9667         (hardwire_raw): Don't reset PARENB flag.
9668         (hardwire_setparity): New function.
9669         (hardwire_ops): Add hardwire_setparity.
9670         * serial.c (serial_setparity): New function.
9671         (serial_parity): New global.
9672         (parity_none, parity_odd, parity_even, parity_enums, parity):
9673         New static globals.
9674         (set_parity): New function.
9675         (_initialize_serial): Add set/show serial parity commands.
9676         * serial.h (GDBPARITY_NONE): Define.
9677         (GDBPARITY_ODD): Define.
9678         (GDBPARITY_EVEN): Define.
9679         (serial_setparity) Add declaration.
9680         (struct serial_ops): Add setparity field.
9681         * target.h (serial_parity): Add declaration.
9682
9683 2015-03-23  Keith Seitz  <keiths@redhat.com>
9684
9685         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9686
9687 2015-03-23  Keith Seitz  <keiths@redhat.com>
9688
9689         * breakpoint.c (parse_breakpoint_sals): Use
9690         linespec_lexer_lex_keyword to ascertain if the user specified
9691         a NULL location.
9692         * linespec.c [IF_KEYWORD_INDEX]: Define.
9693         (linespec_lexer_lex_keyword): Export.
9694         (struct ls_parser) <keyword_ok>: Remove.
9695         A keyword is only a keyword if not followed by another keyword.
9696         (linespec_lexer_lex_one): Remove keyword_ok handling.
9697         Add comment explaining why the parsing stream is not advanced
9698         when a keyword is seen.
9699         (parse_linespec): Remove parser->keyword_ok.
9700         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9701
9702 2015-03-23  Keith Seitz  <keiths@redhat.com>
9703
9704         PR gdb/18021
9705         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9706         if we find a static method with DW_AT_vtable_elem_location.
9707
9708 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9709
9710         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9711         before the second loop, to avoid undefined behavior.  Reported by
9712         Anton Blanchard <anton@samba.org>.
9713
9714 2015-03-20  Keven Boell  <keven.boell@intel.com>
9715
9716         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9717         data_location usage to linked list.
9718         (resolve_dynamic_type_internal): Adapt data_location to
9719         linked list.
9720         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9721         (copy_type_recursive, copy_type): Add copy of linked list.
9722         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9723         (struct dynamic_prop_list): New struct.
9724         * dwarf2read.c (set_die_type): Set data_location data.
9725
9726 2015-03-20  Pedro Alves  <palves@redhat.com>
9727
9728         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9729         inner block and make it const.
9730         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9731
9732 2015-03-20  Pedro Alves  <palves@redhat.com>
9733
9734         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9735         * breakpoint.h (set_breakpoint_condition): Update declaration.
9736
9737 2015-03-20  Pedro Alves  <palves@redhat.com>
9738
9739         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9740
9741 2015-03-20  Pedro Alves  <palves@redhat.com>
9742
9743         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9744
9745 2015-03-20  Pedro Alves  <palves@redhat.com>
9746
9747         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9748
9749 2015-03-20  Pedro Alves  <palves@redhat.com>
9750
9751         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9752         (nto_init_solib_absolute_prefix): Likewise.
9753
9754 2015-03-20  Pedro Alves  <palves@redhat.com>
9755
9756         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9757         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9758
9759 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9760
9761         * config/djgpp/README: Remove gdb.hp.
9762
9763 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9764
9765         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9766         set_gdbarch_cannot_step_breakpoint.
9767
9768 2015-03-19  Pedro Alves  <palves@redhat.com>
9769
9770         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9771         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9772         instead call perror_with_name.
9773         (check_ptrace_stopped_lwp_gone): New function.
9774         (linux_resume_one_lwp): Reimplement as wrapper around
9775         linux_resume_one_lwp_throw that swallows errors if the LWP is
9776         gone.
9777         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9778         swallows errors if the LWP is gone.  Use
9779         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9780
9781 2015-03-19  Pedro Alves  <palves@redhat.com>
9782
9783         * linux-nat.c (status_callback): Return early if the LWP has no
9784         status pending.
9785
9786 2015-03-19  Pedro Alves  <palves@redhat.com>
9787
9788         * linux-nat.c (select_event_lwp_callback): Update comment to no
9789         longer mention SIGTRAP.
9790
9791 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9792
9793         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9794         redirection code to ...
9795         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9796         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9797
9798 2015-03-18  Gary Benson <gbenson@redhat.com>
9799
9800         (remote_protocol_features): Remove the "vFile:fstat" feature.
9801         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9802
9803 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9804
9805         PR tdep/18107
9806         * aarch64-linux-tdep.c: Include xml-syscall.h
9807         (aarch64_linux_get_syscall_number): New function.
9808         (aarch64_linux_init_abi): Call
9809         set_gdbarch_get_syscall_number.
9810         * syscalls/aarch64-linux.xml: New file.
9811
9812 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9813
9814         * ser-base.h (ser_base_setstopbits): Change second argument name
9815         from "rate" to "num".
9816
9817 2015-03-17  Gary Benson <gbenson@redhat.com>
9818             Luke Allardyce <lukeallardyce@gmail.com>
9819
9820         PR gdb/18131
9821         * common/common-remote-fileio.h (sys/stat.h): New include.
9822         (stuct stat): Remove forward declaration.
9823
9824 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9825
9826         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9827         before writing core register notes.
9828
9829 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9830             Pedro Alves  <palves@redhat.com>
9831
9832         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9833         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9834         (tgoto): Wrap with extern "C".
9835
9836 2015-03-16  Pedro Alves  <palves@redhat.com>
9837             Yuanhui Zhang  <asmwarrior@gmail.com>
9838
9839         * stub-termcap.c (tputs): Change prototype.
9840
9841 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9842             Pedro Alves  <palves@redhat.com>
9843
9844         * windows-nat.c (struct thread_info_struct): Rename to ...
9845         (struct windows_thread_info_struct): ... this.
9846         (thread_info): Rename to ...
9847         (windows_thread_info): ... this.
9848         All users updated.
9849
9850 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9851             Pedro Alves  <palves@redhat.com>
9852
9853         * NEWS: New Removed targets and native configurations.
9854
9855 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9856
9857         Remove HPUX.
9858         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9859         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9860         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9861         ia64-hpux-tdep.h, solib-ia64-hpux.h.
9862         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9863         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9864         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9865         hppa-hpux-tdep.c.
9866         * config/ia64/hpux.mh: Remove file.
9867         * config/pa/hpux.mh: Remove file.
9868         * configure: Rebuilt.
9869         * configure.ac (dlgetmodinfo, somread.o): Remove.
9870         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9871         (ia64-*-hpux*): Remove its float format exception.
9872         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9873         * hppa-hpux-nat.c: Remove file.
9874         * hppa-hpux-tdep.c: Remove file.
9875         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9876         Move them here from hppa-tdep.h
9877         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9878         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9879         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9880         Move them to hppa-tdep.c.
9881         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9882         declarations.
9883         * ia64-hpux-nat.c: Remove file.
9884         * ia64-hpux-tdep.c: Remove file.
9885         * ia64-hpux-tdep.h: Remove file.
9886         * inf-ttrace.c: Remove file.
9887         * inf-ttrace.h: Remove file.
9888         * solib-ia64-hpux.c: Remove file.
9889         * solib-ia64-hpux.h: Remove file.
9890         * solib-pa64.c: Remove file.
9891         * solib-pa64.h: Remove file.
9892         * solib-som.c: Remove file.
9893         * solib-som.h: Remove file.
9894         * somread.c: Remove file.
9895
9896 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9897
9898         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9899         * config.in: Regenerate.
9900         * configure: Regenerate.
9901         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9902         define.
9903         (fbsd_find_memory_regions): Use kinfo_getvmmap to
9904         enumerate memory regions if present.
9905
9906 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
9907
9908         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9909         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9910         expressions.
9911         (i386fbsd_sigtramp_p): Likewise.
9912
9913 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
9914
9915         * MAINTAINERS (Write After Approval): Add John Baldwin.
9916
9917 2015-03-12  Gary Benson <gbenson@redhat.com>
9918
9919         * solib.c (_initialize_solib): Make "set/show sysroot" use
9920         add_setshow_optional_filename_cmd so it can be restored to
9921         empty after being set.
9922
9923 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9924
9925         * Makefile.in (SFILES): New source break-catch-syscall.c.
9926         (COMMON_OBS): New object break-catch-syscall.o.
9927         * break-catch-syscall.c: New file.
9928         * breakpoint.c: Remove inclusion of "xml-syscall.h".
9929         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9930         (struct syscall_catchpoint): Likewise.
9931         (dtor_catch_syscall): Likewise.
9932         (catch_syscall_inferior_data): Likewise.
9933         (struct catch_syscall_inferior_data): Likewise.
9934         (get_catch_syscall_inferior_data): Likewise.
9935         (catch_syscall_inferior_data_cleanup): Likewise.
9936         (insert_catch_syscall): Likewise.
9937         (remove_catch_syscall): Likewise.
9938         (breakpoint_hit_catch_syscall): Likewise.
9939         (print_it_catch_syscall): Likewise.
9940         (print_one_catch_syscall): Likewise.
9941         (print_mention_catch_syscall): Likewise.
9942         (print_recreate_catch_syscall): Likewise.
9943         (catch_syscall_breakpoint_ops): Likewise.
9944         (syscall_catchpoint_p): Likewise.
9945         (create_syscall_event_catchpoint): Likewise.
9946         (catch_syscall_split_args): Likewise.
9947         (catch_syscall_command_1): Likewise.
9948         (is_syscall_catchpoint_enabled): Likewise.
9949         (catch_syscall_enabled): Likewise.
9950         (catching_syscall_number): Likewise.
9951         (catch_syscall_completer): Likewise.
9952         (clear_syscall_counts): Likewise.
9953         (initialize_breakpoint_ops): Move initialization of syscall
9954         catchpoints to break-catch-syscall.c.
9955         (_initialize_breakpoint): Move code related to syscall catchpoints
9956         to break-catch-syscall.c.
9957
9958 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9959
9960         * breakpoint.c (breakpoint_find_if): New function.
9961         * breakpoint.h (breakpoint_find_if): New prototype.
9962
9963 2015-03-11  Gary Benson <gbenson@redhat.com>
9964
9965         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9966         * remote-fileio.c (remote_fileio_to_host_uint): New function.
9967         (remote_fileio_to_host_ulong): Likewise.
9968         (remote_fileio_to_host_mode): Likewise.
9969         (remote_fileio_to_host_time): Likewise.
9970         (remote_fileio_to_host_stat): Likewise.
9971         * remote.c (PACKET_vFile_fstat): New enum value.
9972         (remote_protocol_features): Register the "vFile:fstat" feature.
9973         (remote_hostio_fstat): New function.
9974         (remote_bfd_iovec_stat): Use the above.
9975         (_initialize_remote): Register new "set/show remote
9976         hostio-fstat-packet" command.
9977         * symfile.c (separate_debug_file_exists): Update comment.
9978         * NEWS: Announce new vFile:fstat packet.
9979
9980 2015-03-11  Gary Benson <gbenson@redhat.com>
9981
9982         * common/common-remote-fileio.h: New file.
9983         * common/common-remote-fileio.c: Likewise.
9984         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9985         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9986         (COMMON_OBS): Add common-remote-fileio.o.
9987         (common-remote-fileio.o): New rule.
9988         * remote-fileio.h (common-remote-fileio.h): New include.
9989         * remote-fileio.c (gdb/fileio.h): Do not include.
9990         (remote_fileio_to_be): Moved to common-remote-fileio.h.
9991         (remote_fileio_to_fio_uint): Likewise.
9992         (remote_fileio_to_fio_time): Likewise.
9993         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9994         (remote_fileio_to_fio_mode): Likewise.
9995         (remote_fileio_to_fio_ulong): Likewise.
9996         (remote_fileio_to_fio_stat): Likewise.
9997
9998 2015-03-11  Andy Wingo  <wingo@igalia.com>
9999
10000         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10001         we were checking the cached type, not the cached dynamic type.
10002
10003 2015-03-11  Andy Wingo  <wingo@igalia.com>
10004
10005         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10006         other strings, as these are on the GC'd heap, and will be
10007         collected along with the smob.
10008
10009 2015-03-11  Andy Wingo  <wingo@igalia.com>
10010
10011         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10012         (objfile_functions): Bind gdbscm_objfile_progspace to
10013         objfile-progspace.
10014         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10015
10016 2015-03-11  Andy Wingo  <wingo@igalia.com>
10017
10018         * guile/guile.c (_initialize_guile): Disable automatic
10019         finalization, if Guile offers us that possibility.
10020         * guile/guile.c (call_initialize_gdb_module):
10021         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10022         finalizers in appropriate places.
10023         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10024         scm_set_automatic_finalization_enabled.
10025         * configure: Regenerated.
10026
10027 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10028
10029         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10030         SAL, if possible.
10031
10032 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10033
10034         * s390-linux-nat.c (struct arch_lwp_info): New.
10035         (s390_fix_watch_points): Rename to...
10036         (s390_prepare_to_resume): ...this.  Skip the PER info update
10037         unless the watch points have changed.
10038         (s390_refresh_per_info, s390_new_thread): New functions.
10039         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10040         s390_fix_watch_points.
10041         (s390_remove_watchpoint): Likewise.
10042         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10043         Register s390_prepare_to_resume.
10044
10045 2015-03-09  Pedro Alves  <palves@redhat.com>
10046
10047         Revert:
10048         2015-03-07  Pedro Alves  <palves@redhat.com>
10049         * common/gdb_socket.h: New file.
10050         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10051         sys/socket.h.
10052         (net_open): Use union gdb_sockaddr_u.
10053
10054 2015-03-07  Pedro Alves  <palves@redhat.com>
10055
10056         * configure.ac (build_warnings): Move -Wmissing-prototypes
10057         -Wdeclaration-after-statement -Wmissing-parameter-type
10058         -Wold-style-declaration -Wold-style-definition to the C-specific
10059         set.
10060         * configure: Regenerate.
10061
10062 2015-03-07  Pedro Alves  <palves@redhat.com>
10063
10064         * common/gdb_socket.h: New file.
10065         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10066         sys/socket.h.
10067         (net_open): Use union gdb_sockaddr_u.
10068
10069 2015-03-07  Pedro Alves  <palves@redhat.com>
10070
10071         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10072         (exceptions_state_mc_action_iter)
10073         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10074         Don't define.
10075         [__cplusplus] (try_scope_depth): New global.
10076         [__cplusplus] (exception_try_scope_entry)
10077         (exception_try_scope_exit, gdb_exception_sliced_copy)
10078         (exception_rethrow): New functions.
10079         (throw_exception): In C++ mode, throw
10080         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10081         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10082         (throw_it): In C++ mode, use try_scope_depth.
10083         * common/common-exceptions.h [!__cplusplus]
10084         (exceptions_state_mc_action_iter)
10085         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10086         Don't declare.
10087         [__cplusplus] (exception_try_scope_entry)
10088         (exception_try_scope_exit, exception_rethrow): Declare.
10089         [__cplusplus] (struct exception_try_scope): New struct.
10090         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10091         C++ exceptions.
10092         (struct gdb_exception_RETURN_MASK_ALL)
10093         (struct gdb_exception_RETURN_MASK_ERROR)
10094         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10095
10096 2015-03-07  Pedro Alves  <palves@redhat.com>
10097
10098         * main.c (handle_command_errors): Remove volatile qualifier from
10099         parameter.
10100
10101 2015-03-07  Pedro Alves  <palves@redhat.com>
10102
10103         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10104         TRY and CATCH.
10105         * gdbtypes.c (safe_parse_type): Remove empty line.
10106         (types_deeply_equal):
10107         * guile/scm-frame.c (gdbscm_frame_name):
10108         * linux-thread-db.c (find_new_threads_once):
10109         * python/py-breakpoint.c (bppy_get_commands):
10110         * record-btrace.c (record_btrace_insert_breakpoint)
10111         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10112         (record_btrace_start_replaying): Adjust to avoid code between TRY
10113         and CATCH.
10114
10115 2015-03-07  Pedro Alves  <palves@redhat.com>
10116
10117         * common/common-exceptions.c (struct catcher) <exception>: No
10118         longer a pointer to volatile exception.  Now an exception value.
10119         <mask>: Delete field.
10120         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10121         (exceptions_state_mc): No longer pop the catcher here.
10122         (exceptions_state_mc_catch): New function.
10123         (throw_exception): Adjust.
10124         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10125         all parameters.
10126         (exceptions_state_mc_catch): Declare.
10127         (TRY_CATCH): Rename to ...
10128         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10129         (CATCH, END_CATCH): New.
10130         All callers adjusted.
10131
10132 2015-03-07  Tom Tromey  <tromey@redhat.com>
10133
10134         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10135
10136 2015-03-07  Pedro Alves  <palves@redhat.com>
10137
10138         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10139         (amd64_epilogue_frame_cache): Normal exception handling code.
10140         * break-catch-throw.c (check_status_exception_catchpoint)
10141         (re_set_exception_catchpoint): Ditto.
10142         * cli/cli-interp.c (safe_execute_command):
10143         * cli/cli-script.c (script_from_file): Ditto.
10144         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10145         Ditto.
10146         * compile/compile-object-run.c (compile_object_run): Ditto.
10147         * cp-abi.c (baseclass_offset): Ditto.
10148         * cp-valprint.c (cp_print_value): Ditto.
10149         * exceptions.c (catch_exceptions_with_msg):
10150         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10151         * frame.c (get_frame_address_in_block_if_available): Ditto.
10152         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10153         (i386_sigtramp_frame_cache): Ditto.
10154         * infcmd.c (post_create_inferior): Ditto.
10155         * linespec.c (parse_linespec, find_linespec_symbols):
10156         * p-valprint.c (pascal_object_print_value): Ditto.
10157         * parse.c (parse_expression_for_completion): Ditto.
10158         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10159         * remote.c (remote_get_noisy_reply): Ditto.
10160         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10161         * solib-svr4.c (solib_svr4_r_map): Ditto.
10162
10163 2015-03-06  Gary Benson  <gbenson@redhat.com>
10164
10165         * common/common-utils.h (startswith): New inline function.
10166         All places where this logic was used updated to use the above.
10167
10168 2015-03-05  Pedro Alves  <palves@redhat.com>
10169
10170         PR gdb/18002
10171         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10172         after reading the breakpoint's shadow memory.
10173
10174 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10175
10176         * hppabsd-nat.c: Remove file.
10177         * hppaobsd-nat.c: New file.
10178         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10179         hppaobsd-nat.c.
10180         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10181         hppaobsd-nat.o.
10182
10183 2015-03-04  Pedro Alves  <palves@redhat.com>
10184
10185         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10186         (target_decr_pc_after_break): Delete declaration.
10187         * target.c (default_target_decr_pc_after_break)
10188         (target_decr_pc_after_break): Delete.
10189         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10190         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10191         * linux-thread-db.c (check_event): Likewise.
10192         * infrun.c (adjust_pc_after_break): Likewise.
10193         * darwin-nat.c (cancel_breakpoint): Likewise.
10194         * aix-thread.c (aix_thread_wait): Likewise.
10195         * target-delegates.c: Regenerate.
10196
10197 2015-03-04  Pedro Alves  <palves@redhat.com>
10198
10199         * linux-nat.c (save_sigtrap): Check for breakpoints before
10200         checking watchpoints.
10201         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10202         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10203         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10204         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10205         (linux_nat_stopped_by_sw_breakpoint)
10206         (linux_nat_supports_stopped_by_sw_breakpoint)
10207         (linux_nat_stopped_by_hw_breakpoint)
10208         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10209         (linux_nat_wait_1): Don't re-increment the PC if relying on
10210         SIGTRAP's siginfo->si_code.
10211         (linux_nat_add_target): Install new target methods.
10212         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10213         offset if the target already adjusted the PC.
10214         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10215         (GDB_ARCH_TRAP_BRKPT): New.
10216         (TRAP_HWBKPT): Define if not already defined.
10217
10218 2015-03-04  Pedro Alves  <palves@redhat.com>
10219
10220         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10221         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10222         Delete field.
10223         <stop_reason>: New field.
10224         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10225         (packet_set_cmd_state): New function.
10226         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10227         features.
10228         (remote_query_supported): If not disabled with the corresponding
10229         "set remote foo-packet" command, report support for the swbreak
10230         and hwbreak features.
10231         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10232         field.
10233         <stop_reason>: New field.
10234         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10235         (remote_wait_as): Adjust.
10236         (remote_stopped_by_sw_breakpoint)
10237         (remote_supports_stopped_by_sw_breakpoint)
10238         (remote_stopped_by_hw_breakpoint)
10239         (remote_supports_stopped_by_hw_breakpoint): New functions.
10240         (remote_stopped_by_watchpoint): New function.
10241         (init_remote_ops): Install them.
10242         (_initialize_remote): Register new "set/show remote
10243         swbreak-feature-packet" and "set/show remote
10244         swbreak-feature-packet" commands.
10245
10246 2015-03-04  Pedro Alves  <palves@redhat.com>
10247
10248         * btrace.h: Include target/waitstatus.h.
10249         (struct btrace_thread_info) <stop_reason>: New field.
10250         * record-btrace.c (record_btrace_step_thread): Use
10251         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10252         (record_btrace_decr_pc_after_break): Delete.
10253         (record_btrace_stopped_by_sw_breakpoint)
10254         (record_btrace_supports_stopped_by_sw_breakpoint)
10255         (record_btrace_stopped_by_hw_breakpoint)
10256         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10257         (init_record_btrace_ops): Install them.
10258         * record-full.c (record_full_hw_watchpoint): Delete and replace
10259         with ...
10260         (record_full_stop_reason): ... this throughout.
10261         (record_full_exec_insn): Adjust.
10262         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10263         (record_full_wait_1): Adjust.  Use
10264         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10265         (record_full_stopped_by_watchpoint): Adjust.
10266         (record_full_stopped_by_sw_breakpoint)
10267         (record_full_supports_stopped_by_sw_breakpoint)
10268         (record_full_supports_stopped_by_sw_breakpoint)
10269         (record_full_stopped_by_hw_breakpoint)
10270         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10271         (init_record_full_ops, init_record_full_core_ops): Install them.
10272         * record.c (record_check_stopped_by_breakpoint): New function.
10273         * record.h: Include target/waitstatus.h.
10274         (record_check_stopped_by_breakpoint): New declaration.
10275
10276 2015-03-04  Pedro Alves  <palves@redhat.com>
10277
10278         enum lwp_stop_reason -> enum target_stop_reason
10279         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10280         (linux_nat_stopped_by_watchpoint, status_callback)
10281         (linux_nat_wait_1): Adjust.
10282         * linux-nat.h (enum lwp_stop_reason): Delete.
10283         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10284         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10285         * target/waitstatus.h (enum target_stop_reason): New.
10286
10287 2015-03-04  Pedro Alves  <palves@redhat.com>
10288
10289         * breakpoint.c (need_moribund_for_location_type): New function.
10290         (bpstat_stop_status): Don't skipping checking moribund locations
10291         of breakpoint types which the target tell caused a stop.
10292         (program_breakpoint_here_p): New function, factored out from ...
10293         (bp_loc_is_permanent): ... this.
10294         (update_global_location_list): Don't create a moribund location if
10295         the target supports reporting stops of the type of the removed
10296         breakpoint.
10297         * breakpoint.h (program_breakpoint_here_p): New declaration.
10298         * infrun.c (adjust_pc_after_break): Return early if the target has
10299         already adjusted the PC.  Add comments.
10300         (handle_signal_stop): If nothing explains a signal, and the target
10301         tells us the stop was caused by a software breakpoint, check if
10302         there's a breakpoint instruction in the memory.  If so, adjust the
10303         PC before presenting the stop to the user.  Otherwise, ignore the
10304         trap.  If nothing explains a signal, and the target tells us the
10305         stop was caused by a hardware breakpoint, ignore the trap.
10306         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10307         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10308         to_supports_stopped_by_hw_breakpoint>: New fields.
10309         (target_stopped_by_sw_breakpoint)
10310         (target_supports_stopped_by_sw_breakpoint)
10311         (target_stopped_by_hw_breakpoint)
10312         (target_supports_stopped_by_hw_breakpoint): Define.
10313         * target-delegates.c: Regenerate.
10314
10315 2015-03-04  Pedro Alves  <palves@redhat.com>
10316
10317         * infrun.c (follow_fork_inferior): Use the whole of the
10318         inferior_ptid and pending_follow.related_pid ptids instead of
10319         building ptids from the process components.  Adjust verbose output
10320         to use target_pid_to_str.
10321         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10322         inferior_ptid and pending_follow.related_pid ptids instead of
10323         building ptids from the process components.
10324
10325 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10326
10327         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10328         (inf_ptrace_insert_fork_catchpoint): New function.
10329         (inf_ptrace_remove_fork_catchpoint): New function.
10330         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10331
10332 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10333
10334         * s390-linux-tdep.c (s390_register_name): Return empty string
10335         instead of NULL for registers that shouldn't be visible.
10336
10337 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10338
10339         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10340         XML file for 64-bit targets.
10341
10342 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10343
10344         * target.h (find_default_create_inferior): Remove declaration.
10345         (find_default_attach): Likewise.
10346
10347 2015-03-03  Pedro Alves  <palves@redhat.com>
10348
10349         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10350         Use ptid_get_pid to get the overall process id when resuming all
10351         threads.
10352
10353 2015-03-03  Pedro Alves  <palves@redhat.com>
10354
10355         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10356         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10357         * inf-ptrace.c (get_ptrace_pid): New function.
10358         (inf_ptrace_resume): Use it.
10359         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10360         to the lower layer.
10361
10362 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10363
10364         * nat/linux-btrace.c: Include sys/utsname.h.
10365         (linux_determine_kernel_ptr_bits): New.
10366         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10367         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10368         ptr_bits.
10369
10370 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10371
10372         * btrace.c (ftrace_update_function): Treat return as tailcall for
10373         "_dl_runtime_resolve".
10374
10375 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10376
10377         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10378         * btrace.c (ftrace_debug): Do not print the line range.
10379         (ftrace_skip_file, ftrace_update_lines): Remove.
10380         (ftrace_new_function): Remove lbegin and lend initialization.
10381         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10382         * record-btrace.c (btrace_compute_src_line_range): New.
10383         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10384
10385 2015-03-02  Pedro Alves  <palves@redhat.com>
10386
10387         * infrun.c (follow_exec): Delete all threads of the process except
10388         the event thread.  Extended comments.
10389
10390 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10391
10392         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10393
10394 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10395
10396         * utils.h: Remove <stdbool.h> #include.
10397         (producer_is_gcc): Change return type to "int".
10398         * utils.c (producer_is_gcc): Change return type to int.
10399         Return 1 instead of true, and 0 instead of false.
10400         Adjust function documentation accordingly.
10401
10402 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10403
10404         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10405         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10406         present.
10407         (s390_linux_store_inferior_registers): Likewise.
10408         (s390_get_hwcap): Remove function.  Embed its logic...
10409         (s390_read_description): ...here.  Yield a target description with
10410         vector registers if applicable.
10411         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10412         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10413         "features/s390x-tevx-linux64.c".
10414         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10415         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10416         for "GNU/Linux-specific registers".
10417         (s390_dwarf_reg_r0l): New enum value.
10418         (s390_dwarf_reg_to_regnum): Support vector registers.
10419         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10420         of GPR lower halves.
10421         (regnum_is_vxr_full): New function.
10422         (s390_register_name): New function.
10423         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10424         f0-f15 and v0l-v15l.
10425         (s390_pseudo_register_type): Likewise.
10426         (s390_pseudo_register_read): Likewise.
10427         (s390_pseudo_register_write): Likewise.
10428         (s390_value_from_register): Account for the fact that values are
10429         placed left-justified in vector registers.
10430         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10431         the vector reggroup and omit them from the general reggroup.
10432         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10433         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10434         (s390_iterate_over_regset_sections): Add iterations for the two
10435         new vector regsets.
10436         (s390_core_read_description): Yield a target description with
10437         vector registers if applicable.
10438         (s390_gdbarch_init): Handle target descriptions with vector
10439         registers.  Add "register_name" gdbarch method.
10440         (_initialize_s390_tdep): Call new tdesc initialization functions.
10441         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10442         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10443         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10444         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10445         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10446         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10447         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10448         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10449         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10450         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10451         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10452         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10453         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10454         (S390_NUM_REGS): Adjust value.
10455         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10456         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10457         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10458         * NEWS: Announce S/390 vector register support.
10459
10460 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10461
10462         * features/s390-tevx-linux64.xml: New file.
10463         * features/s390-vx-linux64.xml: New file.
10464         * features/s390-vx.xml: New file.
10465         * features/s390x-tevx-linux64.xml: New file.
10466         * features/s390x-vx-linux64.xml: New file.
10467         * features/Makefile (WHICH): Add s390-vx-linux64,
10468         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10469         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10470         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10471         macros.
10472         * features/s390-tevx-linux64.c: New generated file.
10473         * features/s390-vx-linux64.c: Likewise.
10474         * features/s390x-tevx-linux64.c: Likewise.
10475         * features/s390x-vx-linux64.c: Likewise.
10476         * regformats/s390-tevx-linux64.dat: Likewise.
10477         * regformats/s390-vx-linux64.dat: Likewise.
10478         * regformats/s390x-tevx-linux64.dat: Likewise.
10479         * regformats/s390x-vx-linux64.dat: Likewise.
10480
10481 2015-02-28  Doug Evans  <xdje42@gmail.com>
10482
10483         * symtab.h (struct symtab) <next>: Fix comment.
10484
10485 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10486
10487         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10488         python_GdbMethods.
10489
10490 2015-02-27  Pedro Alves  <palves@redhat.com>
10491
10492         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10493
10494 2015-02-27  Pedro Alves  <palves@redhat.com>
10495
10496         * common/common-exceptions.h (exception_none): Declare.
10497         * common/common-exceptions.c (exception_none): Moved from
10498         exceptions.c.
10499         (exceptions_state_mc_init): Use exception_none.
10500         * exceptions.c (exception_none): Move to
10501         common/common-exceptions.c.
10502         * exceptions.h (exception_none): Move to
10503         common/common-exceptions.h.
10504
10505 2015-02-27  Pedro Alves  <palves@redhat.com>
10506
10507         * main.c (catch_command_errors, catch_command_errors_const):
10508         Remove 'mask' argument.  Adjust.
10509         (captured_main): Adjust callers.
10510
10511 2015-02-27  Pedro Alves  <palves@redhat.com>
10512
10513         * python/python-internal.h: Include "extension-priv.h".
10514
10515 2015-02-27  Pedro Alves  <palves@redhat.com>
10516
10517         * breakpoint.h (enum print_stop_action): Move further up in the
10518         file.
10519
10520 2015-02-27  Pedro Alves  <palves@redhat.com>
10521
10522         * gdbarch.sh: Include regcache.h.
10523         * gdbarch.h: Regenerate.
10524
10525 2015-02-27  Pedro Alves  <palves@redhat.com>
10526
10527         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10528         Remove duplicate const.
10529         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10530         duplicate const.
10531
10532 2015-02-27  Pedro Alves  <palves@redhat.com>
10533
10534         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10535         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10536         * features/feature_to_c.sh: Tag the generated xml_builtin array
10537         with extern const in C++ mode.
10538
10539 2015-02-27  Tom Tromey  <tromey@redhat.com>
10540
10541         * minidebug.c (struct lzma_stream): Rename to ...
10542         (struct gdb_lzma_stream): ... this.
10543         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10544
10545 2015-02-27  Pedro Alves  <palves@redhat.com>
10546
10547         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10548         function.
10549         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10550         (mi_cmd_stack_list_variables): Use it.
10551
10552 2015-02-27  Pedro Alves  <palves@redhat.com>
10553
10554         * x86-linux-nat.c (u_debugreg_offset): New function.
10555         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10556
10557 2015-02-27  Pedro Alves  <palves@redhat.com>
10558
10559         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10560         declaration.
10561         Include break-common.h.
10562
10563 2015-02-27  Tom Tromey  <tromey@redhat.com>
10564             Pedro Alves <palves@redhat.com>
10565
10566         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10567         local used to iterate over enums.
10568         * completer.c (signal_completer): Likewise.
10569         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10570         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10571         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10572         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10573         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10574         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10575         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10576
10577 2015-02-27  Pedro Alves  <palves@redhat.com>
10578
10579         * target.h: Include "infrun.h".
10580
10581 2015-02-27  Pedro Alves  <palves@redhat.com>
10582
10583         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10584
10585 2015-02-27  Pedro Alves  <palves@redhat.com>
10586
10587         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10588         (IPA_SYM): Use it.
10589         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10590
10591 2015-02-27  Pedro Alves  <palves@redhat.com>
10592
10593         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10594         cli_mld_erase_entire_line, and make it extern "C".
10595         * common/common-defs.h (EXTERN_C): New.
10596         * completer.c (_rl_completion_prefix_display_length)
10597         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10598         out of gdb_display_match_list_1.
10599         (_rl_qsort_string_compare): Move declaration out of
10600         gdb_display_match_list_1, and make it extern "C".
10601         * defs.h (re_comp): Use EXTERN_C.
10602         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10603         and make it extern "C".
10604         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10605         and make it extern "C".
10606         (main): Move declaration out of maintenance_set_profile_cmd.
10607         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10608         EXTERN_C.
10609
10610 2015-02-27  Pedro Alves  <palves@redhat.com>
10611
10612         * python/python.c (GdbMethods): Rename to ...
10613         (python_GdbMethods): ... this and make extern.
10614         (GdbModuleDef): Rename to ...
10615         (python_GdbModuleDef): ... this and make extern.
10616
10617 2015-02-27  Pedro Alves  <palves@redhat.com>
10618
10619         * record-btrace.c (set_record_btrace_cmdlist)
10620         (show_record_btrace_cmdlist): Remove redefinitions.
10621
10622 2015-02-27  Tom Tromey  <tromey@redhat.com>
10623             Pedro Alves  <palves@redhat.com>
10624
10625         * dwarf2-frame.c (enum cfa_how_kind, struct
10626         dwarf2_frame_state_reg_info): Move out of struct
10627         dwarf2_frame_state.
10628         * dwarf2read.c (struct tu_stats): Move out of struct
10629         dwarf2_per_objfile.
10630         (struct file_entry): Move out of struct line_header.
10631         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10632         typedef_field_list): Move out of struct field_info.
10633         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10634         Move out of struct dynamic_prop.
10635         (union type_owner, union field_location, struct field, struct
10636         range_bounds, union type_specific): Move out of struct main_type.
10637         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10638         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10639         (struct call_site_target, union call_site_parameter_u, struct
10640         call_site_parameter): Move out of struct call_site.
10641         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10642         m32c_prologue.
10643         (enum srcdest_kind): Move out of struct srcdest.
10644         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10645         * prologue-value.h (enum prologue_value_kind): Move out of struct
10646         prologue_value.
10647         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10648         gdbarch_tdep.
10649         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10650         out of struct field_info.
10651         * symfile.h (struct other_sections): Move out of struct
10652         section_addr_info.
10653         * symtab.c (struct symbol_cache_slot): Move out struct
10654         block_symbol_cache.
10655         * target-descriptions.c (enum tdesc_type_kind): Move out of
10656         typedef struct tdesc_type.
10657         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10658         struct tui_line_or_address.
10659         * value.c (enum internalvar_kind, union internalvar_data): Move
10660         out of struct internalvar.
10661         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10662         gdbarch_tdep.
10663
10664 2015-02-27  Tom Tromey  <tromey@redhat.com>
10665             Pedro Alves  <palves@redhat.com>
10666
10667         Rename symbols whose names are reserved C++ keywords throughout.
10668
10669 2015-02-27  Pedro Alves  <palves@redhat.com>
10670
10671         * Makefile.in (COMPILER): New, get it from autoconf.
10672         (COMPILE.pre, CC_LD): Use COMPILER.
10673         (CXX): Get from autoconf instead.
10674         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10675         * acinclude.m4: Include build-with-cxx.m4.
10676         * build-with-cxx.m4: New file.
10677         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10678         Disable -Werror by default if building in C++ mode.
10679         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10680         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10681         Run supported-warning-flags tests with the C++ compiler.
10682         Save/restore CXXFLAGS too.
10683         * configure: Regenerate.
10684
10685 2015-02-27  Pedro Alves  <palves@redhat.com>
10686
10687         * libiberty.m4: New file.
10688         * acinclude.m4: Include libiberty.m4.
10689         * configure.ac: Call libiberty_INIT.
10690         * config.in, configure: Regenerate.
10691
10692 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10693
10694         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10695         31-bit targets, but 64-bit targets as well.
10696         (s390_gnu_triplet_regexp): New function.
10697         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10698         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10699         method.
10700
10701 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10702
10703         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10704         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10705         from CONTEXT_DEBUGGER.
10706
10707 2015-02-26  Doug Evans  <dje@google.com>
10708
10709         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10710         CHECK_TYPEDEF.
10711         (set_type_vptr_fieldno): Ditto.
10712         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10713         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10714
10715 2015-02-26  Pedro Alves  <palves@redhat.com>
10716
10717         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10718         * complaints.c (vcomplaint): Pass argument FMT directly to
10719         printf-like functions instead of complaint->fmt.
10720         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10721         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10722         * compile/compile-loc2c.c (pushf, unary, binary): Add
10723         ATTRIBUTE_PRINTF.
10724         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10725         to pushf.
10726         (BINARY): Pass string literal as format string to 'binary'.
10727         * compile/compile-object-load.c (link_callbacks_einfo): Add
10728         ATTRIBUTE_PRINTF.
10729         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10730
10731 2015-02-26  Pedro Alves  <palves@redhat.com>
10732
10733         * windows-termcap.c: Rename to ...
10734         * stub-termcap.c: ... this.  Adjust header line.
10735         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10736         windows-termcap.c.
10737         * configure: Regenerate.
10738         * configure.ac: Refer to stub-termcap.o instead of
10739         windows-termcap.o.
10740         * gdb_curses.h: Mention stub-termcap.c instead of
10741         windows-termcap.c.
10742
10743 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10744
10745         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10746         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10747
10748 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10749
10750         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10751
10752 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10753
10754         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10755         bfd_canonicalize_symtab.
10756
10757 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10758
10759         * amd64fbsd-nat.c: Include sys/user.h.
10760         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10761         instead of KERN_PS_STRINGS to locate the signal trampoline.
10762         * i386fbsd-nat.c: Include sys/user.h.
10763         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10764         instead of KERN_PS_STRINGS to locate the signal trampoline.
10765         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10766         (amd64fbsd_sigtramp_p): New.
10767         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10768         longer set default values.
10769         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10770         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10771         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10772         (i386fbsd_freebsd4_sigtramp_start)
10773         (i386fbsd_freebsd4_sigtramp_middle)
10774         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10775         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10776         (i386fbsd_sigtramp_p): New.
10777         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10778         longer set default values.
10779         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10780
10781 2015-02-25  John Baldwin  <jhb@freebsd.org>
10782
10783         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10784         get_frame_register instead of frame_unwind_register_unsigned.
10785
10786 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10787
10788         PR build/18033
10789         * compile/compile-c-support.c (c_compute_program): Change // comment.
10790         * compile/compile-object-load.c (setup_sections): Change // comment.
10791
10792 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10793
10794         PR build/18033:
10795         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10796
10797 2015-02-23  Pedro Alves  <palves@redhat.com>
10798
10799         * remote.c (skip_to_semicolon): New function.
10800         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10801         special case the stop reasons that look like hex numbers
10802         upfront.  Instead handle real register numbers after matching
10803         all the known stop reasons.
10804
10805 2015-02-21  Doug Evans  <dje@google.com>
10806
10807         PR c++/17976, symtab/17821
10808         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10809         is_in_anonymous.  All callers updated.
10810         (find_symbol_in_baseclass): Ditto.
10811         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10812         for symbols in an anonymous namespace.
10813         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10814         DW_AT_name directly.
10815         (dwarf2_name): Convert missing namespace name to
10816         CP_ANONYMOUS_NAMESPACE_STR.
10817
10818 2015-02-20  Pedro Alves  <palves@redhat.com>
10819
10820         * linux-nat.c (linux_handle_extended_wait): Call
10821         thread_db_notice_clone whenever a new clone LWP is detected.
10822         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10823         functions.
10824         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10825         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10826         (linux_unstop_all_lwps): Declare.
10827         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10828         (thread_get_info_callback): Delete.
10829         (thread_from_lwp): Use td_thr_get_info and record_thread.
10830         (thread_db_attach_lwp): Delete.
10831         (thread_db_notice_clone): New function.
10832         (try_thread_db_load_1): If /proc is mounted and shows the
10833         process'es task list, walk over all LWPs and call thread_from_lwp
10834         instead of relying on td_ta_thr_iter.
10835         (attach_thread): Don't call check_thread_signals here.  Split the
10836         tail part of the function (which adds the thread to the core GDB
10837         thread list) to ...
10838         (record_thread): ... this function.  Call check_thread_signals
10839         here.
10840         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10841         call thread_from_lwp.
10842         (thread_db_update_thread_list): Rename to ...
10843         (thread_db_update_thread_list_org): ... this.
10844         (thread_db_update_thread_list): New function.
10845         (thread_db_find_thread_from_tid): Delete.
10846         (thread_db_get_ada_task_ptid): Simplify.
10847         * nat/linux-procfs.c: Include <sys/stat.h>.
10848         (linux_proc_task_list_dir_exists): New function.
10849         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10850
10851 2015-02-20  Pedro Alves  <palves@redhat.com>
10852
10853         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10854         main LWP.  Handle the case of waitpid returning 0 if we're already
10855         attached to the LWP.  Don't set the LWP's last_resume_kind to
10856         resume_stop if we already knew about the LWP.
10857         (linux_nat_filter_event): Add debug logs.
10858
10859 2015-02-20  Pedro Alves  <palves@redhat.com>
10860
10861         * target.h (forward_target_decr_pc_after_break): Delete
10862         declaration.
10863
10864 2015-02-20  Pedro Alves  <palves@redhat.com>
10865
10866         PR threads/18006
10867         * linux-thread-db.c (thread_get_info_callback): Return early if
10868         the thread's lwp id is -1.
10869
10870 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
10871
10872         GDB 7.9 released.
10873
10874 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
10875
10876         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10877         (dtrace_get_probes) Change type of variable 'dof'.
10878
10879 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10880
10881         PR breakpoints/16812
10882         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10883         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10884         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10885
10886 2015-02-19  David Taylor  <dtaylor@emc.com>
10887
10888         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10889
10890 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
10891
10892         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10893         function.
10894         (tui_putc): Don't call tui_handle_resize_during_io.
10895         (tui_getc): Likewise.
10896         (tui_mld_getc): Likewise.
10897         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10898         (tui_sigwinch_token): New static variable.
10899         (tui_initialize_win): Adjust documentation.  Set
10900         tui_sigwinch_token.
10901         (tui_async_resize_screen): New asynchronous callback.
10902         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
10903         invoke tui_async_resize_screen.
10904
10905 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
10906
10907         * configure: Regenerated.
10908         * configure.ac: Use GDB_AC_TRANSFORM.
10909         * Makefile.in (aclocal_m4_deps): Added transform.m4.
10910         * acinclude.m4: sinclude transform.m4.
10911         * transform.m4: New file.
10912         (GDB_AC_TRANSFORM): New macro.
10913
10914 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10915
10916         * NEWS: Announce the support for DTrace SDT probes.
10917
10918 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10919
10920         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10921         (amd64_dtrace_parse_probe_argument): New function.
10922         (amd64_dtrace_probe_is_enabled): Likewise.
10923         (amd64_dtrace_enable_probe): Likewise.
10924         (amd64_dtrace_disable_probe): Likewise.
10925         (amd64_linux_init_abi): Register the
10926         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10927         `gdbarch_dtrace_disable_probe' and
10928         `gdbarch_dtrace_probe_is_enabled' hooks.
10929         (amd64_dtrace_disabled_probe_sequence_1): New constant.
10930         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10931         (amd64_dtrace_enable_probe_sequence): Likewise.
10932         (amd64_dtrace_disable_probe_sequence): Likewise.
10933
10934 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10935
10936         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10937         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10938         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10939         handle ELF files.
10940         * Makefile.in (SFILES): dtrace-probe.c added.
10941         * configure: Regenerate.
10942         * dtrace-probe.c: New file.
10943         (SHT_SUNW_dof): New constant.
10944         (dtrace_probe_type): New enum.
10945         (dtrace_probe_arg): New struct.
10946         (dtrace_probe_arg_s): New typedef.
10947         (struct dtrace_probe_enabler): New struct.
10948         (dtrace_probe_enabler_s): New typedef.
10949         (dtrace_probe): New struct.
10950         (dtrace_probe_is_linespec): New function.
10951         (dtrace_dof_sect_type): New enum.
10952         (dtrace_dof_dofh_ident): Likewise.
10953         (dtrace_dof_encoding): Likewise.
10954         (DTRACE_DOF_ENCODE_LSB): Likewise.
10955         (DTRACE_DOF_ENCODE_MSB): Likewise.
10956         (dtrace_dof_hdr): New struct.
10957         (dtrace_dof_sect): Likewise.
10958         (dtrace_dof_provider): Likewise.
10959         (dtrace_dof_probe): Likewise.
10960         (DOF_UINT): New macro.
10961         (DTRACE_DOF_PTR): Likewise.
10962         (DTRACE_DOF_SECT): Likewise.
10963         (dtrace_process_dof_probe): New function.
10964         (dtrace_process_dof): Likewise.
10965         (dtrace_build_arg_exprs): Likewise.
10966         (dtrace_get_arg): Likewise.
10967         (dtrace_get_probes): Likewise.
10968         (dtrace_get_probe_argument_count): Likewise.
10969         (dtrace_can_evaluate_probe_arguments): Likewise.
10970         (dtrace_evaluate_probe_argument): Likewise.
10971         (dtrace_compile_to_ax): Likewise.
10972         (dtrace_probe_destroy): Likewise.
10973         (dtrace_gen_info_probes_table_header): Likewise.
10974         (dtrace_gen_info_probes_table_values): Likewise.
10975         (dtrace_probe_is_enabled): Likewise.
10976         (dtrace_probe_ops): New variable.
10977         (info_probes_dtrace_command): New function.
10978         (_initialize_dtrace_probe): Likewise.
10979         (dtrace_type_name): Likewise.
10980
10981 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10982
10983         * gdbarch.sh (dtrace_parse_probe_argument): New.
10984         (dtrace_probe_is_enabled): Likewise.
10985         (dtrace_enable_probe): Likewise.
10986         (dtrace_disable_probe): Likewise.
10987         * gdbarch.c: Regenerate.
10988         * gdbarch.h: Regenerate.
10989
10990 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
10991
10992         * stap-probe.c (stap_probe_ops): Add NULLs in the static
10993         stap_probe_ops for `enable_probe' and `disable_probe'.
10994         * probe.c (enable_probes_command): New function.
10995         (disable_probes_command): Likewise.
10996         (_initialize_probe): Define the cli commands `enable probe' and
10997         `disable probe'.
10998         (parse_probe_linespec): New function.
10999         (info_probes_for_ops): Use parse_probe_linespec.
11000         * probe.h (probe_ops): New hooks `enable_probe' and
11001         `disable_probe'.
11002
11003 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11004
11005         * probe.c (compute_probe_arg): Moved from stap-probe.c
11006         (compile_probe_arg): Likewise.
11007         (probe_funcs): Likewise.
11008         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11009         (compile_probe_arg): Likewise.
11010         (probe_funcs): Likewise.
11011
11012 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11013
11014         * probe.c (print_ui_out_not_applicables): New function.
11015         (exists_probe_with_pops): Likewise.
11016         (info_probes_for_ops): Do not include column headers for probe
11017         types for which no probe has been actually found on any object.
11018         Also invoke `print_ui_out_not_applicables' in order to match the
11019         column rows with the header when probes of several types are
11020         listed.
11021         Print the "Type" column.
11022         * probe.h (probe_ops): Added a new probe operation `type_name'.
11023         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11024         (stap_type_name): New function.
11025
11026 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11027
11028         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11029         (key_is_command_char): Delete.
11030
11031 2015-02-17  Pedro Alves  <palves@redhat.com>
11032
11033         * tui/tui.c (tui_enable): Resize windows before anything
11034         might show a window.
11035
11036 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11037
11038         PR gdb/17984
11039         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11040         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11041         call.
11042         * aarch64-tdep.h (tdesc_aarch64): Declare.
11043
11044 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11045
11046         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11047
11048 2015-02-13  Doug Evans  <dje@google.com>
11049
11050         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11051         anonymous_namespace to is_in_anonymous for consistency with the rest
11052         of the file.
11053         (cp_lookup_bare_symbol): Fix typo in comment.
11054         (cp_search_static_and_baseclasses): Ditto.
11055         (search_symbol_list): Use vertical space in comment better.
11056         (reset_directive_searched): Ditto. Fix typo.
11057         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11058
11059 2015-02-13  Yao Qi  <yao.qi@arm.com>
11060
11061         * MAINTAINERS: Update my email address.
11062
11063 2015-02-12  Doug Evans  <dje@google.com>
11064
11065         * symtab.c (completion_list_add_name): Fix memory leak.
11066
11067 2015-02-12  Doug Evans  <dje@google.com>
11068
11069         * completer.c (complete_line): Remove incorrect comment.
11070
11071 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11072
11073         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11074         (py_print_frame): Use RETURN_MASK_ERROR.
11075
11076 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11077
11078         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11079         function comment.  Wrap all function that can throw in cleanups.
11080         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11081         cleanups.
11082
11083 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11084
11085         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11086         Remove the error label.
11087
11088 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11089
11090         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11091         with goto first, indent the former else codepath left.  Put variable
11092         'elided' to a new inner block.
11093
11094 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11095
11096         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11097
11098 2015-02-11  Pedro Alves  <palves@redhat.com>
11099
11100         * xcoffread.c (within_function): Delete.
11101
11102 2015-02-11  Tom Tromey  <tromey@redhat.com>
11103             Pedro Alves <palves@redhat.com>
11104
11105         * breakpoint.c (base_breakpoint_ops): Delete.
11106         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11107         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11108         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11109         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11110         * python/py-arch.c (arch_object_type): Make extern.
11111         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11112         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11113         * python/py-cmd.c (cmdpy_object_type): Make extern.
11114         * python/py-continueevent.c (continue_event_object_type)
11115         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11116         parameter.  Update all callers.
11117         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11118         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11119         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11120         * python/py-function.c (fnpy_object_type): Make extern.
11121         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11122         * python/py-infevents.c (call_pre_event_object_type)
11123         (inferior_call_post_event_object_type).
11124         (memory_changed_event_object_type): Make extern.
11125         * python/py-infthread.c (thread_object_type): Make extern.
11126         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11127         * python/py-linetable.c (linetable_entry_object_type)
11128         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11129         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11130         (clear_objfiles_event_object_type): Make extern.
11131         * python/py-objfile.c (objfile_object_type): Make extern.
11132         * python/py-param.c (parmpy_object_type): Make extern.
11133         * python/py-progspace.c (pspace_object_type): Make extern.
11134         * python/py-signalevent.c (signal_event_object_type): Make extern.
11135         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11136         * python/py-type.c (type_object_type, field_object_type)
11137         (type_iterator_object_type): Make extern.
11138         * python/python.c (python_extension_script_ops)
11139         (python_extension_ops): Make extern.
11140         * stap-probe.c (stap_probe_ops): Make extern.
11141
11142 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11143
11144         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11145         because the event thread is not the current thread.
11146
11147 2015-02-11  Doug Evans  <xdje42@gmail.com>
11148
11149         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11150         been initialized yet, return NULL.
11151
11152 2015-02-11  Doug Evans  <dje@google.com>
11153
11154         * symfile.h (new_symfile_objfile): Delete.
11155         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11156         All callers updated.
11157
11158 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11159
11160         * tui/tui-io.c (tui_handle_resize_during_io): Call
11161         tui_update_gdb_sizes() after resizing the screen.
11162         * tui/tui.c (tui_enable): Resize the terminal before
11163         calling tui_update_gdb_sizes().
11164
11165 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11166
11167         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11168         line before printing a newline.
11169
11170 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11171
11172         * utils.c (producer_is_gcc): Return true or false.
11173
11174 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11175
11176         * utils.h (producer_is_gcc): Change return type to bool. Add major
11177         argument.
11178         * utils.c (producer_is_gcc): Likewise.
11179         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11180         * dwarf2read.c (check_producer): Likewise.
11181
11182 2015-02-10  Pedro Alves  <palves@redhat.com>
11183
11184         * infrun.c (displaced_step_fixup): Switch to the event thread
11185         before calling gdbarch_displaced_step_fixup.
11186
11187 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11188
11189         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11190
11191 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11192
11193         * ada-varobj.c (ada_name_of_child): Constify parent.
11194         (ada_path_expr_of_child): Same.
11195         (ada_value_of_child): Same.
11196         (ada_type_of_child): Same.
11197         * c-varobj.c (c_is_path_expr_parent): Same.
11198         (c_describe_child): Same.
11199         (c_name_of_child): Same.
11200         (c_value_of_child): Same.
11201         (c_type_of_child): Same.
11202         (cplus_number_of_children): Same.
11203         (cplus_describe_child): Constify var.
11204         (cplus_name_of_child): Constify parent.
11205         (cplus_value_of_child): Same.
11206         (cplus_type_of_child): Same.
11207         * jv-varobj.c (java_name_of_child): Same.
11208         (java_value_of_child): Same.
11209         (java_type_of_child): Same.
11210         * varobj.c (value_of_child): Same.
11211         (varobj_default_is_path_expr_parent): Constify var, parent and return
11212         value.
11213         (varobj_get_path_expr): Constify var, modify path_expr through
11214         mutable_var.
11215         (install_new_value): Constify parent.
11216         (value_of_child): Constify parent.
11217         * varobj.h (struct varobj): Constify parent.
11218         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11219         type_of_child.
11220         (varobj_get_path_expr): Constify var.
11221         (varobj_get_path_expr_parent): Constify var and return value.
11222
11223 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11224
11225         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11226         (arm_prologue_this_id): Move PC and SP limit checks to
11227         arm_prologue_unwind_stop_reason.
11228         (arm_prologue_unwind) <stop_reason> : Set to
11229         arm_prologue_unwind_stop_reason.
11230
11231 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11232
11233         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11234         DW_LANG_Fortran08 as language_fortran.
11235
11236 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11237
11238         PR remote/17946
11239         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11240         of pointer against char.
11241
11242 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11243
11244         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11245         (c_type_print_modifier): Likewise.
11246         * dwarf2read.c (read_tag_atomic_type): New function.
11247         (read_type_die_1): Handle DW_TAG_atomic_type.
11248         * gdbtypes.c (make_atomic_type): New function.
11249         (recursive_dump_type): Handle TYPE_ATOMIC.
11250         * gdbtypes.h (enum type_flag_values): Renumber.
11251         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11252         (TYPE_ATOMIC): New macro.
11253         (make_atomic_type): Declare.
11254
11255 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11256
11257         * btrace.c (ftrace_find_call): Skip gaps.
11258         (ftrace_new_function): Initialize level.
11259         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11260         (ftrace_new_switch): Update
11261         level computation.
11262         (ftrace_new_gap): New.
11263         (ftrace_update_function): Create new function after gap.
11264         (btrace_compute_ftrace_bts): Create gap on error.
11265         (btrace_stitch_bts): Update parameters.  Clear trace if it
11266         becomes empty.
11267         (btrace_stitch_trace): Update parameters.  Update callers.
11268         (btrace_clear): Reset the number of gaps.
11269         (btrace_insn_get): Return NULL if the iterator points to a gap.
11270         (btrace_insn_number): Return zero if the iterator points to a gap.
11271         (btrace_insn_end): Allow gaps at the end.
11272         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11273         (btrace_find_insn_by_number): Assert that the found iterator does
11274         not point to a gap.
11275         (btrace_call_next, btrace_call_prev): Assert that the last function
11276         is not a gap.
11277         * btrace.h (btrace_bts_error): New.
11278         (btrace_function): Update comment.
11279         (btrace_function) <insn, insn_offset, number>: Update comment.
11280         (btrace_function) <errcode>: New.
11281         (btrace_thread_info) <ngaps>: New.
11282         (btrace_thread_info) <replay>: Update comment.
11283         (btrace_insn_get): Update comment.
11284         * record-btrace.c (btrace_ui_out_decode_error): New.
11285         (record_btrace_info): Print number of gaps.
11286         (btrace_insn_history, btrace_call_history): Call
11287         btrace_ui_out_decode_error for gaps.
11288         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11289
11290 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11291
11292         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11293         * nat/linux-btrace.c: (btrace_this_cpu): New.
11294         (cpu_supports_bts): Call btrace_this_cpu.
11295         (intel_supports_bts): Add cpu parameter.
11296
11297 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11298
11299         * btrace.h (btrace_insn_class): New.
11300         (btrace_insn) <size, iclass>: New.
11301         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11302         Use instruction classification.
11303         (ftrace_new_return): Update parameters.  Update users.
11304         (ftrace_update_function): Update parameters.  Update users.  Use
11305         instruction classification.
11306         (ftrace_update_insns): Update parameters.  Update users.
11307         (ftrace_classify_insn): New.
11308         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11309         TRY_CATCH around call to gdb_insn_length.
11310
11311 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11312
11313         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11314         Update parameters.  Update users.
11315
11316 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11317
11318         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11319         (btrace_conf_bts_attributes): New.
11320         (btrace_conf_children): Add attributes.
11321         * common/btrace-common.h (btrace_config_bts): New.
11322         (btrace_config)<bts>: New.
11323         (btrace_config): Update comment.
11324         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11325         Use config.
11326         * features/btrace-conf.dtd: Increment version.  Add size
11327         attribute to bts element.
11328         * record-btrace.c (set_record_btrace_bts_cmdlist,
11329         show_record_btrace_bts_cmdlist): New.
11330         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11331         record_btrace_print_conf, cmd_set_record_btrace_bts,
11332         cmd_show_record_btrace_bts): New.
11333         (record_btrace_info): Call record_btrace_print_conf.
11334         (_initialize_record_btrace): Add commands.
11335         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11336         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11337         (btrace_sync_conf): Synchronize bts size.
11338         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11339         * NEWS: Announce new commands and new packets.
11340
11341 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11342
11343         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11344         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11345         (x86_linux_btrace_conf): New.
11346         (x86_linux_create_target): Initialize to_btrace_conf.
11347         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11348         Check format.  Split into this and ...
11349         (linux_enable_bts): ... this.
11350         (linux_btrace_conf): New.
11351         (perf_event_skip_record): Renamed into ...
11352         (perf_event_skip_bts_record): ... this.  Updated users.
11353         (linux_disable_btrace): Split into this and ...
11354         (linux_disable_bts): ... this.
11355         (linux_read_btrace): Check format.
11356         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11357         (linux_btrace_conf): New.
11358         (btrace_target_info)<ptid>: Moved.
11359         (btrace_target_info)<conf>: New.
11360         (btrace_target_info): Split into this and ...
11361         (btrace_tinfo_bts): ... this.  Updated users.
11362         * btrace.c (btrace_enable): Update parameters.
11363         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11364         (btrace_conf_children, btrace_conf_attributes)
11365         (btrace_conf_elements): New.
11366         * btrace.h (btrace_enable): Update parameters.
11367         (btrace_conf, parse_xml_btrace_conf): New.
11368         * common/btrace-common.h (btrace_config): New.
11369         * feature/btrace-conf.dtd: New.
11370         * record-btrace.c (record_btrace_conf): New.
11371         (record_btrace_cmdlist): New.
11372         (record_btrace_enable_warn, record_btrace_open): Pass
11373         &record_btrace_conf.
11374         (record_btrace_info): Print recording format.
11375         (cmd_record_btrace_bts_start): New.
11376         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11377         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11378         Add "record bts" alias command.
11379         * remote.c (remote_state)<btrace_config>: New.
11380         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11381         (remote_protocol_features): Add qXfer:btrace-conf:read.
11382         (remote_open_1): Call remote_btrace_reset.
11383         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11384         (btrace_target_info)<conf>: New.
11385         (btrace_sync_conf, btrace_read_config): New.
11386         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11387         btrace_read_conf.
11388         (remote_btrace_conf): New.
11389         (init_remote_ops): Initialize to_btrace_conf.
11390         (_initialize_remote): Add qXfer:btrace-conf packet.
11391         * target.c (target_enable_btrace): Update parameters.
11392         (target_btrace_conf): New.
11393         * target.h (target_enable_btrace): Update parameters.
11394         (target_btrace_conf): New.
11395         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11396         (target_ops)<to_enable_btrace>: Update parameters and comment.
11397         (target_ops)<to_btrace_conf>: New.
11398         * target-delegates: Regenerate.
11399         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11400         (target_debug_print_const_struct_btrace_target_info_p): New.
11401         * NEWS: Announce new command and new packet.
11402
11403 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11404
11405         * nat/linux-btrace.h (perf_event_buffer): New.
11406         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11407         <bts>: ... this.
11408         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11409         (perf_event_buffer_size, perf_event_buffer_begin)
11410         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11411         Updated users.
11412         (perf_event_new_data): New.
11413
11414 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11415
11416         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11417         * record-btrace.c (record_btrace_open): Remove call to
11418         target_supports_btrace.
11419         * remote.c (remote_supports_btrace): Update parameters.
11420         * target.c (target_supports_btrace): Update parameters.
11421         * target.h (to_supports_btrace, target_supports_btrace): Update
11422         parameters.
11423         * target-delegates.c: Regenerate.
11424         * target-debug.h (target_debug_print_enum_btrace_format): New.
11425         * nat/linux-btrace.c
11426         (kernel_supports_btrace): Rename into ...
11427         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11428         (intel_supports_btrace): Rename into ...
11429         (intel_supports_bts): ... this.  Update users.
11430         (cpu_supports_btrace): Rename into ...
11431         (cpu_supports_bts): ... this.  Update users.
11432         (linux_supports_btrace): Update parameters.  Split into this and ...
11433         (linux_supports_bts): ... this.
11434         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11435
11436 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11437
11438         * Makefile.in (SFILES): Add common/btrace-common.c.
11439         (COMMON_OBS): Add common/btrace-common.o.
11440         (btrace-common.o): Add build rules.
11441         * btrace.c (parse_xml_btrace): Update parameters.
11442         (parse_xml_btrace_block): Set format field.
11443         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11444         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11445         (btrace_compute_ftrace): Split into this and...
11446         (btrace_compute_ftrace_bts): ...this.
11447         (btrace_stitch_trace): Split into this and...
11448         (btrace_stitch_bts): ...this.
11449         * btrace.h (parse_xml_btrace): Update parameters.
11450         (make_cleanup_btrace_data): New.
11451         * common/btrace-common.c: New.
11452         * common/btrace-common.h: Include common-defs.h.
11453         (btrace_block_s): Update comment.
11454         (btrace_format): New.
11455         (btrace_format_string): New.
11456         (btrace_data_bts): New.
11457         (btrace_data): New.
11458         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11459         * remote.c (remote_read_btrace): Update parameters.
11460         * target.c (target_read_btrace): Update parameters.
11461         * target.h (target_read_btrace): Update parameters.
11462         (target_ops)<to_read_btrace>: Update parameters.
11463         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11464         * target-delegates.c: Regenerate.
11465         * target-debug (target_debug_print_struct_btrace_data_p): New.
11466         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11467         (linux_read_bts): ...this.
11468         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11469
11470 2015-02-06  Doug Evans  <dje@google.com>
11471
11472         * remote-m32r-sdi.c: Include symfile.h.
11473
11474 2015-02-06  Doug Evans  <dje@google.com>
11475
11476         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11477         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11478         to here.
11479
11480 2015-02-06  Pedro Alves  <palves@redhat.com>
11481
11482         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11483
11484 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11485
11486         PR gdb/15678
11487         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11488         (enable_count_command): Check args for NULL value.
11489
11490 2015-02-05  Doug Evans  <xdje42@gmail.com>
11491
11492         * guile/scm-frame.c: Fix spelling errors in a comment.
11493
11494 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11495
11496         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11497         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11498         return type.
11499
11500 2015-02-04  Pedro Alves  <palves@redhat.com>
11501
11502         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11503         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11504         returns true.
11505         (resume_stopped_resumed_lwps): Don't check whether the thread is
11506         marked as executing.
11507         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11508
11509 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11510
11511         * regset.h (struct regset): Add flags field.
11512         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11513         * corelow.c (get_core_register_section): Add warning if the size
11514         exceeds the requested size and the regset does not have the
11515         REGSET_VARIABLE_SIZE flag set.
11516         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11517         flag.
11518         * armbsd-tdep.c (armbsd_gregset): Likewise.
11519         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11520         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11521         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11522         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11523
11524 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11525
11526         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11527         For ".reg-xstate", explicitly specify the requested section size
11528         via X86_XSTATE_SIZE instead of just 0 on input and
11529         X86_XSTATE_MAX_SIZE on output.
11530         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11531         Likewise.
11532
11533 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11534
11535         PR corefiles/17808:
11536         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11537         function type, particularly its SIZE parameter.
11538         * gdbarch.h: Regenerate.
11539         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11540         actual against required size using ">=" instead of "==".
11541         (amd64_collect_fpregset): Likewise.
11542         * i386-tdep.c (i386_supply_gregset): Likewise.
11543         (i386_collect_gregset): Likewise.
11544         (i386_supply_fpregset): Likewise.
11545         (i386_collect_fpregset): Likewise.
11546         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11547         (mips_fill_gregset_wrapper): Likewise.
11548         (mips_supply_fpregset_wrapper): Likewise.
11549         (mips_fill_fpregset_wrapper): Likewise.
11550         (mips64_supply_gregset_wrapper): Likewise.
11551         (mips64_fill_gregset_wrapper): Likewise.
11552         (mips64_supply_fpregset_wrapper): Likewise.
11553         (mips64_fill_fpregset_wrapper): Likewise.
11554         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11555         (am33_supply_fpregset_method): Likewise.
11556         (am33_collect_gregset_method): Likewise.
11557         (am33_collect_fpregset_method): Likewise.
11558
11559 2015-02-04  Doug Evans  <dje@google.com>
11560             Pedro Alves  <palves@redhat.com>
11561             Eli Zaretskii  <eliz@gnu.org>
11562
11563         PR tui/17810
11564         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11565         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11566         * tui/tui-file.c: #include tui/tui-command.h.
11567         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11568         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11569         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11570
11571 2015-02-04  Pedro Alves  <palves@redhat.com>
11572
11573         Fix build breakage.
11574         * event-loop.c (gdb_do_one_event): Add default switch case.
11575
11576 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11577
11578         Filter out inferior gcc option -fpreprocessed.
11579         * compile/compile.c (filter_args): New function.
11580         (get_args): Use it.
11581
11582 2015-02-03  Pedro Alves  <palves@redhat.com>
11583
11584         * event-loop.c: Don't declare nor define a queue type for
11585         gdb_event_p.
11586         (event_queue): Delete.
11587         (create_event, create_file_event, gdb_event_xfree)
11588         (initialize_event_loop, process_event): Delete.
11589         (gdb_do_one_event): Return as soon as one event is handled.
11590         (handle_file_event): Change prototype.  Used the passed in
11591         file_handler pointer and ready_mask instead of looping over all
11592         file handlers.
11593         (gdb_wait_for_event): Update the poll/select timeouts before
11594         blocking.  Run event handlers directly instead of queueing events.
11595         Return as soon as one event is handled.
11596         (struct async_event_handler_data): Delete.
11597         (invoke_async_event_handler): Delete.
11598         (check_async_event_handlers): Change return type to int.  Run
11599         event handlers directly instead of queueing events.  Return as
11600         soon as one event is handled.
11601         (handle_timer_event): Delete.
11602         (update_wait_timeout): New function, factored out from
11603         poll_timers.
11604         (poll_timers): Reimplement.
11605         * event-loop.h (initialize_event_loop): Delete declaration.
11606         * top.c (gdb_init): Don't call initialize_event_loop.
11607
11608 2015-02-03  Pedro Alves  <palves@redhat.com>
11609
11610         * event-loop.c (clear_async_event_handler): New function.
11611         * event-loop.h (clear_async_event_handler): New declaration.
11612         * record-btrace.c (record_btrace_async): New function.
11613         (init_record_btrace_ops): Install record_btrace_async.
11614         * record-full.c (record_full_async): New function.
11615         (record_full_resume): Don't mark the async event source here.
11616         (init_record_full_ops): Install record_full_async.
11617         (record_full_core_resume): Don't mark the async event source here.
11618         (init_record_full_core_ops): Install record_full_async.
11619         * remote.c (remote_async): Mark and clear the async stop reply
11620         queue event-loop token as appropriate.
11621
11622 2015-02-03  Pedro Alves  <palves@redhat.com>
11623
11624         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11625         target_is_async_p instead of target_can_async.
11626         (linux_nat_wait): Use target_is_async_p instead of
11627         target_can_async.  Don't enable async here.
11628         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11629         target_is_async_p instead of target_can_async.
11630
11631 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11632
11633         * varobj.h (lang_varobj_ops): Mention which return values need
11634         to be freed.
11635
11636 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11637
11638         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11639
11640 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11641
11642         PR gdb/17856:
11643         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11644         results found in the cache.
11645
11646 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11647
11648         PR gdb/17854:
11649         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11650         when allocating a new one.
11651
11652 2015-02-01  Tom Tromey  <tom@tromey.com>
11653
11654         * MAINTAINERS: Remove myself.
11655
11656 2015-01-31  Doug Evans  <xdje42@gmail.com>
11657
11658         * dwarf2read.c (process_structure_scope): Update setting of
11659         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11660         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11661         (set_type_vptr_fieldno): New function.
11662         (internal_type_vptr_basetype): New function.
11663         (set_type_vptr_basetype): New function.
11664         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11665         TYPE_VPTR_BASETYPE.
11666         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11667         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11668         (print_cplus_stuff): ... moved here.
11669         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11670         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11671         moved to ...
11672         (struct cplus_struct_type): ... here.  All uses updated.
11673         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11674         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11675         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11676         * stabsread.c (read_tilde_fields): Update setting of
11677         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11678
11679 2015-01-31  Doug Evans  <xdje42@gmail.com>
11680
11681         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11682         to self_p.
11683         (cp_print_class_member): Rename local domain to self_type.
11684         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11685         domain_type to self_type.
11686         (set_die_type) <need_gnat_info>: Handle
11687         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11688         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11689         TYPE_SPECIFIC_SELF_TYPE.
11690         * gdbtypes.c (internal_type_self_type): New function.
11691         (set_type_self_type): New function.
11692         (smash_to_memberptr_type): Rename parameter domain to self_type.
11693         Update setting of TYPE_SELF_TYPE.
11694         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11695         (smash_to_method_type): Rename parameter domain to self_type.
11696         Update setting of TYPE_SELF_TYPE.
11697         (check_stub_method): Call smash_to_method_type.
11698         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11699         (copy_type_recursive): Ditto.
11700         * gdbtypes.h (enum type_specific_kind): New value
11701         TYPE_SPECIFIC_SELF_TYPE.
11702         (struct main_type) <type_specific>: New member self_type.
11703         (struct cplus_struct_type) <fn_field.type>: Update comment.
11704         (TYPE_SELF_TYPE): Rewrite.
11705         (internal_type_self_type, set_type_self_type): Declare.
11706         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11707         self_type.
11708         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11709         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11710         TYPE_TARGET_TYPE.
11711         * stabsread.c (read_member_functions): Mark methods with
11712         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11713         TYPE_SELF_TYPE.
11714
11715 2015-01-31  Doug Evans  <xdje42@gmail.com>
11716
11717         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11718         All uses updated.
11719
11720 2015-01-31  Doug Evans  <xdje42@gmail.com>
11721
11722         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11723         or unions.  Return zero if union.
11724         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11725         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11726         gnuv3_get_vtable.
11727         (compute_vtable_size): Assert only passed structs.
11728         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11729
11730 2015-01-31  Doug Evans  <xdje42@gmail.com>
11731
11732         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11733         kinds.
11734
11735 2015-01-31  Gary Benson <gbenson@redhat.com>
11736             Doug Evans  <dje@google.com>
11737
11738         PR cli/9007
11739         PR cli/11920
11740         PR cli/15548
11741         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11742         reached.
11743         * common/common-exceptions.h (enum errors)
11744         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11745         * completer.h (get_max_completions_reached_message): New declaration.
11746         (max_completions): Likewise.
11747         (completion_tracker_t): New typedef.
11748         (new_completion_tracker): New declaration.
11749         (make_cleanup_free_completion_tracker): Likewise.
11750         (maybe_add_completion_enum): New enum.
11751         (maybe_add_completion): New declaration.
11752         (throw_max_completions_reached_error): Likewise.
11753         * completer.c (max_completions): New global variable.
11754         (new_completion_tracker): New function.
11755         (free_completion_tracker): Likewise.
11756         (make_cleanup_free_completion_tracker): Likewise.
11757         (maybe_add_completions): Likewise.
11758         (throw_max_completions_reached_error): Likewise.
11759         (complete_line): Remove duplicates and limit result to max_completions
11760         entries.
11761         (get_max_completions_reached_message): New function.
11762         (gdb_display_match_list): Handle max_completions.
11763         (_initialize_completer): New declaration and function.
11764         * symtab.c: Include completer.h.
11765         (completion_tracker): New static variable.
11766         (completion_list_add_name): Call maybe_add_completion.
11767         (default_make_symbol_completion_list_break_on_1): Renamed from
11768         default_make_symbol_completion_list_break_on.  Maintain
11769         completion_tracker across calls to completion_list_add_name.
11770         (default_make_symbol_completion_list_break_on): New function.
11771         * top.c (init_main): Set rl_completion_display_matches_hook.
11772         * tui/tui-io.c: Include completer.h.
11773         (tui_old_rl_display_matches_hook): New static global.
11774         (tui_rl_display_match_list): Notify user if max-completions reached.
11775         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11776         * NEWS (New Options): Mention set/show max-completions.
11777
11778 2015-01-31  Gary Benson  <gbenson@redhat.com>
11779
11780         * symtab.c (struct add_name_data) <code>: New field.
11781         Updated comments.
11782         (add_symtab_completions): New function.
11783         (symtab_expansion_callback): Likewise.
11784         (default_make_symbol_completion_list_break_on): Set datum.code.
11785         Move minimal symbol scan before calling expand_symtabs_matching.
11786         Scan known primary symtabs for externs and statics before calling
11787         expand_symtabs_matching.  Pass symtab_expansion_callback as
11788         expansion_notify argument to expand_symtabs_matching.  Do not scan
11789         primary symtabs for externs and statics after calling
11790         expand_symtabs_matching.
11791
11792 2015-01-31  Gary Benson  <gbenson@redhat.com>
11793
11794         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11795         (struct quick_symbol_functions) <expand_symtabs_matching>:
11796         New argument expansion_notify.  All uses updated.
11797         (expand_symtabs_matching): New argument expansion_notify.
11798         All uses updated.
11799         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11800         Also print expansion notify.
11801         * symtab.c (expand_symtabs_matching_via_partial): Call
11802         expansion_notify whenever a partial symbol table is expanded.
11803         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11804         expansion_notify whenever a symbol table is instantiated.
11805
11806 2015-01-31  Doug Evans  <xdje42@gmail.com>
11807
11808         * cli-out.c: #include completer.h, readline/readline.h.
11809         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11810         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11811         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11812         * cli-out.h (cli_display_match_list): Declare.
11813         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11814         (ELLIPSIS_LEN): Ditto.
11815         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11816         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11817         (gdb_fnprint, gdb_print_filename): Ditto.
11818         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11819         (gdb_display_match_list): Ditto.
11820         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11821         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11822         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11823         (match_list_displayer): New struct.
11824         (gdb_display_match_list): Declare.
11825         * top.c (init_main): Set rl_completion_display_matches_hook.
11826         * tui/tui-io.c: #include completer.h.
11827         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11828         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11829         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11830         (tui_mld_getc, tui_mld_read_key): Ditto.
11831         (tui_rl_display_match_list): Rewrite.
11832         (tui_handle_resize_during_io): New arg for_completion.  All callers
11833         updated.
11834
11835 2015-01-31  Doug Evans  <xdje42@gmail.com>
11836
11837         Add symbol lookup cache.
11838         * NEWS: Document new options and commands.
11839         * symtab.c (symbol_cache_key): New static global.
11840         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11841         (SYMBOL_LOOKUP_FAILED): New macro.
11842         (symbol_cache_slot_state): New enum.
11843         (block_symbol_cache): New struct.
11844         (symbol_cache): New struct.
11845         (new_symbol_cache_size, symbol_cache_size): New static globals.
11846         (hash_symbol_entry, eq_symbol_entry): New functions.
11847         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11848         (make_symbol_cache, free_symbol_cache): New functions.
11849         (get_symbol_cache, symbol_cache_cleanup): New function.
11850         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11851         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11852         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11853         (symbol_cache_flush, symbol_cache_dump): New functions.
11854         (maintenance_print_symbol_cache): New function.
11855         (maintenance_flush_symbol_cache): New function.
11856         (symbol_cache_stats): New function.
11857         (maintenance_print_symbol_cache_statistics): New function.
11858         (symtab_new_objfile_observer): New function.
11859         (symtab_free_objfile_observer): New function.
11860         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11861         (_initialize_symtab): Init symbol_cache_key.  New parameter
11862         maint symbol-cache-size.  New maint commands print symbol-cache,
11863         print symbol-cache-statistics, flush-symbol-cache.
11864         Install new_objfile, free_objfile observers.
11865
11866 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
11867
11868         PR symtab/17855
11869         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11870         to end.
11871
11872 2015-01-31  Doug Evans  <xdje42@gmail.com>
11873
11874         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11875         * auto-load.c: #include ctype.h.
11876         (struct auto_load_pspace_info): Replace member loaded_scripts with
11877         new members loaded_script_files, loaded_script_texts.
11878         (auto_load_pspace_data_cleanup): Update.
11879         (init_loaded_scripts_info): Update.
11880         (get_auto_load_pspace_data_for_loading): Update.
11881         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
11882         updated.
11883         (maybe_add_script_text): New function.
11884         (clear_section_scripts): Update.
11885         (source_script_file, execute_script_contents): New functions.
11886         (source_section_scripts): Add support for
11887         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11888         (print_scripts): New function.
11889         (auto_load_info_scripts): Also print inlined scripts.
11890         (maybe_print_unsupported_script_warning): Renamed from
11891         unsupported_script_warning_print.  All callers updated.
11892         (maybe_print_script_not_found_warning): Renamed from
11893         script_not_found_warning_print.  All callers updated.
11894         * extension-priv.h (struct extension_language_script_ops): New member
11895         objfile_script_executor.
11896         * extension.c (ext_lang_objfile_script_executor): New function.
11897         * extension.h (objfile_script_executor_func): New typedef.
11898         (ext_lang_objfile_script_executor): Declare.
11899         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11900         * guile/guile.c (guile_extension_script_ops): Update.
11901         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11902         * python/python.c (python_extension_script_ops): Update.
11903         (gdbpy_execute_objfile_script): New function.
11904
11905 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
11906
11907         * tui/tui-io.c (tui_expand_tabs): New function.
11908         (tui_puts, tui_redisplay_readline): Expand TABs into the
11909         appropriate number of spaces.
11910         * tui/tui-regs.c: Include tui-io.h.
11911         (tui_register_format): Call tui_expand_tabs to expand TABs into
11912         the appropriate number of spaces.
11913         * tui/tui-io.h: Add prototype for tui_expand_tabs.
11914
11915 2015-01-30  Doug Evans  <dje@google.com>
11916
11917         * NEWS: "info source" command now display producer string if present.
11918         * source.c (source_info): Print producer string if present.
11919
11920 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11921
11922         * varobj.c (varobj_delete): Fix comment.
11923
11924 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11925
11926         * varobj.c (create_child): Modify comment.
11927
11928 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11929
11930         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11931         parameter.
11932         (ada_name_of_variable): Same.
11933         (ada_path_expr_of_child): Same.
11934         (ada_value_of_variable): Same.
11935         (ada_value_is_changeable_p): Same.
11936         (ada_value_has_mutated): Same.
11937         * c-varobj.c (varobj_is_anonymous_child): Same.
11938         (c_is_path_expr_parent): Same.
11939         (c_number_of_children): Same.
11940         (c_name_of_variable): Same.
11941         (c_path_expr_of_child): Same.
11942         (get_type): Same.
11943         (c_value_of_variable): Same.
11944         (cplus_number_of_children): Same.
11945         (cplus_name_of_variable): Same.
11946         (cplus_path_expr_of_child): Same.
11947         (cplus_value_of_variable): Same.
11948         * jv-varobj.c (java_number_of_children): Same.
11949         (java_name_of_variable): Same.
11950         (java_path_expr_of_child): Same.
11951         (java_value_of_variable): Same.
11952         * varobj.c (number_of_children): Same.
11953         (name_of_variable): Same.
11954         (is_root_p): Same.
11955         (varobj_ensure_python_env): Same.
11956         (varobj_get_objname): Same.
11957         (varobj_get_expression): Same.
11958         (varobj_get_display_format): Same.
11959         (varobj_get_display_hint): Same.
11960         (varobj_has_more): Same.
11961         (varobj_get_thread_id): Same.
11962         (varobj_get_frozen): Same.
11963         (dynamic_varobj_has_child_method): Same.
11964         (varobj_get_gdb_type): Same.
11965         (is_path_expr_parent): Same.
11966         (varobj_default_is_path_expr_parent): Same.
11967         (varobj_get_language): Same.
11968         (varobj_get_attributes): Same.
11969         (varobj_is_dynamic_p): Same.
11970         (varobj_get_child_range): Same.
11971         (varobj_value_has_mutated): Same.
11972         (varobj_get_value_type): Same.
11973         (number_of_children): Same.
11974         (name_of_variable): Same.
11975         (check_scope): Same.
11976         (varobj_editable_p): Same.
11977         (varobj_value_is_changeable_p): Same.
11978         (varobj_floating_p): Same.
11979         (varobj_default_value_is_changeable_p): Same.
11980
11981 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11982
11983         * varobj.c (varobj_get_path_expr): Set var->path_expr.
11984         * c-varobj.c (c_path_expr_of_child): Set local var instead of
11985         child->path_expr.
11986         (cplus_path_expr_of_child): Same.
11987
11988 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11989
11990         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11991         result.
11992         (mi_cmd_var_info_expression): Same.
11993         * varobj.c (varobj_get_expression): Mention in the comment that
11994         the result must by freed by the caller.
11995
11996 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
11997
11998         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11999         varobj_get_type.
12000         (varobj_update_one): Same.
12001         * varobj.c (update_type_if_necessary): Free curr_type_str and
12002         new_type_str.
12003         (varobj_get_type): Specify in comment that the result needs to be
12004         freed by the caller.
12005
12006 2015-01-29  Doug Evans  <dje@google.com>
12007
12008         PR symtab/17890
12009         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12010
12011 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12012
12013         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12014         * utils.c (producer_is_gcc_ge_4): Likewise.
12015         (producer_is_gcc): New function.
12016         * utils.h (producer_is_gcc): New declaration.
12017
12018 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12019
12020         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12021         kind.
12022         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12023         parameter by "addr_stack" parameter.
12024         (resolve_dynamic_range): Replace "addr" parameter by
12025         "stack_addr" parameter.  Update function documentation.
12026         Update code accordingly.
12027         (resolve_dynamic_array, resolve_dynamic_union)
12028         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12029         (resolve_dynamic_type): Update code, following the changes made
12030         to resolve_dynamic_type_internal's interface.
12031         * dwarf2loc.h (struct property_addr_info): New.
12032         (dwarf2_evaluate_property): Replace "address" parameter
12033         by "addr_stack" parameter.  Adjust function documentation.
12034         (struct dwarf2_offset_baton): New.
12035         (struct dwarf2_property_baton): Update documentation of
12036         field "referenced_type" to be more general. New field
12037         "offset_info" in union data field.
12038         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12039         parameter by "addr_stack" parameter.  Adjust code accordingly.
12040         Add support for PROP_ADDR_OFFSET properties.
12041         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12042         DW_AT_data_member_location attributes as well.  Use case
12043         statements instead of if/else condition.
12044
12045 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12046
12047         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12048         Return zero if PARENT_VALUE is NULL and parent_type's
12049         range type is dynamic.
12050
12051 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12052
12053         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12054         nonzero if the type's subtype is dynamic.
12055         (resolve_dynamic_range): Also resolve the range's subtype.
12056
12057 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12058
12059         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12060         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12061
12062 2015-01-27  Doug Evans  <dje@google.com>
12063
12064         * NEWS: Mention gdb.Objfile.username.
12065         * python/py-objfile.c (objfpy_get_username): New function.
12066         (objfile_getset): Add "username".
12067
12068 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12069
12070         * stack.c (return_command): Markup warning message with _.
12071
12072 2015-01-24  Doug Evans  <xdje42@gmail.com>
12073
12074         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12075
12076 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12077
12078         Fix 100x slowdown regression on DWZ files.
12079         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12080         (struct line_header): Add offset and offset_in_dwz.
12081         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12082         (free_line_header_voidp): New declaration.
12083         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12084         functions.
12085         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12086         (handle_DW_AT_stmt_list): Use line_header_hash.
12087         (free_line_header_voidp): New function.
12088         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12089         (dwarf_decode_lines): New parameter decode_mapping, use it.
12090         (dwarf2_free_objfile): Free line_header_hash.
12091
12092 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12093
12094         PR gdb/17416
12095         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12096         value_ind.
12097
12098 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12099
12100         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12101         DW_AT_noreturn.
12102         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12103         calling_convention an 8 bit bit field.
12104         (TYPE_NO_RETURN): New macro.
12105         * infcmd.c (finish_command): Query if function does not return
12106         normally.
12107         * stack.c (return_command): Likewise.
12108
12109 2015-01-23  Pedro Alves  <palves@redhat.com>
12110
12111         * linux-nat.c (linux_is_async_p): New macro.
12112         (linux_nat_is_async_p):
12113         (linux_nat_terminal_inferior): Check whether the target can async
12114         instead of whether it is already async.
12115         (linux_nat_terminal_ours): Don't check whether the target is
12116         async.
12117         (linux_async_pipe): Use linux_is_async_p.
12118
12119 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12120
12121         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12122         '-ascending'.
12123         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12124         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12125         Sort tp_array using tp_array_compar.
12126         (_initialize_thread): Extend thread_apply_all_command help.
12127
12128 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12129
12130         * corelow.c (core_open): Call also thread_command.
12131         * gdbthread.h (thread_command): New prototype moved from ...
12132         * thread.c (thread_command): ... here.
12133         (thread_command): Make it global.
12134
12135 2015-01-22  Pedro Alves  <palves@redhat.com>
12136
12137         * configure.ac [*mingw32*]: Check $curses_found instead of
12138         $prefer_curses.
12139         * configure: Regenerate.
12140         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12141         HAVE_NCURSES_NCURSES_H checks.
12142
12143 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12144
12145         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12146         fails with the 1st arg NULL, try again with "unknown".  Don't test
12147         the "cup" capability: it isn't supported by the Windows port of
12148         ncurses, but the Windows console driver is still capable of
12149         supporting TUI.
12150
12151 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12152
12153         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12154
12155 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12156
12157         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12158         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12159         reason that "make TAGS" is broken.
12160
12161 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12162
12163         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12164         and check additional store instructions.
12165
12166 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12167
12168         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12169
12170 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12171
12172         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12173         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12174         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12175         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12176         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12177         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12178         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12179         ppc_process_record_op19, ppc_process_record_op31,
12180         ppc_process_record_op59, ppc_process_record_op60,
12181         ppc_process_record_op63): Likewise.
12182
12183 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12184
12185         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12186         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12187         strerror.
12188
12189 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12190
12191         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12192         ppc_process_record_op31, ppc_process_record_op59,
12193         ppc_process_record_op60, ppc_process_record_op63,
12194         ppc_process_record): Fix -Wformat warning.
12195         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12196         Remove unused variables.
12197
12198 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12199
12200         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12201
12202 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12203
12204         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12205         CONFIG_OBS if not building with a curses library.
12206         * configure: Regenerate.
12207
12208         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12209         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12210         HAVE_NCURSES_NCURSES_H is defined.
12211
12212 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12213
12214         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12215         from end of line to start of next line.
12216
12217 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12218
12219         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12220         Scan PLT stub backward for reverse debugging.
12221         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12222
12223 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12224             Ulrich Weigand  <uweigand@de.ibm.com>
12225
12226         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12227         gdb_target_obs.
12228         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12229         record.
12230         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12231         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12232         (ppc_linux_init_abi): Set process_record, process_record_signal.
12233         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12234         ppc_linux_record_tdep to gdbarch_tdep.
12235         (ppc_process_record): New declaration.
12236         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12237         ppc_process_record_op19, ppc_process_record_op31,
12238         ppc_process_record_op59, ppc_process_record_op60,
12239         ppc_process_record_op63, ppc_process_record): New functions.
12240
12241 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12242
12243         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12244         rs6000_in_function_epilogue_frame_p and add an argument
12245         for frame_info.
12246         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12247         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12248         New functions.
12249         (rs6000_epilogue_frame_unwind): New.
12250         (rs6000_gdbarch_init): Append epilogue unwinder.
12251
12252 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12253
12254         * nat/linux-personality.c: Replace "#ifndef
12255         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12256         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12257         systems.
12258
12259 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12260
12261         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12262         functions.
12263         (_initialize_tui_win) <border-kind, border-mode>:
12264         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12265         (tui_set_tab_width_command): Fix the commentary.
12266
12267         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12268
12269         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12270         Doc fix.
12271         (tui_set_tab_width_command): Delete and recreate the source and
12272         the disassembly windows, to show the effect of the changed tab
12273         size immediately.
12274
12275         * tui/tui-data.h (LINE_PREFIX): Make shorter
12276         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12277         "Thread NNNNN.XXXX" thread ID notation on Windows.
12278
12279 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12280
12281         Fix gcc-5 compilation.
12282         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12283
12284 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12285
12286         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12287         (linux-personality.o): New rule.
12288         * common/common-defs.h: Include <stdint.h>.
12289         * config/aarch64/linux.mh (NATDEPFILES): Include
12290         linux-personality.o.
12291         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12292         * config/arm/linux.mh (NATDEPFILES): Likewise.
12293         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12294         * config/i386/linux.mh (NATDEPFILES): Likewise.
12295         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12296         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12297         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12298         * config/mips/linux.mh (NATDEPFILES): Likewise.
12299         * config/pa/linux.mh (NATDEPFILES): Likewise.
12300         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12301         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12302         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12303         * config/s390/linux.mh (NATDEPFILES): Likewise.
12304         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12305         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12306         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12307         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12308         * defs.h: Remove #include <stdint.h> (moved to
12309         common/common-defs.h).
12310         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12311         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12312         nat/linux-personality.c).
12313         (linux_nat_create_inferior): Remove code to disable address space
12314         randomization (moved to nat/linux-personality.c).  Create cleanup
12315         to disable address space randomization.
12316         * nat/linux-personality.c: New file.
12317         * nat/linux-personality.h: Likewise.
12318
12319 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12320
12321         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12322         common/posix-strerror.c.
12323         (posix-strerror.o): New rule.
12324         (mingw-strerror.o): Likewise.
12325         * common/common-utils.h (safe_strerror): Move prototype to here,
12326         from utils.h.
12327         * common/common.host: New file.
12328         * common/mingw-strerror.c: Likewise.
12329         * common/posix-strerror.c: Likewise.
12330         * configure: Regenerated.
12331         * configure.ac: Source common/common.host.  Add variable
12332         common_host_obs to gdb_host_obs.
12333         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12334         gdb/common/posix-strerror.c when warning about the use of
12335         strerror.
12336         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12337         common/mingw-strerror.c.
12338         * posix-hdep.c (safe_strerror): Remove definition; move it to
12339         common/posix-hdep.c.
12340         * utils.h (safe_strerror): Remove prototype; move to
12341         common/common-utils.h.
12342
12343 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12344
12345         GDB 7.8.2 released.
12346
12347 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12348
12349         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12350         ___XA type if the array has already been fixed.
12351
12352 2015-01-14  Yao Qi  <yao@codesourcery.com>
12353
12354         * Makefile.in (ppc-linux.o): New rule.
12355         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12356         * configure.ac: AC_CHECK_FUNCS(getauxval).
12357         * config.in: Re-generated.
12358         * configure: Re-generated.
12359         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12360         Declare.
12361         * nat/ppc-linux.c: New file.
12362         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12363         Call ppc64_64bit_inferior_p.
12364
12365 2015-01-14  Yao Qi  <yao@codesourcery.com>
12366
12367         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12368         nat/ppc-linux.h.
12369         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12370         (PPC_FEATURE_HAS_DFP): Likewise.
12371         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12372         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12373         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12374         Include "nat/ppc-linux.h".
12375         * nat/ppc-linux.h: New file.
12376         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12377
12378 2015-01-14  Pedro Alves  <palves@redhat.com>
12379
12380         PR gdb/17525
12381         * breakpoint.c: Include "interps.h".
12382         (bpstat_do_actions_1): Also check whether the interpreter is
12383         async.
12384
12385 2015-01-14  Pedro Alves  <palves@redhat.com>
12386
12387         PR cli/17828
12388         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12389         reinstall if the interpreter is sync.
12390
12391 2015-01-13  Doug Evans  <dje@google.com>
12392
12393         * objfiles.c (objfile_filename): New function.
12394         * objfiles.h (objfile_filename): Declare it.
12395         (objfile_name): Add function comment.
12396         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12397         bfd file name (which may be realpath'd), and the original name.
12398
12399 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12400
12401         * NEWS: Create a new section for the next release branch.
12402         Rename the section of the current branch, now that it has
12403         been cut.
12404
12405 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12406
12407         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12408         * version.in: Bump version to 7.9.50.DATE-cvs.
12409
12410 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12411
12412         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12413         Remove trailing new-line in argument of call to warning.
12414
12415 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12416
12417         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12418         new-line in argument of call to "warning".
12419
12420 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12421
12422         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12423         in static block, then try searching for primitive types.
12424
12425 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12426
12427         * top.h (gdb_add_history): Declare.
12428         * top.c (command_count): New variable.
12429         (gdb_add_history): New function.
12430         (gdb_safe_append_history): New static function.
12431         (quit_force): Call it.
12432         (command_line_input): Use gdb_add_history instead of
12433         add_history.
12434         * event-top.c (command_line_handler): Likewise.
12435
12436 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12437
12438         PR gdb/17046
12439         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12440         <setjmp.h> #include.
12441
12442 2015-01-11  Doug Evans  <xdje42@gmail.com>
12443
12444         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12445
12446 2015-01-11  Doug Evans  <xdje42@gmail.com>
12447
12448         PR gdb/15830
12449         * NEWS: The "maint demangle" command is renamed as "demangle".
12450         * demangle.c: #include cli/cli-utils.h, language.h.
12451         (demangle_command): New function.
12452         (_initialize_demangle): Add new command "demangle".
12453         * maint.c (maintenance_demangle): Stub out.
12454         (_initialize_maint_cmds): Update help text for "maint demangle",
12455         and mark as deprecated.
12456
12457 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12458
12459         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12460         inferior_thread is a function.
12461
12462 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12463
12464         * Makefile.in (.y.c): Don't munge yacc's #line
12465         directives.
12466
12467 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12468
12469         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12470         to prompt for input.
12471         * tui/tui-hooks.c (tui_query_hook): Remove.
12472         (tui_install_hooks): Don't set deprecated_query_hook.
12473         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12474         height calculation.  Always update the command window's cur_line.
12475
12476 2015-01-09  Pedro Alves  <palves@redhat.com>
12477
12478         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12479         function.
12480         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12481         declaration.
12482         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12483         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12484         stop_reason.
12485         (check_stopped_by_watchpoint): New function.
12486         (save_sigtrap): Reimplement.
12487         (linux_nat_stopped_by_watchpoint): Adjust.
12488         (linux_nat_lp_status_is_event): Delete.
12489         (stop_wait_callback): Only call save_sigtrap after storing the
12490         pending status.
12491         (status_callback): If the thread had been stopped for a breakpoint
12492         that has since been removed, discard the event and resume the LWP.
12493         (count_events_callback, select_event_lwp_callback): Use
12494         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12495         (cancel_breakpoint): Rename to ...
12496         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12497         stopped for a software breakpoint or hardware breakpoint.
12498         (select_event_lwp): Only give preference to the stepping LWP in
12499         all-stop mode.  Adjust comments.
12500         (stop_and_resume_callback): Remove references to new_pending_p.
12501         (linux_nat_filter_event): Likewise.  Leave exit events of the
12502         leader thread pending here.  Handle signal short circuiting here.
12503         Only call save_sigtrap after storing the pending waitstatus.
12504         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12505         new_pending.  Don't handle leaving events the caller is not
12506         interested in pending here, nor handle signal short-circuiting
12507         here.  Also give equal priority to all LWPs that have had events
12508         in non-stop mode.  If reporting a software breakpoint event,
12509         unadjust the LWP's PC.
12510         * linux-nat.h (enum lwp_stop_reason): New.
12511         (struct lwp_info) <stop_pc>: New field.
12512         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12513         (struct lwp_info) <stop_reason>: New field.
12514         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12515
12516 2015-01-09  Pedro Alves  <palves@redhat.com>
12517
12518         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12519         Set the LWP's 'resumed' flag.
12520
12521 2015-01-09  Pedro Alves  <palves@redhat.com>
12522
12523         * linux-nat.c (linux_resume_one_lwp): New function.
12524         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12525         (linux_nat_resume): Use lwp_status_pending_p and
12526         linux_resume_one_lwp.
12527         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12528         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12529         (status_callback, running_callback): Use lwp_status_pending_p.
12530         (lwp_status_pending_p): New function.
12531         (stop_and_resume_callback): Use lwp_status_pending_p.
12532         (linux_nat_filter_event): Use linux_resume_one_lwp.
12533         (linux_nat_wait_1): Always use status_callback to look for an LWP
12534         with a pending status.  Use linux_resume_one_lwp.
12535         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12536         linux_resume_one_lwp.
12537
12538 2015-01-09  Pedro Alves  <palves@redhat.com>
12539
12540         * breakpoint.c (bp_location_inserted_here_p): New function,
12541         factored out from ...
12542         (breakpoint_inserted_here_p): ... here.  Use
12543         ALL_BP_LOCATIONS_AT_ADDR.
12544         (software_breakpoint_inserted_here_p): Use
12545         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12546
12547 2014-01-09  Pedro Alves  <palves@redhat.com>
12548
12549         Skip enabling event reporting if the kernel supports
12550         PTRACE_EVENT_CLONE.
12551         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12552         (thread_db_use_events): New function.
12553         (try_thread_db_load_1): Check thread_db_use_events before enabling
12554         event reporting.
12555         (update_thread_state): New function.
12556         (attach_thread): Use it.  Check thread_db_use_events before
12557         enabling event reporting.
12558         (thread_db_detach): Check thread_db_use_events before disabling
12559         event reporting.
12560         (find_new_threads_callback): Check thread_db_use_events before
12561         enabling event reporting.  Update the thread's state if not using
12562         libthread_db events.
12563
12564 2015-01-09  Pedro Alves  <palves@redhat.com>
12565
12566         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12567         about to wait for is > 0.
12568         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12569         the kernel thread ID is -1.
12570
12571 2015-01-09  Pedro Alves  <palves@redhat.com>
12572
12573         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12574         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12575         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12576         ptrace option flags.
12577         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12578         field.
12579         * nat/linux-procfs.c: Include <dirent.h>.
12580         (linux_proc_get_int): New parameter "warn".  Handle it.
12581         (linux_proc_get_tgid): Adjust.
12582         (linux_proc_get_tracerpid): Rename to ...
12583         (linux_proc_get_tracerpid_nowarn): ... this.
12584         (linux_proc_pid_get_state): New function, factored out from
12585         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12586         and handle it.
12587         (linux_proc_pid_is_gone): New function.
12588         (linux_proc_pid_is_stopped): Adjust.
12589         (linux_proc_pid_is_zombie_maybe_warn)
12590         (linux_proc_pid_is_zombie_nowarn): New functions.
12591         (linux_proc_pid_is_zombie): Use
12592         linux_proc_pid_is_zombie_maybe_warn.
12593         (linux_proc_attach_tgid_threads): New function.
12594         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12595         (linux_proc_get_tracerpid): Rename to ...
12596         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12597         (linux_proc_pid_is_gone): New declaration.
12598         (linux_proc_pid_is_zombie): Update comment.
12599         (linux_proc_pid_is_zombie_nowarn): New declaration.
12600         (linux_proc_attach_lwp_func): New typedef.
12601         (linux_proc_attach_tgid_threads): New declaration.
12602         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12603         use nowarn functions.
12604         (linux_ptrace_attach_fail_reason_string): Move here from
12605         gdbserver/linux-low.c and rename.
12606         (ptrace_supports_feature): If the current ptrace options are not
12607         known yet, check them now, instead of asserting.
12608         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12609         Declare.
12610
12611 2015-01-09  Pedro Alves  <palves@redhat.com>
12612
12613         * linux-thread-db.c (thread_db_find_new_threads_silently)
12614         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12615         (find_new_threads_once): Print debug output on gdb_stdlog.
12616
12617 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12618             Pedro Alves  <palves@redhat.com>
12619
12620         * compile/compile.c: Include "gdb_wait.h".
12621         (do_rmdir): Check return value, and free 'zap'.
12622
12623 2015-01-08  Pedro Alves  <palves@redhat.com>
12624             Yao Qi  <yao@codesourcery.com>
12625
12626         * dwarf2loc.c (indirect_pieced_value): Don't call
12627         gdb_sign_extend.  Call extract_signed_integer instead.
12628         * utils.c (gdb_sign_extend): Remove.
12629         * utils.h (gdb_sign_extend): Remove declaration.
12630
12631 2015-01-07  Pierre Muller  <muller@sourceware.org>
12632
12633         PR symtab/17811
12634         * stabsread.c (define_symbol): Set language for C++ special symbols.
12635
12636 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12637
12638         * inflow.c (initial_gdb_ttystate): Tweak comment.
12639
12640 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12641
12642         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12643         comment documenting function.
12644
12645 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12646
12647         * terminal.h (set_initial_gdb_ttystate): Declare.
12648         * inflow.c (initial_gdb_ttystate): New static variable.
12649         (set_initial_gdb_ttystate): New setter.
12650         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12651         instead of our current terminal state.
12652         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12653
12654 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12655
12656         * guile/scm-type.c (tyscm_array_1): Add comment.
12657         * python/py-type.c (typy_array_1): Add comment.
12658
12659 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12660
12661         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12662         error if N2 is equal to N1 - 1.
12663
12664 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12665
12666         * python/py-type.c (typy_array_1): Do not raise negative-length
12667         exception if N2 is equal to N1 - 1.
12668
12669 2015-01-03  Doug Evans  <xdje42@gmail.com>
12670
12671         * c-exp.y: Whitespace cleanup.
12672         (classify_inner_name): Remove extra ;.
12673
12674 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12675
12676         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12677         offset signed.
12678
12679 2015-01-02  Doug Evans  <dje@google.com>
12680
12681         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12682
12683 2015-01-02  Doug Evans  <dje@google.com>
12684
12685         * symtab.h (struct symbol): Fix typo in comment.
12686
12687 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12688
12689         Update year range in copyright notice of all files.
12690
12691 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12692
12693         * top.c (print_gdb_version): Update copyright year to 2015.
12694
12695 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12696
12697         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12698
12699 For older changes see ChangeLog-2014.
12700 \f
12701 Local Variables:
12702 mode: change-log
12703 left-margin: 8
12704 fill-column: 74
12705 version-control: never
12706 coding: utf-8
12707 End: